diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 13:36:50 +0100 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 15:25:03 +0100 |
commit | 41ac47d732eed8392d60d0f6773e5a279d49b999 (patch) | |
tree | cf19d099db9cfdb8d73aa21c31e7aa1cc86ff860 /plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/popup/actions/NewAction.java | |
download | eclipse-poky-juno-41ac47d732eed8392d60d0f6773e5a279d49b999.tar.gz |
Migrated from the internal git server on the dora-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/popup/actions/NewAction.java')
-rw-r--r-- | plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/popup/actions/NewAction.java | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/popup/actions/NewAction.java b/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/popup/actions/NewAction.java new file mode 100644 index 0000000..3bdf5d3 --- /dev/null +++ b/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/popup/actions/NewAction.java | |||
@@ -0,0 +1,43 @@ | |||
1 | package org.yocto.bc.ui.popup.actions; | ||
2 | |||
3 | import org.eclipse.jface.action.IAction; | ||
4 | import org.eclipse.jface.dialogs.MessageDialog; | ||
5 | import org.eclipse.jface.viewers.ISelection; | ||
6 | import org.eclipse.swt.widgets.Shell; | ||
7 | import org.eclipse.ui.IActionDelegate; | ||
8 | import org.eclipse.ui.IObjectActionDelegate; | ||
9 | import org.eclipse.ui.IWorkbenchPart; | ||
10 | |||
11 | public class NewAction implements IObjectActionDelegate { | ||
12 | |||
13 | /** | ||
14 | * Constructor for Action1. | ||
15 | */ | ||
16 | public NewAction() { | ||
17 | super(); | ||
18 | } | ||
19 | |||
20 | /** | ||
21 | * @see IObjectActionDelegate#setActivePart(IAction, IWorkbenchPart) | ||
22 | */ | ||
23 | public void setActivePart(IAction action, IWorkbenchPart targetPart) { | ||
24 | } | ||
25 | |||
26 | /** | ||
27 | * @see IActionDelegate#run(IAction) | ||
28 | */ | ||
29 | public void run(IAction action) { | ||
30 | Shell shell = new Shell(); | ||
31 | MessageDialog.openInformation( | ||
32 | shell, | ||
33 | "Yocto Project BitBake Commander UI Plug-in", | ||
34 | "New Action was executed."); | ||
35 | } | ||
36 | |||
37 | /** | ||
38 | * @see IActionDelegate#selectionChanged(IAction, ISelection) | ||
39 | */ | ||
40 | public void selectionChanged(IAction action, ISelection selection) { | ||
41 | } | ||
42 | |||
43 | } | ||