tmf: Drop generics from ITmfTrace and TmfExperiment
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / internal / tmf / ui / project / handlers / DeleteAction.java
index 3778e3d2cde4d27930fb476bea5fbf2d72160f86..c6f66d2b94dac9353ea75056d8f771235303297e 100644 (file)
@@ -1,11 +1,11 @@
 /*******************************************************************************
 * Copyright (c) 2012 Ericsson
- * 
+ *
  * All rights reserved. This program and the accompanying materials are
  * made available under the terms of the Eclipse Public License v1.0 which
  * accompanies this distribution, and is available at
  * http://www.eclipse.org/legal/epl-v10.html
- * 
+ *
  * Contributors:
  *   Patrick Tasse - Initial API and implementation
  *******************************************************************************/
@@ -20,7 +20,7 @@ import org.eclipse.jface.action.Action;
 import org.eclipse.jface.viewers.ISelection;
 import org.eclipse.jface.viewers.ISelectionProvider;
 import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.linuxtools.internal.tmf.ui.TmfUiPlugin;
+import org.eclipse.linuxtools.internal.tmf.ui.Activator;
 import org.eclipse.linuxtools.tmf.ui.project.model.TmfExperimentElement;
 import org.eclipse.linuxtools.tmf.ui.project.model.TmfTraceElement;
 import org.eclipse.ui.IWorkbenchPage;
@@ -31,8 +31,8 @@ public class DeleteAction extends Action {
     private static final String DELETE_TRACE_COMMAND_ID = "org.eclipse.linuxtools.tmf.ui.command.project.trace.delete"; //$NON-NLS-1$
     private static final String DELETE_EXPERIMENT_COMMAND_ID = "org.eclipse.linuxtools.tmf.ui.command.project.experiment.delete"; //$NON-NLS-1$
 
-    private IWorkbenchPage page;
-    private ISelectionProvider selectionProvider;
+    private final IWorkbenchPage page;
+    private final ISelectionProvider selectionProvider;
     private boolean tracesSelected;
     private boolean experimentsSelected;
 
@@ -68,7 +68,7 @@ public class DeleteAction extends Action {
             if (tracesSelected && experimentsSelected) {
                 return false;
             }
-            return (tracesSelected || experimentsSelected); 
+            return (tracesSelected || experimentsSelected);
         }
         return false;
     }
@@ -87,13 +87,13 @@ public class DeleteAction extends Action {
                 handlerService.executeCommand(DELETE_EXPERIMENT_COMMAND_ID, null);
             }
         } catch (ExecutionException e) {
-            TmfUiPlugin.getDefault().logError("Error deleting resources", e); //$NON-NLS-1$
+            Activator.getDefault().logError("Error deleting resources", e); //$NON-NLS-1$
         } catch (NotDefinedException e) {
-            TmfUiPlugin.getDefault().logError("Error deleting resources", e); //$NON-NLS-1$
+            Activator.getDefault().logError("Error deleting resources", e); //$NON-NLS-1$
         } catch (NotEnabledException e) {
-            TmfUiPlugin.getDefault().logError("Error deleting resources", e); //$NON-NLS-1$
+            Activator.getDefault().logError("Error deleting resources", e); //$NON-NLS-1$
         } catch (NotHandledException e) {
-            TmfUiPlugin.getDefault().logError("Error deleting resources", e); //$NON-NLS-1$
+            Activator.getDefault().logError("Error deleting resources", e); //$NON-NLS-1$
         }
     }
 
This page took 0.026183 seconds and 5 git commands to generate.