Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.edit.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.
 IDdsElementWithSource getCurrentSelection()
          Get the currently selected DDS element
 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

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

addStatementSelectionListener

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. When a listener is added, this will have the side effect of making sure a DDS model is created for the associated editer


removeSelectionListener

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


getCurrentSelection

IDdsElementWithSource getCurrentSelection()
Get the currently selected DDS element


getReadOnlyState

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


getDdsType

DdsType getDdsType()
Return the type of DDS in the DDS member being edited


setUndoCheckpoint

void setUndoCheckpoint()
Set undo checkpoint


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.