Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.editor
Class ISeriesEditorDDSRangeSelector

java.lang.Object
  extended by com.ibm.etools.iseries.editor.ISeriesEditorDDSRangeSelector
All Implemented Interfaces:
IDdsParserListener

public class ISeriesEditorDDSRangeSelector
extends Object
implements IDdsParserListener

Listens for the selection of a DDS construct in the model and highlights the corresponding range of lines in the editor to show the extent of that construct


Field Summary
 
Fields inherited from interface com.ibm.etools.iseries.edit.views.IDdsParserListener
copyright
 
Constructor Summary
ISeriesEditorDDSRangeSelector(LpexTextEditor editor)
           
 
Method Summary
 boolean didInitiateSelection()
          Did the listener actually initiate the current selection.
 void disable()
          If the DDS model is being rebuilt this method will be called so the UI can disable itself until it receives another #selectionChanged(DdsStatement, boolean) call.
 void refresh(IDdsElementWithSource ddsElement, boolean readOnly)
          The contents of the model have been changed dramatically and a reparse has occurred.
 void selectionChanged(IDdsElementWithSource ddsElement, boolean readOnly, Object selectionInitiator)
          Whenever a DDS element is selected via the outline view, this method is called
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ISeriesEditorDDSRangeSelector

public ISeriesEditorDDSRangeSelector(LpexTextEditor editor)
Method Detail

selectionChanged

public void selectionChanged(IDdsElementWithSource ddsElement,
                             boolean readOnly,
                             Object selectionInitiator)
Description copied from interface: IDdsParserListener
Whenever a DDS element is selected via the outline view, this method is called

Specified by:
selectionChanged in interface IDdsParserListener
Parameters:
ddsElement - IDdsElementWithSource that is currently selected in the model
readOnly - - whether the element is readOnly and cannot be updated (if it is in in an editor in the read only state for example)
selectionInitiator - - object that initiated the selection

refresh

public void refresh(IDdsElementWithSource ddsElement,
                    boolean readOnly)
Description copied from interface: IDdsParserListener
The contents of the model have been changed dramatically and a reparse has occurred. Old references to the model may no longer be valid.

Specified by:
refresh in interface IDdsParserListener
Parameters:
ddsElement - IDdsElementWithSource that is currently selected in the model
readOnly - - whether the element is readOnly and cannot be updated (if it is in in an editor in the read only state for example)

didInitiateSelection

public boolean didInitiateSelection()
Description copied from interface: IDdsParserListener
Did the listener actually initiate the current selection. This method will be called on the listener during a selection event in editor, it will prevent infinite looping if the listener is capable of initiating a selection.

Specified by:
didInitiateSelection in interface IDdsParserListener

disable

public void disable()
Description copied from interface: IDdsParserListener
If the DDS model is being rebuilt this method will be called so the UI can disable itself until it receives another #selectionChanged(DdsStatement, boolean) call.

Specified by:
disable in interface IDdsParserListener

Rational Developer for Power Systems Software
V7.6

Copyright 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.