本文整理汇总了Java中org.eclipse.swt.widgets.Control.removeDisposeListener方法的典型用法代码示例。如果您正苦于以下问题:Java Control.removeDisposeListener方法的具体用法?Java Control.removeDisposeListener怎么用?Java Control.removeDisposeListener使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.swt.widgets.Control
的用法示例。
在下文中一共展示了Control.removeDisposeListener方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: removeControlDisposeListener
import org.eclipse.swt.widgets.Control; //导入方法依赖的package包/类
/**
* Removes a {@link DisposeListener} from the created {@link Control}. Listeners can be removed either before or
* after the Control is created.
*
* @param disposeListener The {@link DisposeListener} to remove.
*
* @see Control#removeDisposeListener(DisposeListener)
*/
public void removeControlDisposeListener(DisposeListener disposeListener) {
Control control = getControl();
if (control != null) {
control.removeDisposeListener(disposeListener);
}
else if (_DisposeListeners != null) {
_DisposeListeners.remove(disposeListener);
}
}
示例2: removeViewerControlDisposeListener
import org.eclipse.swt.widgets.Control; //导入方法依赖的package包/类
private void removeViewerControlDisposeListener() {
StructuredViewer viewer = getViewer();
if (viewer == null) {
return;
}
Control control = viewer.getControl();
control.removeDisposeListener(_ControlDisposeListener);
}
示例3: unhookViewer
import org.eclipse.swt.widgets.Control; //导入方法依赖的package包/类
protected void unhookViewer(Viewer viewer) {
if (_SelectionProviderDisposeListener != null) {
Control control = viewer.getControl();
control.removeDisposeListener(_SelectionProviderDisposeListener);
}
}