本文整理汇总了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);
}
}
示例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);
}
}
}
}
示例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);
}
}
}
示例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);
}
}
示例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));
}