diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 13:23:09 +0200 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 13:24:09 +0200 |
commit | c7da892cb23d50d4d85746c9a0b6b14bf570989d (patch) | |
tree | e7136073f386d6156f51766c498c52c30c8df85f /plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/popup/actions/NewAction.java | |
download | eclipse-poky-kepler-c7da892cb23d50d4d85746c9a0b6b14bf570989d.tar.gz |
initial commit for Enea Linux 4.0daisy
Migrated from the internal git server on the daisy-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 | } | ||