KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > ui > nls > ExternalizeStringsWizard


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.pde.internal.ui.nls;
12
13 import java.lang.reflect.InvocationTargetException JavaDoc;
14
15 import org.eclipse.jface.wizard.Wizard;
16 import org.eclipse.pde.internal.ui.PDEPluginImages;
17 import org.eclipse.pde.internal.ui.PDEUIMessages;
18
19 public class ExternalizeStringsWizard extends Wizard {
20     private ExternalizeStringsWizardPage page1;
21     private ModelChangeTable fModelChangeTable;
22
23     public ExternalizeStringsWizard(ModelChangeTable changeTable) {
24         setWindowTitle(PDEUIMessages.ExternalizeStringsWizard_title);
25         setDefaultPageImageDescriptor(PDEPluginImages.DESC_EXTSTR_WIZ);
26         setNeedsProgressMonitor(true);
27         fModelChangeTable = changeTable;
28     }
29     
30     public boolean performFinish() {
31         try {
32             getContainer().run(false, false,
33                     new ExternalizeStringsOperation(page1.getChangeFiles()));
34         } catch (InvocationTargetException JavaDoc e) {
35             return false;
36         } catch (InterruptedException JavaDoc e) {
37             return false;
38         }
39         return true;
40     }
41     
42     public void addPages() {
43         page1 = new ExternalizeStringsWizardPage(fModelChangeTable);
44         addPage(page1);
45     }
46 }
47
Popular Tags