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


Java IPropertyChangeListener类代码示例

本文整理汇总了Java中org.eclipse.core.runtime.Preferences.IPropertyChangeListener的典型用法代码示例。如果您正苦于以下问题:Java IPropertyChangeListener类的具体用法?Java IPropertyChangeListener怎么用?Java IPropertyChangeListener使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IPropertyChangeListener类属于org.eclipse.core.runtime.Preferences包,在下文中一共展示了IPropertyChangeListener类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: configureClientProxy

import org.eclipse.core.runtime.Preferences.IPropertyChangeListener; //导入依赖的package包/类
@Override
public void configureClientProxy(
    final HttpClient httpClient,
    final HostConfiguration hostConfiguration,
    final HttpState httpState,
    final ConnectionInstanceData connectionInstanceData) {
    final Preferences preferences = TFSCommonUIClientPlugin.getDefault().getPluginPreferences();

    final IPropertyChangeListener preferenceChangeListener = new PreferenceChangeListener(httpClient);
    preferences.addPropertyChangeListener(preferenceChangeListener);
    httpClient.getParams().setParameter(PREFERENCE_CHANGE_LISTENER_KEY, preferenceChangeListener);

    configureProxy(httpClient);
}
 
开发者ID:Microsoft,项目名称:team-explorer-everywhere,代码行数:15,代码来源:LegacyHTTPClientFactory.java

示例2: newProxyServerSettings

import org.eclipse.core.runtime.Preferences.IPropertyChangeListener; //导入依赖的package包/类
/**
 * {@inheritDoc}
 * <p>
 * The object returned is reconfigured with new values when Eclipse
 * preferences change.
 */
@Override
public TFProxyServerSettings newProxyServerSettings() {
    final DefaultTFProxyServerSettings proxyServerSettings = new DefaultTFProxyServerSettings(null);

    final Preferences preferences = TFSCommonUIClientPlugin.getDefault().getPluginPreferences();

    final IPropertyChangeListener preferenceChangeListener = new PreferenceChangeListener(proxyServerSettings);
    preferences.addPropertyChangeListener(preferenceChangeListener);
    listeners.put(proxyServerSettings, preferenceChangeListener);

    configureProxySettings(proxyServerSettings);

    return proxyServerSettings;
}
 
开发者ID:Microsoft,项目名称:team-explorer-everywhere,代码行数:21,代码来源:EclipseTFProxyServerSettingsFactory.java

示例3: addListener

import org.eclipse.core.runtime.Preferences.IPropertyChangeListener; //导入依赖的package包/类
public static void addListener(IPropertyChangeListener listener) {
  Preferences prefs = getPreferences();
  prefs.addPropertyChangeListener(listener);
}
 
开发者ID:alfsch,项目名称:workspacemechanic,代码行数:5,代码来源:OldMechanicPreferences.java

示例4: removeListener

import org.eclipse.core.runtime.Preferences.IPropertyChangeListener; //导入依赖的package包/类
public static void removeListener(IPropertyChangeListener listener) {
  Preferences prefs = getPreferences();
  prefs.removePropertyChangeListener(listener);
}
 
开发者ID:alfsch,项目名称:workspacemechanic,代码行数:5,代码来源:OldMechanicPreferences.java

示例5: addListener

import org.eclipse.core.runtime.Preferences.IPropertyChangeListener; //导入依赖的package包/类
public void addListener(IPropertyChangeListener listener) {
  OldMechanicPreferences.addListener(listener);
}
 
开发者ID:alfsch,项目名称:workspacemechanic,代码行数:4,代码来源:MechanicPreferences.java

示例6: removeListener

import org.eclipse.core.runtime.Preferences.IPropertyChangeListener; //导入依赖的package包/类
public void removeListener(IPropertyChangeListener listener) {
  OldMechanicPreferences.removeListener(listener);
}
 
开发者ID:alfsch,项目名称:workspacemechanic,代码行数:4,代码来源:MechanicPreferences.java

示例7: addListener

import org.eclipse.core.runtime.Preferences.IPropertyChangeListener; //导入依赖的package包/类
void addListener(IPropertyChangeListener listener); 
开发者ID:alfsch,项目名称:workspacemechanic,代码行数:2,代码来源:IMechanicPreferences.java

示例8: removeListener

import org.eclipse.core.runtime.Preferences.IPropertyChangeListener; //导入依赖的package包/类
void removeListener(IPropertyChangeListener listener); 
开发者ID:alfsch,项目名称:workspacemechanic,代码行数:2,代码来源:IMechanicPreferences.java


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