Package org.eclipse.ui

Examples of org.eclipse.ui.IPropertyListener


  @Override
  public void createPartControl(Composite parent) {
        super.createPartControl(parent);
        getCommonViewer().setInput(getInitialInput());
         
        super.addPropertyListener(new IPropertyListener() {
     
      @Override
      public void propertyChanged(Object source, int propId) {
        Object feed = ((StructuredSelection)getCommonViewer().getSelection()).getFirstElement();
       
View Full Code Here


       
       
       
        getCommonViewer().setInput(getInitialInput());
       
        super.addPropertyListener(new IPropertyListener() {
     
      @Override
      public void propertyChanged(Object source, int propId) {
      }
    });
View Full Code Here

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

        return part;
    }
   
    private IPropertyListener getPropertyListenerProxy() {
        if (lazyPropertyListenerProxy == null) {
            lazyPropertyListenerProxy = new IPropertyListener() {
                public void propertyChanged(Object source, int propId) {
                    firePropertyChange(propId);
                }
            };
        }
View Full Code Here

     * @see IEditorRegistry#PROP_CONTENTS
     */
    private void firePropertyChange(final int type) {
        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

    /**
   * @return
   */
  private IPropertyListener getContextListener() {
    if (contextListener == null) {
      contextListener = new IPropertyListener() {
        public void propertyChanged(Object source, int propId) {
          if (source instanceof IActionSetDescriptor) {
            IActionSetDescriptor desc = (IActionSetDescriptor) source;
            String id = desc.getId();
            if (propId == PROP_VISIBLE) {
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);
        }
    }       
View Full Code Here

      final IViewReference ref = (IViewReference) fvIter.next();     
            final ToolItem item = new ToolItem(parent, SWT.CHECK, index);
            updateItem(item, ref);
            item.setData(FAST_VIEW, ref);

            final IPropertyListener propertyListener = new IPropertyListener() {

                public void propertyChanged(Object source, int propId) {
                    if (propId == IWorkbenchPartConstants.PROP_TITLE) {
                        if (!item.isDisposed()) {
                            updateItem(item, ref);
View Full Code Here

     *
     * @param part
     * @throws Exception
     */
    private static void testWorkbenchPart(IWorkbenchPart part) throws Exception {
        IPropertyListener testListener = new IPropertyListener() {
            public void propertyChanged(Object source, int propId) {
               
            }
        };
       
View Full Code Here

   * This is the default implementation. Subclasses may overwrite
   * and specialize the behaviour. 
   */
  protected IPropertyListener getPropertyListener() {
    if (propertyListener == null) {
      propertyListener = new IPropertyListener() {
        public void propertyChanged(Object source, int propId) {
          firePropertyChange(propId);
        }
      };
    }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.IPropertyListener

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.