/*******************************************************************************
* 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
*******************************************************************************/
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;
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;
if (tracesSelected && experimentsSelected) {
return false;
}
- return (tracesSelected || experimentsSelected);
+ return (tracesSelected || experimentsSelected);
}
return false;
}
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$
}
}