Examples of selectionChanged()


Examples of org.eclipse.gmf.internal.codegen.popup.actions.ExecuteTemplatesAction.selectionChanged()

  public void run(final IAction action) {
   
    for (IFile file : selection) {
      ExecuteTemplatesAction generator = new ExecuteTemplatesAction();
      generator.setActivePart(action, targetPart);
      generator.selectionChanged(action, new StructuredSelection(file));
      generator.run(action);
    }
   
  }
View Full Code Here

Examples of org.eclipse.jface.action.IAction.selectionChanged()

          /* Create Filter */
          manager.add(new Action(Messages.ApplicationActionBarAdvisor_CREATE_FILTER) {
            @Override
            public void run() {
              CreateFilterAction action = new CreateFilterAction();
              action.selectionChanged(null, selection);
              action.run(null);
            }

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

Examples of org.eclipse.jface.action.IAction.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.jface.viewers.ISelectionChangedListener.selectionChanged()

        protected void fireSelectionChanged(SelectionChangedEvent event) {
            Object[] listeners = fListeners.getListeners();
            for (int i = 0; i < listeners.length; i++) {
                ISelectionChangedListener listener = (ISelectionChangedListener) listeners[i];
                listener.selectionChanged(event);
            }
        }
    }

}
View Full Code Here

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

        final SelectionChangedEvent event = new SelectionChangedEvent(this,
                getSelection());
        final Object[] listeners = fSelectionListeners.getListeners();
        for (final Object element : listeners) {
            final ISelectionChangedListener listener = (ISelectionChangedListener) element;
            listener.selectionChanged(event);
        }
    }

    /**
     * Sorts by VM name.
View Full Code Here

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

        final SelectionChangedEvent event = new SelectionChangedEvent(this, getSelection());
        for( ISelectionChangedListener listener : selectionChangeListeners ){
            final ISelectionChangedListener l = listener;
            SafeRunnable.run(new SafeRunnable() {
                public void run() {
                    l.selectionChanged(event);
                }
            });
        }
    }
    public void setSelection( ISelection selection ) {
View Full Code Here

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

    private void fireSelectionChanged() {
        SelectionChangedEvent event = new SelectionChangedEvent(this, getSelection());
        Object[] listeners = fSelectionListeners.getListeners();
        for (int i = 0; i < listeners.length; i++) {
            ISelectionChangedListener listener = (ISelectionChangedListener)listeners[i];
            listener.selectionChanged(event);
        }
    }

    public void createControl(Composite ancestor) {
        Font font = ancestor.getFont();
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()

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

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

       
        for (int i = 0; i < listenersArray.length; i++) {
            final ISelectionChangedListener l = (ISelectionChangedListener) listenersArray[i];
            Platform.run(new SafeRunnable() {
                public void run() {
                    l.selectionChanged(e);
                }
            });
    }
    }
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.