rm laps tool

This commit is contained in:
mjames-upc 2018-08-27 15:06:06 -06:00
parent eacb3727d0
commit e9886ecfdd
4 changed files with 1 additions and 166 deletions

View file

@ -1,43 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--
This_software_was_developed_and_/_or_modified_by_Raytheon_Company,
pursuant_to_Contract_DG133W-05-CQ-1067_with_the_US_Government.
U.S._EXPORT_CONTROLLED_TECHNICAL_DATA
This_software_product_contains_export-restricted_data_whose
export/transfer/disclosure_is_restricted_by_U.S._law._Dissemination
to_non-U.S._persons_whether_in_the_United_States_or_abroad_requires
an_export_license_or_other_authorization.
Contractor_Name:________Raytheon_Company
Contractor_Address:_____6825_Pine_Street,_Suite_340
________________________Mail_Stop_B8
________________________Omaha,_NE_68106
________________________402.291.0100
See_the_AWIPS_II_Master_Rights_File_("Master_Rights_File.pdf")_for
further_licensing_information.
-->
<!--
This is an absolute override file, indicating that a higher priority
version of the file will completely replace a lower priority version
of the file.
-->
<menuTemplate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<contribute xsi:type="command"
commandId="com.raytheon.viz.awipstools.lapstools" menuText="LAPS tools..."
id="lapsTools" />
<!-- example arbitrary command below, commandAction parameter is required, _
the others default to false if undefined. If captureOutput is true then after
the launched command closes a dialog box will show the contents printed to
standard output. If showStdOut is true then standard output will be echoed on
standard out of cave ( not very useful ) -->
<!--
<contribute xsi:type="command"
commandId="com.raytheon.viz.awipstools.arbitrary" menuText="ps -A">
<parameter key="commandAction" value="/bin/ps -A" />
<parameter key="captureOutput" value="true" />
<parameter key="showStdOut" value="false" />
</contribute>
-->
</menuTemplate>

View file

@ -31,7 +31,6 @@
<include installTo="menu:tools?after=tools.E" fileName="menus/tools/baseTools-menuE.xml"/> <include installTo="menu:tools?after=tools.E" fileName="menus/tools/baseTools-menuE.xml"/>
<include installTo="menu:tools?after=tools.Fe" fileName="menus/tools/baseTools-menuF.xml"/> <include installTo="menu:tools?after=tools.Fe" fileName="menus/tools/baseTools-menuF.xml"/>
<include installTo="menu:tools?after=tools.H" fileName="menus/tools/baseTools-menuH.xml"/> <include installTo="menu:tools?after=tools.H" fileName="menus/tools/baseTools-menuH.xml"/>
<include installTo="menu:tools?after=tools.L" fileName="menus/tools/baseTools-menuL.xml"/>
<include installTo="menu:tools?after=tools.Pu" fileName="menus/tools/baseTools-menuP.xml"/> <include installTo="menu:tools?after=tools.Pu" fileName="menus/tools/baseTools-menuP.xml"/>
<include installTo="menu:tools?after=tools.Ran" fileName="menus/tools/baseTools-menuR.xml"/> <include installTo="menu:tools?after=tools.Ran" fileName="menus/tools/baseTools-menuR.xml"/>
<include installTo="menu:tools?after=tools.S" fileName="menus/tools/baseTools-menuS.xml"/> <include installTo="menu:tools?after=tools.S" fileName="menus/tools/baseTools-menuS.xml"/>

View file

@ -142,10 +142,6 @@
class="com.raytheon.viz.awipstools.ui.action.HomeToolAction" class="com.raytheon.viz.awipstools.ui.action.HomeToolAction"
commandId="com.raytheon.viz.awipstools.home"> commandId="com.raytheon.viz.awipstools.home">
</handler> </handler>
<handler
class="com.raytheon.viz.awipstools.ui.action.LapsToolsAction"
commandId="com.raytheon.viz.awipstools.lapstools">
</handler>
<handler <handler
class="com.raytheon.viz.awipstools.ui.action.UnitsCalculatorAction" class="com.raytheon.viz.awipstools.ui.action.UnitsCalculatorAction"
commandId="com.raytheon.viz.awipstools.unitscalculator"> commandId="com.raytheon.viz.awipstools.unitscalculator">

View file

@ -1,117 +0,0 @@
/**
* This software was developed and / or modified by Raytheon Company,
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
*
* U.S. EXPORT CONTROLLED TECHNICAL DATA
* This software product contains export-restricted data whose
* export/transfer/disclosure is restricted by U.S. law. Dissemination
* to non-U.S. persons whether in the United States or abroad requires
* an export license or other authorization.
*
* Contractor Name: Raytheon Company
* Contractor Address: 6825 Pine Street, Suite 340
* Mail Stop B8
* Omaha, NE 68106
* 402.291.0100
*
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
* further licensing information.
**/
package com.raytheon.viz.awipstools.ui.action;
import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;
import org.eclipse.swt.widgets.MessageBox;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.PlatformUI;
import com.raytheon.uf.common.status.IUFStatusHandler;
import com.raytheon.uf.common.status.UFStatus;
import com.raytheon.uf.common.status.UFStatus.Priority;
import com.raytheon.uf.viz.core.exception.VizException;
import com.raytheon.viz.awipstools.ui.dialog.LAPSToolsDlg;
import com.raytheon.viz.ui.EditorUtil;
/**
* TODO Add Description
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* May 2009 # bsteffen Initial creation
* Nov 2013 # mccaslin Only one GUI dialog at a time
* Oct 2014 # mccaslin Improved error handeling
*
* </pre>
*
* @author bsteffen
* @version 1.0
*/
public class LapsToolsAction extends AbstractHandler {
private static final transient IUFStatusHandler statusHandler = UFStatus
.getHandler(LapsToolsAction.class);
/**
* LAPS Tools dialog.
*/
private static LAPSToolsDlg lapsToolsDlg = null;
public static LAPSToolsDlg getLapsToolsDlg() {
return lapsToolsDlg;
}
public Object execute(ExecutionEvent arg0) throws ExecutionException {
Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow()
.getShell();
if (lapsToolsDlg == null) {
try {
lapsToolsDlg = new LAPSToolsDlg(shell);
lapsToolsDlg.addListener(SWT.Dispose, new Listener() {
@Override
public void handleEvent(Event event) {
lapsToolsDlg = null;
}
});
if (lapsToolsDlg.isLapsInstalled()) {
lapsToolsDlg.open();
} else {
String whatLapsIs = "LAPS is not installed. ";
// Note: Go through the LAPS v2.0 Scripting Interface first,
// if you find that LAPS is not installed.
MessageBox mb = new MessageBox(EditorUtil.getActiveEditor()
.getSite().getShell(), SWT.ICON_ERROR | SWT.OK);
mb.setText("Cannot open the LAPS tool");
mb.setMessage(whatLapsIs);
mb.open();
lapsToolsDlg = null;
// int val = mb.open();
// if (val == SWT.OK) {
// AlertViz Customization Update
// return false;
// }
}
} catch (VizException e) {
statusHandler.handle(Priority.PROBLEM,
"Error: Cannot open LAPS V2.0 Tools GUI", e);
}
}
return null;
}
}