/** * Disposes this encoding support. */ public void dispose() { Preferences p= ResourcesPlugin.getPlugin().getPluginPreferences(); p.removePropertyChangeListener(fPropertyChangeListener); fTextEditor= null; }
public static void log(Throwable t) { IStatus status= new Status( IStatus.ERROR, getPluginId(), IRefactoringCoreStatusCodes.INTERNAL_ERROR, RefactoringCoreMessages.RefactoringCorePlugin_internal_error, t); ResourcesPlugin.getPlugin().getLog().log(status); }
/** * Constructor for the class. */ public PathVariableManager() { this.listeners = Collections.synchronizedSet(new HashSet<IPathVariableChangeListener>()); this.projectListeners = Collections.synchronizedMap(new HashMap<IProject, Collection<IPathVariableChangeListener>>()); this.preferences = ResourcesPlugin.getPlugin().getPluginPreferences(); }
public static void logRemovedListener(Throwable t) { IStatus status= new Status( IStatus.ERROR, getPluginId(), IRefactoringCoreStatusCodes.INTERNAL_ERROR, RefactoringCoreMessages.RefactoringCorePlugin_listener_removed, t); ResourcesPlugin.getPlugin().getLog().log(status); }
@Override public void shutdown(IProgressMonitor monitor) throws CoreException { if (_historyStore != null) _historyStore.shutdown(monitor); ResourcesPlugin.getPlugin().getPluginPreferences().removePropertyChangeListener(this); }
public static void logRemovedListener(Throwable t) { IStatus status= new Status( IStatus.ERROR, getPluginId(), IRefactoringUIStatusCodes.INTERNAL_ERROR, RefactoringUIMessages.RefactoringUIPlugin_listener_removed, t); ResourcesPlugin.getPlugin().getLog().log(status); }
@Override public void shutdown(IProgressMonitor monitor) throws CoreException { if (_historyStore != null) _historyStore.shutdown(monitor); ResourcesPlugin.getPlugin().getPluginPreferences().removePropertyChangeListener(this); }
public LocalMetaArea() { super(); metaAreaLocation = ResourcesPlugin.getPlugin().getStateLocation(); projectMetaLocation = metaAreaLocation.append(F_PROJECTS); }
@Deprecated @Override public void setDefaultCharset(String charset) { // directly change the Resource plugin's preference for encoding Preferences resourcesPreferences = ResourcesPlugin.getPlugin().getPluginPreferences(); if (charset != null) resourcesPreferences.setValue(ResourcesPlugin.PREF_ENCODING, charset); else resourcesPreferences.setToDefault(ResourcesPlugin.PREF_ENCODING); }
public LocalMetaArea() { super(); metaAreaLocation = ResourcesPlugin.getPlugin().getStateLocation(); projectMetaLocation = metaAreaLocation.append(F_PROJECTS); }
@Deprecated @Override public void setDefaultCharset(String charset) { // directly change the Resource plugin's preference for encoding Preferences resourcesPreferences = ResourcesPlugin.getPlugin().getPluginPreferences(); if (charset != null) resourcesPreferences.setValue(ResourcesPlugin.PREF_ENCODING, charset); else resourcesPreferences.setToDefault(ResourcesPlugin.PREF_ENCODING); }
public LocalMetaArea() { super(); metaAreaLocation = ResourcesPlugin.getPlugin().getStateLocation(); projectMetaLocation = metaAreaLocation.append(F_PROJECTS); }
@Override public void shutdown(IProgressMonitor monitor) throws CoreException { if (_historyStore != null) _historyStore.shutdown(monitor); ResourcesPlugin.getPlugin().getPluginPreferences().removePropertyChangeListener(this); }
public static void logRemovedParticipant(ParticipantDescriptor descriptor, Throwable t) { IStatus status= new Status( IStatus.ERROR, getPluginId(), IRefactoringCoreStatusCodes.INTERNAL_ERROR, Messages.format( RefactoringCoreMessages.RefactoringCorePlugin_participant_removed, descriptor.getId()), t); ResourcesPlugin.getPlugin().getLog().log(status); }
@Override public String getDefaultCharset(boolean checkImplicit) { if (checkImplicit) return ResourcesPlugin.getEncoding(); String enc = ResourcesPlugin.getPlugin().getPluginPreferences().getString(ResourcesPlugin.PREF_ENCODING); return enc == null || enc.length() == 0 ? null : enc; }
public static void logRemovedParticipant(ParticipantDescriptor descriptor, Throwable t) { IStatus status= new Status( IStatus.ERROR, getPluginId(), IRefactoringCoreStatusCodes.PARTICIPANT_DISABLED, Messages.format( RefactoringCoreMessages.RefactoringCorePlugin_participant_removed, descriptor.getId()), t); ResourcesPlugin.getPlugin().getLog().log(status); }
@Override public void startup(IProgressMonitor monitor) { Preferences preferences = ResourcesPlugin.getPlugin().getPluginPreferences(); preferences.addPropertyChangeListener(this); lightweightAutoRefreshEnabled = preferences.getBoolean(ResourcesPlugin.PREF_LIGHTWEIGHT_AUTO_REFRESH); }
public static void logRemovedParticipant(ParticipantDescriptor descriptor, Throwable t) { IStatus status= new Status( IStatus.ERROR, getPluginId(), IRefactoringCoreStatusCodes.PARTICIPANT_DISABLED, Messages.format( RefactoringCoreMessages.RefactoringCorePlugin_participant_removed, descriptor.getId()), t); ResourcesPlugin.getPlugin().getLog().log(status); }
@Override protected void doLoadDefault() { Text text = getTextControl(); if (text != null) { int value = ResourcesPlugin.getPlugin() .getPluginPreferences().getDefaultInt( ResourcesPlugin.PREF_MAX_BUILD_ITERATIONS); text.setText(Integer.toString(value)); } valueChanged(); }
@Override public void setDescription(IWorkspaceDescription value) { // if both the old and new description's build orders are null, leave the // workspace's build order slot because it is caching the computed order. // Otherwise, set the slot to null to force recomputing or building from the description. WorkspaceDescription newDescription = (WorkspaceDescription) value; String[] newOrder = newDescription.getBuildOrder(false); if (description.getBuildOrder(false) != null || newOrder != null) buildOrder = null; description.copyFrom(newDescription); ResourcesPlugin.getPlugin().savePluginPreferences(); }