prantl.ant.eclipse
Class OrgEclipseCoreResourcesPreferencesElement

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

public class OrgEclipseCoreResourcesPreferencesElement
extends PreferencesElement

Configures the component preferences file .settings/org.eclipse.core.resources.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
OrgEclipseCoreResourcesPreferencesElement(SettingsElement parent)
          Creates a new instance of the element for the file with preferences for org.eclipse.core.resources.
 
Method Summary
 java.lang.String getEncoding()
          Returns the source file encoding for the project (default is inherited from the workspace settings and not set here in the file).
 void setEncoding(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

OrgEclipseCoreResourcesPreferencesElement

public OrgEclipseCoreResourcesPreferencesElement(SettingsElement parent)
Creates a new instance of the element for the file with preferences for org.eclipse.core.resources.

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

getEncoding

public java.lang.String getEncoding()
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)

setEncoding

public void setEncoding(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