本文整理匯總了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);
}
}