Methods Summary |
---|
public void | addProperty(java.lang.String name, java.lang.String value)
properties.addProperty(sCloneConfigID + name, value);
|
private void | checkName(java.lang.String name)
if (name.startsWith(sTemplateConfigID)) {
System.err.println(name + " shouldn't have template prefix of "
+ sTemplateConfigID + "; " + Debug.getStackTrace(true, false));
}
if (name.startsWith(sCloneConfigID)) {
System.err.println(name + " shouldn't have clone prefix of "
+ sCloneConfigID + "; " + Debug.getStackTrace(true, false));
}
|
public boolean | getBooleanValue(java.lang.String name, boolean def)
if (DEBUG) {
checkName(name);
}
if (!name.equals(IGNORE_NAME)) {
if (properties.getStringValue(sCloneConfigID + name) != null) {
return properties.getBooleanValue(sCloneConfigID + name, def);
}
}
return properties.getBooleanValue(sTemplateConfigID + name, def);
|
public org.eclipse.swt.graphics.Color | getColor(java.lang.String name)
if (DEBUG) {
checkName(name);
}
Color val = properties.getColor(sCloneConfigID + name);
if (val != null) {
return val;
}
return properties.getColor(sTemplateConfigID + name);
|
public int[] | getColorValue(java.lang.String name)
if (DEBUG) {
checkName(name);
}
if (!name.equals(IGNORE_NAME)) {
int[] val = properties.getColorValue(sCloneConfigID + name);
if (val[0] < 0) {
return val;
}
}
return properties.getColorValue(sTemplateConfigID + name);
|
public int | getIntValue(java.lang.String name, int def)
if (DEBUG) {
checkName(name);
}
if (!name.equals(IGNORE_NAME)) {
if (properties.getStringValue(sCloneConfigID + name) != null) {
return properties.getIntValue(sCloneConfigID + name, def);
}
}
return properties.getIntValue(sTemplateConfigID + name, def);
|
public SWTSkinProperties | getOriginalProperties()
return properties;
|
public java.lang.String[] | getParamValues()
return sCloneParams;
|
public java.util.Properties | getProperties()
return properties.getProperties();
|
public java.lang.String[] | getStringArray(java.lang.String name, java.lang.String[] params)
if (DEBUG) {
checkName(name);
}
if (!name.equals(IGNORE_NAME)) {
String[] val = properties.getStringArray(sCloneConfigID + name, params);
if (val != null) {
return val;
}
}
return properties.getStringArray(sTemplateConfigID + name, params);
|
public java.lang.String[] | getStringArray(java.lang.String name)
if (DEBUG) {
checkName(name);
}
if (!name.equals(IGNORE_NAME)) {
String[] val = properties.getStringArray(sCloneConfigID + name,
sCloneParams);
if (val != null) {
return val;
}
}
return properties.getStringArray(sTemplateConfigID + name, sCloneParams);
|
public java.lang.String | getStringValue(java.lang.String name)
if (DEBUG) {
checkName(name);
}
if (!name.equals(IGNORE_NAME)) {
String val = properties.getStringValue(sCloneConfigID + name,
sCloneParams);
if (val != null) {
return val;
}
}
return properties.getStringValue(sTemplateConfigID + name, sCloneParams);
|
public java.lang.String | getStringValue(java.lang.String name, java.lang.String[] params, java.lang.String def)
if (DEBUG) {
checkName(name);
}
if (!name.equals(IGNORE_NAME)) {
String val = properties.getStringValue(sCloneConfigID + name, params);
if (val != null) {
return val;
}
}
return properties.getStringValue(sTemplateConfigID + name, params, def);
|
public java.lang.String | getStringValue(java.lang.String name, java.lang.String[] params)
if (DEBUG) {
checkName(name);
}
if (!name.equals(IGNORE_NAME)) {
String val = properties.getStringValue(sCloneConfigID + name, params);
if (val != null) {
return val;
}
}
return properties.getStringValue(sTemplateConfigID + name, params);
|
public java.lang.String | getStringValue(java.lang.String name, java.lang.String def)
if (DEBUG) {
checkName(name);
}
if (!name.equals(IGNORE_NAME)) {
String val = properties.getStringValue(sCloneConfigID + name,
sCloneParams);
if (val != null) {
return val;
}
}
return properties.getStringValue(sTemplateConfigID + name, sCloneParams,
def);
|