sysmodelmgr/com.symbian.smt.gui/src/com/symbian/smt/gui/exportwizards/ExportSystemModelDiagram.java
changeset 0 522a326673b6
equal deleted inserted replaced
-1:000000000000 0:522a326673b6
       
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 package com.symbian.smt.gui.exportwizards;
       
    17 
       
    18 import org.eclipse.jface.viewers.IStructuredSelection;
       
    19 import org.eclipse.jface.wizard.Wizard;
       
    20 import org.eclipse.ui.IExportWizard;
       
    21 import org.eclipse.ui.IWorkbench;
       
    22 
       
    23 public class ExportSystemModelDiagram extends Wizard implements IExportWizard {
       
    24 
       
    25 	private ExportSelectionPage page;
       
    26 
       
    27 	public void addPages(IStructuredSelection selection) {
       
    28 		page = new ExportSelectionPage(selection);
       
    29 		addPage(page);
       
    30 	}
       
    31 
       
    32 	public void init(IWorkbench workbench, IStructuredSelection selection) {
       
    33 		setWindowTitle("System Model Manager Export Wizard");
       
    34 		addPages(selection);
       
    35 	}
       
    36 
       
    37 	@Override
       
    38 	public boolean performFinish() {
       
    39 		return page.copyFile();
       
    40 	}
       
    41 }