Package org.eclipse.jface.viewers

Examples of org.eclipse.jface.viewers.SelectionChangedEvent


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


        {
            public void widgetSelected( SelectionEvent e )
            {
                for ( Iterator it = selectionChangesListenerList.iterator(); it.hasNext(); )
                {
                    ( ( ISelectionChangedListener ) it.next() ).selectionChanged( new SelectionChangedEvent(
                        SearchResultEditorCursor.this, 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

   */
  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

   */
  protected void firePostSelectionChanged(int offset, int length) {
    if (redraws()) {
      IRegion r= widgetRange2ModelRange(new Region(offset, length));
      ISelection selection= r != null ? new TextSelection(getDocument(), r.getOffset(), r.getLength()) : TextSelection.emptySelection();
      SelectionChangedEvent event= new SelectionChangedEvent(this, selection);
      firePostSelectionChanged(event);
    }
  }
View Full Code Here

    if (redraws()) {
      IRegion r= widgetRange2ModelRange(new Region(offset, length));
      if ((r != null && !r.equals(fLastSentSelectionChange)) || r == null)  {
        fLastSentSelectionChange= r;
        ISelection selection= r != null ? new TextSelection(getDocument(), r.getOffset(), r.getLength()) : TextSelection.emptySelection();
        SelectionChangedEvent event= new SelectionChangedEvent(this, selection);
        fireSelectionChanged(event);
      }
    }
  }
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.