1 11 package org.eclipse.pde.internal.ui.nls; 12 13 import java.lang.reflect.InvocationTargetException ; 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 e) { 35 return false; 36 } catch (InterruptedException 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 |