Package org.springframework.ide.eclipse.wizard.ui

Examples of org.springframework.ide.eclipse.wizard.ui.BeanWizardDialog.create()


      public void widgetSelected(SelectionEvent e) {
        IFile sourceFile = getConfigEditor().getResourceFile();
        Shell shell = getFormPage().getSite().getShell();
        if (shell != null && !shell.isDisposed()) {
          BeanWizardDialog dialog = BeanWizardDialog.createBeanWizardDialog(shell, sourceFile, false);
          dialog.create();
          dialog.setBlockOnOpen(true);
          if (dialog.open() == Window.OK) {
            IDOMElement element = dialog.getNewBean();
            getViewer().setSelection(new StructuredSelection(element));
          }
View Full Code Here


    Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
    if (shell != null && !shell.isDisposed()) {
      if (selectedBean != null && selectedFile != null) {
        BeanWizardDialog dialog = BeanWizardDialog.createModifyBeanWizardDialog(shell, selectedFile,
            selectedBean);
        dialog.create();
        dialog.setBlockOnOpen(true);
        dialog.open();
      }
      else {
        MessageDialog.openError(shell, "Cannot Modify Bean", "Selection does not contain an editable bean.");
View Full Code Here

        }
      }

      if (BeansCoreUtils.isBeansConfig(selectedFile)) {
        BeanWizardDialog dialog = BeanWizardDialog.createBeanWizardDialog(shell, selectedFile, true);
        dialog.create();
        dialog.setBlockOnOpen(true);
        dialog.open();
      }
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.