Examples of selectionChanged()


Examples of org.eclipse.ui.IActionDelegate.selectionChanged()

          /* Update */
          manager.add(new Action(Messages.ApplicationActionBarAdvisor_UPDATE) {
            @Override
            public void run() {
              IActionDelegate action = new ReloadTypesAction();
              action.selectionChanged(null, selection);
              action.run(null);
            }

            @Override
            public ImageDescriptor getImageDescriptor() {
View Full Code Here

Examples of org.eclipse.ui.IActionDelegate.selectionChanged()

          public void run() {

            /* Special Case "Send E-Mail" action */
            if (SendLinkAction.ID.equals(provider.getId())) {
              IActionDelegate action = new SendLinkAction();
              action.selectionChanged(null, selection);
              action.run(null);
            }

            /* Other Action */
            else {
View Full Code Here

Examples of org.eclipse.ui.IActionDelegate.selectionChanged()

            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 {
                  Object obj = selection.getFirstElement();
                  if (StringUtils.isSet((String) obj) && !URIUtils.ABOUT_BLANK.equals(obj)) {
                    String shareLink = provider.toShareUrl((String) obj, null);
View Full Code Here

Examples of org.eclipse.ui.IActionDelegate.selectionChanged()

   */
  private final void refreshEnablement() {
    final IActionDelegate delegate = getDelegate();
    final IAction action = getAction();
    if ((delegate != null) && (action != null)) {
      delegate.selectionChanged(action, currentSelection);
    }
  }

  public void removeHandlerListener(IHandlerListener handlerListener) {
    if (listenerList != null) {
View Full Code Here

Examples of org.eclipse.ui.IEditorActionDelegate.selectionChanged()

    @Override
    public void selectionChanged(IAction action, ISelection selection) {
        IEditorActionDelegate participant = getParticipant();
        if (participant != null) {
            participant.selectionChanged(action, selection);
        }
    }

    protected IEditorActionDelegate getParticipant() {
        if (registered != null) {
View Full Code Here

Examples of org.eclipse.ui.IObjectActionDelegate.selectionChanged()

      IProject newProject = JadexProjectSupport.createProject(name, location, null);
      BasicNewProjectResourceWizard.updatePerspective(_configurationElement);
     
      final Action action = new Action() {};
    IObjectActionDelegate updateAction = new UpdateSourcesAction(Display.getCurrent().getActiveShell());
    updateAction.selectionChanged(action, new StructuredSelection(newProject));
    updateAction.run(action);
     
    return true;
  }
View Full Code Here

Examples of org.eclipse.ui.ISelectionListener.selectionChanged()

            final ISelectionListener l = (ISelectionListener) array[i];
            if ((part != null && sel != null)
                    || l instanceof INullSelectionListener) {
                Platform.run(new SafeRunnable() {
                    public void run() {
                        l.selectionChanged(part, sel);
                    }
                });
            }
        }
    }
View Full Code Here

Examples of org.eclipse.ui.ISelectionListener.selectionChanged()

            final ISelectionListener l = (ISelectionListener) array[i];
            if ((part != null && sel != null)
                    || l instanceof INullSelectionListener) {
                Platform.run(new SafeRunnable() {
                    public void run() {
                        l.selectionChanged(part, sel);
                    }
                });
            }
        }
    }
View Full Code Here

Examples of org.eclipse.ui.ISelectionListener.selectionChanged()

        // pass the selection to the page
        IPage page = getCurrentPage(); // We are expecting a FeaturePanelPage
                                       // here
        if (page != null && page instanceof ISelectionListener) {
            ISelectionListener notifyPage = (ISelectionListener) page;
            notifyPage.selectionChanged(part, editSelection);
        }
    }

    @Override
    public void init(IViewSite site) throws PartInitException {
View Full Code Here

Examples of org.eclipse.ui.actions.DeleteResourceAction.selectionChanged()

  }

  private void runNormalAction(List<IResource> resources) {
    DeleteResourceAction action = new DeleteResourceAction(shellProvider);
    IStructuredSelection selection = new StructuredSelection(resources);
    action.selectionChanged(selection);
    action.run();
  }

  private void runNonWorkspaceAction() {
    boolean performAction = MessageDialog.openConfirm(
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.