Methods Summary |
---|
public static org.eclipse.swt.widgets.Shell | createMainShell(int styles)
Shell parent = null;
UIFunctionsSWT uiFunctions = UIFunctionsManagerSWT.getUIFunctionsSWT();
if ( uiFunctions != null ){
parent = uiFunctions.getMainShell();
}
if ( parent == null ){
return createShell(SWTThread.getInstance().getDisplay());
}
return( createShell( parent, styles ));
|
public static org.eclipse.swt.widgets.Shell | createShell(org.eclipse.swt.widgets.Display disp, int styles)Creates a shell
For platforms that use a unified menu bar, the shell's menu bar is set to the main window's menu bar
return getRegisteredShell(new AEShell(disp, styles));
|
public static org.eclipse.swt.widgets.Shell | createShell(org.eclipse.swt.widgets.Display disp)Creates a shell
For platforms that use a unified menu bar, the shell's menu bar is set to the main window's menu bar
return getRegisteredShell(new AEShell(disp));
|
public static org.eclipse.swt.widgets.Shell | createShell(org.eclipse.swt.widgets.Shell parent, int styles)Creates a shell
For platforms that use a unified menu bar, the shell's menu bar is set to the main window's menu bar
if (parent != null && parent.isDisposed())
return null;
return getRegisteredShell(new AEShell(parent, styles));
|
public static org.eclipse.swt.widgets.Shell | createShell(org.eclipse.swt.widgets.Shell parent)Creates a shell
For platforms that use a unified menu bar, the shell's menu bar is set to the main window's menu bar
return getRegisteredShell(new AEShell(parent));
|
public static org.eclipse.swt.widgets.Shell | createShell(int styles)Creates a shell
For platforms that use a unified menu bar, the shell's menu bar is set to the main window's menu bar
return getRegisteredShell(new AEShell(styles));
|
private static org.eclipse.swt.widgets.Shell | getRegisteredShell(org.eclipse.swt.widgets.Shell toRegister)Gets the registered shell
Registration entails setting its menu bar if platform uses a unified menu bar.
Also, the shell is added to the shared ShellManager
// register main menu
if (Constants.isOSX) {
UIFunctionsSWT uiFunctions = UIFunctionsManagerSWT.getUIFunctionsSWT();
if (uiFunctions == null)
throw new IllegalStateException("Main window is not initialized yet");
new MainMenu(toRegister);
}
ShellManager.sharedManager().addWindow(toRegister);
return toRegister;
|