diff options
Diffstat (limited to 'org.openembedded.bc.ui/src/org/openembedded/bc/ui/popup')
-rw-r--r-- | org.openembedded.bc.ui/src/org/openembedded/bc/ui/popup/actions/NewAction.java | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/org.openembedded.bc.ui/src/org/openembedded/bc/ui/popup/actions/NewAction.java b/org.openembedded.bc.ui/src/org/openembedded/bc/ui/popup/actions/NewAction.java new file mode 100644 index 0000000..30eb3e8 --- /dev/null +++ b/org.openembedded.bc.ui/src/org/openembedded/bc/ui/popup/actions/NewAction.java @@ -0,0 +1,43 @@ +package org.openembedded.bc.ui.popup.actions; + +import org.eclipse.jface.action.IAction; +import org.eclipse.jface.dialogs.MessageDialog; +import org.eclipse.jface.viewers.ISelection; +import org.eclipse.swt.widgets.Shell; +import org.eclipse.ui.IActionDelegate; +import org.eclipse.ui.IObjectActionDelegate; +import org.eclipse.ui.IWorkbenchPart; + +public class NewAction implements IObjectActionDelegate { + + /** + * Constructor for Action1. + */ + public NewAction() { + super(); + } + + /** + * @see IObjectActionDelegate#setActivePart(IAction, IWorkbenchPart) + */ + public void setActivePart(IAction action, IWorkbenchPart targetPart) { + } + + /** + * @see IActionDelegate#run(IAction) + */ + public void run(IAction action) { + Shell shell = new Shell(); + MessageDialog.openInformation( + shell, + "BitBake Commander UI Plug-in", + "New Action was executed."); + } + + /** + * @see IActionDelegate#selectionChanged(IAction, ISelection) + */ + public void selectionChanged(IAction action, ISelection selection) { + } + +} |