org.eclipse.xtext.xtext.ui.graph.actions
Class RailroadSelectionLinker

java.lang.Object
  extended by org.eclipse.xtext.xtext.ui.graph.actions.RailroadSelectionLinker
All Implemented Interfaces:
java.util.EventListener, org.eclipse.jface.util.IPropertyChangeListener

public class RailroadSelectionLinker
extends java.lang.Object
implements org.eclipse.jface.util.IPropertyChangeListener


Constructor Summary
RailroadSelectionLinker()
           
 
Method Summary
 void activate()
           
 void deactivate()
           
 void diagramSelectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
           
protected  ISelectable findFigureForTextOffset(org.eclipse.draw2d.IFigure figure, int offset, ISelectable currentBestFigure)
           
 void propertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
          Notification that a property has changed.
protected  void removeTextSelectionListener(XtextEditor editor)
           
protected  void selectFigure(org.eclipse.draw2d.IFigure selectedFigure)
           
protected  void selectGrammarText(org.eclipse.draw2d.IFigure selectedFigure, boolean isActivateEditor)
           
 void setXtextEditor(XtextEditor xtextEditor)
           
 void textSelectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RailroadSelectionLinker

public RailroadSelectionLinker()
Method Detail

activate

public void activate()

deactivate

public void deactivate()

selectFigure

protected void selectFigure(org.eclipse.draw2d.IFigure selectedFigure)

selectGrammarText

protected void selectGrammarText(org.eclipse.draw2d.IFigure selectedFigure,
                                 boolean isActivateEditor)

diagramSelectionChanged

public void diagramSelectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)

textSelectionChanged

public void textSelectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)

findFigureForTextOffset

protected ISelectable findFigureForTextOffset(org.eclipse.draw2d.IFigure figure,
                                              int offset,
                                              ISelectable currentBestFigure)

propertyChange

public void propertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
Description copied from interface: org.eclipse.jface.util.IPropertyChangeListener
Notification that a property has changed.

This method gets called when the observed object fires a property change event.

Specified by:
propertyChange in interface org.eclipse.jface.util.IPropertyChangeListener
Parameters:
event - the property change event object describing which property changed and how

setXtextEditor

public void setXtextEditor(XtextEditor xtextEditor)

removeTextSelectionListener

protected void removeTextSelectionListener(XtextEditor editor)