sourceFontDetailsLink.setEnabled(true);
fDetailsLinks.add(sourceFontDetailsLink);
IntegerFieldEditor tabWidth = fPrefUtils.makeNewIntegerField(
page, this, fPrefService,
"instance", "tabWidth", "tab width",
"",
parent,
true, true,
true, "0",
false);
fields.add(tabWidth);
Link tabWidthDetailsLink = fPrefUtils.createDetailsLink(parent, tabWidth, tabWidth.getTextControl().getParent(), "Details ...");
tabWidthDetailsLink.setEnabled(true);
fDetailsLinks.add(tabWidthDetailsLink);
BooleanFieldEditor spacesForTabs = fPrefUtils.makeNewBooleanField(
page, this, fPrefService,
"instance", "spacesForTabs", "spaces for tabs",
"",
parent,
true, true,
true, false,
false);
fields.add(spacesForTabs);
Link spacesForTabsDetailsLink = fPrefUtils.createDetailsLink(parent, spacesForTabs, spacesForTabs.getChangeControl().getParent(), "Details ...");
spacesForTabsDetailsLink.setEnabled(true);
fDetailsLinks.add(spacesForTabsDetailsLink);
BooleanFieldEditor UseDefaultIncludePath = fPrefUtils.makeNewBooleanField(
page, this, fPrefService,
"instance", "UseDefaultIncludePath", "Use default include path",
"",
parent,
true, true,
true, false,
false);
fields.add(UseDefaultIncludePath);
Link UseDefaultIncludePathDetailsLink = fPrefUtils.createDetailsLink(parent, UseDefaultIncludePath, UseDefaultIncludePath.getChangeControl().getParent(), "Details ...");
UseDefaultIncludePathDetailsLink.setEnabled(true);
fDetailsLinks.add(UseDefaultIncludePathDetailsLink);
DirectoryListFieldEditor IncludePathToUse = fPrefUtils.makeNewDirectoryListField(
page, this, fPrefService,
"instance", "IncludePathToUse", "Include path to use",
"A semicolon-separated list of folders to search for include files",
parent,
true, true,
false, "",
false);
fields.add(IncludePathToUse);
Link IncludePathToUseDetailsLink = fPrefUtils.createDetailsLink(parent, IncludePathToUse, IncludePathToUse.getTextControl().getParent(), "Details ...");
IncludePathToUseDetailsLink.setEnabled(true);
fDetailsLinks.add(IncludePathToUseDetailsLink);
fPrefUtils.createToggleFieldListener(UseDefaultIncludePath, IncludePathToUse, false);
boolean isEnabledIncludePathToUse = !UseDefaultIncludePath.getBooleanValue();
IncludePathToUse.getTextControl().setEditable(isEnabledIncludePathToUse);
IncludePathToUse.getTextControl().setEnabled(isEnabledIncludePathToUse);
IncludePathToUse.setEnabled(isEnabledIncludePathToUse, IncludePathToUse.getParent());
StringFieldEditor SourceFileExtensions = fPrefUtils.makeNewStringField(
page, this, fPrefService,
"instance", "SourceFileExtensions", "Source file extensions",
"A comma-separated list of file name extensions identifying the source files to process",
parent,
true, true,
false, "",
false);
fields.add(SourceFileExtensions);
Link SourceFileExtensionsDetailsLink = fPrefUtils.createDetailsLink(parent, SourceFileExtensions, SourceFileExtensions.getTextControl().getParent(), "Details ...");
SourceFileExtensionsDetailsLink.setEnabled(true);
fDetailsLinks.add(SourceFileExtensionsDetailsLink);
BooleanFieldEditor GenerateLog = fPrefUtils.makeNewBooleanField(
page, this, fPrefService,
"instance", "GenerateLog", "Generate log",
"If true, place detailed information from the build process in a log file",
parent,
true, true,
true, false,
false);
fields.add(GenerateLog);
Link GenerateLogDetailsLink = fPrefUtils.createDetailsLink(parent, GenerateLog, GenerateLog.getChangeControl().getParent(), "Details ...");
GenerateLogDetailsLink.setEnabled(true);
fDetailsLinks.add(GenerateLogDetailsLink);
IntegerFieldEditor MaxLogEntries = fPrefUtils.makeNewIntegerField(
page, this, fPrefService,
"instance", "MaxLogEntries", "Maximum # of log entries",
"",
parent,
true, true,
true, "0",
false);
fields.add(MaxLogEntries);
Link MaxLogEntriesDetailsLink = fPrefUtils.createDetailsLink(parent, MaxLogEntries, MaxLogEntries.getTextControl().getParent(), "Details ...");
MaxLogEntriesDetailsLink.setEnabled(true);
fDetailsLinks.add(MaxLogEntriesDetailsLink);
fPrefUtils.createToggleFieldListener(GenerateLog, MaxLogEntries, true);
boolean isEnabledMaxLogEntries = GenerateLog.getBooleanValue();
MaxLogEntries.getTextControl().setEditable(isEnabledMaxLogEntries);
MaxLogEntries.getTextControl().setEnabled(isEnabledMaxLogEntries);
MaxLogEntries.setEnabled(isEnabledMaxLogEntries, MaxLogEntries.getParent());
return fields.toArray(new FieldEditor[fields.size()]);
}