Package org.eclipse.ui

Examples of org.eclipse.ui.IPropertyListener.propertyChanged()


        for (int nX = 0; nX < array.length; nX++) {
            final IPropertyListener l = (IPropertyListener) array[nX];
            Platform.run(new SafeRunnable() {

                public void run() {
                    l.propertyChanged(this, propertyId);
                }
            });
        }
    }
View Full Code Here


    protected void firePropertyChange(final int propertyId) {
        Object[] array = getListeners();
        for (int nX = 0; nX < array.length; nX++) {
            final IPropertyListener l = (IPropertyListener) array[nX];
            try {
                l.propertyChanged(WorkbenchPart.this, propertyId);
            } catch (RuntimeException e) {
                WorkbenchPlugin.log(e);
            }
        }
    }
View Full Code Here

        Object[] list = getListeners();
       
        for (int i = 0; i < list.length; i++) {
            IPropertyListener listener = (IPropertyListener)list[i];
           
            listener.propertyChanged(this, event);
        }
    }
}
View Full Code Here

        Object[] array = getListeners();
        for (int nX = 0; nX < array.length; nX++) {
            final IPropertyListener l = (IPropertyListener) array[nX];
            Platform.run(new SafeRunnable() {
                public void run() {
                    l.propertyChanged(EditorRegistry.this, type);
                }
            });
        }
    }
View Full Code Here

   
    private void firePropertyChange(IActionSetDescriptor descriptor, int id) {
      Object[] l = listeners.getListeners();
        for (int i=0; i<l.length; i++) {
            IPropertyListener listener = (IPropertyListener) l[i];
            listener.propertyChanged(descriptor, id);
        }
    }       
   
    private ActionSetRec getRec(IActionSetDescriptor descriptor) {
        ActionSetRec rec = (ActionSetRec)actionSets.get(descriptor);
View Full Code Here

        editorTracker.start();
        editorTracker.addListener(markdownListener);
        editorTracker.editorShown(editorPart);
        IPropertyListener propertyListener = propertyListenerCaptor.getValue();
        given(editorPart.isDirty()).willReturn(false);
        propertyListener.propertyChanged(editorPart, IEditorPart.PROP_DIRTY);

        // then
        verify(markdownListener, times(2)).notifyEditorFile(editorIFile);
        verifyNoMoreInteractions(markdownListener);
    }
View Full Code Here

        editorTracker.start();
        editorTracker.addListener(markdownListener);
        editorTracker.editorShown(editorPart);
        IPropertyListener propertyListener = propertyListenerCaptor.getValue();
        given(editorPart.isDirty()).willReturn(false);
        propertyListener.propertyChanged(editorPart, IEditorPart.PROP_INPUT);

        // then
        verify(markdownListener, times(1)).notifyEditorFile(editorIFile);
        verifyNoMoreInteractions(markdownListener);
    }
View Full Code Here

        editorTracker.start();
        editorTracker.addListener(markdownListener);
        editorTracker.editorShown(editorPart);
        IPropertyListener propertyListener = propertyListenerCaptor.getValue();
        given(editorPart.isDirty()).willReturn(true);
        propertyListener.propertyChanged(editorPart, IEditorPart.PROP_DIRTY);

        // then
        verify(markdownListener, times(1)).notifyEditorFile(editorIFile);
        verifyNoMoreInteractions(markdownListener);
    }
View Full Code Here

        for (int i = 0; i < array.length; i++) {
            final IPropertyListener l = (IPropertyListener) array[i];
            SafeRunner.run(new SafeRunnable() {

                public void run() {
                    l.propertyChanged(this, propertyId);
                }

                public void handleException(Throwable e) {
                    super.handleException(e);
                    // If an unexpected exception happens, remove it
View Full Code Here

 
  private void fireChange() {
    Object[] array = listeners.getListeners();
    for (int i = 0; i < array.length; i++) {
      IPropertyListener element = (IPropertyListener)array[i];
      element.propertyChanged(this, 0);
    }
  }
 
  public IStatus restoreState(IMemento memento) {
    IMemento [] children = memento.getChildren("element"); //$NON-NLS-1$
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.