當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。