geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcco...@apache.org
Subject svn commit: r939152 [3/7] - in /geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui: ./ META-INF/ icons/ src/main/java/org/apache/geronimo/st/v30/ui/ src/main/java/org/apache/geronimo/st/v30/ui/actions/ src/main/java/org/apache...
Date Thu, 29 Apr 2010 00:57:15 GMT
Added: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/GeronimoRuntimeWizardFragment.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/GeronimoRuntimeWizardFragment.java?rev=939152&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/GeronimoRuntimeWizardFragment.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/GeronimoRuntimeWizardFragment.java Thu Apr 29 00:57:12 2010
@@ -0,0 +1,483 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.geronimo.st.v30.ui.internal;
+
+import java.io.File;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+
+import org.apache.geronimo.st.v30.core.GeronimoRuntimeDelegate;
+import org.apache.geronimo.st.v30.ui.Activator;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.jdt.launching.IVMInstall;
+import org.eclipse.jdt.launching.IVMInstall2;
+import org.eclipse.jdt.launching.IVMInstallType;
+import org.eclipse.jdt.launching.JavaRuntime;
+import org.eclipse.jface.dialogs.IMessageProvider;
+import org.eclipse.jface.preference.IPreferenceNode;
+import org.eclipse.jface.preference.PreferenceDialog;
+import org.eclipse.jface.preference.PreferenceManager;
+import org.eclipse.jface.window.Window;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.custom.BusyIndicator;
+import org.eclipse.swt.events.ModifyEvent;
+import org.eclipse.swt.events.ModifyListener;
+import org.eclipse.swt.events.SelectionAdapter;
+import org.eclipse.swt.events.SelectionEvent;
+import org.eclipse.swt.events.SelectionListener;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Button;
+import org.eclipse.swt.widgets.Combo;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.DirectoryDialog;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Text;
+import org.eclipse.ui.PartInitException;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.browser.IWebBrowser;
+import org.eclipse.ui.browser.IWorkbenchBrowserSupport;
+import org.eclipse.ui.forms.events.HyperlinkAdapter;
+import org.eclipse.ui.forms.events.HyperlinkEvent;
+import org.eclipse.ui.forms.widgets.FormText;
+import org.eclipse.ui.internal.browser.WorkbenchBrowserSupport;
+import org.eclipse.wst.server.core.IRuntime;
+import org.eclipse.wst.server.core.IRuntimeType;
+import org.eclipse.wst.server.core.IRuntimeWorkingCopy;
+import org.eclipse.wst.server.core.ServerCore;
+import org.eclipse.wst.server.core.TaskModel;
+import org.eclipse.wst.server.core.model.RuntimeDelegate;
+import org.eclipse.wst.server.ui.internal.SWTUtil;
+import org.eclipse.wst.server.ui.wizard.IWizardHandle;
+import org.eclipse.wst.server.ui.wizard.WizardFragment;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class GeronimoRuntimeWizardFragment extends WizardFragment {
+
+    // serverName-N.N or serverName-N.N.N
+    public static final Pattern SERVER_NAME_VERSION_PATTERN = Pattern.compile("(.*-)((\\d+\\.\\d+)(\\.(\\d+))?)");
+
+    private GeronimoRuntimeDelegate geronimoRuntime;
+
+    protected Text installDir;
+
+    private IWizardHandle fWizard;
+
+    protected List<IVMInstall> installedJREs;
+
+    protected String[] jreNames;
+
+    protected Combo combo;
+
+    public GeronimoRuntimeWizardFragment() {
+        super();
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.eclipse.wst.server.ui.wizard.WizardFragment#hasComposite()
+     */
+    public boolean hasComposite() {
+        return true;
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see
+     * org.eclipse.wst.server.ui.wizard.WizardFragment#createComposite(org.eclipse
+     * .swt.widgets.Composite, org.eclipse.wst.server.ui.wizard.IWizardHandle)
+     */
+    public Composite createComposite(Composite parent, IWizardHandle handle) {
+        this.fWizard = handle;
+        Composite container = new Composite(parent, SWT.NONE);
+        GridLayout grid = new GridLayout(1, false);
+        grid.marginWidth = 0;
+        container.setLayout(grid);
+        container.setLayoutData(new GridData(GridData.FILL_BOTH));
+        handle.setImageDescriptor(Activator.getImageDescriptor((Activator.IMG_WIZ_GERONIMO)));
+        handle.setTitle(Messages.bind(Messages.runtimeWizardTitle, getRuntimeName()));
+        String name = getGeronimoRuntime().getRuntime().getRuntimeType().getName();
+        //handle.setDescription(Messages.bind(Messages.runtimeWizardDescription, name));
+        createContent(container, handle);
+        return container;
+    }
+
+    public void createContent(Composite parent, IWizardHandle handle) {
+
+        Composite composite = new Composite(parent, SWT.NONE);
+        GridLayout layout = new GridLayout(3, false);
+        composite.setLayout(layout);
+        composite.setLayoutData(new GridData(GridData.FILL_BOTH));
+
+        addJRESelection(composite);
+        addInstallDirSection(composite);
+        addDownloadServerSection(composite);
+    }
+
+    protected void addDownloadServerSection(final Composite composite) {
+        FormText downloadServerText = new FormText(composite, SWT.WRAP);
+        IRuntime runtime = getRuntimeDelegate().getRuntime();
+        String runtimeName = runtime.getRuntimeType().getName();
+        String text = "<form>"
+                + Messages.bind(Messages.DownloadServerText,
+                        Messages.DownloadServerURL, runtimeName) + "</form>";
+        downloadServerText.setText(text, true, true);
+        GridData data = new GridData();
+        data.horizontalSpan = 3;
+        downloadServerText.setLayoutData(data);
+        downloadServerText.addHyperlinkListener(new HyperlinkAdapter() {
+            @Override
+            public void linkActivated(HyperlinkEvent hyperlinkEvent) {
+                String url = hyperlinkEvent.getHref().toString();
+                Trace.trace(Trace.INFO, "Hyperlink " + url + ".");
+                try {
+                    int style = IWorkbenchBrowserSupport.AS_EXTERNAL
+                            | IWorkbenchBrowserSupport.STATUS;
+                    IWebBrowser browser = WorkbenchBrowserSupport.getInstance()
+                            .createBrowser(style, "download server",
+                                    "get server", "tool tip");
+                    browser.openURL(new URL(url));
+                } catch (MalformedURLException e) {
+                    e.printStackTrace();
+                } catch (PartInitException e) {
+                    e.printStackTrace();
+                }
+            }
+        });
+    }
+
+    protected GeronimoRuntimeDelegate getGeronimoRuntime() {
+        if (geronimoRuntime == null)
+            geronimoRuntime = (GeronimoRuntimeDelegate) getRuntimeDelegate().getRuntime().loadAdapter(
+                    GeronimoRuntimeDelegate.class, null);
+        return geronimoRuntime;
+    }
+
+    protected void addInstallDirSection(Composite composite) {
+        Label label = new Label(composite, SWT.NONE);
+        label.setText(Messages.installDir);
+        GridData data = new GridData();
+        data.horizontalSpan = 3;
+        label.setLayoutData(data);
+        String tooltipLoc = Messages.bind(Messages.tooltipLoc, getRuntimeName());
+        label.setToolTipText(tooltipLoc);
+
+        installDir = new Text(composite, SWT.BORDER);
+
+        IPath currentLocation = getRuntimeDelegate().getRuntimeWorkingCopy().getLocation();
+        if (currentLocation != null) {
+            installDir.setText(currentLocation.toOSString());
+        }
+
+        data = new GridData(GridData.FILL_HORIZONTAL);
+        data.horizontalSpan = 2;
+        installDir.setLayoutData(data);
+        installDir.setToolTipText(tooltipLoc);
+        installDir.addModifyListener(new ModifyListener() {
+            public void modifyText(ModifyEvent e) {
+                getRuntimeDelegate().getRuntimeWorkingCopy().setLocation(new Path(installDir.getText()));
+                validate();
+            }
+        });
+
+        final Composite browseComp = composite;
+        Button browse = SWTUtil.createButton(composite, Messages.browse);
+        browse.addSelectionListener(new SelectionAdapter() {
+            public void widgetSelected(SelectionEvent se) {
+                DirectoryDialog dialog = new DirectoryDialog(browseComp.getShell());
+                dialog.setMessage(Messages.installDir);
+                dialog.setFilterPath(installDir.getText());
+                String selectedDirectory = dialog.open();
+                if (selectedDirectory != null)
+                    installDir.setText(selectedDirectory);
+            }
+        });
+    }
+
+    protected void addJRESelection(final Composite composite) {
+        updateJREs();
+
+        Label label = new Label(composite, SWT.NONE);
+        label.setText(Messages.installedJRE);
+        label.setLayoutData(new GridData());
+
+        combo = new Combo(composite, SWT.DROP_DOWN | SWT.READ_ONLY);
+        combo.setItems(jreNames);
+        GridData data = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
+        combo.setLayoutData(data);
+
+        combo.addSelectionListener(new SelectionListener() {
+            public void widgetSelected(SelectionEvent e) {
+                // if the first item in the list is selected, then pass null
+                // to setVMInstall to use the default JRE.
+                // otherwise the array list of JRE's is one off from what is
+                // in the combo; subtract 1 from the selection to get the
+                // correct JRE.
+                int sel = combo.getSelectionIndex();
+                IVMInstall vmInstall = null;
+                if (sel > 0) {
+                    vmInstall = (IVMInstall) installedJREs.get(sel - 1);
+                }
+                getRuntimeDelegate().setVMInstall(vmInstall);
+                validate();
+            }
+
+            public void widgetDefaultSelected(SelectionEvent e) {
+                widgetSelected(e);
+            }
+        });
+
+        Button button = SWTUtil.createButton(composite, Messages.installedJREs);
+        button.addSelectionListener(new SelectionAdapter() {
+            public void widgetSelected(SelectionEvent e) {
+                String currentVM = combo.getText();
+                if (showPreferencePage(composite)) {
+                    updateJREs();
+                    combo.setItems(jreNames);
+                    combo.setText(currentVM);
+                    if (combo.getSelectionIndex() == -1)
+                        combo.select(0);
+                }
+            }
+        });
+
+        if (getRuntimeDelegate() != null) {
+            if (getRuntimeDelegate().isUsingDefaultJRE()) {
+                combo.select(0);
+            } else {
+                combo.setText(getRuntimeDelegate().getVMInstall().getName());
+            }
+        }
+    }
+
+    protected boolean showPreferencePage(Composite composite) {
+        PreferenceManager manager = PlatformUI.getWorkbench().getPreferenceManager();
+        IPreferenceNode node = manager.find("org.eclipse.jdt.ui.preferences.JavaBasePreferencePage").findSubNode(
+                "org.eclipse.jdt.debug.ui.preferences.VMPreferencePage");
+        PreferenceManager manager2 = new PreferenceManager();
+        manager2.addToRoot(node);
+        final PreferenceDialog dialog = new PreferenceDialog(composite.getShell(), manager2);
+        final boolean[] result = new boolean[] { false };
+        BusyIndicator.showWhile(composite.getDisplay(), new Runnable() {
+            public void run() {
+                dialog.create();
+                if (dialog.open() == Window.OK)
+                    result[0] = true;
+            }
+        });
+        return result[0];
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.eclipse.wst.server.ui.wizard.WizardFragment#isComplete()
+     */
+    public boolean isComplete() {
+        IRuntimeWorkingCopy runtimeWC = getRuntimeDelegate().getRuntimeWorkingCopy();
+        IStatus status = runtimeWC.validate(null);
+        return status == null || status.getSeverity() != IStatus.ERROR;
+    }
+
+    protected void validate() {
+
+        IRuntime runtime = getRuntimeDelegate().getRuntime();
+
+        String runtimeName = runtime.getRuntimeType().getName();
+
+        IWizardHandle wizard = getWizard();
+
+        if (runtime == null) {
+            wizard.setMessage("", IMessageProvider.ERROR);
+            return;
+        }
+
+        IRuntimeWorkingCopy runtimeWC = getRuntimeDelegate().getRuntimeWorkingCopy();
+        getRuntimeDelegate().setInstanceProperty("serverRootDirectory", installDir.getText());
+
+        if (installDir.getText() == null || installDir.getText().length() == 0) {
+            // installDir field has not been entered
+            wizard.setMessage(Messages.bind(Messages.installDirInfo, runtimeName), IMessageProvider.NONE);
+        } else {
+            IStatus status = runtimeWC.validate(null);
+            if (status == null || status.isOK()) {
+                // a valid install found
+                wizard.setMessage(Messages.bind(Messages.serverDetected, runtimeName), IMessageProvider.NONE);
+            } else if (status.getCode() == GeronimoRuntimeDelegate.INCORRECT_VERSION) {
+                if (status.getSeverity() == IStatus.ERROR) {
+                    wizard.setMessage(status.getMessage(), IMessageProvider.ERROR);
+                    return;
+                }
+                wizard.setMessage(status.getMessage(), IMessageProvider.WARNING);
+            } else if (status.getCode() == GeronimoRuntimeDelegate.PARTIAL_IMAGE) {
+                wizard.setMessage(status.getMessage(), IMessageProvider.ERROR);
+                return;
+            } else {
+                File file = new Path(installDir.getText()).toFile();
+                if (file.isDirectory()) {
+                    String message = file.canWrite() ? Messages.noImageFound : Messages.cannotInstallAtLocation;
+                    message = Messages.bind(message, runtimeName);
+                    wizard.setMessage(message, IMessageProvider.ERROR);
+                } else {
+                    wizard.setMessage(Messages.noSuchDir, IMessageProvider.ERROR);
+                }
+                return;
+            }
+
+            if (!isValidVM()) {
+                wizard.setMessage(Messages.bind(Messages.jvmWarning, runtimeName), IMessageProvider.WARNING);
+            }
+        }
+    }
+
+    private boolean isValidVM() {
+        IVMInstall vmInstall = getRuntimeDelegate().getVMInstall();
+        if (vmInstall instanceof IVMInstall2) {
+            String javaVersion = ((IVMInstall2) vmInstall).getJavaVersion();
+            return javaVersion != null && (javaVersion.startsWith("1.5") || javaVersion.startsWith("1.6"));
+        }
+        return false;
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.eclipse.wst.server.ui.wizard.WizardFragment#enter()
+     */
+    public void enter() {
+        if (getRuntimeDelegate() != null)
+            getRuntimeDelegate().getRuntimeWorkingCopy().setName(createName());
+        validate();
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.eclipse.wst.server.ui.wizard.WizardFragment#exit()
+     */
+    public void exit() {
+        validate();
+    }
+
+    private GeronimoRuntimeDelegate getRuntimeDelegate() {
+        IRuntimeWorkingCopy wc = (IRuntimeWorkingCopy) getTaskModel().getObject(TaskModel.TASK_RUNTIME);
+        if (wc == null)
+            return null;
+        return (GeronimoRuntimeDelegate) wc.loadAdapter(GeronimoRuntimeDelegate.class, new NullProgressMonitor());
+    }
+
+    private String createName() {
+        RuntimeDelegate dl = getRuntimeDelegate();
+        IRuntimeType runtimeType = dl.getRuntime().getRuntimeType();
+        String name = runtimeType.getName();
+        IRuntime[] list = ServerCore.getRuntimes();
+        int suffix = 1;
+        String suffixName = name;
+        for (int i = 0; i < list.length; i++) {
+            if ((list[i].getName().equals(name) || list[i].getName().equals(suffixName))
+                    && !list[i].equals(dl.getRuntime()))
+                suffix++;
+            suffixName = name + " " + suffix;
+        }
+
+        if (suffix > 1)
+            return suffixName;
+        return name;
+    }
+
+    protected String getRuntimeName() {
+        if (getRuntimeDelegate() != null && getRuntimeDelegate().getRuntime() != null)
+            return getRuntimeDelegate().getRuntime().getName();
+        return null;
+    }
+
+    protected void updateJREs() {
+        installedJREs = new ArrayList<IVMInstall>();
+        IVMInstallType[] vmInstallTypes = JavaRuntime.getVMInstallTypes();
+        int size = vmInstallTypes.length;
+        for (int i = 0; i < size; i++) {
+            IVMInstall[] vmInstalls = vmInstallTypes[i].getVMInstalls();
+            int size2 = vmInstalls.length;
+            for (int j = 0; j < size2; j++) {
+                installedJREs.add(vmInstalls[j]);
+            }
+        }
+
+        // The Default JRE will always be the first item in the combo. This is
+        // an assumption that is made by the combo selection listener and that
+        // all
+        // other installed JREs are listed afterwards in the same order that
+        // they
+        // are found in the list of installed JREs
+        size = installedJREs.size();
+        jreNames = new String[size + 1];
+        jreNames[0] = Messages.runtimeDefaultJRE;
+        for (int i = 0; i < size; i++) {
+            IVMInstall vmInstall = (IVMInstall) installedJREs.get(i);
+            jreNames[i + 1] = vmInstall.getName();
+        }
+    }
+
+    public IWizardHandle getWizard() {
+        return fWizard;
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see
+     * org.eclipse.wst.server.ui.wizard.WizardFragment#createChildFragments(
+     * java.util.List)
+     */
+    protected void createChildFragments(List list) {
+        list.add(new GeronimoRuntimeSourceWizardFragment());
+    }
+
+    /**
+     * Code for testing server name determination code in the
+     * updateInstallDir(IPath) method of addInstallableRuntimeSection.
+     * 
+     * @param args
+     */
+    public static void main(String[] args) {
+        Pattern SERVER_NAME_VERSION_PATTERN = Pattern.compile("(.*-)((\\d+\\.\\d+)(\\.(\\d+))?)");
+        for (String path : args) {
+            StringBuffer installPath = new StringBuffer();
+            Matcher matcher = SERVER_NAME_VERSION_PATTERN.matcher(path);
+            if (matcher.find()) {
+                String serverName = matcher.group(1);
+                String serverVersion = matcher.group(2);
+                installPath = installPath.append(serverName + serverVersion);
+                System.out.println("path = " + path + ", serverVersion = " + serverVersion + ", installPath = "
+                        + installPath);
+            } else {
+                System.out.println("No version found in path = " + path);
+            }
+        }
+    }
+}
\ No newline at end of file

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/GeronimoRuntimeWizardFragment.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/GeronimoRuntimeWizardFragment.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/GeronimoRuntimeWizardFragment.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/GeronimoServerWizardFragment.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/GeronimoServerWizardFragment.java?rev=939152&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/GeronimoServerWizardFragment.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/GeronimoServerWizardFragment.java Thu Apr 29 00:57:12 2010
@@ -0,0 +1,247 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.geronimo.st.v30.ui.internal;
+
+import org.apache.geronimo.st.v30.core.GeronimoServerDelegate;
+import org.apache.geronimo.st.v30.ui.Activator;
+import org.eclipse.jface.viewers.CellEditor;
+import org.eclipse.jface.viewers.ColumnWeightData;
+import org.eclipse.jface.viewers.ICellModifier;
+import org.eclipse.jface.viewers.TableLayout;
+import org.eclipse.jface.viewers.TableViewer;
+import org.eclipse.jface.viewers.TextCellEditor;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.ModifyEvent;
+import org.eclipse.swt.events.ModifyListener;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Item;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Table;
+import org.eclipse.swt.widgets.TableColumn;
+import org.eclipse.swt.widgets.TableItem;
+import org.eclipse.swt.widgets.Text;
+import org.eclipse.wst.server.core.IServerWorkingCopy;
+import org.eclipse.wst.server.core.ServerPort;
+import org.eclipse.wst.server.core.TaskModel;
+import org.eclipse.wst.server.ui.wizard.IWizardHandle;
+import org.eclipse.wst.server.ui.wizard.WizardFragment;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class GeronimoServerWizardFragment extends WizardFragment {
+
+    protected Text hostName;
+
+    protected Text adminId;
+
+    protected Text password;
+
+    protected Table ports;
+
+    protected TableViewer viewer;
+
+    /* (non-Javadoc)
+     * @see org.eclipse.wst.server.ui.wizard.WizardFragment#hasComposite()
+     */
+    public boolean hasComposite() {
+        return true;
+    }
+
+    public Composite createComposite(Composite parent, IWizardHandle handle) {
+        Composite container = new Composite(parent, SWT.NONE);
+        GridLayout grid = new GridLayout(2, false);
+        grid.marginWidth = 0;
+        container.setLayout(grid);
+        container.setLayoutData(new GridData(GridData.FILL_BOTH));
+        handle.setImageDescriptor(Activator.getImageDescriptor(Activator.IMG_WIZ_GERONIMO));
+        handle.setTitle(Messages.bind(Messages.newServerWizardTitle, getServerName()));
+        handle.setDescription(Messages.bind(Messages.newServerWizardTitle, getServerName()));
+        createContent(container, handle);
+        return container;
+    }
+
+    public void createContent(Composite parent, IWizardHandle handle) {
+        Label label = new Label(parent, SWT.NONE);
+        label.setText(Messages.hostName);
+        label.setLayoutData(new GridData());
+
+        hostName = new Text(parent, SWT.BORDER);
+        hostName.setLayoutData(createTextGridData());
+        hostName.setText(getServer().getHost());
+
+        hostName.addModifyListener(new ModifyListener() {
+            public void modifyText(ModifyEvent e) {
+                getServer().setHost(hostName.getText());
+            }
+        });
+
+        label = new Label(parent, SWT.NONE);
+        label.setText(Messages.adminId);
+        label.setLayoutData(new GridData());
+
+        adminId = new Text(parent, SWT.BORDER);
+        adminId.setLayoutData(createTextGridData());
+        adminId.setText(getGeronimoServer().getAdminID());
+
+        adminId.addModifyListener(new ModifyListener() {
+            public void modifyText(ModifyEvent e) {
+                getGeronimoServer().setAdminID(adminId.getText());
+            }
+        });
+
+        label = new Label(parent, SWT.NONE);
+        label.setText(Messages.adminPassword);
+        label.setLayoutData(new GridData());
+
+        password = new Text(parent, SWT.BORDER | SWT.PASSWORD);
+        password.setLayoutData(createTextGridData());
+        password.setText(getGeronimoServer().getAdminPassword());
+
+        password.addModifyListener(new ModifyListener() {
+            public void modifyText(ModifyEvent e) {
+                getGeronimoServer().setAdminPassword(password.getText());
+            }
+        });
+
+        label = new Label(parent, SWT.NONE);
+        label.setText(Messages.specifyPorts);
+        GridData data = createTextGridData();
+        data.verticalIndent = 15;
+        data.horizontalSpan = 2;
+        label.setLayoutData(data);
+
+        // ports
+        ports = new Table(parent, SWT.V_SCROLL | SWT.H_SCROLL
+                | SWT.FULL_SELECTION);
+        ports.setHeaderVisible(true);
+        ports.setLinesVisible(false);
+
+        TableColumn col = new TableColumn(ports, SWT.NONE);
+        col.setText(Messages.portName);
+        col.setResizable(false);
+        ColumnWeightData colData = new ColumnWeightData(15, 150, false);
+        TableLayout tableLayout = new TableLayout();
+        tableLayout.addColumnData(colData);
+
+        col = new TableColumn(ports, SWT.NONE);
+        col.setText(Messages.portValue);
+        col.setResizable(false);
+        colData = new ColumnWeightData(8, 80, false);
+        tableLayout.addColumnData(colData);
+
+        data = new GridData(GridData.FILL_HORIZONTAL
+                | GridData.VERTICAL_ALIGN_FILL);
+        data.horizontalSpan = 2;
+        data.heightHint = 100;
+        ports.setLayoutData(data);
+        ports.setLayout(tableLayout);
+
+        viewer = new TableViewer(ports);
+        viewer.setColumnProperties(new String[] { "name", "port" });
+
+        fillTable(ports);
+        addCellEditor(ports);
+    }
+
+    private void addCellEditor(Table ports) {
+        viewer.setCellEditors(new CellEditor[] { null,
+                new TextCellEditor(ports) });
+
+        ICellModifier cellModifier = new ICellModifier() {
+            public Object getValue(Object element, String property) {
+                ServerPort sp = (ServerPort) element;
+                return sp.getPort() + "";
+            }
+
+            public boolean canModify(Object element, String property) {
+                return "port".equals(property);
+            }
+
+            public void modify(Object element, String property, Object value) {
+                Item item = (Item) element;
+                ServerPort sp = (ServerPort) item.getData();
+                GeronimoServerDelegate gs = getGeronimoServer();
+                gs.setInstanceProperty(sp.getId(), (String) value);
+                changePortNumber(sp.getId(), Integer.parseInt((String) value));
+            }
+        };
+
+        viewer.setCellModifier(cellModifier);
+    }
+
+    private void fillTable(Table ports) {
+        ServerPort[] serverPorts = getServer().getServerPorts(null);
+        if (serverPorts != null) {
+            for (int i = 0; i < serverPorts.length; i++) {
+                ServerPort port = serverPorts[i];
+                TableItem item = new TableItem(ports, SWT.NONE);
+                String[] s = new String[] { port.getName(),
+                        Integer.toString(port.getPort()) };
+                item.setText(s);
+                item.setImage(Activator.getImage(Activator.IMG_PORT));
+                item.setData(port);
+            }
+        }
+    }
+
+    protected void changePortNumber(String id, int port) {
+        TableItem[] items = ports.getItems();
+        int size = items.length;
+        for (int i = 0; i < size; i++) {
+            ServerPort sp = (ServerPort) items[i].getData();
+            if (sp.getId().equals(id)) {
+                items[i].setData(new ServerPort(id, sp.getName(), port, sp.getProtocol()));
+                items[i].setText(1, port + "");
+                return;
+            }
+        }
+    }
+
+    private String getServerName() {
+        if (getServer() != null && getServer().getRuntime() != null)
+            return getServer().getRuntime().getRuntimeType().getName();
+        return null;
+    }
+
+    private IServerWorkingCopy getServer() {
+        return (IServerWorkingCopy) getTaskModel().getObject(TaskModel.TASK_SERVER);
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.eclipse.wst.server.ui.wizard.WizardFragment#isComplete()
+     */
+    public boolean isComplete() {
+        //TODO
+        return true;
+    }
+
+    private GeronimoServerDelegate getGeronimoServer() {
+        GeronimoServerDelegate gs = (GeronimoServerDelegate) getServer().getAdapter(GeronimoServerDelegate.class);
+        if (gs == null)
+            gs = (GeronimoServerDelegate) getServer().loadAdapter(GeronimoServerDelegate.class, null);
+        return gs;
+    }
+
+    private GridData createTextGridData() {
+        return new GridData(GridData.FILL_HORIZONTAL | GridData.GRAB_HORIZONTAL);
+    }
+}

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/GeronimoServerWizardFragment.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/GeronimoServerWizardFragment.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/GeronimoServerWizardFragment.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/Messages.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/Messages.java?rev=939152&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/Messages.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/Messages.java Thu Apr 29 00:57:12 2010
@@ -0,0 +1,543 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.geronimo.st.v30.ui.internal;
+
+import org.apache.geronimo.st.v30.ui.Activator;
+import org.eclipse.osgi.util.NLS;
+
+/**
+ * Translated messages.
+ *
+ * @version $Rev$ $Date$
+ */
+public class Messages extends NLS {
+
+    static {
+        NLS.initializeMessages(Activator.PLUGIN_ID + ".internal.Messages", Messages.class);
+    }
+
+    public static String editorTabSource;
+
+    public static String editorSectionSecurityTitle;
+    public static String editorSectionSecurityDescription;
+    public static String editorSectionPortsTitle;
+    public static String editorSectionPortsDescription;
+    public static String editorSectionLogLevelTitle;
+    public static String editorSectionLogLevelDescription;
+    public static String editorSectionVMArgsTitle;
+    public static String editorSectionVMArgsDescription;
+    public static String editorSectionStartupTitle;
+    public static String editorSectionStartupDescription;
+
+    public static String editorSectionTestEnvTitle;
+    public static String editorSectionTestEnvDescription;
+    public static String editorSectionNotRedeployJSPFiles;
+    public static String editorSectionRunFromWorkspace;
+    public static String editorSectionSharedLibrariesInPlace;
+    public static String editorSectionSelectClasspathContainers;
+    public static String editorSectionPublishAdvancedTitle;
+    public static String editorSectionPublishAdvancedDescription;
+    public static String notRedeployJSPFilesReminder;
+    public static String notRedeployJSPFilesInformation;
+
+    public static String publishingTimeout;
+    public static String info;
+    public static String debug;
+    public static String httpPort;
+    public static String rmiPort;
+    public static String username;
+    public static String password;
+    public static String console;
+    public static String consoleTooltip;
+    public static String supportWebPage;
+    public static String supportWebPageTooltip;
+    public static String pingDelay;
+    public static String pingInterval;
+    public static String maxPings;
+    public static String pingDelayTooltip;
+    public static String pingIntervalTooltip;
+    public static String maxPingsTooltip;
+
+    public static String newServerWizardTitle;
+    public static String newServerWizardDescription;
+
+    public static String installedJRE;
+    public static String installedJREs;
+    public static String runtimeDefaultJRE;
+    public static String runtimeWizardTitle;
+    public static String browse;
+    public static String installDir;
+    public static String installDirInfo;
+    public static String noSuchDir;
+    public static String noImageFound;
+    public static String cannotInstallAtLocation;
+    public static String serverDetected;
+    public static String downloadOptions;
+    public static String chooseWebContainer;
+    public static String gWithTomcat;
+    public static String gWithJetty;
+    public static String DownloadServerButtonLabel;
+    public static String DownloadServerText;
+    public static String DownloadServerURL;
+    public static String jvmWarning;
+    public static String installTitle;
+    public static String installMessage;
+    public static String tooltipLoc;
+    public static String tooltipInstall;
+    public static String tooltipJetty;
+    public static String tooltipTomcat;
+
+    public static String sourceLocWizTitle;
+    public static String sourceLocWizDescription;
+    public static String sourceZipFile;
+    public static String browseSrcDialog;
+
+    public static String hostName;
+    public static String adminId;
+    public static String adminPassword;
+    public static String specifyPorts;
+    public static String portName;
+    public static String portValue;
+
+    public static String appGeneralPageTitle;
+    public static String appClientGeneralPageTitle;
+    public static String connectorOverViewPageTitle;
+    public static String deploymentPageTitle;
+    public static String namingFormPageTitle;
+    public static String securityPageTitle;
+    public static String webGeneralPageTitle;
+    public static String editorTabGeneral;
+    public static String editorTabNaming;
+    public static String editorTabSecurity;
+    public static String editorTabConnector;
+    public static String editorTabDeployment;
+    public static String errorCouldNotOpenFile;
+    public static String editorTitle;
+    public static String editorSectionGeneralTitle;
+    public static String editorSectionGeneralDescription;
+    public static String editorContextRoot;
+    public static String editorWorkDir;
+    public static String editorSecurityRealmName;
+    public static String editorApplicationName;
+    public static String editorCallbackHandler;
+    public static String editorDomainName;
+    public static String editorRealmName;
+    public static String editorSubjectId;
+    public static String editorejbqlCompilerFactory;
+    public static String editordbSyntaxFactory;
+    public static String enforceForeignKeyConstraints;
+    public static String editorSectionServerTitle;
+    public static String editorSectionServerDescription;
+    public static String editorSectionClientTitle;
+    public static String editorSectionClientDescription;
+    //
+    public static String editorSectionSecurityRolesTitle;
+    public static String editorSectionSecurityRolesDescription;
+    public static String editorSectionSecurityAdvancedTitle;
+    public static String editorSectionSecurityAdvancedDescription;
+    public static String name;
+    public static String description;
+    //
+    public static String editorSectionDependenciesTitle;
+    public static String editorSectionDependenciesDescription;
+    public static String editorSectionClientDependenciesTitle;
+    public static String editorSectionClientDependenciesDescription;
+    //
+    public static String editorSectionHiddenClassesTitle;
+    public static String editorSectionHiddenClassesDescription;
+    public static String editorSectionClientHiddenClassesTitle;
+    public static String editorSectionClientHiddenClassesDescription;
+    public static String editorSectionNonOverridableTitle;
+    public static String editorSectionNonOverridableDescription;
+    public static String editorSectionClientNonOverridableTitle;
+    public static String editorSectionClientNonOverridableDescription;
+    //
+    public static String editorSectionAdminObjectTitle;
+    public static String editorSectionAdminObjectDescription;
+    public static String editorSectionMessageDestTitle;
+    public static String editorSectionMessageDestDescription;
+    //
+    public static String editorSectionModuleTitle;
+    public static String editorSectionModuleDescription;
+    //
+    public static String editorSectionExtModuleTitle;
+    public static String editorSectionExtModuleDescription;
+    //
+    public static String editorSectionImportTitle;
+    public static String editorSectionImportDescription;
+    //
+    public static String editorSectionGBeanTitle;
+    public static String editorSectionGBeanDescription;
+    public static String className;
+    public static String interfaceName;
+    public static String GbeanName;
+    //
+    public static String editorResourceRefDescription;
+    public static String editorResourceRefTitle;
+    public static String editorResRefTargetNameTitle;
+    public static String editorResRefLinkTitle;
+    public static String editorResRefNameTitle;
+    //
+    public static String editorGBeanRefTitle;
+    public static String editorGBeanRefDescription;
+    public static String editorGBeanRefName;
+    public static String editorGBeanRefType;
+    public static String editorGBeanRefTargetName;
+    public static String editorGBeanRefProxyType;
+    //
+    //
+    public static String editorPersContextRefTitle;
+    public static String editorPersContextRefDescription;
+    public static String editorPersUnitRefTitle;
+    public static String editorPersUnitRefDescription;
+    //
+    public static String editorServiceRefDescription;
+    public static String editorServiceRefTitle;
+    public static String editorServiceRefName;
+    //
+    public static String editorResourceEnvRefDescription;
+    public static String editorResourceEnvRefTitle;
+    public static String editorResEnvRefMsgDestTitle;
+    public static String editorResEnvRefNameTitle;
+    //
+    public static String editorEjbLocalRefDescription;
+    public static String editorEjbLocalRefTitle;
+    public static String editorEjbRefTargetName;
+    public static String editorEjbRefEjbLink;
+    //
+    public static String editorEjbRefDescription;
+    public static String editorEjbRefTitle;
+    public static String editorEjbRelationDescription;
+    public static String editorEjbRelationTitle;
+    // Buttons
+    public static String add;
+    public static String remove;
+    public static String edit;
+    // Wizard/Wizard Pages
+    public static String wizardTitle_ManageAccount;
+    public static String wizardNewTitle_ResRef;
+    public static String wizardEditTitle_ResRef;
+    public static String wizardPageTitle_ResRef;
+    public static String wizardPageDescription_ResRef;
+    //
+    public static String wizardNewTitle_AdminObject;
+    public static String wizardEditTitle_AdminObject;
+    public static String wizardPageTitle_AdminObject;
+    public static String wizardPageDescription_AdminObject;
+    //
+    public static String wizardNewTitle_GBeanRef;
+    public static String wizardEditTitle_GBeanRef;
+    public static String wizardPageTitle_GBeanRef;
+    public static String wizardPageDescription_GBeanRef;
+    //
+    public static String wizardNewTitle_PersContextRef;
+    public static String wizardEditTitle_PersContextRef;
+    public static String wizardPageTitle_PersContextRef;
+    public static String wizardPageDescription_PersContextRef;
+    //
+    public static String wizardNewTitle_ServiceRef;
+    public static String wizardEditTitle_ServiceRef;
+    public static String wizardPageTitle_ServiceRef;
+    public static String wizardPageDescription_ServiceRef;
+    //
+    public static String wizardNewTitle_ResEnvRef;
+    public static String wizardEditTitle_ResEnvRef;
+    public static String wizardPageTitle_ResEnvRef;
+    public static String wizardPageDescription_ResEnvRef;
+    //
+    public static String wizardNewTitle_EjbRef;
+    public static String wizardEditTitle_EjbRef;
+    public static String wizardPageTitle_EjbRef;
+    public static String wizardPageDescription_EjbRef;
+    //
+    public static String wizardNewTitle_EjbRelation;
+    public static String wizardEditTitle_EjbRelation;
+    public static String wizardPageTitle_EjbRelation;
+    public static String wizardPageDescription_EjbRelation;
+    //
+    public static String wizardNewTitle_EjbLocalRef;
+    public static String wizardEditTitle_EjbLocalRef;
+    public static String wizardPageTitle_EjbLocalRef;
+    public static String wizardPageDescription_EjbLocalRef;
+    //
+    public static String wizardNewTitle_PersUnitRef;
+    public static String wizardEditTitle_PersUnitRef;
+    public static String wizardPageTitle_PersUnitRef;
+    public static String wizardPageDescription_PersUnitRef;
+    //
+    public static String wizardNewTitle_RoleMapping;
+    public static String wizardEditTitle_RoleMapping;
+    public static String wizardPageTitle_RoleMapping;
+    public static String wizardPageDescription_RoleMapping;
+    //
+    public static String wizardNewTitle_RunAsSubject;
+    public static String wizardEditTitle_RunAsSubject;
+    public static String wizardPageTitle_RunAsSubject;
+    public static String wizardPageDescription_RunAsSubject;
+    //
+    public static String wizardNewTitle_ServerCustomAssembly;
+    public static String wizardEditTitle_ServerCustomAssembly;
+    public static String wizardPageTitle_ServerCustomAssembly;
+    public static String wizardPageDescription_ServerCustomAssembly;
+    //
+    public static String wizardNewTitle_Dependency;
+    public static String wizardEditTitle_Dependency;
+    public static String wizardPageTitle_Dependency;
+    public static String wizardPageDescription_Dependency;
+    public static String wizardTabManual_Dependency;
+    public static String wizardTabServer_Dependency;
+    public static String dependencyGroupLabel;
+    
+    public static String addUser;
+    public static String delUser;
+    public static String editUser;
+    public static String oldPassword;
+    public static String newPassword;
+    public static String groupName;
+    public static String passwordNotEqual;
+    public static String cannotSave;
+    public static String cannotRead;
+
+    public static String groupId;
+    public static String artifactId;
+    public static String version;
+    public static String type;
+    public static String element;
+    public static String customName;
+    public static String value;
+    public static String messageDestinationName;
+    public static String adminModule;
+    public static String adminLink;
+    public static String contextName;
+    public static String unitRefName;
+    public static String unitName;
+    public static String mtmTableName;
+    public static String ejbSourceName;
+    public static String cmrFieldName;
+    public static String keyColumn;
+    public static String foreignKeyColumn;
+    //
+    public static String wizardNewTitle_Import;
+    public static String wizardEditTitle_Import;
+    public static String wizardPageTitle_Import;
+    public static String wizardPageDescription_Import;
+    //
+    public static String wizardNewTitle_GBean;
+    public static String wizardEditTitle_GBean;
+    public static String wizardPageTitle_GBean;
+    public static String wizardPageDescription_GBean;
+    //
+    public static String wizardNewTitle_MessageDest;
+    public static String wizardEditTitle_MessageDest;
+    public static String wizardPageTitle_MessageDest;
+    public static String wizardPageDescription_MessageDest;
+    //
+    public static String wizardNewTitle_License;
+    public static String wizardEditTitle_License;
+    public static String wizardPageTitle_License;
+    public static String wizardPageDescription_License;
+    //
+    public static String wizardNewTitle_Prerequisite;
+    public static String wizardEditTitle_Prerequisite;
+    public static String wizardPageTitle_Prerequisite;
+    public static String wizardPageDescription_Prerequisite;
+    //
+    public static String wizardNewTitle_Module;
+    public static String wizardEditTitle_Module;
+    public static String wizardPageTitle_Module;
+    public static String wizardPageDescription_Module;
+    //
+    public static String wizardNewTitle_ExtModule;
+    public static String wizardEditTitle_ExtModule;
+    public static String wizardPageTitle_ExtModule;
+    public static String wizardPageDescription_ExtModule;
+    //
+    public static String wizardNewTitle_SecurityRole;
+    public static String wizardEditTitle_SecurityRole;
+    public static String wizardPageTitle_SecurityRole;
+    public static String wizardPageDescription_SecurityRole;
+    
+    public static String wizardTitle_SecurityRealm;
+    public static String wizardFirstPageTitle_SecurityRealm;
+    public static String wizardSecondPageTitle_SecurityRealm;
+    public static String wizardFirstPageDescription_SecurityRealm;
+    public static String wizardSecondPageDescription_SecurityRealm;
+    
+    public static String basicSettings;
+    public static String realmName;
+    public static String realmType;
+    public static String digestAlgorithm;
+    public static String digestEncoding;
+    
+    public static String sqlQueries;
+    public static String userSelectSQL;
+    public static String groupSelectSQL;
+    
+    public static String dataBasePool;
+    public static String useDataBasePool;
+    public static String useDataBase;
+    public static String dataBasePoolName;
+    
+    public static String jdbcDriverClass;
+    public static String jdbcURL;
+    public static String jdbcDriver;
+    public static String jdbcUserName;
+    public static String jdbcPassword;
+    public static String confirmPassword;    
+    //
+
+    public static String securityCredentialStore;
+    public static String securityDefaultSubject;
+    public static String securityDefaultSubjectRealmName;
+    public static String securityDefaultSubjectId;
+    public static String securityDoasCurrentCaller;
+    public static String securityUseContextHandler;
+    public static String securityRunAsSubjects;
+    public static String securityRunAsSubjectRole;
+    public static String securityRunAsSubjectRealm;
+    public static String securityRunAsSubjectId;
+    public static String securityRefreshRoles;
+
+
+    public static String wizardNewTitle_DBpool;
+    public static String wizardBasicPageTitle_DBPool;
+    public static String wizardBasicPageDescription_DBPool;
+    public static String wizardAdvancedPageTitle__DBPool;
+    public static String wizardAdvancedPageDescription__DBPool;
+    public static String wizardConnectionPageTitle__DBPool;
+    public static String wizardConnectionPageDescription__DBPool;
+    //
+    public static String doasCurrentCaller;
+    public static String useContextHandler;
+    public static String defaultRole;
+    
+
+    public static String editorCorrect;
+    public static String editorDefault;
+    public static String serverNotStarted;
+    public static String errorOpenDialog;
+    public static String errorOpenWizard;
+
+    public static String gBeanLink;
+    public static String moduleId;
+    public static String seeRestrictions;
+
+    public static String useGBeanLink;
+    public static String useGBeanPattern;
+    public static String artifactType;
+    public static String inverseClassloading;
+    public static String supressDefaultEnv;
+    public static String sharedLibDepends;
+
+    public static String useUnitName;
+    public static String usePattern;
+    public static String useResourceLink;
+    public static String useUrl;
+    public static String useResourcePattern;
+    public static String resourceLink;
+    public static String url;
+
+    public static String addSharedLib;
+    public static String webContainerSection;
+    public static String webContainerSectionDescription;
+    public static String cmpConnectionSection;
+    public static String cmpConnectionSectionDescription;
+
+    public static String moduleType;
+    public static String path;
+    public static String internalPath;
+    public static String externalPath;
+    public static String altDD;
+
+    public static String serviceCompletionName;
+    public static String protocol;
+    public static String credential;
+    public static String bindingName;
+    public static String uri;
+
+    public static String connector;
+    public static String ejb;
+    public static String java;
+    public static String web;
+
+    public static String plugin;
+    public static String pluginActions;
+    public static String createCustomAssembly;
+    public static String convertAppsToPlugins;
+
+    public static String manageAccount;
+    public static String manageAccountDescription;
+    public static String isNotLocalHost;
+
+    public static String poolName;
+    public static String dbType;
+    public static String dbName;
+    public static String createDatabase;
+    public static String loginTimeout;
+    public static String blockingTimeout;
+    public static String idleTimeout;
+    public static String minPoolSize;
+    public static String maxPoolSize;
+    public static String transactionType;
+    public static String loginGroup;
+    public static String driverGroup;
+    public static String basicGroup;
+    public static String advancedGroup;
+
+
+    public static String licenseAgreement;
+    public static String acceptLicenseAgreement;
+    public static String rejectLicenseAgreement;
+    public static String confirmLicenseRejection;
+    public static String license;
+    public static String osiApproved;
+
+    public static String savePageTitle;
+    public static String savePageMessage;
+
+    //
+    public static String wizardTitle_PluginManager;
+    public static String wizardPage0Title_PluginManager;
+    public static String wizardPage0Description_PluginManager;
+    public static String wizardPage1Title_PluginManager;
+    public static String wizardPage1Description_PluginManager;
+    public static String wizardPage2Title_PluginManager;
+    public static String wizardPage2Description_PluginManager;
+    public static String wizardPage3Title_PluginManager;
+    public static String wizardPage3Description_PluginManager;
+    public static String wizardPage4Title_PluginManager;
+    public static String wizardPage4Description_PluginManager;
+    public static String wizardPage5Title_PluginManager;
+    public static String wizardPage5Description_PluginManager;
+    public static String localPluginRepo;
+    public static String failedToSave;
+    public static String savedSuccess;
+    public static String createPlugin;
+    public static String installPlugins;
+    public static String id;
+    public static String downloadRepos;
+    public static String category;
+    public static String pluginURL;
+    public static String author;
+    public static String geronimoVersions;
+    public static String jvmVersions;
+    public static String dependencies;
+    public static String obsoletes;
+    public static String installable;
+    public static String event;
+    public static String prerequisites;
+}

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/Messages.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/Messages.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/Messages.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/Messages.properties
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/Messages.properties?rev=939152&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/Messages.properties (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/Messages.properties Thu Apr 29 00:57:12 2010
@@ -0,0 +1,542 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# $Rev$ $Date$
+#
+appGeneralPageTitle=Application Plan General Configuration
+appClientGeneralPageTitle=Application Client Plan General Configuration
+connectorOverViewPageTitle=Connector Plan General Configuration
+deploymentPageTitle=Deployment Configuration
+namingFormPageTitle=Defined References
+securityPageTitle=Security Configuration
+webGeneralPageTitle=Web Deployment Plan General Configuration
+
+errorCouldNotOpenFile=Could not open file
+
+editorTitle=Geronimo Deployment Plan Editor
+editorSectionGeneralTitle=General
+editorSectionGeneralDescription=Edit the common deployment settings.
+
+editorSectionServerTitle=Server
+editorSectionServerDescription=Edit the application server deployment settings.
+
+editorSectionClientTitle=Client
+editorSectionClientDescription=Edit the application client deployment settings.
+
+editorSectionSecurityRolesTitle=Security Roles
+editorSectionSecurityRolesDescription=The following security roles are defined:
+editorSectionSecurityAdvancedTitle=Advanced Security Configuration
+editorSectionSecurityAdvancedDescription=The following Advanced Security Settings are defined:
+
+editorSectionDependenciesTitle=Server Dependencies
+editorSectionDependenciesDescription=The following server dependencies are defined as common libraries.
+editorSectionClientDependenciesTitle=Client Dependencies
+editorSectionClientDependenciesDescription=The following client dependencies are defined as common libraries.
+
+editorSectionHiddenClassesTitle=Hidden Classes
+editorSectionHiddenClassesDescription=The following classes are hidden.
+editorSectionClientHiddenClassesTitle=Client Hidden Classes
+editorSectionClientHiddenClassesDescription=The following classes are hidden in the client.
+editorSectionNonOverridableTitle=Non Overridable Classes
+editorSectionNonOverridableDescription=The following classes are not overridable.
+editorSectionClientNonOverridableTitle=Client Non Overridable Classes
+editorSectionClientNonOverridableDescription=The following classes are not overridable in the client.
+
+editorSectionAdminObjectTitle=Admin Objects
+editorSectionAdminObjectDescription=The following admin objects are defined:
+editorSectionMessageDestTitle=Message Destinations
+editorSectionMessageDestDescription=The following message destinations are defined:
+
+editorSectionModuleTitle=Modules
+editorSectionModuleDescription=The following modules are defined:
+
+editorSectionExtModuleTitle=External Modules
+editorSectionExtModuleDescription=The following external modules are defined:
+
+editorSectionImportTitle=Imports
+editorSectionImportDescription=The following configurations are imported into this plan.
+
+editorSectionGBeanTitle=GBeans
+editorSectionGBeanDescription=The following gbeans are defined in this plan.
+className=Class
+interfaceName=Interface
+GbeanName=Gbean Name
+
+editorSectionSecurityTitle=Security
+editorSectionSecurityDescription=Specify the security settings.
+username=User ID:
+password=Password:
+
+editorSectionPortsTitle=Port Configuration
+editorSectionPortsDescription=Specify the ports for this server instance.
+httpPort=HTTP Port:
+rmiPort=RMI Naming Port:
+
+editorSectionLogLevelTitle=Console Output
+editorSectionLogLevelDescription=Select the server console output log level.
+info=INFO
+debug=DEBUG
+
+editorSectionVMArgsTitle=Server VM Arguments
+editorSectionVMArgsDescription=Specify the Java VM Arguments to be provided on server startup.
+
+editorSectionStartupTitle=Server Startup
+editorSectionStartupDescription=Specify the server startup constraints.
+pingDelay=Ping Delay (ms):
+pingInterval=Ping Interval (ms):
+maxPings=Maximum Pings:
+pingDelayTooltip=The number of milliseconds to delay before starting to ping the server.
+pingIntervalTooltip=The number of milliseconds between each ping.
+maxPingsTooltip=The number of pings to the server before startup is considered a failure.
+
+editorContextRoot=Context Root:
+editorWorkDir=Working Directory:
+editorSecurityRealmName=Security Realm Name:
+editorCallbackHandler=Callback Handler:
+editorDomainName=Domain Name:
+editorRealmName=Realm Name:
+editorSubjectId=Subject Id:
+editorApplicationName=Application Name:
+editorejbqlCompilerFactory=EJB QL Compiler Factory:
+editordbSyntaxFactory=DB Syntax Factory:
+enforceForeignKeyConstraints=Enforce Foreign Key Constraints
+
+editorResourceRefTitle=Resource References
+editorResourceRefDescription=The following resource references are defined:
+editorResRefTargetNameTitle=Target Name
+editorResRefLinkTitle=Resource Link
+editorResRefNameTitle=Reference Name
+
+editorResourceEnvRefTitle=Resource Environment References
+editorResourceEnvRefDescription=The following resource environment references are defined:
+editorResEnvRefNameTitle=Reference Name
+editorResEnvRefMsgDestTitle=Message Destination
+
+editorGBeanRefTitle=GBean References
+editorGBeanRefDescription=The following gbean references are defined:
+editorGBeanRefName=Name
+editorGBeanRefType=Type
+editorGBeanRefTargetName=Target
+editorGBeanRefProxyType=Proxy Type
+
+editorPersContextRefTitle=Persistence Context References
+editorPersContextRefDescription=The following persistence context references are defined:
+editorPersUnitRefTitle=Persistence Unit References
+editorPersUnitRefDescription=The following persistence unit references are defined:
+
+editorServiceRefDescription=The following  service references are defined:
+editorServiceRefTitle=Service Refs
+editorServiceRefName=Name
+
+editorEjbRefDescription = The following ejb references are defined:
+editorEjbRefTitle = EJB References
+editorEjbRefTargetName=Target Name
+editorEjbRefEjbLink=EJB Link
+
+editorEjbLocalRefDescription=The following ejb local refererencs are defined:
+editorEjbLocalRefTitle=EJB Local References
+editorEjbRelationDescription = The following ejb relations are defined:
+editorEjbRelationTitle = EJB Relations
+
+add=Add
+remove=Remove
+edit=Edit
+
+wizardNewTitle_ResRef=New Resource Reference
+wizardEditTitle_ResRef=Edit Resource Reference
+wizardPageTitle_ResRef=Resource Reference Details
+wizardPageDescription_ResRef=Provide details for this resource reference.
+
+wizardNewTitle_AdminObject=New Admin Object
+wizardEditTitle_AdminObject=Edit Admin Object
+wizardPageTitle_AdminObject=Admin Object Details
+wizardPageDescription_AdminObject=Provide details for this admin object.
+    
+wizardNewTitle_ResEnvRef=New Resource Enviornment Reference
+wizardEditTitle_ResEnvRef=Edit Resource Enviornment Reference
+wizardPageTitle_ResEnvRef=Resource Enviornment Reference Details
+wizardPageDescription_ResEnvRef=Provide details for this resource enviornment reference.
+
+wizardNewTitle_EjbRef=New EJB Reference
+wizardEditTitle_EjbRef=Edit EJB Reference
+wizardPageTitle_EjbRef=EJB Reference Details
+wizardPageDescription_EjbRef=Provide details for this ejb reference.
+
+wizardNewTitle_EjbRelation=New EJB Relation
+wizardEditTitle_EjbRelation=Edit EJB Relation
+wizardPageTitle_EjbRelation=EJB Relation Details
+wizardPageDescription_EjbRelation=Provide details for this EJB Relation.
+
+wizardNewTitle_ServiceRef=New Service Reference
+wizardEditTitle_ServiceRef=Edit Service Reference
+wizardPageTitle_ServiceRef=Service Reference Details
+wizardPageDescription_ServiceRef=Provide details for this service reference
+
+wizardNewTitle_EjbLocalRef=New EJB Local Reference
+wizardEditTitle_EjbLocalRef=Edit EJB Local Reference
+wizardPageTitle_EjbLocalRef=EJB Reference Local Details
+wizardPageDescription_EjbLocalRef=Provide details for this ejb local reference.
+
+wizardNewTitle_GBeanRef=New GBean Reference
+wizardEditTitle_GBeanRef=Edit GBean Reference
+wizardPageTitle_GBeanRef=GBean Reference Details
+wizardPageDescription_GBeanRef=Provide details for this gbean reference.
+
+wizardNewTitle_PersUnitRef=New Persistence Unit Reference
+wizardEditTitle_PersUnitRef=Edit Persistence Unit Reference
+wizardPageTitle_PersUnitRef=Persistence Unit Reference Details
+wizardPageDescription_PersUnitRef=Provide details for this persistence unit reference.
+
+wizardNewTitle_PersContextRef=New Persistence Context Reference
+wizardEditTitle_PersContextRef=Edit Persistence Context Reference
+wizardPageTitle_PersContextRef=Persistence Context Reference Details
+wizardPageDescription_PersContextRef=Provide details for this persistence context reference.
+
+wizardNewTitle_SecurityRole=New Security Role
+wizardEditTitle_SecurityRole=Edit Security Role
+wizardPageTitle_SecurityRole=Security Role Details
+wizardPageDescription_SecurityRole=Provide details for this security role.
+
+wizardTitle_SecurityRealm=Security Realm Configuration
+wizardFirstPageTitle_SecurityRealm=Basic Settings
+wizardSecondPageTitle_SecurityRealm=Data Base related Settings
+wizardFirstPageDescription_SecurityRealm=Edit basic settings for creating new security realm
+wizardSecondPageDescription_SecurityRealm=Edit settings for specifying data source
+
+basicSettings=Basic Settings
+realmName=Realm Name
+realmType=Realm Type
+digestAlgorithm=Digest Algorithm
+digestEncoding=Digest Encoding
+
+sqlQueries=SQL queries
+userSelectSQL=User Select SQL
+groupSelectSQL=Group Select SQL
+
+dataBasePool=Data Base Pool
+useDataBasePool=Use Data Base Pool
+useDataBase=Use Data Base
+dataBasePoolName=Data Base Pool Name
+
+jdbcDriverClass=JDBC Driver Class
+jdbcURL=JDBC URL
+jdbcDriver=JDBC Driver
+jdbcUserName=JDBC User Name
+jdbcPassword=Password
+
+wizardNewTitle_Dependency=New Dependency
+wizardEditTitle_Dependency=Edit Dependency
+wizardPageTitle_Dependency=Dependency Details
+wizardPageDescription_Dependency=Provide details for this dependency.
+wizardTabManual_Dependency=Manual Input
+wizardTabServer_Dependency=Add From Server
+
+wizardNewTitle_Import=New Import
+wizardEditTitle_Import=Edit Import
+wizardPageTitle_Import=Import Details
+wizardPageDescription_Import=Provide details for this dependency.
+
+wizardNewTitle_GBean=New GBean
+wizardEditTitle_GBean=Edit Gbean
+wizardPageTitle_GBean=Gbean Details
+wizardPageDescription_GBean=Provide details for this gbean.
+
+wizardNewTitle_MessageDest=New Message Destination
+wizardEditTitle_MessageDest=Edit Message Destination
+wizardPageTitle_MessageDest=Message Destination Details
+wizardPageDescription_MessageDest=Provide details for this message destination.
+
+wizardNewTitle_License=New License
+wizardEditTitle_License=Edit License
+wizardPageTitle_License=License Details
+wizardPageDescription_License=Provide details for this license.
+
+wizardNewTitle_Prerequisite=New Prerequisite
+wizardEditTitle_Prerequisite=Edit Prerequisite
+wizardPageTitle_Prerequisite=Prerequisite Details
+wizardPageDescription_Prerequisite=Provide details for this prerequisite.
+
+wizardNewTitle_Module=New Module
+wizardEditTitle_Module=Edit Module
+wizardPageTitle_Module=Module Details
+wizardPageDescription_Module=Provide details for this module.
+
+wizardNewTitle_ExtModule=New External Module
+wizardEditTitle_ExtModule=Edit External Module
+wizardPageTitle_ExtModule=External Module Details
+wizardPageDescription_ExtModule=Provide details for this external module.
+
+
+wizardNewTitle_ServiceRef=New Service Reference
+wizardEditTitle_ServiceRef=Edit Service Reference
+wizardPageTitle_ServiceRef=Service Reference Details
+wizardPageDescription_ServiceRef=Provide details for this service reference.
+
+
+wizardNewTitle_DBpool=New Database Pool Wizard;
+wizardBasicPageTitle_DBPool=Basic Settings
+wizardBasicPageDescription_DBPool=Edit basic settings for creating database pool
+wizardAdvancedPageTitle__DBPool=Advanced Pool Settings
+wizardAdvancedPageDescription__DBPool=Edit advanced settings for creating database pool
+wizardConnectionPageTitle__DBPool=Connection Pool Parameters
+wizardConnectionPageDescription__DBPool=Edit Connection Pool parameters for Database pool
+
+doasCurrentCaller=Do as current caller
+useContextHandler=Use context handler
+defaultRole=Default Role:
+
+
+wizardNewTitle_RoleMapping=New Role Mapping
+wizardEditTitle_RoleMapping=Edit Role Mapping
+wizardPageTitle_RoleMapping=Role Mapping Details
+wizardPageDescription_RoleMapping=Provide details for this role mapping.
+
+wizardNewTitle_RunAsSubject=New Run As Subject
+wizardEditTitle_RunAsSubject=Edit Run As Subject
+wizardPageTitle_RunAsSubject=Run As Subject Details
+wizardPageDescription_RunAsSubject=Provide details for this run-as subject.
+
+wizardNewTitle_ServerCustomAssembly=New Server Custom Assembly
+wizardEditTitle_ServerCustomAssembly=Edit Server Custom Assembly
+wizardPageTitle_ServerCustomAssembly=Server Custom Assembly Details
+wizardPageDescription_ServerCustomAssembly=Provide details for this server custom assembly.
+
+securityCredentialStore=Credential Store:
+securityDefaultSubject=Default Subject:
+securityDefaultSubjectRealmName=Realm Name
+securityDefaultSubjectId=Id
+securityDoasCurrentCaller=Do as current caller
+securityUseContextHandler=Use context handler
+securityRunAsSubjects=Run As Subjects:
+securityRunAsSubjectRole=Role
+securityRunAsSubjectRealm=Realm
+securityRunAsSubjectId=Id
+securityRefreshRoles=Refresh Roles from Deployment Descriptor/Annotations
+
+addUser = Add user
+delUser = Delete user
+editUser = Edit user
+oldPassword = Old password
+newPassword = New password
+confirmPassword = Confirm password 
+groupName = Group name
+passwordNotEqual = Password doesn't match!
+manageAccount = Manage Account
+manageAccountDescription = Manage account for default "Properties File Realm"
+cannotSave = Account information can't be stored!
+cannotRead = Account information can't be read!
+isNotLocalHost = It is not a local host.
+
+dependencyGroupLabel=Dependency type and location
+groupId=Group Id
+artifactId=Artifact Id
+version=Version
+type=Type
+element=Element
+customName=Custom Name
+value=Value
+contextName=Context Name
+unitRefName=Unit Ref Name
+unitName=Unit Name
+mtmTableName=MTM Table Name
+ejbSourceName=EJB Source Name
+cmrFieldName=CMR Field Name
+keyColumn=Key Column
+foreignKeyColumn=Foreign Key Column
+
+messageDestinationName=Message Destination Name
+adminModule=Admin Module
+adminLink=Admin Link
+
+editorTabGeneral=General
+editorTabNaming=Naming
+editorTabSecurity=Security
+editorTabConnector=Connector
+editorTabDeployment=Deployment
+editorTabSource=Source
+
+name=Name
+description=Description
+
+console={0} Console
+consoleTooltip={0} Console
+
+supportWebPage={0} Support
+supportWebPageTooltip={0} Support Web Page
+
+newServerWizardTitle=New {0} Server
+newServerWizardDescription=New {0} Server
+
+installedJRE=&JRE:
+installedJREs=&Installed JREs...
+runtimeDefaultJRE=Workbench default JRE
+runtimeWizardTitle=New {0} Runtime
+browse=Browse
+installDir=Application Server Installation Directory:
+installDirInfo=Please enter the directory where {0} is installed.
+noSuchDir=The specified directory does not exist.
+noImageFound=A {0} installation does not exist at this location.
+cannotInstallAtLocation=A {0} installation cannot be found nor can it be installed at this location.
+serverDetected {0} installation detected.  Press Next to continue.
+downloadOptions=Download Options
+chooseWebContainer=Select a web container:
+gWithTomcat=Geronimo with Tomcat
+gWithJetty=Geronimo with Jetty
+DownloadServerButtonLabel=Download Server
+DownloadServerText=To download the {1} server, click: <br/> {0} .
+DownloadServerURL=http://geronimo.apache.org/downloads.html
+jvmWarning={0} requires a 5.0+ JDK (J2SE 1.5.0+).
+installTitle=Install Confirmation
+installMessage=\nInstall {0} to {1} ?
+licenseAgreement=License Agreement:
+acceptLicenseAgreement=I accept the terms in the above license agreement.
+rejectLicenseAgreement=I do not accept the terms in the above license agreement.
+confirmLicenseRejection "Download and Install" will not continue unless you accept the license.\nDo you really not accept the license?
+tooltipLoc=A location of an existing {0} installation or a path to install to.
+tooltipInstall=Downloads the selected {0} distribution and installs it to the specified location.
+tooltipJetty=Selects the Jetty distribution of Geronimo to install.
+tooltipTomcat=Selects the Tomcat distribution of Geronimo to install.
+
+hostName=Hostname:
+adminId=Administrator id:
+adminPassword=Administrator password:
+specifyPorts=Specify the configured ports for this server.
+portName=Port Name
+portValue=Port Value
+
+editorCorrect=There was an error opening the editor.  The elements in the plan may not be qualified, do you want to try to auto-correct this? Otherwise the default text editor will be opened.
+editorDefault=Could not load the deployment plan.  Opening default text editor.
+serverNotStarted=Server has not been started.  Please start the server and retry the action.
+errorOpenDialog=Error opening editor.
+errorOpenWizard=Error opening wizard.
+
+sourceLocWizTitle=Geronimo Source
+sourceLocWizDescription=Choose the geronimo source zip file to locate source from during debug sessions.
+sourceZipFile=Geronimo Source Archive:
+browseSrcDialog=Select the Geronimo Source Archive.
+
+editorSectionTestEnvTitle=Test Environment
+editorSectionTestEnvDescription=Configure local test environment options.
+editorSectionSharedLibrariesInPlace=Enable in-place shared library support.
+editorSectionNotRedeployJSPFiles=No re-deployment when only JSP files are updated
+editorSectionRunFromWorkspace=Run modules directly from workspace.
+editorSectionSelectClasspathContainers=Select the workspace classpath containers to be provided to the server.
+editorSectionPublishAdvancedTitle=Publish Advanced
+editorSectionPublishAdvancedDescription=Additional options for publishing.
+notRedeployJSPFilesReminder = Important 
+notRedeployJSPFilesInformation = You must enable \"Development Mode\" of your server's JSP compiler for this to function properly. 
+
+publishingTimeout=Publishing Timeout (ms):
+artifactType=Artifact Type:
+inverseClassloading=Inverse classloading
+supressDefaultEnv=Suppress default environment
+sharedLibDepends=Add a runtime dependency to Geronimo's shared library
+addSharedLib=Add a runtime dependency to Geronimo's shared library
+webContainerSection=Web Container
+webContainerSectionDescription=Web Container Configuration
+useGBeanLink=Specify as GBean Link
+gBeanLink=GBean Link:
+useGBeanPattern=Specify as GBean Pattern
+moduleId=Module Id:
+
+useUnitName=Specify as Unit Name
+usePattern=Specify as Pattern
+cmpConnectionSection=C-M-P Connection Factory
+cmpConnectionSectionDescription=C-M-P Connection Factory Configuration
+useResourceLink=Specify as Resource Link
+resourceLink=Resource Link:
+useUrl=Specify as URL
+url=URL:
+useResourcePattern=Specify as Resource Pattern
+
+moduleType=Module Type
+path=Path
+internalPath=Internal Path
+externalPath=External Path
+altDD=Alternate DD
+
+serviceCompletionName=Service Completion Name:
+protocol=Protocol:
+credential=Credential:
+bindingName=Binding Name:
+uri=URI:
+
+connector=Connector
+ejb=EJB
+java=Java
+web=Web
+
+plugin=Plugin
+pluginActions=Plugin actions that can be performed on the server
+createCustomAssembly=Create Custom Assembly
+convertAppsToPlugins=Convert Apps to Plugins
+
+savePageTitle=Save Resource
+savePageMessage=Data must be saved before entering or leaving the Source page.
+
+wizardTitle_ManageAccount=Manage Account
+
+wizardTitle_PluginManager=Create and Install Geronimo Plugins
+wizardPage0Title_PluginManager=Plugin Manager
+wizardPage0Description_PluginManager=Select your local plugin repository and the action to take.
+wizardPage1Title_PluginManager=Application Selection
+wizardPage1Description_PluginManager=Choose a configuration in the current Geronimo server to export as a Geronimo plugin.\nThe configuration will be saved as a CAR file to your local file system.
+wizardPage2Title_PluginManager=Update Plugin Information
+wizardPage2Description_PluginManager=Update information for the plugin.
+wizardPage3Title_PluginManager=Update Plugin Information (continued)
+wizardPage3Description_PluginManager=Update information for the plugin.
+wizardPage4Title_PluginManager=Install Plugin
+wizardPage4Description_PluginManager=Select plugins to be installed to the server.
+wizardPage5Title_PluginManager=Installation Complete
+wizardPage5Description_PluginManager=List of plugins that have been installed to the server. 
+localPluginRepo=Local Plugin Repository:
+failedToSave=Failed to save {0}.
+savedSuccess={0} saved successfully.
+createPlugin=create Geronimo plugin
+installPlugins=install Geronimo plugins
+license=License
+osiApproved=OSI Approved
+id=id
+category=Category
+downloadRepos=Download Repos
+pluginURL=Plugin URL
+author=Author
+geronimoVersions= Geronimo versions
+jvmVersions=JVM versions
+dependencies=Dependencies
+obsoletes=Obsoletes
+installable=Installable
+event=Event
+prerequisites=Prerequisites
+
+poolName=Pool Name
+dbType=Database Type
+dbName=Database Name
+createDatabase=Create Database
+confirmPassword=Confirm Password
+loginTimeout=Login Timeout
+blockingTimeout=Blocking Timeout(in ms)
+idleTimeout=Idle Timeout(in mins)
+minPoolSize=Min Size
+maxPoolSize=Max Size
+transactionType=Transaction Type
+loginGroup=Login Details
+driverGroup=Driver Details
+basicGroup=Basic Settings
+advancedGroup=Advanced Settings
+
+
+

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/Messages.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/Messages.properties
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/Messages.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/Trace.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/Trace.java?rev=939152&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/Trace.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/Trace.java Thu Apr 29 00:57:12 2010
@@ -0,0 +1,112 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.geronimo.st.v30.ui.internal;
+
+import org.apache.geronimo.st.v30.ui.Activator;
+import org.eclipse.core.runtime.IStatus;
+
+/**
+ * Helper class to route trace output.
+ *
+ * @version $Rev$ $Date$
+ */
+public class Trace {
+
+    /**
+     * Finest trace event.
+     */
+    public static byte INFO = 0;
+
+    /**
+     * Warning trace event.
+     */
+    public static byte WARNING = 1;
+
+    /**
+     * Severe trace event.
+     */
+    public static byte SEVERE = 2;
+
+    /**
+     * Trace constructor comment.
+     */
+    private Trace() {
+        super();
+    }
+
+    /**
+     * Trace the given text.
+     * 
+     * @param level
+     *            the trace level
+     * @param s
+     *            a message
+     */
+    public static void trace(byte level, String s) {
+        trace(level, s, null);
+    }
+
+    /**
+     * Trace the given message and exception.
+     * 
+     * @param level
+     *            the trace level
+     * @param s
+     *            a message
+     * @param t
+     *            a throwable
+     */
+    public static void trace(byte level, String s, Throwable t) {
+        if (!Activator.getDefault().isDebugging())
+            return;
+
+        System.out.println(Activator.PLUGIN_ID + ":  " + s);
+        if (t != null)
+            t.printStackTrace();
+    }
+
+    /**
+     * Trace the given message 
+     * 
+     * @param tracePoint
+     *            The trace point (e.g., "Exit", "Entry", "Constructor", etc....
+     *            
+     * @param classDotMethod
+     *            The class name + method name (e.g., "Class.method()")
+     *            
+     * @param parms
+     *            Method parameter(s) if the trace point is an "Entry"
+     *            or
+     *            Return value if the trace point is an "Exit"
+     */
+    public static void tracePoint(String tracePoint, String classDotMethod) {
+        trace(Trace.INFO, tracePoint + ": " + classDotMethod + "()" );
+    }   
+    public static void tracePoint(String tracePoint, String classDotMethod, Object... parms) {
+        if ( parms == null ) {
+            trace(Trace.INFO, tracePoint + ": " + classDotMethod + "( null )" );
+        }
+        else {
+            trace(Trace.INFO, tracePoint + ": " + classDotMethod + "(" );
+            for ( int ii=0; ii<parms.length; ii++) {
+                Object parm = parms[ii];
+                trace(Trace.INFO, "    parm" + (ii+1) + "=[" + (parm == null ? null : parm.toString()) + "]" );
+            }
+            trace(Trace.INFO, ")" );
+        }
+    }   
+}
\ No newline at end of file

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/Trace.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/Trace.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/Trace.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain



Mime
View raw message