@Override public String getName() { return fOriginal.getName(); }
@Override public String getName() { return fOriginal.getName(); }
public String getName() { return fOriginal.getName(); }
@Override public String getName() { return getDelegate().getName(); }
@Override public String getName() { return getDelegate().getName(); }
@Override public String getName() { return getDelegate().getName(); }
private void updateAdvancedEnableState() { boolean additionalOptionEnabled= isEnabled(fContext) && CleanUpConstants.TRUE.equals(fSettings.get(CleanUpConstants.CLEANUP_ON_SAVE_ADDITIONAL_OPTIONS)); boolean additionalEnabled= additionalOptionEnabled && (!ProjectScope.SCOPE.equals(fContext.getName()) || hasSettingsInScope(fContext)); fSelectedActionsText.setEnabled(additionalEnabled); fConfigureButton.setEnabled(additionalEnabled); }
@Override public void performOk() { super.performOk(); if (!ProjectScope.SCOPE.equals(fContext.getName()) || hasSettingsInScope(fContext)) CleanUpPreferenceUtil.saveSaveParticipantOptions(fContext, fSettings); }
@Override public void performOk() { super.performOk(); if (!ProjectScope.SCOPE.equals(fContext.getName()) || hasSettingsInScope(fContext)) CleanUpPreferenceUtil.saveSaveParticipantOptions(fContext, fSettings); }
/** * {@inheritDoc} */ public void performOk() { super.performOk(); if (!ProjectScope.SCOPE.equals(fContext.getName()) || hasSettingsInScope(fContext)) CleanUpPreferenceUtil.saveSaveParticipantOptions(fContext, fSettings); }
@Override public void performDefaults() { if (ProjectScope.SCOPE.equals(fContext.getName()) && !hasSettingsInScope(fContext)) return; enabled(true); if (ProjectScope.SCOPE.equals(fContext.getName())) { fSettings= CleanUpPreferenceUtil.loadSaveParticipantOptions(InstanceScope.INSTANCE); } else { fSettings= JavaPlugin.getDefault().getCleanUpRegistry().getDefaultOptions(CleanUpConstants.DEFAULT_SAVE_ACTION_OPTIONS).getMap(); } settingsChanged(); super.performDefaults(); }
@Override public void performDefaults() { if (ProjectScope.SCOPE.equals(fContext.getName()) && !hasSettingsInScope(fContext)) return; enabled(true); if (ProjectScope.SCOPE.equals(fContext.getName())) { fSettings= CleanUpPreferenceUtil.loadSaveParticipantOptions(InstanceScope.INSTANCE); } else { fSettings= JavaPlugin.getDefault().getCleanUpRegistry().getDefaultOptions(CleanUpConstants.DEFAULT_SAVE_ACTION_OPTIONS).getMap(); } settingsChanged(); super.performDefaults(); }
public boolean equals(Object obj) { if (this == obj) return true; if (!(obj instanceof IScopeContext)) return false; IScopeContext other = (IScopeContext) obj; if (!getName().equals(other.getName())) return false; IPath location = getLocation(); return location == null ? other.getLocation() == null : location.equals(other.getLocation()); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (!(obj instanceof IScopeContext)) return false; IScopeContext other = (IScopeContext) obj; if (!getName().equals(other.getName())) return false; IPath location = getLocation(); return location == null ? other.getLocation() == null : location.equals(other.getLocation()); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (!(obj instanceof IScopeContext)) return false; IScopeContext other = (IScopeContext) obj; if (!getName().equals(other.getName())) return false; IPath location = getLocation(); return location == null ? other.getLocation() == null : location.equals(other.getLocation()); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (!(obj instanceof IScopeContext)) return false; IScopeContext other = (IScopeContext) obj; if (!getName().equals(other.getName())) return false; IPath location = getLocation(); return location == null ? other.getLocation() == null : location.equals(other.getLocation()); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (!(obj instanceof IScopeContext)) return false; IScopeContext other = (IScopeContext) obj; if (!getName().equals(other.getName())) return false; IPath location = getLocation(); return location == null ? other.getLocation() == null : location.equals(other.getLocation()); }
@Override public void performDefaults() { String key= getPreferenceKey(); boolean defaultEnabled; if (ProjectScope.SCOPE.equals(fContext.getName())) { defaultEnabled= InstanceScope.INSTANCE.getNode(JavaUI.ID_PLUGIN).getBoolean(key, false); } else { defaultEnabled= DefaultScope.INSTANCE.getNode(JavaUI.ID_PLUGIN).getBoolean(key, false); } fContext.getNode(JavaUI.ID_PLUGIN).putBoolean(key, defaultEnabled); fEnableField.setSelection(defaultEnabled); enabled(defaultEnabled); }
@Override public void performDefaults() { String key= getPreferenceKey(); boolean defaultEnabled; if (ProjectScope.SCOPE.equals(fContext.getName())) { defaultEnabled= InstanceScope.INSTANCE.getNode(JavaUI.ID_PLUGIN).getBoolean(key, false); } else { defaultEnabled= DefaultScope.INSTANCE.getNode(JavaUI.ID_PLUGIN).getBoolean(key, false); } fContext.getNode(JavaUI.ID_PLUGIN).putBoolean(key, defaultEnabled); fEnableField.setSelection(defaultEnabled); enabled(defaultEnabled); }
/** * Update all formatter settings with the settings of the specified profile. * @param profile The profile to write to the preference store */ private void writeToPreferenceStore(Profile profile, IScopeContext context) { final Map<String, String> profileOptions= profile.getSettings(); for (int i= 0; i < fKeySets.length; i++) { updatePreferences(context.getNode(fKeySets[i].getNodeName()), fKeySets[i].getKeys(), profileOptions); } final IEclipsePreferences uiPrefs= context.getNode(JavaUI.ID_PLUGIN); if (uiPrefs.getInt(fProfileVersionKey, 0) != fProfileVersioner.getCurrentVersion()) { uiPrefs.putInt(fProfileVersionKey, fProfileVersioner.getCurrentVersion()); } if (context.getName() == InstanceScope.SCOPE) { uiPrefs.put(fProfileKey, profile.getID()); } else if (context.getName() == ProjectScope.SCOPE && !profile.isSharedProfile()) { uiPrefs.put(fProfileKey, profile.getID()); } }