com.ibm.jdg2e.usersettings
Class CommonSettingsUI

java.lang.Object
  extended bycom.ibm.jdg2e.usersettings.CommonSettingsUI

public class CommonSettingsUI
extends java.lang.Object


Field Summary
 org.eclipse.core.runtime.preferences.IEclipsePreferences configNode
          Configuration node
 org.eclipse.core.runtime.preferences.IEclipsePreferences defaultNode
          Default node
 org.eclipse.core.runtime.preferences.IEclipsePreferences instanceNode
          Instance node
 org.eclipse.core.runtime.preferences.IEclipsePreferences projectNode
          Project node
 org.eclipse.core.resources.IResource resource
          Resource for project node access
 
Constructor Summary
CommonSettingsUI(boolean readOnly)
          Creates instance with control over the ability of the user interface to accept user modification.
 
Method Summary
 org.eclipse.swt.widgets.Composite createSettingsUI(org.eclipse.swt.widgets.Composite parent)
          Create user interface with entry fields for two keys across the multiple nodes.
(package private)  org.eclipse.swt.widgets.Composite getComposite()
           
(package private)  java.lang.String getConfigText1Value()
           
(package private)  java.lang.String getConfigText2Value()
           
 java.lang.String getDefaultValue(java.lang.String key)
           
(package private)  java.lang.String getInstanceText1Value()
           
(package private)  java.lang.String getInstanceText2Value()
           
(package private)  java.lang.String getprojectText1Value()
           
(package private)  java.lang.String getprojectText2Value()
           
 void setCascadedProjectText()
          Populate cascaded project text fields
 void setConfigText()
          Populate config text fields
 void setConfigText1Value(java.lang.String value)
           
 void setConfigText2Value(java.lang.String value)
           
 void setDefaultText()
          Populate default text fields
 void setInstanceText()
          Populate instance text fields
 void setInstanceText1Value(java.lang.String value)
           
 void setInstanceText2Value(java.lang.String value)
           
 void setProjectText()
          Populate project text fields
 void setProjectText1Value(java.lang.String value)
           
 void setProjectText2Value(java.lang.String value)
           
(package private)  void setResource(org.eclipse.core.resources.IResource resource)
          Identifies the IResource that should be processed for settings content.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

configNode

public org.eclipse.core.runtime.preferences.IEclipsePreferences configNode
Configuration node


defaultNode

public org.eclipse.core.runtime.preferences.IEclipsePreferences defaultNode
Default node


instanceNode

public org.eclipse.core.runtime.preferences.IEclipsePreferences instanceNode
Instance node


projectNode

public org.eclipse.core.runtime.preferences.IEclipsePreferences projectNode
Project node


resource

public org.eclipse.core.resources.IResource resource
Resource for project node access

Constructor Detail

CommonSettingsUI

public CommonSettingsUI(boolean readOnly)
Creates instance with control over the ability of the user interface to accept user modification.

Parameters:
readOnly -
Method Detail

createSettingsUI

public final org.eclipse.swt.widgets.Composite createSettingsUI(org.eclipse.swt.widgets.Composite parent)
Create user interface with entry fields for two keys across the multiple nodes.

Parameters:
parent -
Returns:
the Composite used to create UI component.

getComposite

org.eclipse.swt.widgets.Composite getComposite()
Returns:
composite used for user interface

getConfigText1Value

java.lang.String getConfigText1Value()
Returns:
text field content

getConfigText2Value

java.lang.String getConfigText2Value()
Returns:
text field content

getDefaultValue

public java.lang.String getDefaultValue(java.lang.String key)
Parameters:
key -
Returns:
default value for key

getInstanceText1Value

java.lang.String getInstanceText1Value()
Returns:
text field content

getInstanceText2Value

java.lang.String getInstanceText2Value()
Returns:
text field content

getprojectText1Value

java.lang.String getprojectText1Value()
Returns:
text field content

getprojectText2Value

java.lang.String getprojectText2Value()
Returns:
text field content

setCascadedProjectText

public void setCascadedProjectText()
Populate cascaded project text fields


setConfigText

public void setConfigText()
Populate config text fields


setConfigText1Value

public void setConfigText1Value(java.lang.String value)
Parameters:
value -

setConfigText2Value

public void setConfigText2Value(java.lang.String value)
Parameters:
value -

setDefaultText

public void setDefaultText()
Populate default text fields


setInstanceText

public void setInstanceText()
Populate instance text fields


setInstanceText1Value

public void setInstanceText1Value(java.lang.String value)
Parameters:
value -

setInstanceText2Value

public void setInstanceText2Value(java.lang.String value)
Parameters:
value -

setProjectText

public void setProjectText()
Populate project text fields


setProjectText1Value

public void setProjectText1Value(java.lang.String value)
Parameters:
value -

setProjectText2Value

public void setProjectText2Value(java.lang.String value)
Parameters:
value -

setResource

void setResource(org.eclipse.core.resources.IResource resource)
Identifies the IResource that should be processed for settings content. This triggers a refresh of the user interface.

Parameters:
resource -