@Override public void loadProperties(final IProject project) { try { String temp = project.getPersistentProperty( new QualifiedName( ProjectBuildPropertyData.QUALIFIER, LinkerLibrariesOptionsData.ADDITIONAL_OBJECTS_PROPERTY)); objects.setValues(ListConverter.convertToList(temp)); temp = project.getPersistentProperty( new QualifiedName( ProjectBuildPropertyData.QUALIFIER, LinkerLibrariesOptionsData.LINKER_LIBRARIES_PROPERTY)); libraries.setValues(ListConverter.convertToList(temp)); temp = project.getPersistentProperty( new QualifiedName( ProjectBuildPropertyData.QUALIFIER, LinkerLibrariesOptionsData.LINKER_LIBRARY_SEARCH_PATH_PROPERTY)); librarySearchPath.setValues(ListConverter.convertToList(temp)); temp = project.getPersistentProperty( new QualifiedName( ProjectBuildPropertyData.QUALIFIER, LinkerLibrariesOptionsData.DISABLE_EXTERNAL_DIRS_PROPERTY)); disablePredefinedExtrnalDirs.setSelection("true".equals(temp) ? true : false); } catch (CoreException e) { objects.setValues(new String[] {}); libraries.setValues(new String[] {}); librarySearchPath.setValues(new String[] {}); disablePredefinedExtrnalDirs.setEnabled(false); } }
@Override public void performDefaults() { if (mainComposite == null) { return; } objects.setEnabled(true); objects.setValues(new String[] {}); libraries.setEnabled(true); libraries.setValues(new String[] {}); librarySearchPath.setEnabled(true); librarySearchPath.setValues(new String[] {}); disablePredefinedExtrnalDirs.setEnabled(true); disablePredefinedExtrnalDirs.setSelection(false); }