To Define Mode for Non-Sigleton Windows/TopComponent
To Define Mode for Non-Sigleton Windows/TopComponent, add the desired mode in the Topcomponent's open() function.
@Override
public void open() {
Mode mode = WindowManager.getDefault().findMode("rightSlidingSide");
if (mode != null) {
mode.dockInto(this);
super.open();
}
}
@Override
public void open() {
Mode mode = WindowManager.getDefault().findMode("rightSlidingSide");
if (mode != null) {
mode.dockInto(this);
super.open();
}
}
Comments
Post a Comment