Examples of selectionChanged()


Examples of org.eclipse.jface.viewers.ISelectionChangedListener.selectionChanged()

      final ISelectionChangedListener selectionChangedListener =
              (ISelectionChangedListener) listener;
     
      SafeRunner.run(new SafeRunnable() {
        public void run() {
          selectionChangedListener.selectionChanged(event);
        }
      });
    }
  }
 
View Full Code Here

Examples of org.eclipse.jface.viewers.ISelectionChangedListener.selectionChanged()

            for( Object item : listeners.getListeners() ){
                ISelectionChangedListener listener = (ISelectionChangedListener) item;
                if( event == null ){
                    event = new SelectionChangedEvent( this, this.selection);
                }
                listener.selectionChanged( event );               
            }
        }
    }
}
View Full Code Here

Examples of org.eclipse.jface.viewers.ISelectionChangedListener.selectionChanged()

            Object[] listeners = getListeners();
            for( int i = 0; i < listeners.length; ++i ) {
                final ISelectionChangedListener l = (ISelectionChangedListener) listeners[i];
                Platform.run(new SafeRunnable(){
                    public void run() {
                        l.selectionChanged(event);
                    }
                });
            }
        }
View Full Code Here

Examples of org.eclipse.jface.viewers.ISelectionChangedListener.selectionChanged()

        Iterator<ISelectionChangedListener> listenerIterator = listeners.iterator();

        while (listenerIterator.hasNext()) {
          ISelectionChangedListener listener = listenerIterator.next();
          SelectionChangedEvent event = new SelectionChangedEvent(this, selection);
          listener.selectionChanged(event);
        }
      }
    }
  }
}
View Full Code Here

Examples of org.eclipse.php.internal.ui.actions.ReorgMoveAction.selectionChanged()

    IResource[] resources = getResources(elements);

    ReorgMoveAction action = new ReorgMoveAction();
    action.init(PlatformUI.getWorkbench().getActiveWorkbenchWindow());
    StructuredSelection selection = new StructuredSelection(resources);
    action.selectionChanged(null, selection);
    Object targetContainer = target;
    if (targetContainer instanceof IModelElement) {
      targetContainer = getResource((IModelElement) target);
    }
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 {
                    IBookMark bookmark = getBookMark(selection);
                    if (bookmark != null) {
                      String shareLink = provider.toShareUrl(bookmark);
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()

          /* Copy Link */
          manager.add(new Action("Copy Link") {
            @Override
            public void run() {
              IActionDelegate action = new CopyLinkAction();
              action.selectionChanged(null, selection);
              action.run(null);
            }

            @Override
            public boolean isEnabled() {
View Full Code Here

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

          /* Send Link */
          manager.add(new Action("Send Link") {
            @Override
            public void run() {
              IActionDelegate action = new SendLinkAction();
              action.selectionChanged(null, selection);
              action.run(null);
            }

            @Override
            public boolean isEnabled() {
View Full Code Here

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

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

            @Override
            public ImageDescriptor getImageDescriptor() {
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.