Here's a simple way of achieving above
private void maximizeActiveWindow() {
final Shell activeShell = bot.activeShell().widget;
VoidResult maximizeShell = new VoidResult() {
@Override
public void run() {
activeShell.setMaximized(true);
}
};
syncExec(maximizeShell);
}
There's another way of doing above here.
private void maximizeActiveWindow() {
final Shell activeShell = bot.activeShell().widget;
VoidResult maximizeShell = new VoidResult() {
@Override
public void run() {
activeShell.setMaximized(true);
}
};
syncExec(maximizeShell);
}
There's another way of doing above here.
No comments:
Post a Comment