Rational Developer for Power Systems Software
V7.6

com.ibm.etools.systems.editor.preferences
Class SystemPreferenceLink

java.lang.Object
  extended by com.ibm.etools.systems.editor.preferences.SystemPreferenceLink

public class SystemPreferenceLink
extends Object

This class creates a link on a composite for a preference page. It handles ensuring that if the linked page is not in the preference dialog (ie from the RSE view menu), that it gets dynamically added to the preference dialog when clicked on.


Constructor Summary
SystemPreferenceLink(Composite parent, String text, int style, IPreferencePageContainer container, String preferencePageID)
          Use to add a link to a preference page.
SystemPreferenceLink(Composite parent, String text, int style, IPreferencePageContainer container, String preferencePageID, boolean expandLink)
          Use to add a link to a preference page.
 
Method Summary
 Link getLink()
          Retrieves the link
 void setLayoutData(Object data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemPreferenceLink

public SystemPreferenceLink(Composite parent,
                            String text,
                            int style,
                            IPreferencePageContainer container,
                            String preferencePageID)
Use to add a link to a preference page. If the link has children, then it is expanded

Parameters:
parent - the parent composite for the link
text - the text to display in the link
style - the style for the link
container - the container for the preference page
preferencePageID - the ID to link to

SystemPreferenceLink

public SystemPreferenceLink(Composite parent,
                            String text,
                            int style,
                            IPreferencePageContainer container,
                            String preferencePageID,
                            boolean expandLink)
Use to add a link to a preference page.

Parameters:
parent - the parent composite for the link
text - the text to display in the link
style - the style for the link
container - the container for the preference page
preferencePageID - the ID to link to
expandLink - whether or not to expand the link.
Method Detail

setLayoutData

public void setLayoutData(Object data)
See Also:
Link#setLayoutData(Object)

getLink

public Link getLink()
Retrieves the link

Returns:
the link on the page

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.