Issue #3480 added info logging when procedures are loaded or perspective changes

Change-Id: Ib342ace7c86cf71b0d548dafb7b57b6c9a421624

Former-commit-id: 3bb860eda5 [formerly dd0d6097a5 [formerly c3155a4633e8da5f852667a2af5982fb24438623]]
Former-commit-id: dd0d6097a5
Former-commit-id: 372a2ba352
This commit is contained in:
Brian Clements 2014-08-11 10:54:39 -05:00
parent 9c145d8e2e
commit 0505983ab3
4 changed files with 21 additions and 1 deletions

View file

@ -28,6 +28,8 @@ import org.eclipse.ui.handlers.HandlerUtil;
import com.raytheon.uf.common.localization.LocalizationFile;
import com.raytheon.uf.common.localization.LocalizationUtil;
import com.raytheon.uf.common.status.IUFStatusHandler;
import com.raytheon.uf.common.status.UFStatus;
import com.raytheon.uf.viz.core.procedures.Procedure;
import com.raytheon.uf.viz.d2d.ui.dialogs.procedures.OpenProcedureListDlg;
import com.raytheon.uf.viz.d2d.ui.dialogs.procedures.ProcedureDlg;
@ -47,7 +49,8 @@ import com.raytheon.viz.ui.dialogs.ICloseCallback;
* Sep 13, 2007 chammack Initial Creation.
* Oct 16, 2012 1229 rferrel Change to use ProcedureDlg.displayDialog.
* Oct 16, 2012 1229 rferrel Changes for non-blocking ProcedureListDlg.
* Jun 7, 2013 2074 mnash Don't open the dialog if no procedures are deserialized
* Jun 07, 2013 2074 mnash Don't open the dialog if no procedures are deserialized
* Aug 11, 2014 3480 bclement added logging
* </pre>
*
* @author chammack
@ -57,6 +60,9 @@ public class OpenAWIPSProcedure extends AbstractHandler {
private OpenProcedureListDlg dialog;
private static final IUFStatusHandler log = UFStatus
.getHandler(OpenAWIPSProcedure.class);
/*
* (non-Javadoc)
*
@ -78,6 +84,8 @@ public class OpenAWIPSProcedure extends AbstractHandler {
Procedure p = (Procedure) LoadSerializedXml
.deserialize(f);
if (p != null) {
log.info("Loading display file: "
+ f.getAbsolutePath());
ProcedureDlg.displayDialog(LocalizationUtil
.extractName(selectedFile.getName()), p,
VizWorkbenchManager.getInstance()

View file

@ -102,6 +102,7 @@ import com.raytheon.viz.ui.editor.AbstractEditor;
* Jan 16, 2013 DR 15367 D. Friedman Enable save button for Up/Down changes.
* Feb 25, 2013 1640 bsteffen Dispose old display in BundleLoader
* Jun 7, 2013 2074 mnash Remove resource if doesn't instantiate correctly
* Aug 11, 2014 3480 bclement added info logging when procedure is loaded
* </pre>
*
* @author unknown
@ -863,6 +864,7 @@ public class ProcedureDlg extends CaveSWTDialog {
}
private void load(final Bundle b) {
statusHandler.info("Loading bundle: " + b.getName());
String editorName = null;
if (b.getDisplays().length > 0) {
editorName = DescriptorMap.getEditorId(b.getDisplays()[0]

View file

@ -66,6 +66,7 @@ import com.raytheon.viz.ui.editor.AbstractEditor;
* Mar 21, 2013 1638 mschenke Added method to load procedure to window
* Oct 22, 2013 2491 bsteffen Switch serialization to
* ProcedureXmlManager
* Aug 11, 2014 3480 bclement added info logging to execute()
*
* </pre>
*
@ -95,6 +96,8 @@ public class LoadSerializedXml extends AbstractHandler {
String fileName = fd.getFilterPath() + File.separator
+ fd.getFileName();
statusHandler.info("Loading display file: " + fileName);
Object obj = deserialize(new File(fileName));
try {
if (obj != null) {

View file

@ -41,6 +41,8 @@ import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchPartReference;
import org.eclipse.ui.IWorkbenchWindow;
import com.raytheon.uf.common.status.IUFStatusHandler;
import com.raytheon.uf.common.status.UFStatus;
import com.raytheon.viz.ui.VizWorkbenchManager;
/**
@ -55,6 +57,7 @@ import com.raytheon.viz.ui.VizWorkbenchManager;
* ------------ ---------- ----------- --------------------------
* Apr 21, 2010 mschenke Initial creation
* Mar 21, 2013 1638 mschenke Added method to get managed perspectives
* Aug 11, 2014 3480 bclement added log message in perspectiveOpened()
*
* </pre>
*
@ -64,6 +67,9 @@ import com.raytheon.viz.ui.VizWorkbenchManager;
public class VizPerspectiveListener implements IPerspectiveListener4 {
private static final IUFStatusHandler log = UFStatus
.getHandler(VizPerspectiveListener.class);
private static final String PERSPECTIVE_MANAGER_EXTENSION = "com.raytheon.viz.ui.perspectiveManager";
private static final String PERSPECTIVE_ID = "perspectiveId";
@ -257,6 +263,7 @@ public class VizPerspectiveListener implements IPerspectiveListener4 {
@Override
public void perspectiveOpened(IWorkbenchPage page,
IPerspectiveDescriptor perspective) {
log.info("Opened perspective: " + perspective.getId());
}
@Override