org.eclipse.jdt.internal.ui.preferences.PreferencesAccess Java Examples

The following examples show how to use org.eclipse.jdt.internal.ui.preferences.PreferencesAccess. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CleanUpConfigurationBlock.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 5 votes vote down vote up
public CleanUpConfigurationBlock(IProject project, PreferencesAccess access) {
   super(project, access, DIALOGSTORE_LASTSAVELOADPATH);

if (project != null) {
	fCurrContext= null;
} else {
	fCurrContext= access.getInstanceScope();
}
  }
 
Example #2
Source File: FormatterPreferencePage.java    From xtext-xtend with Eclipse Public License 2.0 4 votes vote down vote up
@Override
protected ProfileConfigurationBlock createConfigurationBlock(PreferencesAccess access) {
	return factory.create(getProject(), access, "id");
}
 
Example #3
Source File: FormatterConfigurationBlock.java    From xtext-xtend with Eclipse Public License 2.0 4 votes vote down vote up
public FormatterConfigurationBlock(IProject project, PreferencesAccess access, String lastSaveLoadPathKey) {
	super(project, access, lastSaveLoadPathKey);
}
 
Example #4
Source File: CodeFormatterConfigurationBlock.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
public CodeFormatterConfigurationBlock(IProject project, PreferencesAccess access) {
	super(project, access, DIALOGSTORE_LASTSAVELOADPATH);
}
 
Example #5
Source File: CodeFormatterConfigurationBlock.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
@Override
protected ProfileManager createProfileManager(List<Profile> profiles, IScopeContext context, PreferencesAccess access, IProfileVersioner profileVersioner) {
    return new FormatterProfileManager(profiles, context, access, profileVersioner);
   }
 
Example #6
Source File: FormatterProfileManager.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
public FormatterProfileManager(List<Profile> profiles, IScopeContext context, PreferencesAccess preferencesAccess, IProfileVersioner profileVersioner) {
 super(addBuiltinProfiles(profiles, profileVersioner), context, preferencesAccess, profileVersioner, KEY_SETS, PROFILE_KEY, FORMATTER_SETTINGS_VERSION);
}
 
Example #7
Source File: CleanUpProfileManager.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
public CleanUpProfileManager(List<Profile> profiles, IScopeContext context, PreferencesAccess preferencesAccess, IProfileVersioner profileVersioner) {
   super(profiles, context, preferencesAccess, profileVersioner, KEY_SETS, CleanUpConstants.CLEANUP_PROFILE, CleanUpConstants.CLEANUP_SETTINGS_VERSION_KEY);
fPreferencesAccess= preferencesAccess;
  }
 
Example #8
Source File: CleanUpConfigurationBlock.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
@Override
protected ProfileManager createProfileManager(List<Profile> profiles, IScopeContext context, PreferencesAccess access, IProfileVersioner profileVersioner) {
	profiles.addAll(CleanUpPreferenceUtil.getBuiltInProfiles());
    fProfileManager= new CleanUpProfileManager(profiles, context, access, profileVersioner);
	return fProfileManager;
   }
 
Example #9
Source File: ProfileConfigurationBlock.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 votes vote down vote up
protected abstract ProfileManager createProfileManager(List<Profile> profiles, IScopeContext context, PreferencesAccess access, IProfileVersioner profileVersioner);