Package org.eclipse.jface.util

Examples of org.eclipse.jface.util.ListenerList


                    public void selectionChanged(SelectionChangedEvent event) {
                    }
                };

        manager.addSelectionChangedListener(listener);
        ListenerList listeners = getSelectionChangedListenersList();
        assertNotNull(listeners);
        assertEquals("List size should match", 1, listeners.size());


        manager.removeSelectionChangedListener(listener);
        listeners = getSelectionChangedListenersList();
        assertNotNull(listeners);
        assertTrue("List should be empty", listeners.isEmpty());

        // Removing the same listener again shouldn't change the size or
        // cause any exceptions.
        manager.removeSelectionChangedListener(listener);
        listeners = getSelectionChangedListenersList();
        assertNotNull(listeners);
        assertTrue("List should be empty", listeners.isEmpty());
    }
View Full Code Here


        super(parent, SWT.NONE);
        this.duplicatesAllowed = duplicatesAllowed;
        this.parser = (parser == null) ? DEFAULT_PARSER : parser;
        createControl(style, title, items, editable, factory);

        listeners = new ListenerList();

        validatorTask = new ValidatorTaskExecutor();
        validatorTask.start();

        updateButtons();
View Full Code Here

     * @param parent the parent Composite
     * @param style the style for the parent
     */
    public FontSelector(Composite parent, int style) {
        super(parent, style);
        listeners = new ListenerList();
        createSelector();
        initAccessible();
    }
View Full Code Here

     * @param style the style
     */
    public ColorButton(Composite parent, int style) {
        super(parent, style);
        addButton(style);
        listeners = new ListenerList();
        initAccessible();
    }
View Full Code Here

  }

  private ListenerList fListeners;

  public ProblemMarkerManager() {
    fListeners = new ListenerList(10);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jface.util.ListenerList

Copyright © 2018 www.massapicom. 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.