/*******************************************************************************
- * 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
*******************************************************************************/
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 {
// 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$
// ------------------------------------------------------------------------
// 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);
// 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;
}
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();
addPage(fTraceImportWizardPage);
}
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.jface.wizard.Wizard#performFinish()
+ */
@Override
public boolean performFinish() {
return fTraceImportWizardPage.finish();