Examples of ListenerList


Examples of org.eclipse.core.runtime.ListenerList

    this.viewId = viewId;
  }

  public final void addHandlerListener(final IHandlerListener handlerListener) {
    if (listenerList == null) {
      listenerList = new ListenerList(ListenerList.IDENTITY);
    }

    listenerList.add(handlerListener);
  }
View Full Code Here

Examples of org.eclipse.core.runtime.ListenerList

    public class ResourceSelectionProvider implements ISelectionProvider {
        protected ListenerList listeners;
        ISelection selection;
       
        public ResourceSelectionProvider() {
            listeners = new ListenerList( ListenerList.IDENTITY );
            selection = StructuredSelection.EMPTY;
        }
View Full Code Here

Examples of org.eclipse.core.runtime.ListenerList

    /**
     * Construct <code>GoogleCatalog</code>.
     *
     */
    public GoogleCatalog() {
        catalogListeners = new ListenerList(org.eclipse.core.runtime.ListenerList.IDENTITY);
        try {
            url = new URL("http://udig.refractions.net/search/google-xml.php?"); //$NON-NLS-1$
        } catch (MalformedURLException e) {
            msg = e;
            GooglePlugin.log(null,e);
View Full Code Here

Examples of org.eclipse.core.runtime.ListenerList

   * @param listener
   *            The listener to be added; must not be <code>null</code>.
   */
  protected synchronized final void addListenerObject(final Object listener) {
    if (listenerList == null) {
      listenerList = new ListenerList(ListenerList.IDENTITY);
    }

    listenerList.add(listener);
  }
View Full Code Here

Examples of org.eclipse.core.runtime.ListenerList

   *
   * @return The listeners currently attached; may be empty, but never
   *         <code>null</code>
   */
  protected final Object[] getListeners() {
    final ListenerList list = listenerList;
    if (list == null) {
      return EMPTY_ARRAY;
    }

    return list.getListeners();
  }
View Full Code Here

Examples of org.eclipse.core.runtime.ListenerList

  public Activator()
  {
    super();
    this.handler = new LogMessageHandler();
    plugin = this;
    listenerList = new ListenerList();
    String iconPath = "icons/";
    imageRegistry.put(LogLevel.ALL.toString(), Activator
        .imageDescriptorFromPlugin(Application.PLUGIN_ID, iconPath
            + LogLevel.ALL.toString().toLowerCase() + ".gif"));
View Full Code Here

Examples of org.eclipse.core.runtime.ListenerList

        return true;
    }

    public void addListener(ILabelProviderListener listener) {
        if (listenerList == null) {
            listenerList = new ListenerList();
        }
        listenerList.add(listener);
    }
View Full Code Here

Examples of org.eclipse.core.runtime.ListenerList

    if (key == null) {
      throw new IllegalArgumentException("Null 'key' argument.");
    }
    this.key = key;
    this.description = description;
    this.listeners = new ListenerList();
    this.propertyChangeSupport = new PropertyChangeSupport(this);
  }
View Full Code Here

Examples of org.eclipse.core.runtime.ListenerList

   * Constructs a dataset. By default, the dataset is assigned to its own
   * group.
   */
  protected AbstractDataset() {
    this.group = new DatasetGroup();
    this.listenerList = new ListenerList();
  }
View Full Code Here

Examples of org.eclipse.core.runtime.ListenerList

    this.noDataMessage = null;

    this.drawingSupplier = new DefaultDrawingSupplier(null);
    this.drawingAssets = new DrawingAssets();

    this.listenerList = new ListenerList();
  }
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.