diff options
author | Scott Kovatch <skovatch> | 2010-10-13 18:07:23 +0000 |
---|---|---|
committer | Scott Kovatch <skovatch> | 2010-10-13 18:07:23 +0000 |
commit | dbc3f579c8454ac59e01ac2d56752eda0d58b6cd (patch) | |
tree | b5eb5ee96acfce462daca5c50fe1bfb109808b42 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java | |
parent | 0279ac89ad933bec67322b956321e83b2a1ac93a (diff) | |
download | eclipse.platform.swt-dbc3f579c8454ac59e01ac2d56752eda0d58b6cd.tar.gz eclipse.platform.swt-dbc3f579c8454ac59e01ac2d56752eda0d58b6cd.tar.xz eclipse.platform.swt-dbc3f579c8454ac59e01ac2d56752eda0d58b6cd.zip |
222859 - NSToolbar-based ToolBar on Cocoa. Added Shell.getToolBar() for all platforms (mostly null right now).
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java index 53576155cc..2cf8998b2e 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java @@ -770,6 +770,29 @@ Composite findDeferredControl () { return layoutCount > 0 ? this : null; } +/** + * WARNING: API UNDER COSTRUCTION + * This API should be considered experimental and subject to change before the final release. + * + * Returns the instance of the ToolBar object representing the tool bar that can appear on the + * trim of the shell. This will return <code>null</code> if the platform does not support tool bars that + * not part of the content area of the shell, or if the style of the shell does not support a + * tool bar. + * <p> + * + * @return a ToolBar object representing the window's tool bar or null. + * + * @exception SWTException <ul> + * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> + * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> + * </ul> + * + * @since 3.7 + */ +public ToolBar getToolBar() { + return null; +} + boolean hasBorder () { return false; } |