eclipse plugin - i have created the wizard, i want it to position always at the center, can any one help me? -
eclipse plugin - i have created the wizard, i want it to position always at the center, can any one help me? -
private point getfirstmonitorsize() { // here point org.eclipse.swt.graphics.point display display = display.getdefault(); if (display != null) { monitor[] monitors = display.getmonitors(); if (monitors.length == 1) { rectangle clientarea = monitors[0].getclientarea(); homecoming new point(clientarea.width/2, clientarea.height/2); } } homecoming null; }
i found out positioning don't know how utilize in wizard dialog?
you can position wizard dialog calling wizarddialog.getshell().setlocation(..).
eclipse-plugin jface
Comments
Post a Comment