Rational Developer for Power Systems Software
V7.6

com.ibm.etools.systems.application.visual.editor.srcinfo.ui.properties
Class SourceInfoRelationSection

java.lang.Object
  extended by AbstractModelerPropertySection
      extended by com.ibm.etools.systems.application.visual.editor.ui.properties.AbstractApplicationModelPropertySection
          extended by com.ibm.etools.systems.application.visual.editor.srcinfo.ui.properties.SourceInfoRelationSection
Direct Known Subclasses:
SourceInfoCalleeSection, SourceInfoCallerSection

public class SourceInfoRelationSection
extends AbstractApplicationModelPropertySection

Base property section to display generation information of source model element.


Field Summary
static String copyright
           
static String MENU_ID_PREFIX
           
 
Constructor Summary
SourceInfoRelationSection(boolean showCaller)
           
 
Method Summary
protected  void addActions(IMenuManager manager, ISelection selection)
          Add actions to the pop-up menu for the specified selection
 void createControls(Composite parent, TabbedPropertySheetPage aTabbedPropertySheetPage)
          Create controls.
 Control getControl()
          Return main control widget.
protected  void handleOpenSource(Shell shell, ISelection selection)
          Handle opening the source for the selected CallableBlock.
protected  boolean supportsOpenSourceAction()
          Whether or not the OpenSource action and double click should be added.
 void update()
          Update widget.
 
Methods inherited from class com.ibm.etools.systems.application.visual.editor.ui.properties.AbstractApplicationModelPropertySection
getEditor, getIconRetriever, getImage, getPropertiesSectionHelper, getSemanticObject, setHelp, setHelp, setInput, setPropertiesSectionHelper
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values

MENU_ID_PREFIX

public static final String MENU_ID_PREFIX
See Also:
Constant Field Values
Constructor Detail

SourceInfoRelationSection

public SourceInfoRelationSection(boolean showCaller)
Method Detail

createControls

public void createControls(Composite parent,
                           TabbedPropertySheetPage aTabbedPropertySheetPage)
Create controls.

Overrides:
createControls in class AbstractApplicationModelPropertySection

update

public void update()
Update widget.

Specified by:
update in class AbstractApplicationModelPropertySection

supportsOpenSourceAction

protected boolean supportsOpenSourceAction()
Whether or not the OpenSource action and double click should be added. The default is to not add them, subclasses can override this method and return true to have them added.

See Also:

handleOpenSource

protected void handleOpenSource(Shell shell,
                                ISelection selection)
Handle opening the source for the selected CallableBlock. Subclasses must override this method if they override supportsOpenSourceAction to return true.


addActions

protected void addActions(IMenuManager manager,
                          ISelection selection)
Add actions to the pop-up menu for the specified selection


getControl

public Control getControl()
Description copied from class: AbstractApplicationModelPropertySection
Return main control widget. Can be used after createControls(Composite,TabbedPropertySheetPage) is called.

Specified by:
getControl in class AbstractApplicationModelPropertySection

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.