use of com.vlsolutions.swing.docking.event.DockableStateWillChangeEvent in project omegat by omegat-org.
the class MainWindowUI method initDocking.
/**
* Create docking desktop panel.
*/
public static DockingDesktop initDocking(final MainWindow mainWindow) {
mainWindow.desktop = new DockingDesktop();
mainWindow.desktop.addDockableStateWillChangeListener(new DockableStateWillChangeListener() {
public void dockableStateWillChange(DockableStateWillChangeEvent event) {
if (event.getFutureState().isClosed()) {
event.cancel();
}
}
});
return mainWindow.desktop;
}
Aggregations