Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.edit.views
Class ISeriesEditorDDSContentOutlinePage

java.lang.Object
  extended by ContentOutlinePage
      extended by com.ibm.etools.iseries.edit.views.ISeriesEditorDDSContentOutlinePage
All Implemented Interfaces:
IDdsParserListener

public class ISeriesEditorDDSContentOutlinePage
extends ContentOutlinePage
implements IDdsParserListener

An outline view for DDS that interacts with the model stored in the com.ibm.etools.iseries.editor.ISeriesEditorDDSParser


Field Summary
 
Fields inherited from interface com.ibm.etools.iseries.edit.views.IDdsParserListener
copyright
 
Constructor Summary
ISeriesEditorDDSContentOutlinePage(LpexTextEditor editor)
          A Content Outline view specific to DDS Its input is DdsModel
 
Method Summary
 void createControl(Composite parent)
           
 boolean didInitiateSelection()
          Did the listener actually initiate the current selection.
 void disable()
          If the DDS model is being rebuilt this method will be called so the UI can disable itself until it receives another #selectionChanged(DdsStatement, boolean) call.
 void disconnect()
           
 TreeViewer getStructuredViewer()
          Return TreeViewer that supplies the model for this outline view
 void refresh(IDdsElementWithSource ddsElement, boolean readOnly)
          The contents of the model have been changed dramatically and a reparse has occurred.
 void refreshSelection(ISelection selection)
          Recompute the selection in the outline view based on the given selection in the DDS model
 void refreshView(ISelection selection)
          Refresh the view with refreshed content
 void selectionChanged(IDdsElementWithSource ddsElement, boolean readOnly, Object initiator)
          Whenever a DDS element is selected via the outline view, this method is called
 void selectionChanged(SelectionChangedEvent event)
           
 void setActionBarContributor(EditingDomainActionBarContributor actionBarContributor)
           
 void setActionBars(IActionBars actionBars)
           
 void setDidInitiateSelection(boolean pending)
          Are we in the middle of changing selection.
 void setEditorInitialization(Runnable editorInitialization)
           
 void setEnabled(boolean state)
          Enable or disable the outline view tree
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ISeriesEditorDDSContentOutlinePage

public ISeriesEditorDDSContentOutlinePage(LpexTextEditor editor)
A Content Outline view specific to DDS Its input is DdsModel

Parameters:
parser -
labelProvider -
Method Detail

getStructuredViewer

public TreeViewer getStructuredViewer()
Return TreeViewer that supplies the model for this outline view


createControl

public void createControl(Composite parent)

refreshView

public void refreshView(ISelection selection)
Refresh the view with refreshed content


refreshSelection

public void refreshSelection(ISelection selection)
Recompute the selection in the outline view based on the given selection in the DDS model

Parameters:
selection -

setEnabled

public void setEnabled(boolean state)
Enable or disable the outline view tree

Parameters:
state -

selectionChanged

public void selectionChanged(SelectionChangedEvent event)

setDidInitiateSelection

public void setDidInitiateSelection(boolean pending)
Are we in the middle of changing selection. In this case we should not be responding to refreshSelection()


selectionChanged

public void selectionChanged(IDdsElementWithSource ddsElement,
                             boolean readOnly,
                             Object initiator)
Description copied from interface: IDdsParserListener
Whenever a DDS element is selected via the outline view, this method is called

Specified by:
selectionChanged in interface IDdsParserListener
Parameters:
ddsElement - IDdsElementWithSource that is currently selected in the model
readOnly - - whether the element is readOnly and cannot be updated (if it is in in an editor in the read only state for example)
initiator - - object that initiated the selection

refresh

public void refresh(IDdsElementWithSource ddsElement,
                    boolean readOnly)
Description copied from interface: IDdsParserListener
The contents of the model have been changed dramatically and a reparse has occurred. Old references to the model may no longer be valid.

Specified by:
refresh in interface IDdsParserListener
Parameters:
ddsElement - IDdsElementWithSource that is currently selected in the model
readOnly - - whether the element is readOnly and cannot be updated (if it is in in an editor in the read only state for example)

disable

public void disable()
Description copied from interface: IDdsParserListener
If the DDS model is being rebuilt this method will be called so the UI can disable itself until it receives another #selectionChanged(DdsStatement, boolean) call.

Specified by:
disable in interface IDdsParserListener

disconnect

public void disconnect()

didInitiateSelection

public boolean didInitiateSelection()
Description copied from interface: IDdsParserListener
Did the listener actually initiate the current selection. This method will be called on the listener during a selection event in editor, it will prevent infinite looping if the listener is capable of initiating a selection.

Specified by:
didInitiateSelection in interface IDdsParserListener

setEditorInitialization

public void setEditorInitialization(Runnable editorInitialization)

setActionBars

public void setActionBars(IActionBars actionBars)

setActionBarContributor

public void setActionBarContributor(EditingDomainActionBarContributor actionBarContributor)

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.