本文整理了Java中org.eclipse.swt.widgets.ToolBar.isDisposed()
方法的一些代码示例,展示了ToolBar.isDisposed()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ToolBar.isDisposed()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.ToolBar
类名称:ToolBar
方法名:isDisposed
暂无
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.jface
/**
* Returns whether the tool bar control is created and not disposed.
*
* @return <code>true</code> if the control is created and not disposed,
* <code>false</code> otherwise
*/
private boolean toolBarExist() {
return toolBar != null && !toolBar.isDisposed();
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface
/**
* Returns whether the tool bar control is created and not disposed.
*
* @return <code>true</code> if the control is created and not disposed,
* <code>false</code> otherwise
*/
private boolean toolBarExist() {
return toolBar != null && !toolBar.isDisposed();
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.jface
/**
* Returns whether the tool bar control is created and not disposed.
*
* @return <code>true</code> if the control is created and not disposed,
* <code>false</code> otherwise
*/
private boolean toolBarExist() {
return toolBar != null && !toolBar.isDisposed();
}
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
public boolean setFocus(IWidgetTokenOwner owner) {
if (fToolBar != null && ! fToolBar.isDisposed())
showMenu(fToolBar);
return true;
}
}
代码示例来源:origin: org.eclipse.xtext/ui
public boolean setFocus(IWidgetTokenOwner owner) {
if (toolBar != null && !toolBar.isDisposed())
showMenu(toolBar);
return true;
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
@Override
public boolean setFocus(IWidgetTokenOwner owner) {
if (fToolBar != null && ! fToolBar.isDisposed())
showMenu(fToolBar);
return true;
}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.jface
public int getItemCount() {
ToolBar toolBar = getControl();
if (toolBar == null || toolBar.isDisposed()) {
return 0;
}
return toolBar.getItemCount();
}
代码示例来源:origin: org.eclipse.e4.ui.workbench.renderers/swt
/**
* Disposes of the view menu associated with the given tab folder.
*
* @param ctf
* the tab folder to clear of its view menu
*/
public void disposeViewMenu(CTabFolder ctf) {
ToolBar vmTB = getViewMenuTB(ctf);
if (vmTB != null && !vmTB.isDisposed())
vmTB.dispose();
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface
@Override
public int getItemCount() {
ToolBar toolBar = getControl();
if (toolBar == null || toolBar.isDisposed()) {
return 0;
}
return toolBar.getItemCount();
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.debug.ui
/**
* @see org.eclipse.ui.IWindowListener#windowClosed(org.eclipse.ui.IWorkbenchWindow)
*/
@Override
public void windowClosed(IWorkbenchWindow window) {
ToolBar bar = fToolbars.remove(window);
if(bar != null && !bar.isDisposed()) {
bar.removeMouseTrackListener(fMouseListener);
}
if(fWindows.remove(window)) {
window.getSelectionService().removeSelectionListener(this);
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.jface
@Override
public int getItemCount() {
ToolBar toolBar = getControl();
if (toolBar == null || toolBar.isDisposed()) {
return 0;
}
return toolBar.getItemCount();
}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.jface
/**
* Implements <code>IProgressMonitor.done</code>.
* @see IProgressMonitor#done()
*/
public void done() {
fLabel.setText("");//$NON-NLS-1$
fSubTaskName = ""; //$NON-NLS-1$
fProgressIndicator.sendRemainingWork();
fProgressIndicator.done();
if (fToolBar != null && !fToolBar.isDisposed())
fToolBar.setVisible(false);
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface
/**
* Makes the Cancel button visible.
*
*/
protected void showButton() {
if (fToolBar != null && !fToolBar.isDisposed()) {
fToolBar.setVisible(true);
fToolBar.setEnabled(true);
fToolBar.setCursor(fStopButtonCursor);
fCancelButtonIsVisible = true;
}
}
代码示例来源:origin: org.eclipse.e4.ui.workbench.addons/swt
Composite getShellClientComposite() {
if (trimStackTB == null || trimStackTB.isDisposed()) {
return null;
}
Shell theShell = trimStackTB.getShell();
if (!(theShell.getLayout() instanceof TrimmedPartLayout))
return null;
TrimmedPartLayout tpl = (TrimmedPartLayout) theShell.getLayout();
return tpl.clientArea;
}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.jface
/**
* Makes the Cancel button visible.
*
*/
protected void showButton() {
if (fToolBar != null && !fToolBar.isDisposed()) {
fToolBar.setVisible(true);
fToolBar.setEnabled(true);
fToolBar.setCursor(fStopButtonCursor);
fCancelButtonIsVisible = true;
}
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
@Override
public void widgetDisposed(DisposeEvent e) {
if (JavaPlugin.DEBUG_BREADCRUMB_ITEM_DROP_DOWN)
System.out.println("==> shell disposed"); //$NON-NLS-1$
display.removeFilter(SWT.FocusIn, focusListener);
display.removeFilter(SWT.FocusOut, focusListener);
if (!fToolBar.isDisposed()) {
fToolBar.getShell().removeControlListener(controlListener);
}
}
});
代码示例来源:origin: org.eclipse.e4.ui.workbench.renderers/swt
@Override
public void childRendered(MElementContainer<MUIElement> parentElement,
MUIElement element) {
super.childRendered(parentElement, element);
ToolBar toolbar = (ToolBar) getUIContainer(element);
if (toolbar != null && !toolbar.isDisposed()) {
toolbar.getShell().layout(new Control[] { toolbar }, SWT.DEFER);
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.jface
/**
* Makes the Cancel button visible.
*
*/
protected void showButton() {
if (fToolBar != null && !fToolBar.isDisposed()) {
fToolBar.setVisible(true);
fToolBar.setEnabled(true);
fToolBar.setCursor(getDisplay().getSystemCursor(SWT.CURSOR_ARROW));
fCancelButtonIsVisible = true;
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.debug.ui
@Override
public void widgetDisposed(DisposeEvent e) {
if (DebugUIPlugin.DEBUG_BREADCRUMB) {
DebugUIPlugin.trace("==> shell disposed"); //$NON-NLS-1$
}
display.removeFilter(SWT.FocusIn, focusListener);
display.removeFilter(SWT.FocusOut, focusListener);
if (!fToolBar.isDisposed()) {
fToolBar.getShell().removeControlListener(controlListener);
}
}
});
代码示例来源:origin: org.eclipse.e4.ui.workbench.renderers/swt
public void clearTR(CTabFolder ctf) {
disposeViewMenu(ctf);
ToolBar vmTB = getViewMenuTB(ctf);
if (vmTB != null && !vmTB.isDisposed())
vmTB.dispose();
MToolBar viewTBModel = getViewTB(ctf);
if (viewTBModel != null && viewTBModel.getWidget() != null)
viewTBModel.setVisible(false);
ctf.setTopRight(null);
getTRComposite(ctf).setVisible(false);
}
内容来源于网络,如有侵权,请联系作者删除!