Package org.eclipse.jface.viewers

Examples of org.eclipse.jface.viewers.SelectionChangedEvent


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

    for (ISelectionChangedListener listener : selectionChangedListeners) {
      listener.selectionChanged(new SelectionChangedEvent(this, selection));
    }
    setStatusLineManager(selection);
  }
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

    IStructuredSelection structuredSelection = (IStructuredSelection) selection;

    mCurrentSelection = structuredSelection;

    for (ISelectionChangedListener listener : mListeners) {
      SelectionChangedEvent event = new SelectionChangedEvent(this, mCurrentSelection);

      listener.selectionChanged(event);
    }
  }
View Full Code Here

    public void removeSelectionChangedListener( ISelectionChangedListener listener ) {
        selectionChangeListeners.remove(listener);
    }
    protected void fireSelectionChanged(){
        final SelectionChangedEvent event = new SelectionChangedEvent(this, getSelection());
        for( ISelectionChangedListener listener : selectionChangeListeners ){
            final ISelectionChangedListener l = listener;
            SafeRunnable.run(new SafeRunnable() {
                public void run() {
                    l.selectionChanged(event);
View Full Code Here

        if (!Utilities.equals(before, after)){
            this.expression = newExpression;
            feedback(); // clear any outstanding feedback as our value matches our display now
           
            StructuredSelection selection = newExpression != null ? new StructuredSelection( newExpression) : StructuredSelection.EMPTY;
            fireSelectionChanged( new SelectionChangedEvent( this, selection ) );
        }
    }
View Full Code Here

                delegate.setExpression(expression);
            } finally {
                delegate.addSelectionChangedListener(listener);
            }
        }
        fireSelectionChanged(new SelectionChangedEvent(ExpressionViewer.this, getSelection()));
    }
View Full Code Here

        if (this.expression == expression) {
            return;
        }
        this.expression = expression;
        refreshText();
        fireSelectionChanged(new SelectionChangedEvent(CQLExpressionViewer.this, getSelection()));
    }
View Full Code Here

            }
        }
    }

    private void fireSelectionChanged() {
        SelectionChangedEvent event = new SelectionChangedEvent(this, getSelection());
        Object[] listeners = fSelectionListeners.getListeners();
        for (int i = 0; i < listeners.length; i++) {
            ISelectionChangedListener listener = (ISelectionChangedListener)listeners[i];
            listener.selectionChanged(event);
        }
View Full Code Here

          .getSelectionProvider();
      if (selectionProvider != null) {
        ISelectionProvider outerProvider = getSite()
            .getSelectionProvider();
        if (outerProvider instanceof MultiPageSelectionProvider) {
          SelectionChangedEvent event = new SelectionChangedEvent(
              selectionProvider, selectionProvider.getSelection());

          MultiPageSelectionProvider provider = (MultiPageSelectionProvider) outerProvider;
          provider.fireSelectionChanged(event);
          provider.firePostSelectionChanged(event);
View Full Code Here

   */
  protected void handlePostSelectionChanged(SelectionChangedEvent event) {
    ISelectionProvider parentProvider = getMultiPageEditor().getSite()
        .getSelectionProvider();
    if (parentProvider instanceof MultiPageSelectionProvider) {
      SelectionChangedEvent newEvent = new SelectionChangedEvent(
          parentProvider, event.getSelection());
      MultiPageSelectionProvider prov = (MultiPageSelectionProvider) parentProvider;
      prov.firePostSelectionChanged(newEvent);
    }
  }
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.