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


Java IPropertyChangeListener.propertyChange方法代码示例

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


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

示例1: firePropertyChangeChange

import org.eclipse.jface.util.IPropertyChangeListener; //导入方法依赖的package包/类
protected void firePropertyChangeChange(String property, Object oldValue, Object newValue) {
	PropertyChangeEvent event = new PropertyChangeEvent(this, property, oldValue, newValue);
	for (Iterator iter = listeners.iterator(); iter.hasNext();) {
		IPropertyChangeListener listener = (IPropertyChangeListener) iter.next();
		listener.propertyChange(event);
	}
}
 
开发者ID:subclipse,项目名称:subclipse,代码行数:8,代码来源:DialogArea.java

示例2: firePropertyChangeEvent

import org.eclipse.jface.util.IPropertyChangeListener; //导入方法依赖的package包/类
@Override
public void firePropertyChangeEvent(String name, Object oldValue, Object newValue) {
	if (!fSilent) {
		final PropertyChangeEvent event = new PropertyChangeEvent(this, name, oldValue, newValue);
		for (final IPropertyChangeListener listener : fListeners) {
			Runnable runnable = new Runnable() {

				@Override
				public void run() {
					listener.propertyChange(event);
				}
			};

			if (Display.getCurrent() != null)
				runnable.run();
			else {
				// Post runnable into UI thread
				Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
				Display display;
				if (shell != null)
					display = shell.getDisplay();
				else
					display = Display.getDefault();
				display.asyncExec(runnable);
			}
		}
	}
}
 
开发者ID:grosenberg,项目名称:fluentmark,代码行数:29,代码来源:PreferencesAdapter.java

示例3: propertyChange

import org.eclipse.jface.util.IPropertyChangeListener; //导入方法依赖的package包/类
public void propertyChange(PropertyChangeEvent event) {
	if (IPreferenceConstants.P_BINARY_PATH.equals(event
			.getProperty())) {
		for (IPropertyChangeListener binaryPathChangeListener : binaryPathChangeListeners) {
			binaryPathChangeListener.propertyChange(event);
		}
	}
}
 
开发者ID:kwin,项目名称:cppcheclipse,代码行数:9,代码来源:CppcheclipsePlugin.java

示例4: notifyChange

import org.eclipse.jface.util.IPropertyChangeListener; //导入方法依赖的package包/类
protected void notifyChange(final String propertyName, final Object oldValue, final Object newValue) {
	if (listeners != null) {
		final PropertyChangeEvent e = new PropertyChangeEvent(this, propertyName, oldValue, newValue);
		for (final IPropertyChangeListener listener : listeners)
			listener.propertyChange(e);
	}
}
 
开发者ID:gama-platform,项目名称:gama,代码行数:8,代码来源:BoxSettingsImpl.java

示例5: firePropertyChangeEvent

import org.eclipse.jface.util.IPropertyChangeListener; //导入方法依赖的package包/类
@Override
public void firePropertyChangeEvent(String name, Object oldValue, Object newValue) {
	for (IPropertyChangeListener l : propertyChangeListeners)
		l.propertyChange(new PropertyChangeEvent(this, name, oldValue, newValue));
}
 
开发者ID:curiosag,项目名称:ftc,代码行数:6,代码来源:FtcPreferenceStore.java


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