Package org.eclipse.jface.viewers

Examples of org.eclipse.jface.viewers.SelectionChangedEvent


        workingCopy = null;

        // update all actions with the fresh selection
        for ( Iterator<?> it = selectionChangesListenerList.iterator(); it.hasNext(); )
        {
            ( ( ISelectionChangedListener ) it.next() ).selectionChanged( new SelectionChangedEvent(
                SearchResultEditorCursor.this, getSelection() ) );
        }
    }
View Full Code Here


    public void inputChanged( Object input )
    {
        if ( !isDisposed() )
        {
            action.setInput( input );
            selectionChanged( new SelectionChangedEvent( this.selectionProvider, new StructuredSelection() ) );
            // updateAction();
        }
    }
View Full Code Here

   */
  @SuppressWarnings("deprecation")
  @Override
  protected void fireSelectionChanged() {
    Object listeners[] = selectionListeners.toArray();
    SelectionChangedEvent event = new SelectionChangedEvent(this,
        getSelection());
    if(getSelection() instanceof StructuredSelection) {
      Object firstElement = ((StructuredSelection) getSelection()).getFirstElement();
      if(firstElement instanceof MusicDiagramEditPart) {
        return; //filter out the selection of the musicDiagram itself
View Full Code Here

      selectionProvider.addSelectionChangedListener(this);

      // Fake a selection changed event to update the menus.
      //
      if (selectionProvider.getSelection() != null) {
        selectionChanged(new SelectionChangedEvent(selectionProvider, selectionProvider.getSelection()));
      }
    }
  }
View Full Code Here

      selectionProvider.addSelectionChangedListener(this);

      // Fake a selection changed event to update the menus.
      //
      if (selectionProvider.getSelection() != null) {
        selectionChanged(new SelectionChangedEvent(selectionProvider, selectionProvider.getSelection()));
      }
    }
  }
View Full Code Here

      selectionProvider.addSelectionChangedListener(this);

      // Fake a selection changed event to update the menus.
      //
      if (selectionProvider.getSelection() != null) {
        selectionChanged(new SelectionChangedEvent(selectionProvider, selectionProvider.getSelection()));
      }
    }
  }
View Full Code Here

   */
  public void setSelection(ISelection selection) {
    editorSelection = selection;

    for (ISelectionChangedListener listener : selectionChangedListeners) {
      listener.selectionChanged(new SelectionChangedEvent(this, selection));
    }
    setStatusLineManager(selection);
  }
View Full Code Here

      selectionProvider.addSelectionChangedListener(this);

      // Fake a selection changed event to update the menus.
      //
      if (selectionProvider.getSelection() != null) {
        selectionChanged(new SelectionChangedEvent(selectionProvider, selectionProvider.getSelection()));
      }
    }
  }
View Full Code Here

   */
  public void setSelection(ISelection selection) {
    editorSelection = selection;

    for (ISelectionChangedListener listener : selectionChangedListeners) {
      listener.selectionChanged(new SelectionChangedEvent(this, selection));
    }
    setStatusLineManager(selection);
  }
View Full Code Here

      selectionProvider.addSelectionChangedListener(this);

      // Fake a selection changed event to update the menus.
      //
      if (selectionProvider.getSelection() != null) {
        selectionChanged(new SelectionChangedEvent(selectionProvider, selectionProvider.getSelection()));
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jface.viewers.SelectionChangedEvent

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.