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

Examples of org.springframework.ide.eclipse.wizard.ui.BeanWizardDialog


      @Override
      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


  @Override
  public void run() {
    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

              Messages.getString("CreateNewBeanDefAction.ERROR_DIALOG_MESSAGE"));
        }
      }

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

TOP

Related Classes of org.springframework.ide.eclipse.wizard.ui.BeanWizardDialog

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.