Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse RCP Application - Window maximize option while launching(Eclipse RCP Application - Window maximize option while launching)
Eclipse RCP Application - Window maximize option while launching [message #1801213] Tue, 15 January 2019 12:47
Amala Francis is currently offline Amala FrancisFriend
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?
Previous Topic:Ctrl click to file:// URI with relative path
Next Topic:Not able to free object set to MPart
Goto Forum:
  


Current Time: Thu May 28 05:15:14 GMT 2020

Powered by FUDForum. Page generated in 0.03639 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top