tmf: Update copyright headers in tmf.ui
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / project / wizards / ImportTraceWizard.java
index 5e2923eb0b818d768c7ef734348963156b21bd34..2adba543e2babf4d8ace6799dbd16fb49b1ee402 100644 (file)
@@ -1,11 +1,11 @@
 /*******************************************************************************
- * Copyright (c) 2010, 2011 Ericsson
- * 
+ * Copyright (c) 2010, 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:
  *   Francois Chouinard - Initial API and implementation
  *******************************************************************************/
@@ -18,14 +18,17 @@ import org.eclipse.jface.dialogs.IDialogSettings;
 import org.eclipse.jface.viewers.IStructuredSelection;
 import org.eclipse.jface.viewers.StructuredSelection;
 import org.eclipse.jface.wizard.Wizard;
-import org.eclipse.linuxtools.internal.tmf.ui.TmfUiPlugin;
+import org.eclipse.linuxtools.internal.tmf.ui.Activator;
 import org.eclipse.ui.IImportWizard;
 import org.eclipse.ui.IWorkbench;
 import org.eclipse.ui.ide.IDE;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
 
 /**
- * <b><u>ImportTraceWizard</u></b>
+ * The import trace wizard implementation.
  * <p>
+ * @version 1.0
+ * @author Francois Chouinard
  */
 public class ImportTraceWizard extends Wizard implements IImportWizard {
 
@@ -33,7 +36,7 @@ public class ImportTraceWizard extends Wizard implements IImportWizard {
     // Constants
     // ------------------------------------------------------------------------
 
-    static private final String PLUGIN_ID = TmfUiPlugin.PLUGIN_ID;
+    static private final String PLUGIN_ID = Activator.PLUGIN_ID;
     static private final String IMPORT_WIZARD = "ImportTraceWizard"; //$NON-NLS-1$
     static private final String ICON_PATH = "icons/wizban/trace_import_wiz.png"; //$NON-NLS-1$
 
@@ -48,9 +51,11 @@ public class ImportTraceWizard extends Wizard implements IImportWizard {
     // ------------------------------------------------------------------------
     // Constructor
     // ------------------------------------------------------------------------
-
+    /**
+     * Default constructor
+     */
     public ImportTraceWizard() {
-        IDialogSettings workbenchSettings = TmfUiPlugin.getDefault().getDialogSettings();
+        IDialogSettings workbenchSettings = Activator.getDefault().getDialogSettings();
         IDialogSettings section = workbenchSettings.getSection(IMPORT_WIZARD);
         if (section == null) {
             section = workbenchSettings.addNewSection(IMPORT_WIZARD);
@@ -62,6 +67,10 @@ public class ImportTraceWizard extends Wizard implements IImportWizard {
     // Wizard
     // ------------------------------------------------------------------------
 
+    /*
+     * (non-Javadoc)
+     * @see org.eclipse.ui.IWorkbenchWizard#init(org.eclipse.ui.IWorkbench, org.eclipse.jface.viewers.IStructuredSelection)
+     */
     @Override
     public void init(IWorkbench workbench, IStructuredSelection selection) {
         fWorkbench = workbench;
@@ -73,10 +82,14 @@ public class ImportTraceWizard extends Wizard implements IImportWizard {
         }
 
         setWindowTitle(Messages.ImportTraceWizard_DialogTitle);
-        setDefaultPageImageDescriptor(TmfUiPlugin.imageDescriptorFromPlugin(PLUGIN_ID, ICON_PATH));
+        setDefaultPageImageDescriptor(AbstractUIPlugin.imageDescriptorFromPlugin(PLUGIN_ID, ICON_PATH));
         setNeedsProgressMonitor(true);
     }
 
+    /*
+     * (non-Javadoc)
+     * @see org.eclipse.jface.wizard.Wizard#addPages()
+     */
     @Override
     public void addPages() {
         super.addPages();
@@ -84,6 +97,10 @@ public class ImportTraceWizard extends Wizard implements IImportWizard {
         addPage(fTraceImportWizardPage);
     }
 
+    /*
+     * (non-Javadoc)
+     * @see org.eclipse.jface.wizard.Wizard#performFinish()
+     */
     @Override
     public boolean performFinish() {
         return fTraceImportWizardPage.finish();
This page took 0.024604 seconds and 5 git commands to generate.