@Override public void callback(final int returncode) { if(SheetCallback.CANCEL_OPTION == returncode) { window.orderOut(null); } } };
@Override public void collectionItemRemoved(Object item) { if(item.equals(bookmark)) { final NSWindow window = window(); if(null != window) { window.orderOut(null); } } }
/** * Called by the runtime after a sheet has been dismissed. Ends any modal session and * sends the returncode to the callback implementation. Also invalidates this controller to be * garbage collected and notifies the lock object * * @param sheet Sheet window * @param returncode Identifier for the button clicked by the user * @param contextInfo Not used */ public void sheetDidClose_returnCode_contextInfo(final NSWindow sheet, final int returncode, final ID contextInfo) { sheet.endEditingFor(null); sheet.orderOut(contextInfo); this.returncode = returncode; callback.callback(returncode); signal.countDown(); }
@Override public void cleanup() { super.cleanup(); if(transfer.isReset() && transfer.isComplete()) { if(preferences.getBoolean("queue.window.open.transfer.stop")) { if(!(collection.numberOfRunningTransfers() > 0)) { window.orderOut(null); } } } } };
@Action public void showActivityWindowClicked(final ID sender) { ActivityController c = ActivityControllerFactory.get(); if(c.isVisible()) { c.window().orderOut(null); } else { c.window().orderFront(null); } }