public ModelImportWizard( Class<? extends MApplicationElement> applicationElement, AbstractComponentEditor editor, String hint, IResourcePool resourcePool) { this.applicationElement = applicationElement; this.editor = editor; this.hint = hint; this.application = (MApplication) editor.getEditor().getModelProvider().getRoot().get(0); setWindowTitle("Model " + applicationElement.getSimpleName() + " Import Wizard"); setDefaultPageImageDescriptor( ImageDescriptor.createFromImage( resourcePool.getImageUnchecked(ResourceProvider.IMG_Wizban16_imp3x_wiz))); Assert.isNotNull( RegistryUtil.getStruct(applicationElement, getHint()), "Unknown Element: " + applicationElement.getClass().getName()); }
/** * @return the extension point id associated with the {@link MApplicationElement} that is passed * in the constructor of this wizard. * @see #MAPPING_EXTENSION * @see #getApplicationElement() */ protected String getExtensionPoint() { return RegistryUtil.getStruct(applicationElement, getHint()).getExtensionPoint(); }
/** * @return the attribute name of the {@link IConfigurationElement} that contains the description * that you want to see in the wizard page. * @see #MAPPING_NAME */ protected String getMappingName() { return RegistryUtil.getStruct(applicationElement, getHint()).getMappingName(); }