|
iSeries Remote Systems v6.0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.iseries.editor.language.model.DdsModelLpexAdapter
This class manages a DdsModel
for a particular LpexTextEditor
.
It keeps the contents of the editor and model in synch and manages the
broadcasting of selection events.
Nested Class Summary | |
---|---|
class |
DdsModelLpexAdapter.LpexFileReader
|
class |
DdsModelLpexAdapter.LpexSourceFile
This class enables the DDS parser to parse the contents of an Lpex editor |
class |
DdsModelLpexAdapter.ParseDdsModelJob
Asynchronously reparse the DDS file and refresh the outline view This job belongs to the family of jobs that parse the DDS model for this editor. |
class |
DdsModelLpexAdapter.ParseJobScheduler
This class schedules jobs to parse the model from the editor's contents in the background. |
class |
DdsModelLpexAdapter.ResequenceJob
Asynchronously resequence the sequence numbers in the DDS model based on the Lpex editor contents This job belongs to the family of jobs that parse the DDS model for this editor. |
Field Summary |
---|
Fields inherited from interface com.ibm.etools.systems.editor.ISystemTextEditorAdapterContributor |
---|
Copyright |
Constructor Summary | |
---|---|
DdsModelLpexAdapter(com.ibm.lpex.alef.LpexTextEditor editor)
Constructor if you do not have the connection and CCSID already computed. |
|
DdsModelLpexAdapter(com.ibm.lpex.alef.LpexTextEditor editor,
int iCCSID,
ISeriesConnection connection)
Constructor used from an ISeriesEditorParser that already has computed the necessary parameters |
Method Summary | |
---|---|
void |
clearModel()
Clear the model and notify all views |
void |
configureResequenceCommand(com.ibm.lpex.core.LpexView view)
|
String |
convertToAS400Layout(String text)
Convert given text to the ordering scheme of the iSeries |
String |
convertToJavaLayout(String text)
Convert given text to the ordering scheme of the Java |
Object |
getAdapter(com.ibm.lpex.alef.LpexTextEditor editor,
Class classRequired)
Adapter factory for creating DDS language model objects |
com.ibm.as400.access.AS400BidiTransform |
getBidiTransform()
Get the JTOpen transform that is able transform between the BIDI representation on the iSeries and the representation in a Java String. |
IDdsParserAdapter |
getDdsCursorListener()
Return the singleton cursor listener that implements IDdsAdaptable . |
com.ibm.etools.iseries.dds.dom.DdsModel |
getDdsModel()
Retrieve DDS model corresponding to the source in the editor. |
DdsModelLpexAdapter.ParseJobScheduler |
getParseJobScheduler()
|
void |
handleFileRename()
From the editor find the file that is currently being edited Set the current DDS type based on its extension |
boolean |
hasSequenceNumbers()
|
boolean |
incrementallyUpdateModel(int iElement,
boolean inserted,
boolean willBeReparsed)
Update the model with the changed/inserted line If we could not do this return true |
boolean |
isDdsModelParsed()
Has the DDS Model been parsed yet? |
com.ibm.etools.iseries.dds.dom.DdsModel |
parseDdsModel()
Parse the model |
void |
refreshModel()
Refresh the model based on the changed source in Lpex. |
void |
refreshModel(int sequenceUpdateRangeBottom,
int sequenceUpdateRangeTop)
Refresh the model based on the changed source in Lpex. |
void |
reserveSequenceNumbers(int elementFirst,
int changedLineCount)
If inserting a number of lines make sure that the sequence numbers in the LineContainer in the model has room to insert them. |
void |
setEditor(com.ibm.lpex.alef.LpexTextEditor editor)
Set the view for the first time May need to set up listeners Computes the DDS type |
void |
setIFile(IFile file)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DdsModelLpexAdapter(com.ibm.lpex.alef.LpexTextEditor editor, int iCCSID, ISeriesConnection connection)
public DdsModelLpexAdapter(com.ibm.lpex.alef.LpexTextEditor editor)
Method Detail |
public Object getAdapter(com.ibm.lpex.alef.LpexTextEditor editor, Class classRequired)
getAdapter
in interface com.ibm.etools.systems.editor.ISystemTextEditorAdapterContributor
ISystemTextEditorAdapterContributor.getAdapter(com.ibm.lpex.alef.LpexTextEditor, java.lang.Class)
public IDdsParserAdapter getDdsCursorListener()
IDdsAdaptable
.
Lazily create the singleton.
getDdsCursorListener
in interface IDdsLanguageModel
public void setEditor(com.ibm.lpex.alef.LpexTextEditor editor)
public void configureResequenceCommand(com.ibm.lpex.core.LpexView view)
public void setIFile(IFile file)
file
- The iFile to set.public void handleFileRename()
public com.ibm.etools.iseries.dds.dom.DdsModel getDdsModel()
getDdsModel
in interface IDdsLanguageModel
public boolean isDdsModelParsed()
public com.ibm.etools.iseries.dds.dom.DdsModel parseDdsModel()
public com.ibm.as400.access.AS400BidiTransform getBidiTransform()
public boolean hasSequenceNumbers()
public String convertToAS400Layout(String text)
text
- public String convertToJavaLayout(String text)
text
- public void reserveSequenceNumbers(int elementFirst, int changedLineCount)
reserveSequenceNumbers
in interface IDdsLanguageModel
elementFirst
- - the element number of the first line being insertedchangedLineCount
- - the number of lines that will be insertedIDdsLanguageModel.reserveSequenceNumbers(int, int)
public boolean incrementallyUpdateModel(int iElement, boolean inserted, boolean willBeReparsed)
incrementallyUpdateModel
in interface IDdsLanguageModel
iElement
- - element number of line in Lpex that has been changed or insertedinserted
- - element was inserted if truewillBeReparsed
- - the model will be reparsed anyways - if inserting only update the line container
but not the fileLevel heirarchy
public void refreshModel()
refreshModel
in interface IDdsLanguageModel
public void refreshModel(int sequenceUpdateRangeBottom, int sequenceUpdateRangeTop)
refreshModel
in interface IDdsLanguageModel
sequenceUpdateRangeBottom
- element number of the first line to check for resequencingsequenceUpdateRangeTop
- element number of the last line to check for resequencingpublic DdsModelLpexAdapter.ParseJobScheduler getParseJobScheduler()
public void clearModel()
|
iSeries Remote Systems v6.0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |