當前位置: 首頁>>代碼示例>>Java>>正文


Java IEclipsePreferences.removePreferenceChangeListener方法代碼示例

本文整理匯總了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;
	}
}
 
開發者ID:cplutte,項目名稱:bts,代碼行數:27,代碼來源:ScopedPreferenceStore.java

示例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;
	}
}
 
開發者ID:cplutte,項目名稱:bts,代碼行數:27,代碼來源:FixedScopedPreferenceStore.java

示例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);
	}
}
 
開發者ID:eclipse,項目名稱:tm4e,代碼行數:19,代碼來源:ThemeManager.java

示例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();
  }
}
 
開發者ID:alfsch,項目名稱:workspacemechanic,代碼行數:23,代碼來源:PreferenceRecorder.java

示例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;
	}
}
 
開發者ID:apicloudcom,項目名稱:APICloud-Studio,代碼行數:13,代碼來源:UIPlugin.java

示例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);
}
 
開發者ID:google,項目名稱:depan,代碼行數:7,代碼來源:RendererPreferences.java

示例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;
}
 
開發者ID:apicloudcom,項目名稱:APICloud-Studio,代碼行數:7,代碼來源:InvasiveThemeHijacker.java


注:本文中的org.eclipse.core.runtime.preferences.IEclipsePreferences.removePreferenceChangeListener方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。