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

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

How do I check if an insert was successful with MySQLdb in Python? -