Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.edit.language.model
Interface IDdsLanguageModel

All Known Implementing Classes:
DdsModelLpexAdapter

public interface IDdsLanguageModel

The DDS Language model embedded in the Lpex editor and synchronized with its contents


Method Summary
 void addDdsSelectionListener(IDdsParserListener listener)
          Add listener which will be notified whenever the cursor moves to a different DDS element in the source
 DdsModel getDdsModel()
          Retrieve DDS model corresponding to the source in the editor.
 DdsModel getDdsModelSynchronously()
          Retrieve DDS model corresponding to the source in the editor.
 boolean incrementallyUpdateModel(DdsChange change)
          Update the model with the changed/inserted line If we could not do this return true
 boolean isDdsModelParsed()
          Return whether the DDS Model has been parsed yet?
 boolean isDdsModelParsePending()
          Is there a DDS parse already in progress
 void refreshModel()
          Refresh the model by reparsing the changed source in Lpex.
 

Method Detail

getDdsModel

DdsModel getDdsModel()
Retrieve DDS model corresponding to the source in the editor. If the source has not been parsed yet, then null will be returned.

Returns:

refreshModel

void refreshModel()
Refresh the model by reparsing the changed source in Lpex.


incrementallyUpdateModel

boolean incrementallyUpdateModel(DdsChange change)
Update the model with the changed/inserted line If we could not do this return true

Parameters:
change - - what change occurred it encapsulates lineNumber - the line number of the line to be changed/inserted typeOfChange - the type of change of the line - an update or an insert
Returns:
true if the model needs to be refreshed because we could not successfully update the model incrementally

isDdsModelParsed

boolean isDdsModelParsed()
Return whether the DDS Model has been parsed yet?


isDdsModelParsePending

boolean isDdsModelParsePending()
Is there a DDS parse already in progress


addDdsSelectionListener

void addDdsSelectionListener(IDdsParserListener listener)
Add listener which will be notified whenever the cursor moves to a different DDS element in the source

Parameters:
listener - IDdsParserListener

getDdsModelSynchronously

DdsModel getDdsModelSynchronously()
Retrieve DDS model corresponding to the source in the editor. Parse and create model if it does not exist. Will only return null if the user has cancelled the operation or the thread is interrupted for some unknown reason.

Returns:

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.