Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.edit.views
Interface IDdsParserListener

All Known Implementing Classes:
ISeriesEditorDDSContentOutlinePage, ISeriesEditorDDSRangeSelector

public interface IDdsParserListener

This listener is used to listen for the selection of DDS statements. Whenever a DDS statement is selected via the outline view, it fires an event to the listener.


Field Summary
static String copyright
           
 
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
 

Field Detail

copyright

static final String copyright
See Also:
Constant Field Values
Method Detail

selectionChanged

void selectionChanged(IDdsElementWithSource ddsElement,
                      boolean readOnly,
                      Object selectionInitiator)
Whenever a DDS element is selected via the outline view, this method is called

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

disable

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.


refresh

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

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

boolean didInitiateSelection()
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.


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.