iSeries Remote Systems
v6.0.0

com.ibm.etools.iseries.editor.views
Interface IDdsParserAdapter

All Known Implementing Classes:
DdsCursorListener

public interface IDdsParserAdapter

This adapter provides an interface to an ISeries editor that is editing DDS source. A client would call the getAdapter method on the editor for 'IDdsParserAdapter.class' and it will return an implementation of this interface. The client then registers itself as an IDdsParserListener via the addStatementSelectionListener(IDdsParserListener) method. This is useful for any Eclipse view that would like to render or modify the currently selected


Field Summary
static String copyright
           
 
Method Summary
 void addStatementSelectionListener(IDdsParserListener listener)
          The adapter is to add a selection listener to its list of listeners.
 com.ibm.etools.iseries.dds.dom.ISourceGenerator getCurrentSelection()
          Get the currently selected DDS element
 com.ibm.etools.iseries.dds.dom.DdsModel getDdsModel()
          Return the DDS Model for the DDS member being edited.
 com.ibm.etools.iseries.dds.dom.DdsType getDdsType()
          Return the type of DDS in the DDS member being edited
 boolean getReadOnlyState()
          Is the DDS source read-only/
 void removeSelectionListener(IDdsParserListener listener)
          The adapter is to remove a listener from its list of listeners.
 void setUndoCheckpoint()
          Set undo checkpoint
 

Field Detail

copyright

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

addStatementSelectionListener

public void addStatementSelectionListener(IDdsParserListener listener)
The adapter is to add a selection listener to its list of listeners. Whenever the cursor in the editor moves on top of a DDS statement in the editor (which can happen as a side effect of selecting it in the outline view) the listener's IDdsParserListener.selected() method is called. If the DDS model is being rebuilt the IDdsParserListener.disable() method will be called so the UI can disable itself until it receives another selected() call. If the entire adapter has to go away (unfortunately Lpex editor blows away the parser under some circumstances) then the IDdsParserListener.disconnect() method will be called.


removeSelectionListener

public void removeSelectionListener(IDdsParserListener listener)
The adapter is to remove a listener from its list of listeners.


getCurrentSelection

public com.ibm.etools.iseries.dds.dom.ISourceGenerator getCurrentSelection()
Get the currently selected DDS element


getReadOnlyState

public boolean getReadOnlyState()
Is the DDS source read-only/


getDdsModel

public com.ibm.etools.iseries.dds.dom.DdsModel getDdsModel()
Return the DDS Model for the DDS member being edited. Returns null if it has not been parsed yet.


getDdsType

public com.ibm.etools.iseries.dds.dom.DdsType getDdsType()
Return the type of DDS in the DDS member being edited


setUndoCheckpoint

public void setUndoCheckpoint()
Set undo checkpoint


iSeries Remote Systems
v6.0.0

Copyright © 2005 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.