本文整理汇总了Java中org.eclipse.core.runtime.preferences.IEclipsePreferences.removePreferenceChangeListener方法的典型用法代码示例。如果您正苦于以下问题:Java IEclipsePreferences.removePreferenceChangeListener方法的具体用法?Java IEclipsePreferences.removePreferenceChangeListener怎么用?Java IEclipsePreferences.removePreferenceChangeListener使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.core.runtime.preferences.IEclipsePreferences
的用法示例。
在下文中一共展示了IEclipsePreferences.removePreferenceChangeListener方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: disposePreferenceStoreListener
import org.eclipse.core.runtime.preferences.IEclipsePreferences; //导入方法依赖的package包/类
/**
* Dispose the receiver.
*/
private void disposePreferenceStoreListener() {
IEclipsePreferences root = (IEclipsePreferences) Platform
.getPreferencesService().getRootNode().node(
Plugin.PLUGIN_PREFERENCE_SCOPE);
try {
if (!(root.nodeExists(nodeQualifier))) {
return;
}
} catch (BackingStoreException e) {
return;// No need to report here as the node won't have the
// listener
}
IEclipsePreferences preferences = getStorePreferences();
if (preferences == null) {
return;
}
if (preferencesListener != null) {
preferences.removePreferenceChangeListener(preferencesListener);
preferencesListener = null;
}
}
示例2: disposePreferenceStoreListener
import org.eclipse.core.runtime.preferences.IEclipsePreferences; //导入方法依赖的package包/类
/**
* Dispose the preference store listener.
*/
private void disposePreferenceStoreListener() {
IEclipsePreferences root = (IEclipsePreferences) Platform
.getPreferencesService().getRootNode().node(
Plugin.PLUGIN_PREFERENCE_SCOPE);
try {
if (!(root.nodeExists(nodeQualifier))) {
return;
}
} catch (BackingStoreException e) {
return;// No need to report here as the node won't have the
// listener
}
IEclipsePreferences preferences = getStorePreferences();
if (preferences == null) {
return;
}
if (preferencesListener != null) {
preferences.removePreferenceChangeListener(preferencesListener);
preferencesListener = null;
}
}
示例3: removePreferenceChangeListener
import org.eclipse.core.runtime.preferences.IEclipsePreferences; //导入方法依赖的package包/类
/**
* Remove preference change listener to observe changed of Eclipse E4 Theme and
* TextMate theme association with grammar.
*
* @param themeChangeListener
*/
public void removePreferenceChangeListener(IPreferenceChangeListener themeChangeListener) {
// Observe change of Eclipse E4 Theme
IEclipsePreferences preferences = getPreferenceE4CSSTheme();
if (preferences != null) {
preferences.removePreferenceChangeListener(themeChangeListener);
}
// Observe change of TextMate Theme association
preferences = InstanceScope.INSTANCE.getNode(TMUIPlugin.PLUGIN_ID);
if (preferences != null) {
preferences.removePreferenceChangeListener(themeChangeListener);
}
}
示例4: endRecording
import org.eclipse.core.runtime.preferences.IEclipsePreferences; //导入方法依赖的package包/类
/**
* Ends the recording process. No other changes to the preference tree are
* recorded after this method is called.
*
* @throws IllegalStateException if {@code startRecording()} had not been
* previously called, or if recording has already completed on this
* object.
*/
public void endRecording() {
synchronized (lock) {
Preconditions.checkState(currState == State.RECORDING, "Recorder object is not currently recording");
currState = State.COMPLETE;
for (IEclipsePreferences node : recordedNodes) {
node.removeNodeChangeListener(listener);
node.removePreferenceChangeListener(listener);
}
recordedNodes.clear();
}
}
示例5: removeAutoBuildListener
import org.eclipse.core.runtime.preferences.IEclipsePreferences; //导入方法依赖的package包/类
/**
* Remove the auto-build action listener.
*/
private void removeAutoBuildListener()
{
if (autoBuildListener != null)
{
IEclipsePreferences node = EclipseUtil.instanceScope().getNode(ResourcesPlugin.PI_RESOURCES);
node.removePreferenceChangeListener(autoBuildListener);
autoBuildListener = null;
}
}
示例6: dispose
import org.eclipse.core.runtime.preferences.IEclipsePreferences; //导入方法依赖的package包/类
public void dispose() {
// TODO(leeca): What does this do?
// listen the changes in the configuration
IEclipsePreferences prefs = PreferencesIds.getInstanceNode();
prefs.removePreferenceChangeListener(this);
}
示例7: dispose
import org.eclipse.core.runtime.preferences.IEclipsePreferences; //导入方法依赖的package包/类
public void dispose()
{
IEclipsePreferences prefs = EclipseUtil.instanceScope().getNode(ThemePlugin.PLUGIN_ID);
prefs.removePreferenceChangeListener(this);
pageListener = null;
}