@Override
public void requestVisible() {
Mode mode = WindowManager.getDefault().findMode("explorer");
if (mode != null) {
mode.dockInto(this);
this.open();
}
}
The above is code inside a TopComponent that, by default (i.e., via layer.xml registration) docks in "explorer" mode. With the above, when the TopComponent is minimized, it will redock in the "explorer" mode whenever the mouse hovers over the button in the left sidebar, i.e., the visualization of the minimized state of TopComponents in "explorer" mode. When the mouse hovers there, the "requestVisible" is triggered.
As a result, there is no "slided in" state at all, i.e., the TopComponent is either minimized or it is docked, it is never "slided in" from minimized state.
This is just what I was interested in. We are using custom modes so I retrieve the current mode for the top component in componentOpened:
mode = WindowManager.getDefault().findMode(this);
Thanks!