diff --git a/cave/com.raytheon.viz.gfe/plugin.xml b/cave/com.raytheon.viz.gfe/plugin.xml index 7b94acd152..d4b6d2f31d 100644 --- a/cave/com.raytheon.viz.gfe/plugin.xml +++ b/cave/com.raytheon.viz.gfe/plugin.xml @@ -146,9 +146,6 @@ - - - - - - - - - - @@ -988,15 +972,6 @@ definitionId="com.raytheon.viz.gfe.inGFEActionSet"> - - - - - - @@ -1308,15 +1283,6 @@ name="com.raytheon.viz.gfe.separator2" visible="true"> - - - @@ -1501,13 +1467,13 @@ - - - - - - + + + + + + @@ -1983,12 +1949,6 @@ name="Utilities" value="gfe/userPython/utilities"> - - - * - * SOFTWARE HISTORY - * Date Ticket# Engineer Description - * ------------ ---------- ----------- -------------------------- - * Mar 25, 2010 randerso Initial creation - * Sep 15, 2015 #4858 dgilling Add isEnabled. - * - * - * - * @author randerso - * @version 1.0 - */ - -public class IscSendEnableHandler extends AbstractHandler implements - IElementUpdater { - - private final IUFStatusHandler statusHandler = UFStatus - .getHandler(getClass()); - - @Override - public Object execute(ExecutionEvent event) throws ExecutionException { - Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow() - .getShell(); - if (!SimulatedTimeOperations.isTransmitAllowed()) { - SimulatedTimeOperations.displayFeatureLevelWarning(shell, - "ISC Send Enable"); - return null; - } - - DataManager dm = DataManagerUIFactory.getCurrentInstance(); - if (dm != null) { - boolean newState = !Message.inquireLastMessage( - ISCSendStatusChangedMsg.class).isEnabled(); - try { - dm.enableISCsend(newState); - } catch (SimulatedTimeProhibitedOpException e) { - statusHandler.error(e.getLocalizedMessage(), e); - } - } - - return null; - } - - @Override - public boolean isEnabled() { - DataManager dm = DataManagerUIFactory.getCurrentInstance(); - return (dm != null) ? CAVEMode.getMode().equals(CAVEMode.OPERATIONAL) - && dm.requestISC() : false; - } - - @Override - public void updateElement(UIElement element, Map parameters) { - element.setChecked(Message.inquireLastMessage( - ISCSendStatusChangedMsg.class).isEnabled()); - } -}