prantl.ant.eclipse
Class OrgEclipseJdtUiPreferencesElement

java.lang.Object
  extended by prantl.ant.eclipse.PreferencesElement
      extended by prantl.ant.eclipse.OrgEclipseJdtUiPreferencesElement

public class OrgEclipseJdtUiPreferencesElement
extends PreferencesElement

Configures the component preferences file .settings/org.eclipse.jdt.ui.prefs on the high level using attributes for the typical constellations of variable values.

Since:
Ant-Eclipse 1.0
Author:
Ferdinand Prantl <prantl@users.sourceforge.net>

Constructor Summary
OrgEclipseJdtUiPreferencesElement(SettingsElement parent)
          Creates a new instance of the element for the file with preferences for org.eclipse.jdt.ui.
 
Method Summary
 java.lang.String getCompliance()
          Returns the source file encoding for the project (default is inherited from the workspace settings and not set here in the file).
 void setCompliance(java.lang.String value)
          Sets the version of the Eclipse preferences.
 void validate()
          Performs the validation of the element at the time when the whole build file was parsed checking the content of the element and possibly adding mandatory variables with default settings.
 
Methods inherited from class prantl.ant.eclipse.PreferencesElement
getName, getVariables, getVersion, setVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrgEclipseJdtUiPreferencesElement

public OrgEclipseJdtUiPreferencesElement(SettingsElement parent)
Creates a new instance of the element for the file with preferences for org.eclipse.jdt.ui.

Parameters:
parent - The parent settings element of this preferences one.
Since:
Ant-Eclipse 1.0
Method Detail

getCompliance

public java.lang.String getCompliance()
Returns the source file encoding for the project (default is inherited from the workspace settings and not set here in the file).

Returns:
The source file encoding for the project (default is inherited from the workspace settings and not set here in the file)

setCompliance

public void setCompliance(java.lang.String value)
Sets the version of the Eclipse preferences. The default value should be left and not set explicitely.

Parameters:
value - A valid encoding for the project.
Since:
Ant-Eclipse 1.0

validate

public void validate()
Performs the validation of the element at the time when the whole build file was parsed checking the content of the element and possibly adding mandatory variables with default settings.

Overrides:
validate in class PreferencesElement
Since:
Ant-Eclipse 1.0