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",