|
Rational Developer for i 7.5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.etools.iseries.edit.language.model.DdsModelLpexAdapter
public class 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. |
| Field Summary |
|---|
| Fields inherited from interface com.ibm.etools.systems.editor.ISystemTextEditorAdapterContributor |
|---|
Copyright |
| Constructor Summary | |
|---|---|
DdsModelLpexAdapter(LpexTextEditor editor)
Constructor if you do not have the connection and CCSID already computed. |
|
DdsModelLpexAdapter(LpexTextEditor editor,
int iCCSID,
IBMiConnection connection)
Constructor used from an ISeriesEditorParser that already has computed the necessary parameters |
|
| Method Summary | |
|---|---|
void |
addDdsSelectionListener(IDdsParserListener listener)
Add listener which will be notified whenever the cursor moves to a different DDS element in the source |
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(LpexTextEditor editor,
Class classRequired)
Adapter factory for creating DDS language model objects |
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. |
DdsModel |
getDdsModel()
Retrieve DDS model corresponding to the source in the editor. |
DdsModel |
getDdsModelSynchronously()
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(DdsChange change)
Update the model with the changed/inserted line If we could not do this return true |
protected void |
initializeDdsModel()
When this object is created - a DdsModel is not immediately created until it is requested by someone. |
boolean |
isDdsModelParsed()
Has the DDS Model been parsed yet? |
boolean |
isDdsModelParsePending()
Is there a DDS parse already in progress |
DdsModel |
parseDdsModel()
Parse the model |
void |
refreshModel()
Refresh the model based on the changed source in Lpex. |
void |
setEditor(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(LpexTextEditor editor,
int iCCSID,
IBMiConnection connection)
public DdsModelLpexAdapter(LpexTextEditor editor)
| Method Detail |
|---|
public Object getAdapter(LpexTextEditor editor,
Class classRequired)
getAdapter in interface ISystemTextEditorAdapterContributorcom.ibm.etools.systems.editor.ISystemTextEditorAdapterContributor#getAdapter(com.ibm.lpex.alef.LpexTextEditor, java.lang.Class)public IDdsParserAdapter getDdsCursorListener()
IDdsAdaptable.
Lazily create the singleton.
public void addDdsSelectionListener(IDdsParserListener listener)
addDdsSelectionListener in interface IDdsLanguageModellistener - IDdsParserListenerprotected void initializeDdsModel()
public void setEditor(LpexTextEditor editor)
initialView - The Lpex view to set.public void setIFile(IFile file)
file - The iFile to set.public void handleFileRename()
public DdsModel getDdsModel()
getDdsModel in interface IDdsLanguageModelpublic DdsModel getDdsModelSynchronously()
getDdsModelSynchronously in interface IDdsLanguageModelpublic boolean isDdsModelParsed()
isDdsModelParsed in interface IDdsLanguageModelpublic boolean isDdsModelParsePending()
isDdsModelParsePending in interface IDdsLanguageModelpublic DdsModel parseDdsModel()
public AS400BidiTransform getBidiTransform()
public boolean hasSequenceNumbers()
public String convertToAS400Layout(String text)
text - public String convertToJavaLayout(String text)
text - public boolean incrementallyUpdateModel(DdsChange change)
incrementallyUpdateModel in interface IDdsLanguageModelchange - - 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
public void refreshModel()
refreshModel in interface IDdsLanguageModelpublic DdsModelLpexAdapter.ParseJobScheduler getParseJobScheduler()
|
Rational Developer for i 7.5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||