1 20 21 package org.apache.directory.ldapstudio.schemas.view.wizards; 22 23 24 import org.apache.directory.ldapstudio.schemas.model.SchemaPool; 25 import org.eclipse.jface.viewers.IStructuredSelection; 26 import org.eclipse.jface.wizard.Wizard; 27 import org.eclipse.ui.INewWizard; 28 import org.eclipse.ui.IWorkbench; 29 30 31 37 public class CreateANewSchemaWizard extends Wizard implements INewWizard 38 { 39 40 private CreateANewSchemaWizardPage page; 41 42 43 46 public boolean performFinish() 47 { 48 SchemaPool pool = SchemaPool.getInstance(); 49 pool.addNewSchema( this.page.getNameField() ); 50 return true; 51 } 52 53 54 57 public void addPages() 58 { 59 this.page = new CreateANewSchemaWizardPage(); 60 addPage( page ); 61 } 62 63 64 67 public void init( IWorkbench workbench, IStructuredSelection selection ) 68 { 69 } 70 } 71 | Popular Tags |