Package org.springframework.ide.eclipse.config.ui.wizards

Examples of org.springframework.ide.eclipse.config.ui.wizards.AbstractConfigWizard


            def.getAttribute(CommonActionsExtensionPointConstants.ATTR_DESCRIPTION), SWT.WRAP);
        wizardLink.addHyperlinkListener(new HyperlinkAdapter() {
          @Override
          public void linkActivated(HyperlinkEvent e) {
            try {
              AbstractConfigWizard wizard = (AbstractConfigWizard) def
                  .createExecutableExtension(CommonActionsExtensionPointConstants.ATTR_CLASS);
              wizard.initialize(getFormPage().getEditor().getResourceFile(), getFormPage().getEditor()
                  .getDomDocument(), def
                  .getAttribute(CommonActionsExtensionPointConstants.ATTR_NAMESPACE_URI));
              Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
              if (shell != null && !shell.isDisposed()) {
                WizardDialog dialog = new WizardDialog(shell, wizard);
                dialog.create();
                dialog.setBlockOnOpen(true);
                if (dialog.open() == Window.OK) {
                  IDOMElement element = wizard.getNewElement();
                  getMasterPart().getViewer().setSelection(new StructuredSelection(element));
                }
              }
            }
            catch (CoreException e1) {
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.config.ui.wizards.AbstractConfigWizard

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.