Package org.apache.geronimo.st.v21.ui.sections

Examples of org.apache.geronimo.st.v21.ui.sections.GBeanSection


     *
     * @see org.apache.geronimo.ui.pages.AbstractGeronimoFormPage#fillBody(org.eclipse.ui.forms.IManagedForm)
     */
    protected void fillBody(IManagedForm managedForm) {
        managedForm.addPart(new DependencySection(getDeploymentPlan(), JAXBModelUtils.getEnvironment(getDeploymentPlan()), body, toolkit, getStyle()));
        managedForm.addPart(new GBeanSection(getDeploymentPlan(), JAXBModelUtils.getGbeans(getDeploymentPlan()), body, toolkit, getStyle()));
        managedForm.addPart(new ClassFilterSection(getDeploymentPlan(), JAXBModelUtils.getEnvironment(getDeploymentPlan()), body, toolkit, getStyle(), true, true));
        managedForm.addPart(new ClassFilterSection(getDeploymentPlan(), JAXBModelUtils.getEnvironment(getDeploymentPlan()), body, toolkit, getStyle(), true, false));

        if (ApplicationType.class.isInstance(getDeploymentPlan().getValue())) {
          ApplicationType application = (ApplicationType)((AbstractGeronimoDeploymentPlanEditor) getEditor()).getDeploymentPlan().getValue();
View Full Code Here


        customAssemblyButton.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
        customAssemblyButton.addSelectionListener(new SelectionListener() {
            public void widgetSelected(SelectionEvent e) {
                // if the server is started, then we can bring up the dialog
                if (isServerRunning()) {
                    GeronimoServerPluginManager pluginManager = new GeronimoServerPluginManager (gs.getServer());
                    ServerCustomAssemblyWizard wizard = new ServerCustomAssemblyWizard (pluginManager);
                    WizardDialog dialog = new WizardDialog(Display.getCurrent().getActiveShell(), wizard);
                    dialog.open();
                    if (dialog.getReturnCode() == Dialog.OK) {
                    }
                } else {
                    MessageDialog.openError(Display.getCurrent().getActiveShell(), CommonMessages.errorOpenWizard, CommonMessages.serverNotStarted);
                }
            }

            public void widgetDefaultSelected(SelectionEvent e) {
            }
        });
       
        pluginManagerButton = toolkit.createButton(composite, CommonMessages.convertAppsToPlugins, SWT.PUSH);
        pluginManagerButton.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
        pluginManagerButton.addSelectionListener(new SelectionListener() {
            public void widgetSelected(SelectionEvent e) {
                // if the server is started, then we can bring up the dialog
                if (isServerRunning()) {
                    GeronimoServerPluginManager pluginManager = new GeronimoServerPluginManager (gs.getServer());
                    ServerPluginManagerWizard wizard = new ServerPluginManagerWizard (pluginManager);
                    ServerPluginManagerDialog dialog = new ServerPluginManagerDialog(Display.getCurrent().getActiveShell(), wizard);
                    dialog.open();
                    if (dialog.getReturnCode() == Dialog.OK) {
                    }
View Full Code Here

     * (non-Javadoc)
     *
     * @see org.apache.geronimo.st.ui.editors.AbstractGeronimoFormContentLoader#addApplicationPlanPages(org.eclipse.ui.forms.editor.FormEditor)
     */
    public void addApplicationClientPlanPages(FormEditor editor) throws PartInitException {
        editor.addPage(new AppClientGeneralPage(editor, "appclientgeneralpage", CommonMessages.editorTabGeneral));
        editor.addPage(createNamingFormPage(editor));
        editor.addPage(new AppClientSecurityPage(editor, "securitypage", CommonMessages.editorTabSecurity));
        editor.addPage(createDeploymentFormPage(editor));
    }
View Full Code Here

     * @see org.apache.geronimo.st.ui.editors.AbstractGeronimoFormContentLoader#addApplicationPlanPages(org.eclipse.ui.forms.editor.FormEditor)
     */
    public void addApplicationClientPlanPages(FormEditor editor) throws PartInitException {
        editor.addPage(new AppClientGeneralPage(editor, "appclientgeneralpage", CommonMessages.editorTabGeneral));
        editor.addPage(createNamingFormPage(editor));
        editor.addPage(new AppClientSecurityPage(editor, "securitypage", CommonMessages.editorTabSecurity));
        editor.addPage(createDeploymentFormPage(editor));
    }
View Full Code Here

     * (non-Javadoc)
     *
     * @see org.apache.geronimo.st.ui.editors.AbstractGeronimoFormContentLoader#addApplicationPlanPages(org.eclipse.ui.forms.editor.FormEditor)
     */
    public void addApplicationPlanPages(FormEditor editor) throws PartInitException {
        editor.addPage(new AppGeneralPage(editor, "appgeneralpage", CommonMessages.editorTabGeneral));
        editor.addPage(new SecurityPage(editor, "securitypage", CommonMessages.editorTabSecurity));
        editor.addPage(new ConnectorPage(editor,"connectorpage",CommonMessages.editorTabConnector));
        editor.addPage(createDeploymentFormPage(editor));
    }
View Full Code Here

     * (non-Javadoc)
     *
     * @see org.apache.geronimo.st.ui.editors.AbstractGeronimoFormContentLoader#addConnectorPlanPages(org.eclipse.ui.forms.editor.FormEditor)
     */
    public void addConnectorPlanPages(FormEditor editor) throws PartInitException {
        editor.addPage(new ConnectorOverviewPage(editor, "connectoroverview", CommonMessages.editorTabGeneral));
        editor.addPage(createDeploymentFormPage(editor));
    }
View Full Code Here

     * @see org.apache.geronimo.st.ui.editors.AbstractGeronimoFormContentLoader#addApplicationPlanPages(org.eclipse.ui.forms.editor.FormEditor)
     */
    public void addApplicationPlanPages(FormEditor editor) throws PartInitException {
        editor.addPage(new AppGeneralPage(editor, "appgeneralpage", CommonMessages.editorTabGeneral));
        editor.addPage(new SecurityPage(editor, "securitypage", CommonMessages.editorTabSecurity));
        editor.addPage(new ConnectorPage(editor,"connectorpage",CommonMessages.editorTabConnector));
        editor.addPage(createDeploymentFormPage(editor));
    }
View Full Code Here

     * refresh. If the deploymentpage has not been initialized, catch a
     * NullPointerException and just ignore it.
     */
    private void notifyExtModuleSectionToRefresh() {
  try {
      ConnectorPage connectorPage = (ConnectorPage) this.getManagedForm()
        .getContainer();
      FormEditor editor = connectorPage.getEditor();
      IFormPart[] parts = editor.findPage("deploymentpage")
        .getManagedForm().getParts();
      ExtModuleSection extModuleSection = null;
      for (IFormPart part : parts) {
    if (ExtModuleSection.class.isInstance(part)) {
View Full Code Here

    private NamingFormPage createNamingFormPage(FormEditor editor) {
        return new NamingFormPage(editor, "namingpage", CommonMessages.editorTabNaming);
    }

    private DeploymentPage createDeploymentFormPage(FormEditor editor) {
        return new DeploymentPage(editor, "deploymentpage", CommonMessages.editorTabDeployment);
    }
View Full Code Here

     * If the connectorpage has not been initialized,then catch a
     * NullPointerException and just ignore it.
     */
    private void notifySecurityRealmSectionToRefresh() {
  try {
      DeploymentPage deploymentPage = (DeploymentPage) this
        .getManagedForm().getContainer();
      FormEditor editor = deploymentPage.getEditor();
      IFormPart[] parts = editor.findPage("securitypage")
        .getManagedForm().getParts();
      SecurityRealmSection securityRealmSection = null;
      for (IFormPart part : parts) {
    if (SecurityRealmSection.class.isInstance(part)) {
View Full Code Here

TOP

Related Classes of org.apache.geronimo.st.v21.ui.sections.GBeanSection

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.