当前位置: 首页>>代码示例>>Java>>正文


Java IEclipsePreferences.removeNodeChangeListener方法代码示例

本文整理汇总了Java中org.eclipse.core.runtime.preferences.IEclipsePreferences.removeNodeChangeListener方法的典型用法代码示例。如果您正苦于以下问题:Java IEclipsePreferences.removeNodeChangeListener方法的具体用法?Java IEclipsePreferences.removeNodeChangeListener怎么用?Java IEclipsePreferences.removeNodeChangeListener使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.core.runtime.preferences.IEclipsePreferences的用法示例。


在下文中一共展示了IEclipsePreferences.removeNodeChangeListener方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: removeNodeListeners

import org.eclipse.core.runtime.preferences.IEclipsePreferences; //导入方法依赖的package包/类
protected void removeNodeListeners() {
	for (IScopeContext scopeContext : SCOPE_CONTEXTS) {
		try {
			IEclipsePreferences node = scopeContext.getNode("");
			node.removeNodeChangeListener(nodeListener);
			node.accept((curNode) -> {
					curNode.removePreferenceChangeListener(changeListener);
					return true;
			});
		} catch (BackingStoreException e) {
			PrefEditorPlugin.log(e);
		}
	}
}
 
开发者ID:32kda,项目名称:com.onpositive.prefeditor,代码行数:15,代码来源:PlatformPreferenceProvider.java

示例2: 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();
  }
}
 
开发者ID:alfsch,项目名称:workspacemechanic,代码行数:23,代码来源:PreferenceRecorder.java

示例3: disposeNodeChangeListener

import org.eclipse.core.runtime.preferences.IEclipsePreferences; //导入方法依赖的package包/类
/**
 * Dispose the node change listener.
 */
private void disposeNodeChangeListener() {
	if (nodeChangeListener != null) {
		IEclipsePreferences preferences = getStorePreferences();
		if (preferences == null) {
			return;
		}
		IEclipsePreferences parent = (IEclipsePreferences) preferences.parent();
		if (parent == null)
			return;
		parent.removeNodeChangeListener(nodeChangeListener);
		nodeChangeListener = null;
	}
}
 
开发者ID:cplutte,项目名称:bts,代码行数:17,代码来源:FixedScopedPreferenceStore.java


注:本文中的org.eclipse.core.runtime.preferences.IEclipsePreferences.removeNodeChangeListener方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。