HOP404 - Ignore tab close event if canceled
@@ -205,7 +205,13 @@ public class HopDataOrchestrationPerspective implements IHopPerspective {
return;
}
IHopFileTypeHandler typeHandler = tabItemHandler.getTypeHandler();
- remove( typeHandler );
+ boolean isRemoved = remove( typeHandler );
+
+ // Ignore event if canceled
+ if ( ! isRemoved ) {
+ event.doit = false;
+ return;
+ }
// Also switch to the last used tab
// But first remove all from the selection history
