Set location of feature dialog to center
Location is specified left-top coordinate, x.y.
Feature dialog get parent's left-top and size.
Decide location using size, left-top of parent, own.
Change-Id: I30779934dd4c18912051a6c69ca02c4e409814f5
Signed-off-by: joon.c.baek <joon.c.baek@samsung.com>
return false;
}
IDECommunicator.setOpenWelcomeDlg(true);
+
+ int dialogLocationX = shell.getParent().getLocation().x + (shell.getParent().getSize().x - 1010)/2;
+ int dialogLocationY = shell.getParent().getLocation().y + (shell.getParent().getSize().y - 620)/2;
+ shell.setLocation(dialogLocationX, dialogLocationY);
shell.setSize(1010, 620);
shell.setLayout(new FormLayout());
shell.setBackground(ColorResources.WHITE);