本文整理汇总了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);
}
示例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;
}
示例3: addListener
import org.eclipse.core.runtime.Preferences.IPropertyChangeListener; //导入依赖的package包/类
public static void addListener(IPropertyChangeListener listener) {
Preferences prefs = getPreferences();
prefs.addPropertyChangeListener(listener);
}
示例4: removeListener
import org.eclipse.core.runtime.Preferences.IPropertyChangeListener; //导入依赖的package包/类
public static void removeListener(IPropertyChangeListener listener) {
Preferences prefs = getPreferences();
prefs.removePropertyChangeListener(listener);
}
示例5: addListener
import org.eclipse.core.runtime.Preferences.IPropertyChangeListener; //导入依赖的package包/类
public void addListener(IPropertyChangeListener listener) {
OldMechanicPreferences.addListener(listener);
}
示例6: removeListener
import org.eclipse.core.runtime.Preferences.IPropertyChangeListener; //导入依赖的package包/类
public void removeListener(IPropertyChangeListener listener) {
OldMechanicPreferences.removeListener(listener);
}
示例7: addListener
import org.eclipse.core.runtime.Preferences.IPropertyChangeListener; //导入依赖的package包/类
void addListener(IPropertyChangeListener listener);
示例8: removeListener
import org.eclipse.core.runtime.Preferences.IPropertyChangeListener; //导入依赖的package包/类
void removeListener(IPropertyChangeListener listener);