Examples of IActionDelegate


Examples of org.eclipse.ui.IActionDelegate

            if (provider.isEnabled()) {
              shareMenu.add(new Action(provider.getName()) {
                @Override
                public void run() {
                  if (SendLinkAction.ID.equals(provider.getId())) {
                    IActionDelegate action = new SendLinkAction();
                    action.selectionChanged(null, selection);
                    action.run(null);
                  } else {
                    IBookMark bookmark = getBookMark(selection);
                    if (bookmark != null) {
                      String shareLink = provider.toShareUrl(bookmark);
                      new OpenInBrowserAction(new StructuredSelection(shareLink)).run();
View Full Code Here

Examples of org.eclipse.ui.IActionDelegate

     * @param editor the editor in which to perform the action
     * @return the last Action for the given editor. If none is registered for the given editor, return the last action registered.
     */
    public IActionDelegate getLastActionForEditor(ITextEditor editor) {
        if(editor != null) {
            IActionDelegate act = (IActionDelegate)this.lastActionsByEditor.get(editor);
            if (act != null) {
                // System.out.println("Returning last action for editor: " + act.getClass().getName());
                return act;
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.