core/com.nokia.carbide.discovery.ui/src/com/nokia/carbide/internal/discovery/ui/wizard/ImportWizard.java
equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 package com.nokia.carbide.internal.discovery.ui.wizard; |
|
18 |
|
19 import org.eclipse.jface.viewers.IStructuredSelection; |
|
20 import org.eclipse.jface.wizard.Wizard; |
|
21 import org.eclipse.ui.IImportWizard; |
|
22 import org.eclipse.ui.IWorkbench; |
|
23 |
|
24 import com.nokia.carbide.discovery.ui.Activator; |
|
25 |
|
26 /** |
|
27 * Wizard for importing installed features from a file and install them |
|
28 */ |
|
29 public class ImportWizard extends Wizard implements IImportWizard { |
|
30 |
|
31 private ImportPage importPage; |
|
32 |
|
33 public ImportWizard() { |
|
34 } |
|
35 |
|
36 @Override |
|
37 public boolean performFinish() { |
|
38 // TODO read from file and install |
|
39 return true; |
|
40 } |
|
41 |
|
42 public void init(IWorkbench workbench, IStructuredSelection selection) { |
|
43 setDefaultPageImageDescriptor(Activator.getImageDescriptor("icons\\install_wiz.gif")); //$NON-NLS-1$ |
|
44 setWindowTitle("Import Installed Feature Configuration"); |
|
45 importPage = new ImportPage(); |
|
46 addPage(importPage); |
|
47 } |
|
48 |
|
49 } |