Eclipse RCP Application - Window maximize option while launching [message #1801213] |
Tue, 15 January 2019 12:47 |
Amala Francis Messages: 3 Registered: November 2018 |
Junior Member |
|
|
While I launch my application in the linux environment I get a tiny window and then it automatically maximizes to the window size.
I do not know why the application launches in a tiny window size at the start.
Kindly help.
postWindowOpen() and postWindowCreate() are as follows
public void postWindowOpen()
{
IWorkbenchPage activePage = PlatformUI.getWorkbench()
.getActiveWorkbenchWindow().getActivePage();
IViewPart cView = activePage
.findView(IConsoleConstants.ID_CONSOLE_VIEW);
if (cView != null)
{
activePage.hideView(cView);
}
getWindowConfigurer().getWindow().getShell().setMaximized(true);
}
public void postWindowCreate()
{
// TODO Auto-generated method stub
super.postWindowCreate();
Display display = Display.getDefault();
Shell shell = Display.getCurrent().getActiveShell();
if(null != shell && !shell.isDisposed())
{
shell.setMaximized(true);
}
}
Is there any way I can avoid getting this issue?
|
|
|
Powered by
FUDForum. Page generated in 0.08632 seconds