geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From de...@apache.org
Subject svn commit: r952535 [24/26] - in /geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins: org.apache.geronimo.j2ee.v11.jaxbmodel/ org.apache.geronimo.j2ee.v11.jaxbmodel/META-INF/ org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo...
Date Tue, 08 Jun 2010 04:40:28 GMT
Added: geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/openejb-jar-example-10.xml
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/openejb-jar-example-10.xml?rev=952535&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/openejb-jar-example-10.xml (added)
+++ geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/openejb-jar-example-10.xml Tue Jun  8 04:40:16 2010
@@ -0,0 +1,270 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  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.
+-->
+
+<!-- @version $Rev: 658553 $ $Date: 2008-05-21 12:55:52 +0800 (Wed, 21 May 2008) $ -->
+
+<ejb:openejb-jar xmlns:ejb="http://openejb.apache.org/xml/ns/openejb-jar-2.2" xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2" xmlns:name="http://geronimo.apache.org/xml/ns/naming-1.2" xmlns:pkgen="http://openejb.apache.org/xml/ns/pkgen-2.1" xmlns:app="http://geronimo.apache.org/xml/ns/j2ee/application-2.0" xmlns:sec="http://geronimo.apache.org/xml/ns/security-2.0">
+
+    <dep:environment>
+        <dep:moduleId>
+            <dep:groupId>default</dep:groupId>
+            <dep:artifactId>openejb-jar-2</dep:artifactId>
+            <dep:version>2.0</dep:version>
+            <dep:type>ear</dep:type>
+        </dep:moduleId>
+
+        <dep:dependencies>
+            <dep:dependency>
+                <dep:groupId>org.apache.geronimo.testsuite</dep:groupId>
+                <dep:artifactId>agent-ds</dep:artifactId>
+                <dep:version>2.2-SNAPSHOT</dep:version>
+                <dep:type>car</dep:type>
+            </dep:dependency>
+
+            <dep:dependency>
+                <dep:groupId>org.apache.geronimo.configs</dep:groupId>
+                <dep:artifactId>tomcat6</dep:artifactId>
+                <dep:version>2.2-SNAPSHOT</dep:version>
+                <dep:type>car</dep:type>
+            </dep:dependency>
+
+            <dep:dependency>
+                <dep:groupId>default</dep:groupId>
+                <dep:artifactId>geronimo-web-5</dep:artifactId>
+                <dep:version>1.0</dep:version>
+                <dep:type>car</dep:type>
+            </dep:dependency>
+
+            <dep:dependency>
+                <dep:groupId>default</dep:groupId>
+                <dep:artifactId>geronimo-ra-2</dep:artifactId>
+                <dep:version>1.0</dep:version>
+                <dep:type>car</dep:type>
+            </dep:dependency>
+
+            <dep:dependency>
+                <dep:groupId>default</dep:groupId>
+                <dep:artifactId>geronimo-web-2</dep:artifactId>
+                <dep:version>1.0</dep:version>
+                <dep:type>car</dep:type>
+            </dep:dependency>
+        </dep:dependencies>
+    </dep:environment>
+
+    <name:cmp-connection-factory>
+        <name:pattern>
+            <name:groupId>resourcelocator-pattern-groupid</name:groupId>
+            <name:artifactId>resourcelocator-pattern-artifactid</name:artifactId>
+            <name:version>resourcelocator-pattern-version</name:version>
+            <name:module>resourcelocator-pattern-module</name:module>
+            <name:name>resourcelocator-pattern-name</name:name>
+        </name:pattern>
+        <name:resource-link>resourcelocator-resourcelink</name:resource-link>
+        <name:url>resourcelocator-url</name:url>
+    </name:cmp-connection-factory>
+    <ejb:ejb-ql-compiler-factory>ejbqlcompilerfactory</ejb:ejb-ql-compiler-factory>
+    <ejb:db-syntax-factory>dbsyntaxfactory</ejb:db-syntax-factory>
+    <ejb:enforce-foreign-key-constraints/>
+    <ejb:enterprise-beans>
+        <ejb:message-driven id="messagedrivenbean-id">
+            <ejb:ejb-name>messagedrivenbean-ejbname</ejb:ejb-name>
+            <name:resource-adapter>
+                <name:pattern>
+                    <name:groupId>messagedrivenbean-resourcelocator-pattern-groupid</name:groupId>
+                    <name:artifactId>messagedrivenbean-resourcelocator-pattern-artifactid</name:artifactId>
+                    <name:version>messagedrivenbean-resourcelocator-pattern-version</name:version>
+                    <name:module>messagedrivenbean-resourcelocator-pattern-module</name:module>
+                    <name:name>messagedrivenbean-resourcelocator-pattern-name</name:name>
+                </name:pattern>
+                <name:resource-link>messagedrivenbean-resourcelocator-resourcelink</name:resource-link>
+                <name:url>messagedrivenbean-resourcelocator-url</name:url>
+            </name:resource-adapter>
+            <ejb:activation-config>
+                <ejb:description>messagedrivenbean-activationconfig-description</ejb:description>
+                <ejb:activation-config-property>
+                    <ejb:activation-config-property-name>messagedrivenbean-activationconfigproperty-name</ejb:activation-config-property-name>
+                    <ejb:activation-config-property-value>messagedrivenbean-activationconfigproperty-value</ejb:activation-config-property-value>
+                </ejb:activation-config-property>
+            </ejb:activation-config>
+            <name:abstract-naming-entry xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="name:persistence-unit-refType">
+                <name:persistence-unit-ref-name>messagedrivenbean-persistenceunitref-unitrefname</name:persistence-unit-ref-name>
+                <name:persistence-unit-name>messagedrivenbean-persistenceunitref-unitname</name:persistence-unit-name>
+                <name:pattern>
+                    <name:groupId>messagedrivenbean-persistenceunitref-pattern-groupid</name:groupId>
+                    <name:artifactId>messagedrivenbean-persistenceunitref-pattern-artifactid</name:artifactId>
+                    <name:version>messagedrivenbean-persistenceunitref-pattern-version</name:version>
+                    <name:module>messagedrivenbean-persistenceunitref-pattern-module</name:module>
+                    <name:name>messagedrivenbean-persistenceunitref-pattern-name</name:name>
+                </name:pattern>
+            </name:abstract-naming-entry>
+            <name:ejb-ref>
+                <name:ref-name>messagedrivenbean-ejbref-refname</name:ref-name>
+                <name:pattern>
+                    <name:groupId>messagedrivenbean-ejbref-pattern-groupid</name:groupId>
+                    <name:artifactId>messagedrivenbean-ejbref-pattern-artifactid</name:artifactId>
+                    <name:version>messagedrivenbean-ejbref-pattern-version</name:version>
+                    <name:module>messagedrivenbean-ejbref-pattern-module</name:module>
+                    <name:name>messagedrivenbean-ejbref-pattern-name</name:name>
+                </name:pattern>
+                <name:ns-corbaloc>messagedrivenbean-ejbref-nscorbaloc</name:ns-corbaloc>
+                <name:name>messagedrivenbean-ejbref-name</name:name>
+                <name:css>
+                    <name:groupId>messagedrivenbean-ejbref-css-groupid</name:groupId>
+                    <name:artifactId>messagedrivenbean-ejbref-css-artifactid</name:artifactId>
+                    <name:version>messagedrivenbean-ejbref-css-version</name:version>
+                    <name:module>messagedrivenbean-ejbref-css-module</name:module>
+                    <name:name>messagedrivenbean-ejbref-css-name</name:name>
+                </name:css>
+                <name:css-link>messagedrivenbean-ejbref-csslink</name:css-link>
+                <name:ejb-link>messagedrivenbean-ejbref-ejblink</name:ejb-link>
+            </name:ejb-ref>
+            <name:ejb-local-ref>
+                <name:ref-name>messagedrivenbean-ejblocalref-refname</name:ref-name>
+                <name:pattern>
+                    <name:groupId>messagedrivenbean-ejblocalref-pattern-groupid</name:groupId>
+                    <name:artifactId>messagedrivenbean-ejblocalref-pattern-artifactid</name:artifactId>
+                    <name:version>messagedrivenbean-ejblocalref-pattern-version</name:version>
+                    <name:module>messagedrivenbean-ejblocalref-pattern-module</name:module>
+                    <name:name>messagedrivenbean-ejblocalref-pattern-name</name:name>
+                </name:pattern>
+                <name:ejb-link>messagedrivenbean-ejblocalref-ejblink</name:ejb-link>
+            </name:ejb-local-ref>
+            <name:service-ref>
+                <name:service-ref-name>messagedrivenbean-serviceref-refname</name:service-ref-name>
+                <name:service-completion>
+                    <name:service-name>messagedrivenbean-serviceref-servicecompletion-servicename</name:service-name>
+                    <name:port-completion>
+                        <name:port>
+                            <name:port-name>messagedrivenbean-serviceref-servicecompletion-portcompletion-port-portname</name:port-name>
+                            <name:protocol>messagedrivenbean-serviceref-servicecompletion-portcompletion-port-protocol</name:protocol>
+                            <name:host>messagedrivenbean-serviceref-servicecompletion-portcompletion-port-host</name:host>
+                            <name:port>0</name:port>
+                            <name:uri>messagedrivenbean-serviceref-servicecompletion-portcompletion-port-uri</name:uri>
+                            <name:credentials-name>messagedrivenbean-serviceref-servicecompletion-portcompletion-port-credentialsname</name:credentials-name>
+                        </name:port>
+                        <name:binding-name>messagedrivenbean-serviceref-servicecompletion-portcompletion-bindingname</name:binding-name>
+                    </name:port-completion>
+                </name:service-completion>
+                <name:port>
+                    <name:port-name>messagedrivenbean-serviceref-port-portname</name:port-name>
+                    <name:protocol>messagedrivenbean-serviceref-port-protocol</name:protocol>
+                    <name:host>messagedrivenbean-serviceref-port-host</name:host>
+                    <name:port>0</name:port>
+                    <name:uri>messagedrivenbean-serviceref-port-uri</name:uri>
+                    <name:credentials-name>messagedrivenbean-serviceref-port-credentialsname</name:credentials-name>
+                </name:port>
+            </name:service-ref>
+            <name:resource-ref>
+                <name:ref-name>messagedrivenbean-resourceref-refname</name:ref-name>
+                <name:pattern>
+                    <name:groupId>messagedrivenbean-resourceref-pattern-groupid</name:groupId>
+                    <name:artifactId>messagedrivenbean-resourceref-pattern-artifactid</name:artifactId>
+                    <name:version>messagedrivenbean-resourceref-pattern-version</name:version>
+                    <name:module>messagedrivenbean-resourcref-pattern-module</name:module>
+                    <name:name>messagedrivenbean-resourceref-pattern-name</name:name>
+                </name:pattern>
+                <name:resource-link>messagedrivenbean-resourceref-resourcelink</name:resource-link>
+                <name:url>messagedrivenbean-resourceref-url</name:url>
+            </name:resource-ref>
+            <name:resource-env-ref>
+                <name:ref-name>messagedrivenbean-resourceenvref-refname</name:ref-name>
+                <name:pattern>
+                    <name:groupId>messagedrivenbean-resourceenvref-pattern-groupid</name:groupId>
+                    <name:artifactId>messagedrivenbean-resourceenvref-pattern-artifactid</name:artifactId>
+                    <name:version>messagedrivenbean-resourceenvref-pattern-version</name:version>
+                    <name:module>messagedrivenbean-resourceenvref-pattern-module</name:module>
+                    <name:name>messagedrivenbean-resourceenvref-pattern-name</name:name>
+                </name:pattern>
+                <name:message-destination-link>messagedrivenbean-resourceenvref-messagedestinationlink</name:message-destination-link>
+                <name:admin-object-module>messagedrivenbean-resourceenvref-adminobjectmodule</name:admin-object-module>
+                <name:admin-object-link>messagedrivenbean-resourceenvref-adminobjectlink</name:admin-object-link>
+            </name:resource-env-ref>
+        </ejb:message-driven>
+    </ejb:enterprise-beans>
+    <ejb:relationships>
+        <ejb:ejb-relation>
+            <ejb:ejb-relation-name>ejbrelation-ejbrelationname</ejb:ejb-relation-name>
+            <ejb:many-to-many-table-name>ejbrelation-manytomanytablename</ejb:many-to-many-table-name>
+            <ejb:ejb-relationship-role>
+                <ejb:ejb-relationship-role-name>ejbrelation-role-name</ejb:ejb-relationship-role-name>
+                <ejb:relationship-role-source>
+                    <ejb:ejb-name>ejbrelation-role-ejbname</ejb:ejb-name>
+                </ejb:relationship-role-source>
+                <ejb:cmr-field>
+                    <ejb:cmr-field-name>ejbrelation-role-cmrfieldname</ejb:cmr-field-name>
+                </ejb:cmr-field>
+                <ejb:role-mapping>
+                    <ejb:cmr-field-mapping>
+                        <ejb:key-column>ejbrelation-role-mapping-keycolumn</ejb:key-column>
+                        <ejb:foreign-key-column>ejbrelation-role-mapping-foreignkeycolumn</ejb:foreign-key-column>
+                    </ejb:cmr-field-mapping>
+                </ejb:role-mapping>
+            </ejb:ejb-relationship-role>
+        </ejb:ejb-relation>
+    </ejb:relationships>
+    <name:message-destination>
+        <name:message-destination-name>messagedestination-name</name:message-destination-name>
+        <name:pattern>
+            <name:groupId>messagedestination-pattern-groupid</name:groupId>
+            <name:artifactId>messagedestination-pattern-artifactid</name:artifactId>
+            <name:version>messagedestination-pattern-version</name:version>
+            <name:module>messagedestination-pattern-module</name:module>
+            <name:name>messagedestination-pattern-name</name:name>
+        </name:pattern>
+        <name:admin-object-module>messagedestination-adminobjectmodule</name:admin-object-module>
+        <name:admin-object-link>messagedestination-adminobjectlink</name:admin-object-link>
+    </name:message-destination>
+    <sec:security use-context-handler="true" doas-current-caller="true" default-role="security-role">
+        <sec:credential-store-ref>
+            <dep:groupId>security-credentialstoreref-groupid</dep:groupId>
+            <dep:artifactId>security-credentialstoreref-artifactid</dep:artifactId>
+            <dep:version>security-credentialstoreref-version</dep:version>
+            <dep:module>security-credentialstoreref-module</dep:module>
+            <dep:type>security-credentialstoreref-type</dep:type>
+            <dep:name>security-credentialstoreref-customfoo</dep:name>
+        </sec:credential-store-ref>
+        <sec:default-subject>
+            <sec:description>security-subjectinfo-description</sec:description>
+            <sec:realm>security-subjectinfo-realm</sec:realm>
+            <sec:id>security-subjectinfo-id</sec:id>
+        </sec:default-subject>
+        <sec:role-mappings>
+            <sec:role role-name="security-role">
+                <sec:description>security-role-description</sec:description>
+                <sec:run-as-subject>
+                    <sec:description>security-role-subjectinfo-description</sec:description>
+                    <sec:realm>security-role-subjectinfo-realm</sec:realm>
+                    <sec:id>security-role-subjectinfo-id</sec:id>
+                </sec:run-as-subject>
+                <sec:realm-principal name="security-role-realmprincipal-name" class="security-role-realmprincipal-class">
+                    <sec:description>security-role-realmprincipal-description</sec:description>
+                </sec:realm-principal>
+                <sec:login-domain-principal domain-name="security-role-logindomainprincipal-domainname" name="security-role-logindomainprincipal-name" class="security-role-logindomainprincipal-class">
+                    <sec:description>security-role-logindomainprincipal-description</sec:description>
+                </sec:login-domain-principal>
+                <sec:principal name="security-role-principal-name" class="security-role-principal-class">
+                    <sec:description>security-role-principal-description</sec:description>
+                </sec:principal>
+                <sec:distinguished-name name="security-role-distinguishedname">
+                    <sec:description>security-role-distinguished-name-description</sec:description>
+                </sec:distinguished-name>
+            </sec:role>
+        </sec:role-mappings>
+    </sec:security>
+    <dep:gbean name="gbean-name" class="gbean-class"/>
+</ejb:openejb-jar>

Added: geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/openejb-jar-example-9.xml
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/openejb-jar-example-9.xml?rev=952535&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/openejb-jar-example-9.xml (added)
+++ geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/openejb-jar-example-9.xml Tue Jun  8 04:40:16 2010
@@ -0,0 +1,249 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  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.
+-->
+
+<!-- @version $Rev: 658553 $ $Date: 2008-05-21 12:55:52 +0800 (Wed, 21 May 2008) $ -->
+
+<ejb:openejb-jar xmlns:ejb="http://openejb.apache.org/xml/ns/openejb-jar-2.2" xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2" xmlns:name="http://geronimo.apache.org/xml/ns/naming-1.2" xmlns:pkgen="http://openejb.apache.org/xml/ns/pkgen-2.1" xmlns:app="http://geronimo.apache.org/xml/ns/j2ee/application-2.0" xmlns:sec="http://geronimo.apache.org/xml/ns/security-2.0">
+
+    <dep:environment>
+        <dep:moduleId>
+            <dep:groupId>default</dep:groupId>
+            <dep:artifactId>openejb-jar-1</dep:artifactId>
+            <dep:version>2.0</dep:version>
+            <dep:type>ear</dep:type>
+        </dep:moduleId>
+
+        <dep:dependencies>
+            <dep:dependency>
+                <dep:groupId>org.apache.geronimo.testsuite</dep:groupId>
+                <dep:artifactId>agent-ds</dep:artifactId>
+                <dep:version>2.2-SNAPSHOT</dep:version>
+                <dep:type>car</dep:type>
+            </dep:dependency>
+
+            <dep:dependency>
+                <dep:groupId>org.apache.geronimo.configs</dep:groupId>
+                <dep:artifactId>tomcat6</dep:artifactId>
+                <dep:version>2.2-SNAPSHOT</dep:version>
+                <dep:type>car</dep:type>
+            </dep:dependency>
+        </dep:dependencies>
+    </dep:environment>
+
+    <name:cmp-connection-factory>
+        <name:pattern>
+            <name:groupId>resourcelocator-pattern-groupid</name:groupId>
+            <name:artifactId>resourcelocator-pattern-artifactid</name:artifactId>
+            <name:version>resourcelocator-pattern-version</name:version>
+            <name:module>resourcelocator-pattern-module</name:module>
+            <name:name>resourcelocator-pattern-name</name:name>
+        </name:pattern>
+        <name:resource-link>resourcelocator-resourcelink</name:resource-link>
+        <name:url>resourcelocator-url</name:url>
+    </name:cmp-connection-factory>
+    <ejb:ejb-ql-compiler-factory>ejbqlcompilerfactory</ejb:ejb-ql-compiler-factory>
+    <ejb:db-syntax-factory>dbsyntaxfactory</ejb:db-syntax-factory>
+    <ejb:enforce-foreign-key-constraints/>
+    <ejb:enterprise-beans>
+        <ejb:message-driven id="messagedrivenbean-id">
+            <ejb:ejb-name>messagedrivenbean-ejbname</ejb:ejb-name>
+            <name:resource-adapter>
+                <name:pattern>
+                    <name:groupId>messagedrivenbean-resourcelocator-pattern-groupid</name:groupId>
+                    <name:artifactId>messagedrivenbean-resourcelocator-pattern-artifactid</name:artifactId>
+                    <name:version>messagedrivenbean-resourcelocator-pattern-version</name:version>
+                    <name:module>messagedrivenbean-resourcelocator-pattern-module</name:module>
+                    <name:name>messagedrivenbean-resourcelocator-pattern-name</name:name>
+                </name:pattern>
+                <name:resource-link>messagedrivenbean-resourcelocator-resourcelink</name:resource-link>
+                <name:url>messagedrivenbean-resourcelocator-url</name:url>
+            </name:resource-adapter>
+            <ejb:activation-config>
+                <ejb:description>messagedrivenbean-activationconfig-description</ejb:description>
+                <ejb:activation-config-property>
+                    <ejb:activation-config-property-name>messagedrivenbean-activationconfigproperty-name</ejb:activation-config-property-name>
+                    <ejb:activation-config-property-value>messagedrivenbean-activationconfigproperty-value</ejb:activation-config-property-value>
+                </ejb:activation-config-property>
+            </ejb:activation-config>
+            <name:abstract-naming-entry xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="name:persistence-unit-refType">
+                <name:persistence-unit-ref-name>messagedrivenbean-persistenceunitref-unitrefname</name:persistence-unit-ref-name>
+                <name:persistence-unit-name>messagedrivenbean-persistenceunitref-unitname</name:persistence-unit-name>
+                <name:pattern>
+                    <name:groupId>messagedrivenbean-persistenceunitref-pattern-groupid</name:groupId>
+                    <name:artifactId>messagedrivenbean-persistenceunitref-pattern-artifactid</name:artifactId>
+                    <name:version>messagedrivenbean-persistenceunitref-pattern-version</name:version>
+                    <name:module>messagedrivenbean-persistenceunitref-pattern-module</name:module>
+                    <name:name>messagedrivenbean-persistenceunitref-pattern-name</name:name>
+                </name:pattern>
+            </name:abstract-naming-entry>
+            <name:ejb-ref>
+                <name:ref-name>messagedrivenbean-ejbref-refname</name:ref-name>
+                <name:pattern>
+                    <name:groupId>messagedrivenbean-ejbref-pattern-groupid</name:groupId>
+                    <name:artifactId>messagedrivenbean-ejbref-pattern-artifactid</name:artifactId>
+                    <name:version>messagedrivenbean-ejbref-pattern-version</name:version>
+                    <name:module>messagedrivenbean-ejbref-pattern-module</name:module>
+                    <name:name>messagedrivenbean-ejbref-pattern-name</name:name>
+                </name:pattern>
+                <name:ns-corbaloc>messagedrivenbean-ejbref-nscorbaloc</name:ns-corbaloc>
+                <name:name>messagedrivenbean-ejbref-name</name:name>
+                <name:css>
+                    <name:groupId>messagedrivenbean-ejbref-css-groupid</name:groupId>
+                    <name:artifactId>messagedrivenbean-ejbref-css-artifactid</name:artifactId>
+                    <name:version>messagedrivenbean-ejbref-css-version</name:version>
+                    <name:module>messagedrivenbean-ejbref-css-module</name:module>
+                    <name:name>messagedrivenbean-ejbref-css-name</name:name>
+                </name:css>
+                <name:css-link>messagedrivenbean-ejbref-csslink</name:css-link>
+                <name:ejb-link>messagedrivenbean-ejbref-ejblink</name:ejb-link>
+            </name:ejb-ref>
+            <name:ejb-local-ref>
+                <name:ref-name>messagedrivenbean-ejblocalref-refname</name:ref-name>
+                <name:pattern>
+                    <name:groupId>messagedrivenbean-ejblocalref-pattern-groupid</name:groupId>
+                    <name:artifactId>messagedrivenbean-ejblocalref-pattern-artifactid</name:artifactId>
+                    <name:version>messagedrivenbean-ejblocalref-pattern-version</name:version>
+                    <name:module>messagedrivenbean-ejblocalref-pattern-module</name:module>
+                    <name:name>messagedrivenbean-ejblocalref-pattern-name</name:name>
+                </name:pattern>
+                <name:ejb-link>messagedrivenbean-ejblocalref-ejblink</name:ejb-link>
+            </name:ejb-local-ref>
+            <name:service-ref>
+                <name:service-ref-name>messagedrivenbean-serviceref-refname</name:service-ref-name>
+                <name:service-completion>
+                    <name:service-name>messagedrivenbean-serviceref-servicecompletion-servicename</name:service-name>
+                    <name:port-completion>
+                        <name:port>
+                            <name:port-name>messagedrivenbean-serviceref-servicecompletion-portcompletion-port-portname</name:port-name>
+                            <name:protocol>messagedrivenbean-serviceref-servicecompletion-portcompletion-port-protocol</name:protocol>
+                            <name:host>messagedrivenbean-serviceref-servicecompletion-portcompletion-port-host</name:host>
+                            <name:port>0</name:port>
+                            <name:uri>messagedrivenbean-serviceref-servicecompletion-portcompletion-port-uri</name:uri>
+                            <name:credentials-name>messagedrivenbean-serviceref-servicecompletion-portcompletion-port-credentialsname</name:credentials-name>
+                        </name:port>
+                        <name:binding-name>messagedrivenbean-serviceref-servicecompletion-portcompletion-bindingname</name:binding-name>
+                    </name:port-completion>
+                </name:service-completion>
+                <name:port>
+                    <name:port-name>messagedrivenbean-serviceref-port-portname</name:port-name>
+                    <name:protocol>messagedrivenbean-serviceref-port-protocol</name:protocol>
+                    <name:host>messagedrivenbean-serviceref-port-host</name:host>
+                    <name:port>0</name:port>
+                    <name:uri>messagedrivenbean-serviceref-port-uri</name:uri>
+                    <name:credentials-name>messagedrivenbean-serviceref-port-credentialsname</name:credentials-name>
+                </name:port>
+            </name:service-ref>
+            <name:resource-ref>
+                <name:ref-name>messagedrivenbean-resourceref-refname</name:ref-name>
+                <name:pattern>
+                    <name:groupId>messagedrivenbean-resourceref-pattern-groupid</name:groupId>
+                    <name:artifactId>messagedrivenbean-resourceref-pattern-artifactid</name:artifactId>
+                    <name:version>messagedrivenbean-resourceref-pattern-version</name:version>
+                    <name:module>messagedrivenbean-resourcref-pattern-module</name:module>
+                    <name:name>messagedrivenbean-resourceref-pattern-name</name:name>
+                </name:pattern>
+                <name:resource-link>messagedrivenbean-resourceref-resourcelink</name:resource-link>
+                <name:url>messagedrivenbean-resourceref-url</name:url>
+            </name:resource-ref>
+            <name:resource-env-ref>
+                <name:ref-name>messagedrivenbean-resourceenvref-refname</name:ref-name>
+                <name:pattern>
+                    <name:groupId>messagedrivenbean-resourceenvref-pattern-groupid</name:groupId>
+                    <name:artifactId>messagedrivenbean-resourceenvref-pattern-artifactid</name:artifactId>
+                    <name:version>messagedrivenbean-resourceenvref-pattern-version</name:version>
+                    <name:module>messagedrivenbean-resourceenvref-pattern-module</name:module>
+                    <name:name>messagedrivenbean-resourceenvref-pattern-name</name:name>
+                </name:pattern>
+                <name:message-destination-link>messagedrivenbean-resourceenvref-messagedestinationlink</name:message-destination-link>
+                <name:admin-object-module>messagedrivenbean-resourceenvref-adminobjectmodule</name:admin-object-module>
+                <name:admin-object-link>messagedrivenbean-resourceenvref-adminobjectlink</name:admin-object-link>
+            </name:resource-env-ref>
+        </ejb:message-driven>
+    </ejb:enterprise-beans>
+    <ejb:relationships>
+        <ejb:ejb-relation>
+            <ejb:ejb-relation-name>ejbrelation-ejbrelationname</ejb:ejb-relation-name>
+            <ejb:many-to-many-table-name>ejbrelation-manytomanytablename</ejb:many-to-many-table-name>
+            <ejb:ejb-relationship-role>
+                <ejb:ejb-relationship-role-name>ejbrelation-role-name</ejb:ejb-relationship-role-name>
+                <ejb:relationship-role-source>
+                    <ejb:ejb-name>ejbrelation-role-ejbname</ejb:ejb-name>
+                </ejb:relationship-role-source>
+                <ejb:cmr-field>
+                    <ejb:cmr-field-name>ejbrelation-role-cmrfieldname</ejb:cmr-field-name>
+                </ejb:cmr-field>
+                <ejb:role-mapping>
+                    <ejb:cmr-field-mapping>
+                        <ejb:key-column>ejbrelation-role-mapping-keycolumn</ejb:key-column>
+                        <ejb:foreign-key-column>ejbrelation-role-mapping-foreignkeycolumn</ejb:foreign-key-column>
+                    </ejb:cmr-field-mapping>
+                </ejb:role-mapping>
+            </ejb:ejb-relationship-role>
+        </ejb:ejb-relation>
+    </ejb:relationships>
+    <name:message-destination>
+        <name:message-destination-name>messagedestination-name</name:message-destination-name>
+        <name:pattern>
+            <name:groupId>messagedestination-pattern-groupid</name:groupId>
+            <name:artifactId>messagedestination-pattern-artifactid</name:artifactId>
+            <name:version>messagedestination-pattern-version</name:version>
+            <name:module>messagedestination-pattern-module</name:module>
+            <name:name>messagedestination-pattern-name</name:name>
+        </name:pattern>
+        <name:admin-object-module>messagedestination-adminobjectmodule</name:admin-object-module>
+        <name:admin-object-link>messagedestination-adminobjectlink</name:admin-object-link>
+    </name:message-destination>
+    <sec:security use-context-handler="true" doas-current-caller="true" default-role="security-role">
+        <sec:credential-store-ref>
+            <dep:groupId>security-credentialstoreref-groupid</dep:groupId>
+            <dep:artifactId>security-credentialstoreref-artifactid</dep:artifactId>
+            <dep:version>security-credentialstoreref-version</dep:version>
+            <dep:module>security-credentialstoreref-module</dep:module>
+            <dep:type>security-credentialstoreref-type</dep:type>
+            <dep:name>security-credentialstoreref-customfoo</dep:name>
+        </sec:credential-store-ref>
+        <sec:default-subject>
+            <sec:description>security-subjectinfo-description</sec:description>
+            <sec:realm>security-subjectinfo-realm</sec:realm>
+            <sec:id>security-subjectinfo-id</sec:id>
+        </sec:default-subject>
+        <sec:role-mappings>
+            <sec:role role-name="security-role">
+                <sec:description>security-role-description</sec:description>
+                <sec:run-as-subject>
+                    <sec:description>security-role-subjectinfo-description</sec:description>
+                    <sec:realm>security-role-subjectinfo-realm</sec:realm>
+                    <sec:id>security-role-subjectinfo-id</sec:id>
+                </sec:run-as-subject>
+                <sec:realm-principal name="security-role-realmprincipal-name" class="security-role-realmprincipal-class">
+                    <sec:description>security-role-realmprincipal-description</sec:description>
+                </sec:realm-principal>
+                <sec:login-domain-principal domain-name="security-role-logindomainprincipal-domainname" name="security-role-logindomainprincipal-name" class="security-role-logindomainprincipal-class">
+                    <sec:description>security-role-logindomainprincipal-description</sec:description>
+                </sec:login-domain-principal>
+                <sec:principal name="security-role-principal-name" class="security-role-principal-class">
+                    <sec:description>security-role-principal-description</sec:description>
+                </sec:principal>
+                <sec:distinguished-name name="security-role-distinguishedname">
+                    <sec:description>security-role-distinguished-name-description</sec:description>
+                </sec:distinguished-name>
+            </sec:role>
+        </sec:role-mappings>
+    </sec:security>
+    <dep:gbean name="gbean-name" class="gbean-class"/>
+</ejb:openejb-jar>

Modified: geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/META-INF/MANIFEST.MF
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/META-INF/MANIFEST.MF?rev=952535&r1=952534&r2=952535&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/META-INF/MANIFEST.MF (original)
+++ geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/META-INF/MANIFEST.MF Tue Jun  8 04:40:16 2010
@@ -18,7 +18,12 @@ Require-Bundle: org.apache.geronimo.runt
  org.eclipse.core.resources,
  org.eclipse.wst.common.project.facet.ui,
  org.eclipse.wst.server.core,
- org.eclipse.wst.server.ui
+ org.eclipse.wst.server.ui,
+ org.eclipse.ui.ide,
+ org.eclipse.wst.common.modulecore,
+ org.eclipse.wst.sse.ui,
+ org.eclipse.jface.text,
+ org.eclipse.jdt.debug.ui
 Bundle-ActivationPolicy: lazy
 Bundle-Vendor: Apache Software Foundation
 Export-Package: org.apache.geronimo.st.v21.ui,

Added: geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/actions/LaunchGeronimoConsoleAction.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/actions/LaunchGeronimoConsoleAction.java?rev=952535&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/actions/LaunchGeronimoConsoleAction.java (added)
+++ geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/actions/LaunchGeronimoConsoleAction.java Tue Jun  8 04:40:16 2010
@@ -0,0 +1,116 @@
+/*
+ * 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.v21.ui.actions;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+
+import org.apache.geronimo.st.v21.core.GeronimoServerDelegate;
+import org.apache.geronimo.st.ui.internal.Messages;
+import org.apache.geronimo.st.ui.internal.Trace;
+import org.eclipse.core.runtime.IConfigurationElement;
+import org.eclipse.core.runtime.IExtensionRegistry;
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.StructuredSelection;
+import org.eclipse.ui.IActionDelegate;
+import org.eclipse.ui.PartInitException;
+import org.eclipse.ui.browser.IWebBrowser;
+import org.eclipse.ui.browser.IWorkbenchBrowserSupport;
+import org.eclipse.ui.internal.browser.WorkbenchBrowserSupport;
+import org.eclipse.wst.server.core.IServer;
+
+/**
+ * @version $Rev: 688899 $ $Date: 2008-08-26 06:10:55 +0800 (Tue, 26 Aug 2008) $
+ */
+public class LaunchGeronimoConsoleAction implements IActionDelegate {
+
+	private IServer server;
+
+	private String serverPrefix;
+
+	public LaunchGeronimoConsoleAction() {
+        super();
+        IExtensionRegistry reg = Platform.getExtensionRegistry();
+        IConfigurationElement[] extensions = reg
+                .getConfigurationElementsFor("org.apache.geronimo.st.ui.actionURLs");
+        for (IConfigurationElement element : extensions) {
+            Trace.trace(Trace.INFO, element.getName() + " = "
+                    + element.getValue() + ".");
+            if (element.getName().equals("server_prefix")) {
+                serverPrefix = element.getValue();
+                Trace
+                        .trace(Trace.INFO, "server_prefix = " + serverPrefix
+                                + ".");
+            }
+        }
+    }
+
+	public URL getConsoleUrl() throws MalformedURLException {
+		if (server != null) {
+			GeronimoServerDelegate gs = (GeronimoServerDelegate) server.getAdapter(GeronimoServerDelegate.class);
+			return new URL("http://" + server.getHost() + ":"
+					+ gs.getHTTPPort() + "/console/");
+		}
+		return null;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
+	 */
+	public void run(IAction action) {
+
+		try {
+			int style = IWorkbenchBrowserSupport.AS_EDITOR
+					| IWorkbenchBrowserSupport.STATUS;
+			IWebBrowser browser = WorkbenchBrowserSupport.getInstance().createBrowser(style, "console", 
+                                Messages.bind(Messages.console, server.getName()),
+                                Messages.bind(Messages.consoleTooltip, server
+                                                .getName()));
+			URL url = getConsoleUrl();
+			if (url != null)
+				browser.openURL(url);
+		} catch (MalformedURLException e) {
+			e.printStackTrace();
+		} catch (PartInitException e) {
+			e.printStackTrace();
+		}
+
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction,
+	 *      org.eclipse.jface.viewers.ISelection)
+	 */
+	public void selectionChanged(IAction action, ISelection selection) {
+
+		server = (IServer) ((StructuredSelection) selection).getFirstElement();
+
+		boolean enable = server != null
+				&& server.getServerType().getId().startsWith(serverPrefix)
+				&& server.getServerState() == IServer.STATE_STARTED;
+
+		action.setEnabled(enable);
+
+	}
+
+}

Added: geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetClasspathContainersCommand.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetClasspathContainersCommand.java?rev=952535&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetClasspathContainersCommand.java (added)
+++ geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetClasspathContainersCommand.java Tue Jun  8 04:40:16 2010
@@ -0,0 +1,95 @@
+/*
+ * 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.v21.ui.commands;
+
+import java.util.ArrayList;
+import java.util.List;
+import org.apache.geronimo.st.v21.core.GeronimoServerDelegate;
+import org.apache.geronimo.st.ui.commands.ServerCommand;
+import org.apache.geronimo.st.ui.internal.Trace;
+import org.eclipse.wst.server.core.IServerWorkingCopy;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class SetClasspathContainersCommand extends ServerCommand {
+
+    private List<String> newList;
+    private List<String> oldList;
+
+
+    /*
+     * @param server
+     * @param checkList string array
+     */
+    public SetClasspathContainersCommand(IServerWorkingCopy server, Object[] checkList) {
+
+        super(server, "SetClasspathContainersCommand");
+        this.newList = createList( checkList );
+
+        Trace.tracePoint("ENTRY", "SetClasspathContainersCommand", checkList, checkList.length );
+        Trace.tracePoint("EXIT", "SetClasspathContainersCommand");
+    }
+
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.st.ui.commands.ServerCommand#execute()
+     */
+    public void execute() {
+        Trace.tracePoint("ENTRY", "SetClasspathContainersCommand.execute");
+
+        GeronimoServerDelegate gs = (GeronimoServerDelegate) server.getAdapter(GeronimoServerDelegate.class);
+        oldList = gs.getClasspathContainers();
+        gs.setClasspathContainers(newList);
+
+        Trace.tracePoint("EXIT", "SetClasspathContainersCommand.execute");
+    }
+
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.st.ui.commands.ServerCommand#undo()
+     */
+    public void undo() {
+        Trace.tracePoint("ENTRY", "SetClasspathContainersCommand.undo");
+
+        GeronimoServerDelegate gs = (GeronimoServerDelegate) server.getAdapter(GeronimoServerDelegate.class);
+        gs.setClasspathContainers(oldList);
+
+        Trace.tracePoint("EXIT", "SetClasspathContainersCommand.undo");
+    }
+
+
+    //
+    // Convert object array to List<String>
+    //
+	public List<String> createList( Object[] checkList ) {
+        Trace.tracePoint("ENTRY", "SetClasspathContainersCommand.createList");
+    
+        List<String> containers = new ArrayList<String>();
+        for (Object container : checkList) {
+            containers.add( (String)container );
+        }
+
+        Trace.tracePoint("EXIT", "SetClasspathContainersCommand.createList", containers );
+        return containers;
+   }
+
+}

Added: geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetConsoleLogLevelCommand.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetConsoleLogLevelCommand.java?rev=952535&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetConsoleLogLevelCommand.java (added)
+++ geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetConsoleLogLevelCommand.java Tue Jun  8 04:40:16 2010
@@ -0,0 +1,69 @@
+/*
+ * 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.v21.ui.commands;
+
+import org.apache.geronimo.st.ui.commands.ServerCommand;
+import org.apache.geronimo.st.v21.core.GeronimoServerDelegate;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.wst.server.core.IServerWorkingCopy;
+
+/**
+ * @version $Rev: 471551 $ $Date: 2006-11-06 06:47:11 +0800 (Mon, 06 Nov 2006) $
+ */
+public class SetConsoleLogLevelCommand extends ServerCommand {
+
+	String value;
+
+	String oldValue;
+
+	/**
+	 * @param server
+	 * @param name
+	 */
+	public SetConsoleLogLevelCommand(IServerWorkingCopy server, String value) {
+		super(server, "SetConsoleLogLevelCommand");
+		this.value = value;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.eclipse.wst.server.ui.internal.command.ServerCommand#execute()
+	 */
+	public void execute() {
+		GeronimoServerDelegate gs = getGeronimoServer();
+		oldValue = gs.getConsoleLogLevel();
+		gs.setConsoleLogLevel(value);
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.eclipse.wst.server.ui.internal.command.ServerCommand#undo()
+	 */
+	public void undo() {
+		getGeronimoServer().setConsoleLogLevel(oldValue);
+	}
+
+	private GeronimoServerDelegate getGeronimoServer() {
+		GeronimoServerDelegate gs = (GeronimoServerDelegate) server.getAdapter(GeronimoServerDelegate.class);
+		if (gs == null) {
+			gs = (GeronimoServerDelegate) server.loadAdapter(GeronimoServerDelegate.class, new NullProgressMonitor());
+		}
+		return gs;
+	}
+}

Added: geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetHTTPPortCommand.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetHTTPPortCommand.java?rev=952535&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetHTTPPortCommand.java (added)
+++ geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetHTTPPortCommand.java Tue Jun  8 04:40:16 2010
@@ -0,0 +1,69 @@
+/*
+ * 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.v21.ui.commands;
+
+import org.apache.geronimo.st.ui.commands.ServerCommand;
+import org.apache.geronimo.st.v21.core.GeronimoServerDelegate;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.wst.server.core.IServerWorkingCopy;
+
+/**
+ * @version $Rev: 471551 $ $Date: 2006-11-06 06:47:11 +0800 (Mon, 06 Nov 2006) $
+ */
+public class SetHTTPPortCommand extends ServerCommand {
+
+	protected String name;
+
+	protected String oldName;
+
+	GeronimoServerDelegate gs;
+
+	/**
+	 * @param server
+	 * @param name
+	 */
+	public SetHTTPPortCommand(IServerWorkingCopy server, String name) {
+		super(server, name);
+		this.name = name;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.eclipse.wst.server.ui.internal.command.ServerCommand#execute()
+	 */
+	public void execute() {
+		gs = (GeronimoServerDelegate) server.getAdapter(GeronimoServerDelegate.class);
+		if (gs == null) {
+			gs = (GeronimoServerDelegate) server.loadAdapter(GeronimoServerDelegate.class, new NullProgressMonitor());
+		}
+		oldName = gs.getHTTPPort();
+		gs.setHTTPPort(name);
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.eclipse.wst.server.ui.internal.command.ServerCommand#undo()
+	 */
+	public void undo() {
+		if (gs != null) {
+			gs.setHTTPPort(oldName);
+		}
+	}
+
+}

Added: geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetInPlaceSharedLibCommand.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetInPlaceSharedLibCommand.java?rev=952535&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetInPlaceSharedLibCommand.java (added)
+++ geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetInPlaceSharedLibCommand.java Tue Jun  8 04:40:16 2010
@@ -0,0 +1,62 @@
+/*
+ * 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.v21.ui.commands;
+
+import org.apache.geronimo.st.ui.commands.ServerCommand;
+import org.apache.geronimo.st.v21.core.GeronimoServerDelegate;
+import org.eclipse.wst.server.core.IServerWorkingCopy;
+
+/**
+ * @version $Rev: 672450 $ $Date: 2008-06-28 09:21:07 +0800 (Sat, 28 Jun 2008) $
+ */
+public class SetInPlaceSharedLibCommand extends ServerCommand {
+
+	boolean value;
+
+	boolean oldValue;
+
+	/**
+	 * @param server
+	 * @param name
+	 */
+	public SetInPlaceSharedLibCommand(IServerWorkingCopy server, boolean value) {
+		super(server, "SetInPlaceSharedLibCommand");
+		this.value = value;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.st.ui.commands.ServerCommand#execute()
+	 */
+	public void execute() {
+		GeronimoServerDelegate gs = (GeronimoServerDelegate) server.getAdapter(GeronimoServerDelegate.class);
+		oldValue = gs.isInPlaceSharedLib();
+		gs.setInPlaceSharedLib(value);
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.st.ui.commands.ServerCommand#undo()
+	 */
+	public void undo() {
+		GeronimoServerDelegate gs = (GeronimoServerDelegate) server.getAdapter(GeronimoServerDelegate.class);
+		gs.setInPlaceSharedLib(oldValue);
+	}
+
+}

Added: geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetNotRedeployJSPFilesCommand.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetNotRedeployJSPFilesCommand.java?rev=952535&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetNotRedeployJSPFilesCommand.java (added)
+++ geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetNotRedeployJSPFilesCommand.java Tue Jun  8 04:40:16 2010
@@ -0,0 +1,62 @@
+/*
+ * 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.v21.ui.commands;
+
+import org.apache.geronimo.st.ui.commands.ServerCommand;
+import org.apache.geronimo.st.v21.core.GeronimoServerDelegate;
+import org.eclipse.wst.server.core.IServerWorkingCopy;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class SetNotRedeployJSPFilesCommand extends ServerCommand {
+
+    boolean value;
+
+    boolean oldValue;
+
+    /**
+     * @param server
+     * @param name
+     */
+    public SetNotRedeployJSPFilesCommand(IServerWorkingCopy server, boolean value) {
+        super(server, "SetRunFromWorkspaceCommand");
+        this.value = value;
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.st.ui.commands.ServerCommand#execute()
+     */
+    public void execute() {
+        GeronimoServerDelegate gs = (GeronimoServerDelegate) server.getAdapter(GeronimoServerDelegate.class);
+        oldValue = gs.isNotRedeployJSPFiles();
+        gs.setNotRedeployJSPFiles(value);
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.st.ui.commands.ServerCommand#undo()
+     */
+    public void undo() {
+        GeronimoServerDelegate gs = (GeronimoServerDelegate) server.getAdapter(GeronimoServerDelegate.class);
+        gs.setNotRedeployJSPFiles(oldValue);
+    }
+
+}

Added: geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetPasswordCommand.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetPasswordCommand.java?rev=952535&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetPasswordCommand.java (added)
+++ geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetPasswordCommand.java Tue Jun  8 04:40:16 2010
@@ -0,0 +1,69 @@
+/*
+ * 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.v21.ui.commands;
+
+import org.apache.geronimo.st.ui.commands.ServerCommand;
+import org.apache.geronimo.st.v21.core.GeronimoServerDelegate;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.wst.server.core.IServerWorkingCopy;
+
+/**
+ * @version $Rev: 471551 $ $Date: 2006-11-06 06:47:11 +0800 (Mon, 06 Nov 2006) $
+ */
+public class SetPasswordCommand extends ServerCommand {
+
+	protected String name;
+
+	protected String oldName;
+
+	GeronimoServerDelegate gs;
+
+	/**
+	 * @param server
+	 * @param name
+	 */
+	public SetPasswordCommand(IServerWorkingCopy server, String name) {
+		super(server, name);
+		this.name = name;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.eclipse.wst.server.ui.internal.command.ServerCommand#execute()
+	 */
+	public void execute() {
+		gs = (GeronimoServerDelegate) server.getAdapter(GeronimoServerDelegate.class);
+		if (gs == null) {
+			gs = (GeronimoServerDelegate) server.loadAdapter(GeronimoServerDelegate.class, new NullProgressMonitor());
+		}
+		oldName = gs.getAdminPassword();
+		gs.setAdminPassword(name);
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.eclipse.wst.server.ui.internal.command.ServerCommand#undo()
+	 */
+	public void undo() {
+		if (gs != null) {
+			gs.setAdminPassword(oldName);
+		}
+	}
+
+}

Added: geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetPublishTimeoutCommand.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetPublishTimeoutCommand.java?rev=952535&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetPublishTimeoutCommand.java (added)
+++ geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetPublishTimeoutCommand.java Tue Jun  8 04:40:16 2010
@@ -0,0 +1,58 @@
+/*
+ * 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.v21.ui.commands;
+
+import org.apache.geronimo.st.ui.commands.ServerCommand;
+import org.apache.geronimo.st.v21.core.GeronimoServerDelegate;
+import org.eclipse.wst.server.core.IServerWorkingCopy;
+/**
+ * @version $Rev: 732383 $ $Date: 2009-01-08 00:27:32 +0800 (Thu, 08 Jan 2009) $
+ *
+ * Command to change the server's auto-publish setting.
+ */
+public class SetPublishTimeoutCommand extends ServerCommand {
+    protected long timeOut;
+    protected long oldTimeOut;
+
+    /**
+     * SetServerAutoPublishDefaultCommand constructor.
+     *
+     * @param server a server
+     * @param time a publish time
+     */
+    public SetPublishTimeoutCommand(IServerWorkingCopy server, long timeOut) {
+        super(server, "SetServerAutoPublishTimeOutCommand");
+        this.timeOut = timeOut;
+    }
+
+    /**
+     * Execute the command.
+     */
+    public void execute() {
+        GeronimoServerDelegate gs = (GeronimoServerDelegate) server.getAdapter(GeronimoServerDelegate.class);
+        oldTimeOut = gs.getPublishTimeout();
+        gs.setPublishTimeout(timeOut);
+    }
+
+    /**
+     * Undo the command.
+     */
+    public void undo() {
+        GeronimoServerDelegate gs = (GeronimoServerDelegate) server.getAdapter(GeronimoServerDelegate.class);
+        gs.setPublishTimeout(oldTimeOut);
+    }
+}

Added: geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetRMIPortCommand.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetRMIPortCommand.java?rev=952535&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetRMIPortCommand.java (added)
+++ geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetRMIPortCommand.java Tue Jun  8 04:40:16 2010
@@ -0,0 +1,69 @@
+/*
+ * 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.v21.ui.commands;
+
+import org.apache.geronimo.st.ui.commands.ServerCommand;
+import org.apache.geronimo.st.v21.core.GeronimoServerDelegate;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.wst.server.core.IServerWorkingCopy;
+
+/**
+ * @version $Rev: 471551 $ $Date: 2006-11-06 06:47:11 +0800 (Mon, 06 Nov 2006) $
+ */
+public class SetRMIPortCommand extends ServerCommand {
+
+	protected String name;
+
+	protected String oldName;
+
+	GeronimoServerDelegate gs;
+
+	/**
+	 * @param server
+	 * @param name
+	 */
+	public SetRMIPortCommand(IServerWorkingCopy server, String name) {
+		super(server, name);
+		this.name = name;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.eclipse.wst.server.ui.internal.command.ServerCommand#execute()
+	 */
+	public void execute() {
+		gs = (GeronimoServerDelegate) server.getAdapter(GeronimoServerDelegate.class);
+		if (gs == null) {
+			gs = (GeronimoServerDelegate) server.loadAdapter(GeronimoServerDelegate.class, new NullProgressMonitor());
+		}
+		oldName = gs.getRMINamingPort();
+		gs.setRMINamingPort(name);
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.eclipse.wst.server.ui.internal.command.ServerCommand#undo()
+	 */
+	public void undo() {
+		if (gs != null) {
+			gs.setRMINamingPort(oldName);
+		}
+	}
+
+}

Added: geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetRunFromWorkspaceCommand.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetRunFromWorkspaceCommand.java?rev=952535&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetRunFromWorkspaceCommand.java (added)
+++ geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetRunFromWorkspaceCommand.java Tue Jun  8 04:40:16 2010
@@ -0,0 +1,62 @@
+/*
+ * 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.v21.ui.commands;
+
+import org.apache.geronimo.st.ui.commands.ServerCommand;
+import org.apache.geronimo.st.v21.core.GeronimoServerDelegate;
+import org.eclipse.wst.server.core.IServerWorkingCopy;
+
+/**
+ * @version $Rev: 672450 $ $Date: 2008-06-28 09:21:07 +0800 (Sat, 28 Jun 2008) $
+ */
+public class SetRunFromWorkspaceCommand extends ServerCommand {
+
+	boolean value;
+
+	boolean oldValue;
+
+	/**
+	 * @param server
+	 * @param name
+	 */
+	public SetRunFromWorkspaceCommand(IServerWorkingCopy server, boolean value) {
+		super(server, "SetRunFromWorkspaceCommand");
+		this.value = value;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.st.ui.commands.ServerCommand#execute()
+	 */
+	public void execute() {
+		GeronimoServerDelegate gs = (GeronimoServerDelegate) server.getAdapter(GeronimoServerDelegate.class);
+		oldValue = gs.isRunFromWorkspace();
+		gs.setRunFromWorkspace(value);
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.st.ui.commands.ServerCommand#undo()
+	 */
+	public void undo() {
+		GeronimoServerDelegate gs = (GeronimoServerDelegate) server.getAdapter(GeronimoServerDelegate.class);
+		gs.setRunFromWorkspace(oldValue);
+	}
+
+}

Added: geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetSelectClasspathContainersCommand.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetSelectClasspathContainersCommand.java?rev=952535&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetSelectClasspathContainersCommand.java (added)
+++ geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetSelectClasspathContainersCommand.java Tue Jun  8 04:40:16 2010
@@ -0,0 +1,64 @@
+/*
+ * 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.v21.ui.commands;
+
+import org.apache.geronimo.st.ui.commands.ServerCommand;
+import org.apache.geronimo.st.v21.core.GeronimoServerDelegate;
+import org.eclipse.wst.server.core.IServerWorkingCopy;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class SetSelectClasspathContainersCommand extends ServerCommand {
+
+    boolean value;
+    boolean oldValue;
+
+
+    /**
+     * @param server
+     * @param name
+     */
+    public SetSelectClasspathContainersCommand(IServerWorkingCopy server, boolean value) {
+        super(server, "SetSelectClasspathContainersCommand");
+        this.value = value;
+    }
+
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.st.ui.commands.ServerCommand#execute()
+     */
+    public void execute() {
+        GeronimoServerDelegate gs = (GeronimoServerDelegate) server.getAdapter(GeronimoServerDelegate.class);
+        oldValue = gs.isSelectClasspathContainers();
+        gs.setSelectClasspathContainers(value);
+    }
+
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.geronimo.st.ui.commands.ServerCommand#undo()
+     */
+    public void undo() {
+        GeronimoServerDelegate gs = (GeronimoServerDelegate) server.getAdapter(GeronimoServerDelegate.class);
+        gs.setSelectClasspathContainers(oldValue);
+    }
+
+}

Added: geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetUsernameCommand.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetUsernameCommand.java?rev=952535&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetUsernameCommand.java (added)
+++ geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetUsernameCommand.java Tue Jun  8 04:40:16 2010
@@ -0,0 +1,70 @@
+/*
+ * 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.v21.ui.commands;
+
+import org.apache.geronimo.st.ui.commands.ServerCommand;
+import org.apache.geronimo.st.v21.core.GeronimoServerDelegate;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.wst.server.core.IServerWorkingCopy;
+
+/**
+ * @version $Rev: 471551 $ $Date: 2006-11-06 06:47:11 +0800 (Mon, 06 Nov 2006) $ 
+ */
+public class SetUsernameCommand extends ServerCommand {
+
+	protected String name;
+
+	protected String oldName;
+
+	GeronimoServerDelegate gs;
+
+	/**
+	 * @param server
+	 * @param name
+	 */
+	public SetUsernameCommand(IServerWorkingCopy server, String name) {
+		super(server, name);
+		this.name = name;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.eclipse.wst.server.ui.internal.command.ServerCommand#execute()
+	 */
+	public void execute() {
+		gs = (GeronimoServerDelegate) server.getAdapter(GeronimoServerDelegate.class);
+		if (gs == null) {
+			gs = (GeronimoServerDelegate) server.loadAdapter(GeronimoServerDelegate.class, new NullProgressMonitor());
+		}
+		oldName = gs.getAdminID();
+		gs.setAdminID(name);
+
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.eclipse.wst.server.ui.internal.command.ServerCommand#undo()
+	 */
+	public void undo() {
+		if (gs != null) {
+			gs.setAdminID(oldName);
+		}
+	}
+
+}

Added: geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetVMArgsCommand.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetVMArgsCommand.java?rev=952535&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetVMArgsCommand.java (added)
+++ geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/commands/SetVMArgsCommand.java Tue Jun  8 04:40:16 2010
@@ -0,0 +1,55 @@
+/*
+ * 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.v21.ui.commands;
+
+import org.apache.geronimo.st.ui.commands.ServerCommand;
+import org.apache.geronimo.st.v21.core.GeronimoServerDelegate;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.wst.server.core.IServerWorkingCopy;
+
+/**
+ * @version $Rev: 471551 $ $Date: 2006-11-06 06:47:11 +0800 (Mon, 06 Nov 2006) $
+ */
+public class SetVMArgsCommand extends ServerCommand {
+	
+	protected String args;
+
+	protected String oldArgs;
+	
+	GeronimoServerDelegate gs;
+
+	public SetVMArgsCommand(IServerWorkingCopy server, String args) {
+		super(server, args);
+		this.args = args;
+	}
+
+	public void execute() {
+		gs = (GeronimoServerDelegate) server.getAdapter(GeronimoServerDelegate.class);
+		if (gs == null) {
+			gs = (GeronimoServerDelegate) server.loadAdapter(GeronimoServerDelegate.class, new NullProgressMonitor());
+		}
+		oldArgs = gs.getVMArgs();
+		gs.setVMArgs(args);
+	}
+
+	public void undo() {
+		if (gs != null) {
+			gs.setVMArgs(oldArgs);
+		}
+	}
+
+}



Mime
View raw message