You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by ge...@apache.org on 2005/08/24 23:36:53 UTC

svn commit: r239937 [71/73] - in /geronimo/trunk/sandbox/eclipse-plugin: org.apache.geronimo.core/src/org/apache/geronimo/core/internal/ org.apache.geronimo.core/src/org/apache/geronimo/core/operations/ org.apache.geronimo.deployment.model/src/org/apac...

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/SqlGeneratorTypeImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/SqlGeneratorTypeImpl.java?rev=239937&r1=239936&r2=239937&view=diff
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/SqlGeneratorTypeImpl.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/SqlGeneratorTypeImpl.java Wed Aug 24 14:34:34 2005
@@ -1,225 +1,225 @@
-/**
- * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
- *
- *  Licensed 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.openejb.xml.ns.pkgen.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EStructuralFeature;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-
-import org.openejb.xml.ns.pkgen.PkgenPackage;
-import org.openejb.xml.ns.pkgen.SqlGeneratorType;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Sql Generator Type</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- *   <li>{@link org.openejb.xml.ns.pkgen.impl.SqlGeneratorTypeImpl#getSql <em>Sql</em>}</li>
- *   <li>{@link org.openejb.xml.ns.pkgen.impl.SqlGeneratorTypeImpl#getReturnType <em>Return Type</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class SqlGeneratorTypeImpl extends EObjectImpl implements SqlGeneratorType {
-    /**
-     * The default value of the '{@link #getSql() <em>Sql</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getSql()
-     * @generated
-     * @ordered
-     */
-    protected static final String SQL_EDEFAULT = null;
-
-    /**
-     * The cached value of the '{@link #getSql() <em>Sql</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getSql()
-     * @generated
-     * @ordered
-     */
-    protected String sql = SQL_EDEFAULT;
-
-    /**
-     * The default value of the '{@link #getReturnType() <em>Return Type</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getReturnType()
-     * @generated
-     * @ordered
-     */
-    protected static final String RETURN_TYPE_EDEFAULT = null;
-
-    /**
-     * The cached value of the '{@link #getReturnType() <em>Return Type</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getReturnType()
-     * @generated
-     * @ordered
-     */
-    protected String returnType = RETURN_TYPE_EDEFAULT;
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    protected SqlGeneratorTypeImpl() {
-        super();
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    protected EClass eStaticClass() {
-        return PkgenPackage.eINSTANCE.getSqlGeneratorType();
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public String getSql() {
-        return sql;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void setSql(String newSql) {
-        String oldSql = sql;
-        sql = newSql;
-        if (eNotificationRequired())
-            eNotify(new ENotificationImpl(this, Notification.SET, PkgenPackage.SQL_GENERATOR_TYPE__SQL, oldSql, sql));
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public String getReturnType() {
-        return returnType;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void setReturnType(String newReturnType) {
-        String oldReturnType = returnType;
-        returnType = newReturnType;
-        if (eNotificationRequired())
-            eNotify(new ENotificationImpl(this, Notification.SET, PkgenPackage.SQL_GENERATOR_TYPE__RETURN_TYPE, oldReturnType, returnType));
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public Object eGet(EStructuralFeature eFeature, boolean resolve) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case PkgenPackage.SQL_GENERATOR_TYPE__SQL:
-                return getSql();
-            case PkgenPackage.SQL_GENERATOR_TYPE__RETURN_TYPE:
-                return getReturnType();
-        }
-        return eDynamicGet(eFeature, resolve);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void eSet(EStructuralFeature eFeature, Object newValue) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case PkgenPackage.SQL_GENERATOR_TYPE__SQL:
-                setSql((String)newValue);
-                return;
-            case PkgenPackage.SQL_GENERATOR_TYPE__RETURN_TYPE:
-                setReturnType((String)newValue);
-                return;
-        }
-        eDynamicSet(eFeature, newValue);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void eUnset(EStructuralFeature eFeature) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case PkgenPackage.SQL_GENERATOR_TYPE__SQL:
-                setSql(SQL_EDEFAULT);
-                return;
-            case PkgenPackage.SQL_GENERATOR_TYPE__RETURN_TYPE:
-                setReturnType(RETURN_TYPE_EDEFAULT);
-                return;
-        }
-        eDynamicUnset(eFeature);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public boolean eIsSet(EStructuralFeature eFeature) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case PkgenPackage.SQL_GENERATOR_TYPE__SQL:
-                return SQL_EDEFAULT == null ? sql != null : !SQL_EDEFAULT.equals(sql);
-            case PkgenPackage.SQL_GENERATOR_TYPE__RETURN_TYPE:
-                return RETURN_TYPE_EDEFAULT == null ? returnType != null : !RETURN_TYPE_EDEFAULT.equals(returnType);
-        }
-        return eDynamicIsSet(eFeature);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public String toString() {
-        if (eIsProxy()) return super.toString();
-
-        StringBuffer result = new StringBuffer(super.toString());
-        result.append(" (sql: ");
-        result.append(sql);
-        result.append(", returnType: ");
-        result.append(returnType);
-        result.append(')');
-        return result.toString();
-    }
-
-} //SqlGeneratorTypeImpl
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed 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.openejb.xml.ns.pkgen.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EStructuralFeature;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+import org.openejb.xml.ns.pkgen.PkgenPackage;
+import org.openejb.xml.ns.pkgen.SqlGeneratorType;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Sql Generator Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.openejb.xml.ns.pkgen.impl.SqlGeneratorTypeImpl#getSql <em>Sql</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.pkgen.impl.SqlGeneratorTypeImpl#getReturnType <em>Return Type</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class SqlGeneratorTypeImpl extends EObjectImpl implements SqlGeneratorType {
+    /**
+     * The default value of the '{@link #getSql() <em>Sql</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getSql()
+     * @generated
+     * @ordered
+     */
+    protected static final String SQL_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getSql() <em>Sql</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getSql()
+     * @generated
+     * @ordered
+     */
+    protected String sql = SQL_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getReturnType() <em>Return Type</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getReturnType()
+     * @generated
+     * @ordered
+     */
+    protected static final String RETURN_TYPE_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getReturnType() <em>Return Type</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getReturnType()
+     * @generated
+     * @ordered
+     */
+    protected String returnType = RETURN_TYPE_EDEFAULT;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected SqlGeneratorTypeImpl() {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected EClass eStaticClass() {
+        return PkgenPackage.eINSTANCE.getSqlGeneratorType();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getSql() {
+        return sql;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setSql(String newSql) {
+        String oldSql = sql;
+        sql = newSql;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, PkgenPackage.SQL_GENERATOR_TYPE__SQL, oldSql, sql));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getReturnType() {
+        return returnType;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setReturnType(String newReturnType) {
+        String oldReturnType = returnType;
+        returnType = newReturnType;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, PkgenPackage.SQL_GENERATOR_TYPE__RETURN_TYPE, oldReturnType, returnType));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public Object eGet(EStructuralFeature eFeature, boolean resolve) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case PkgenPackage.SQL_GENERATOR_TYPE__SQL:
+                return getSql();
+            case PkgenPackage.SQL_GENERATOR_TYPE__RETURN_TYPE:
+                return getReturnType();
+        }
+        return eDynamicGet(eFeature, resolve);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eSet(EStructuralFeature eFeature, Object newValue) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case PkgenPackage.SQL_GENERATOR_TYPE__SQL:
+                setSql((String)newValue);
+                return;
+            case PkgenPackage.SQL_GENERATOR_TYPE__RETURN_TYPE:
+                setReturnType((String)newValue);
+                return;
+        }
+        eDynamicSet(eFeature, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eUnset(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case PkgenPackage.SQL_GENERATOR_TYPE__SQL:
+                setSql(SQL_EDEFAULT);
+                return;
+            case PkgenPackage.SQL_GENERATOR_TYPE__RETURN_TYPE:
+                setReturnType(RETURN_TYPE_EDEFAULT);
+                return;
+        }
+        eDynamicUnset(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean eIsSet(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case PkgenPackage.SQL_GENERATOR_TYPE__SQL:
+                return SQL_EDEFAULT == null ? sql != null : !SQL_EDEFAULT.equals(sql);
+            case PkgenPackage.SQL_GENERATOR_TYPE__RETURN_TYPE:
+                return RETURN_TYPE_EDEFAULT == null ? returnType != null : !RETURN_TYPE_EDEFAULT.equals(returnType);
+        }
+        return eDynamicIsSet(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String toString() {
+        if (eIsProxy()) return super.toString();
+
+        StringBuffer result = new StringBuffer(super.toString());
+        result.append(" (sql: ");
+        result.append(sql);
+        result.append(", returnType: ");
+        result.append(returnType);
+        result.append(')');
+        return result.toString();
+    }
+
+} //SqlGeneratorTypeImpl

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/SqlGeneratorTypeImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenAdapterFactory.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenAdapterFactory.java?rev=239937&r1=239936&r2=239937&view=diff
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenAdapterFactory.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenAdapterFactory.java Wed Aug 24 14:34:34 2005
@@ -1,231 +1,231 @@
-/**
- * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
- *
- *  Licensed 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.openejb.xml.ns.pkgen.util;
-
-import org.eclipse.emf.common.notify.Adapter;
-import org.eclipse.emf.common.notify.Notifier;
-
-import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
-
-import org.eclipse.emf.ecore.EObject;
-
-import org.openejb.xml.ns.pkgen.*;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Adapter Factory</b> for the model.
- * It provides an adapter <code>createXXX</code> method for each class of the model.
- * <!-- end-user-doc -->
- * @see org.openejb.xml.ns.pkgen.PkgenPackage
- * @generated
- */
-public class PkgenAdapterFactory extends AdapterFactoryImpl {
-    /**
-     * The cached model package.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    protected static PkgenPackage modelPackage;
-
-    /**
-     * Creates an instance of the adapter factory.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public PkgenAdapterFactory() {
-        if (modelPackage == null) {
-            modelPackage = PkgenPackage.eINSTANCE;
-        }
-    }
-
-    /**
-     * Returns whether this factory is applicable for the type of the object.
-     * <!-- begin-user-doc -->
-     * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
-     * <!-- end-user-doc -->
-     * @return whether this factory is applicable for the type of the object.
-     * @generated
-     */
-    public boolean isFactoryForType(Object object) {
-        if (object == modelPackage) {
-            return true;
-        }
-        if (object instanceof EObject) {
-            return ((EObject)object).eClass().getEPackage() == modelPackage;
-        }
-        return false;
-    }
-
-    /**
-     * The switch the delegates to the <code>createXXX</code> methods.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    protected PkgenSwitch modelSwitch =
-        new PkgenSwitch() {
-            public Object caseAutoIncrementTableType(AutoIncrementTableType object) {
-                return createAutoIncrementTableTypeAdapter();
-            }
-            public Object caseCustomGeneratorType(CustomGeneratorType object) {
-                return createCustomGeneratorTypeAdapter();
-            }
-            public Object caseDatabaseGeneratedType(DatabaseGeneratedType object) {
-                return createDatabaseGeneratedTypeAdapter();
-            }
-            public Object caseDocumentRoot(DocumentRoot object) {
-                return createDocumentRootAdapter();
-            }
-            public Object caseKeyGeneratorType(KeyGeneratorType object) {
-                return createKeyGeneratorTypeAdapter();
-            }
-            public Object caseSequenceTableType(SequenceTableType object) {
-                return createSequenceTableTypeAdapter();
-            }
-            public Object caseSqlGeneratorType(SqlGeneratorType object) {
-                return createSqlGeneratorTypeAdapter();
-            }
-            public Object defaultCase(EObject object) {
-                return createEObjectAdapter();
-            }
-        };
-
-    /**
-     * Creates an adapter for the <code>target</code>.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @param target the object to adapt.
-     * @return the adapter for the <code>target</code>.
-     * @generated
-     */
-    public Adapter createAdapter(Notifier target) {
-        return (Adapter)modelSwitch.doSwitch((EObject)target);
-    }
-
-
-    /**
-     * Creates a new adapter for an object of class '{@link org.openejb.xml.ns.pkgen.AutoIncrementTableType <em>Auto Increment Table Type</em>}'.
-     * <!-- begin-user-doc -->
-     * This default implementation returns null so that we can easily ignore cases;
-     * it's useful to ignore a case when inheritance will catch all the cases anyway.
-     * <!-- end-user-doc -->
-     * @return the new adapter.
-     * @see org.openejb.xml.ns.pkgen.AutoIncrementTableType
-     * @generated
-     */
-    public Adapter createAutoIncrementTableTypeAdapter() {
-        return null;
-    }
-
-    /**
-     * Creates a new adapter for an object of class '{@link org.openejb.xml.ns.pkgen.CustomGeneratorType <em>Custom Generator Type</em>}'.
-     * <!-- begin-user-doc -->
-     * This default implementation returns null so that we can easily ignore cases;
-     * it's useful to ignore a case when inheritance will catch all the cases anyway.
-     * <!-- end-user-doc -->
-     * @return the new adapter.
-     * @see org.openejb.xml.ns.pkgen.CustomGeneratorType
-     * @generated
-     */
-    public Adapter createCustomGeneratorTypeAdapter() {
-        return null;
-    }
-
-    /**
-     * Creates a new adapter for an object of class '{@link org.openejb.xml.ns.pkgen.DatabaseGeneratedType <em>Database Generated Type</em>}'.
-     * <!-- begin-user-doc -->
-     * This default implementation returns null so that we can easily ignore cases;
-     * it's useful to ignore a case when inheritance will catch all the cases anyway.
-     * <!-- end-user-doc -->
-     * @return the new adapter.
-     * @see org.openejb.xml.ns.pkgen.DatabaseGeneratedType
-     * @generated
-     */
-    public Adapter createDatabaseGeneratedTypeAdapter() {
-        return null;
-    }
-
-    /**
-     * Creates a new adapter for an object of class '{@link org.openejb.xml.ns.pkgen.DocumentRoot <em>Document Root</em>}'.
-     * <!-- begin-user-doc -->
-     * This default implementation returns null so that we can easily ignore cases;
-     * it's useful to ignore a case when inheritance will catch all the cases anyway.
-     * <!-- end-user-doc -->
-     * @return the new adapter.
-     * @see org.openejb.xml.ns.pkgen.DocumentRoot
-     * @generated
-     */
-    public Adapter createDocumentRootAdapter() {
-        return null;
-    }
-
-    /**
-     * Creates a new adapter for an object of class '{@link org.openejb.xml.ns.pkgen.KeyGeneratorType <em>Key Generator Type</em>}'.
-     * <!-- begin-user-doc -->
-     * This default implementation returns null so that we can easily ignore cases;
-     * it's useful to ignore a case when inheritance will catch all the cases anyway.
-     * <!-- end-user-doc -->
-     * @return the new adapter.
-     * @see org.openejb.xml.ns.pkgen.KeyGeneratorType
-     * @generated
-     */
-    public Adapter createKeyGeneratorTypeAdapter() {
-        return null;
-    }
-
-    /**
-     * Creates a new adapter for an object of class '{@link org.openejb.xml.ns.pkgen.SequenceTableType <em>Sequence Table Type</em>}'.
-     * <!-- begin-user-doc -->
-     * This default implementation returns null so that we can easily ignore cases;
-     * it's useful to ignore a case when inheritance will catch all the cases anyway.
-     * <!-- end-user-doc -->
-     * @return the new adapter.
-     * @see org.openejb.xml.ns.pkgen.SequenceTableType
-     * @generated
-     */
-    public Adapter createSequenceTableTypeAdapter() {
-        return null;
-    }
-
-    /**
-     * Creates a new adapter for an object of class '{@link org.openejb.xml.ns.pkgen.SqlGeneratorType <em>Sql Generator Type</em>}'.
-     * <!-- begin-user-doc -->
-     * This default implementation returns null so that we can easily ignore cases;
-     * it's useful to ignore a case when inheritance will catch all the cases anyway.
-     * <!-- end-user-doc -->
-     * @return the new adapter.
-     * @see org.openejb.xml.ns.pkgen.SqlGeneratorType
-     * @generated
-     */
-    public Adapter createSqlGeneratorTypeAdapter() {
-        return null;
-    }
-
-    /**
-     * Creates a new adapter for the default case.
-     * <!-- begin-user-doc -->
-     * This default implementation returns null.
-     * <!-- end-user-doc -->
-     * @return the new adapter.
-     * @generated
-     */
-    public Adapter createEObjectAdapter() {
-        return null;
-    }
-
-} //PkgenAdapterFactory
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed 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.openejb.xml.ns.pkgen.util;
+
+import org.eclipse.emf.common.notify.Adapter;
+import org.eclipse.emf.common.notify.Notifier;
+
+import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
+
+import org.eclipse.emf.ecore.EObject;
+
+import org.openejb.xml.ns.pkgen.*;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Adapter Factory</b> for the model.
+ * It provides an adapter <code>createXXX</code> method for each class of the model.
+ * <!-- end-user-doc -->
+ * @see org.openejb.xml.ns.pkgen.PkgenPackage
+ * @generated
+ */
+public class PkgenAdapterFactory extends AdapterFactoryImpl {
+    /**
+     * The cached model package.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected static PkgenPackage modelPackage;
+
+    /**
+     * Creates an instance of the adapter factory.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public PkgenAdapterFactory() {
+        if (modelPackage == null) {
+            modelPackage = PkgenPackage.eINSTANCE;
+        }
+    }
+
+    /**
+     * Returns whether this factory is applicable for the type of the object.
+     * <!-- begin-user-doc -->
+     * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
+     * <!-- end-user-doc -->
+     * @return whether this factory is applicable for the type of the object.
+     * @generated
+     */
+    public boolean isFactoryForType(Object object) {
+        if (object == modelPackage) {
+            return true;
+        }
+        if (object instanceof EObject) {
+            return ((EObject)object).eClass().getEPackage() == modelPackage;
+        }
+        return false;
+    }
+
+    /**
+     * The switch the delegates to the <code>createXXX</code> methods.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected PkgenSwitch modelSwitch =
+        new PkgenSwitch() {
+            public Object caseAutoIncrementTableType(AutoIncrementTableType object) {
+                return createAutoIncrementTableTypeAdapter();
+            }
+            public Object caseCustomGeneratorType(CustomGeneratorType object) {
+                return createCustomGeneratorTypeAdapter();
+            }
+            public Object caseDatabaseGeneratedType(DatabaseGeneratedType object) {
+                return createDatabaseGeneratedTypeAdapter();
+            }
+            public Object caseDocumentRoot(DocumentRoot object) {
+                return createDocumentRootAdapter();
+            }
+            public Object caseKeyGeneratorType(KeyGeneratorType object) {
+                return createKeyGeneratorTypeAdapter();
+            }
+            public Object caseSequenceTableType(SequenceTableType object) {
+                return createSequenceTableTypeAdapter();
+            }
+            public Object caseSqlGeneratorType(SqlGeneratorType object) {
+                return createSqlGeneratorTypeAdapter();
+            }
+            public Object defaultCase(EObject object) {
+                return createEObjectAdapter();
+            }
+        };
+
+    /**
+     * Creates an adapter for the <code>target</code>.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @param target the object to adapt.
+     * @return the adapter for the <code>target</code>.
+     * @generated
+     */
+    public Adapter createAdapter(Notifier target) {
+        return (Adapter)modelSwitch.doSwitch((EObject)target);
+    }
+
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.openejb.xml.ns.pkgen.AutoIncrementTableType <em>Auto Increment Table Type</em>}'.
+     * <!-- begin-user-doc -->
+     * This default implementation returns null so that we can easily ignore cases;
+     * it's useful to ignore a case when inheritance will catch all the cases anyway.
+     * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @see org.openejb.xml.ns.pkgen.AutoIncrementTableType
+     * @generated
+     */
+    public Adapter createAutoIncrementTableTypeAdapter() {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.openejb.xml.ns.pkgen.CustomGeneratorType <em>Custom Generator Type</em>}'.
+     * <!-- begin-user-doc -->
+     * This default implementation returns null so that we can easily ignore cases;
+     * it's useful to ignore a case when inheritance will catch all the cases anyway.
+     * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @see org.openejb.xml.ns.pkgen.CustomGeneratorType
+     * @generated
+     */
+    public Adapter createCustomGeneratorTypeAdapter() {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.openejb.xml.ns.pkgen.DatabaseGeneratedType <em>Database Generated Type</em>}'.
+     * <!-- begin-user-doc -->
+     * This default implementation returns null so that we can easily ignore cases;
+     * it's useful to ignore a case when inheritance will catch all the cases anyway.
+     * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @see org.openejb.xml.ns.pkgen.DatabaseGeneratedType
+     * @generated
+     */
+    public Adapter createDatabaseGeneratedTypeAdapter() {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.openejb.xml.ns.pkgen.DocumentRoot <em>Document Root</em>}'.
+     * <!-- begin-user-doc -->
+     * This default implementation returns null so that we can easily ignore cases;
+     * it's useful to ignore a case when inheritance will catch all the cases anyway.
+     * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @see org.openejb.xml.ns.pkgen.DocumentRoot
+     * @generated
+     */
+    public Adapter createDocumentRootAdapter() {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.openejb.xml.ns.pkgen.KeyGeneratorType <em>Key Generator Type</em>}'.
+     * <!-- begin-user-doc -->
+     * This default implementation returns null so that we can easily ignore cases;
+     * it's useful to ignore a case when inheritance will catch all the cases anyway.
+     * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @see org.openejb.xml.ns.pkgen.KeyGeneratorType
+     * @generated
+     */
+    public Adapter createKeyGeneratorTypeAdapter() {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.openejb.xml.ns.pkgen.SequenceTableType <em>Sequence Table Type</em>}'.
+     * <!-- begin-user-doc -->
+     * This default implementation returns null so that we can easily ignore cases;
+     * it's useful to ignore a case when inheritance will catch all the cases anyway.
+     * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @see org.openejb.xml.ns.pkgen.SequenceTableType
+     * @generated
+     */
+    public Adapter createSequenceTableTypeAdapter() {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.openejb.xml.ns.pkgen.SqlGeneratorType <em>Sql Generator Type</em>}'.
+     * <!-- begin-user-doc -->
+     * This default implementation returns null so that we can easily ignore cases;
+     * it's useful to ignore a case when inheritance will catch all the cases anyway.
+     * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @see org.openejb.xml.ns.pkgen.SqlGeneratorType
+     * @generated
+     */
+    public Adapter createSqlGeneratorTypeAdapter() {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for the default case.
+     * <!-- begin-user-doc -->
+     * This default implementation returns null.
+     * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @generated
+     */
+    public Adapter createEObjectAdapter() {
+        return null;
+    }
+
+} //PkgenAdapterFactory

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenAdapterFactory.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenResourceFactoryImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenResourceFactoryImpl.java?rev=239937&r1=239936&r2=239937&view=diff
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenResourceFactoryImpl.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenResourceFactoryImpl.java Wed Aug 24 14:34:34 2005
@@ -1,62 +1,62 @@
-/**
- * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
- *
- *  Licensed 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.openejb.xml.ns.pkgen.util;
-
-import org.eclipse.emf.common.util.URI;
-
-import org.eclipse.emf.ecore.resource.Resource;
-
-import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl;
-
-import org.eclipse.emf.ecore.xmi.XMLResource;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Resource Factory</b> associated with the package.
- * <!-- end-user-doc -->
- * @see org.openejb.xml.ns.pkgen.util.PkgenResourceImpl
- * @generated
- */
-public class PkgenResourceFactoryImpl extends ResourceFactoryImpl {
-    /**
-     * Creates an instance of the resource factory.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public PkgenResourceFactoryImpl() {
-        super();
-    }
-
-    /**
-     * Creates an instance of the resource.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public Resource createResource(URI uri) {
-        XMLResource result = new PkgenResourceImpl(uri);
-        result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
-        result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
-
-        result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE);
-        result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
-
-        result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE);
-        return result;
-    }
-
-} //PkgenResourceFactoryImpl
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed 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.openejb.xml.ns.pkgen.util;
+
+import org.eclipse.emf.common.util.URI;
+
+import org.eclipse.emf.ecore.resource.Resource;
+
+import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl;
+
+import org.eclipse.emf.ecore.xmi.XMLResource;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Resource Factory</b> associated with the package.
+ * <!-- end-user-doc -->
+ * @see org.openejb.xml.ns.pkgen.util.PkgenResourceImpl
+ * @generated
+ */
+public class PkgenResourceFactoryImpl extends ResourceFactoryImpl {
+    /**
+     * Creates an instance of the resource factory.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public PkgenResourceFactoryImpl() {
+        super();
+    }
+
+    /**
+     * Creates an instance of the resource.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public Resource createResource(URI uri) {
+        XMLResource result = new PkgenResourceImpl(uri);
+        result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
+        result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
+
+        result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE);
+        result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
+
+        result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE);
+        return result;
+    }
+
+} //PkgenResourceFactoryImpl

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenResourceFactoryImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenResourceImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenResourceImpl.java?rev=239937&r1=239936&r2=239937&view=diff
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenResourceImpl.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenResourceImpl.java Wed Aug 24 14:34:34 2005
@@ -1,41 +1,41 @@
-/**
- * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
- *
- *  Licensed 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.openejb.xml.ns.pkgen.util;
-
-import org.eclipse.emf.common.util.URI;
-
-import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Resource </b> associated with the package.
- * <!-- end-user-doc -->
- * @see org.openejb.xml.ns.pkgen.util.PkgenResourceFactoryImpl
- * @generated
- */
-public class PkgenResourceImpl extends XMLResourceImpl {
-    /**
-     * Creates an instance of the resource.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @param uri the URI of the new resource.
-     * @generated
-     */
-    public PkgenResourceImpl(URI uri) {
-        super(uri);
-    }
-
-} //PkgenResourceImpl
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed 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.openejb.xml.ns.pkgen.util;
+
+import org.eclipse.emf.common.util.URI;
+
+import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Resource </b> associated with the package.
+ * <!-- end-user-doc -->
+ * @see org.openejb.xml.ns.pkgen.util.PkgenResourceFactoryImpl
+ * @generated
+ */
+public class PkgenResourceImpl extends XMLResourceImpl {
+    /**
+     * Creates an instance of the resource.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @param uri the URI of the new resource.
+     * @generated
+     */
+    public PkgenResourceImpl(URI uri) {
+        super(uri);
+    }
+
+} //PkgenResourceImpl

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenResourceImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenSwitch.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenSwitch.java?rev=239937&r1=239936&r2=239937&view=diff
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenSwitch.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenSwitch.java Wed Aug 24 14:34:34 2005
@@ -1,265 +1,265 @@
-/**
- * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
- *
- *  Licensed 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.openejb.xml.ns.pkgen.util;
-
-import java.util.List;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-
-import org.openejb.xml.ns.pkgen.*;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Switch</b> for the model's inheritance hierarchy.
- * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
- * to invoke the <code>caseXXX</code> method for each class of the model,
- * starting with the actual class of the object
- * and proceeding up the inheritance hierarchy
- * until a non-null result is returned,
- * which is the result of the switch.
- * <!-- end-user-doc -->
- * @see org.openejb.xml.ns.pkgen.PkgenPackage
- * @generated
- */
-public class PkgenSwitch {
-    /**
-     * The cached model package
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    protected static PkgenPackage modelPackage;
-
-    /**
-     * Creates an instance of the switch.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public PkgenSwitch() {
-        if (modelPackage == null) {
-            modelPackage = PkgenPackage.eINSTANCE;
-        }
-    }
-
-    /**
-     * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @return the first non-null result returned by a <code>caseXXX</code> call.
-     * @generated
-     */
-    public Object doSwitch(EObject theEObject) {
-        return doSwitch(theEObject.eClass(), theEObject);
-    }
-
-    /**
-     * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @return the first non-null result returned by a <code>caseXXX</code> call.
-     * @generated
-     */
-    protected Object doSwitch(EClass theEClass, EObject theEObject) {
-        if (theEClass.eContainer() == modelPackage) {
-            return doSwitch(theEClass.getClassifierID(), theEObject);
-        }
-        else {
-            List eSuperTypes = theEClass.getESuperTypes();
-            return
-                eSuperTypes.isEmpty() ?
-                    defaultCase(theEObject) :
-                    doSwitch((EClass)eSuperTypes.get(0), theEObject);
-        }
-    }
-
-    /**
-     * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @return the first non-null result returned by a <code>caseXXX</code> call.
-     * @generated
-     */
-    protected Object doSwitch(int classifierID, EObject theEObject) {
-        switch (classifierID) {
-            case PkgenPackage.AUTO_INCREMENT_TABLE_TYPE: {
-                AutoIncrementTableType autoIncrementTableType = (AutoIncrementTableType)theEObject;
-                Object result = caseAutoIncrementTableType(autoIncrementTableType);
-                if (result == null) result = defaultCase(theEObject);
-                return result;
-            }
-            case PkgenPackage.CUSTOM_GENERATOR_TYPE: {
-                CustomGeneratorType customGeneratorType = (CustomGeneratorType)theEObject;
-                Object result = caseCustomGeneratorType(customGeneratorType);
-                if (result == null) result = defaultCase(theEObject);
-                return result;
-            }
-            case PkgenPackage.DATABASE_GENERATED_TYPE: {
-                DatabaseGeneratedType databaseGeneratedType = (DatabaseGeneratedType)theEObject;
-                Object result = caseDatabaseGeneratedType(databaseGeneratedType);
-                if (result == null) result = defaultCase(theEObject);
-                return result;
-            }
-            case PkgenPackage.DOCUMENT_ROOT: {
-                DocumentRoot documentRoot = (DocumentRoot)theEObject;
-                Object result = caseDocumentRoot(documentRoot);
-                if (result == null) result = defaultCase(theEObject);
-                return result;
-            }
-            case PkgenPackage.KEY_GENERATOR_TYPE: {
-                KeyGeneratorType keyGeneratorType = (KeyGeneratorType)theEObject;
-                Object result = caseKeyGeneratorType(keyGeneratorType);
-                if (result == null) result = defaultCase(theEObject);
-                return result;
-            }
-            case PkgenPackage.SEQUENCE_TABLE_TYPE: {
-                SequenceTableType sequenceTableType = (SequenceTableType)theEObject;
-                Object result = caseSequenceTableType(sequenceTableType);
-                if (result == null) result = defaultCase(theEObject);
-                return result;
-            }
-            case PkgenPackage.SQL_GENERATOR_TYPE: {
-                SqlGeneratorType sqlGeneratorType = (SqlGeneratorType)theEObject;
-                Object result = caseSqlGeneratorType(sqlGeneratorType);
-                if (result == null) result = defaultCase(theEObject);
-                return result;
-            }
-            default: return defaultCase(theEObject);
-        }
-    }
-
-    /**
-     * Returns the result of interpretting the object as an instance of '<em>Auto Increment Table Type</em>'.
-     * <!-- begin-user-doc -->
-     * This implementation returns null;
-     * returning a non-null result will terminate the switch.
-     * <!-- end-user-doc -->
-     * @param object the target of the switch.
-     * @return the result of interpretting the object as an instance of '<em>Auto Increment Table Type</em>'.
-     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
-     * @generated
-     */
-    public Object caseAutoIncrementTableType(AutoIncrementTableType object) {
-        return null;
-    }
-
-    /**
-     * Returns the result of interpretting the object as an instance of '<em>Custom Generator Type</em>'.
-     * <!-- begin-user-doc -->
-     * This implementation returns null;
-     * returning a non-null result will terminate the switch.
-     * <!-- end-user-doc -->
-     * @param object the target of the switch.
-     * @return the result of interpretting the object as an instance of '<em>Custom Generator Type</em>'.
-     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
-     * @generated
-     */
-    public Object caseCustomGeneratorType(CustomGeneratorType object) {
-        return null;
-    }
-
-    /**
-     * Returns the result of interpretting the object as an instance of '<em>Database Generated Type</em>'.
-     * <!-- begin-user-doc -->
-     * This implementation returns null;
-     * returning a non-null result will terminate the switch.
-     * <!-- end-user-doc -->
-     * @param object the target of the switch.
-     * @return the result of interpretting the object as an instance of '<em>Database Generated Type</em>'.
-     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
-     * @generated
-     */
-    public Object caseDatabaseGeneratedType(DatabaseGeneratedType object) {
-        return null;
-    }
-
-    /**
-     * Returns the result of interpretting the object as an instance of '<em>Document Root</em>'.
-     * <!-- begin-user-doc -->
-     * This implementation returns null;
-     * returning a non-null result will terminate the switch.
-     * <!-- end-user-doc -->
-     * @param object the target of the switch.
-     * @return the result of interpretting the object as an instance of '<em>Document Root</em>'.
-     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
-     * @generated
-     */
-    public Object caseDocumentRoot(DocumentRoot object) {
-        return null;
-    }
-
-    /**
-     * Returns the result of interpretting the object as an instance of '<em>Key Generator Type</em>'.
-     * <!-- begin-user-doc -->
-     * This implementation returns null;
-     * returning a non-null result will terminate the switch.
-     * <!-- end-user-doc -->
-     * @param object the target of the switch.
-     * @return the result of interpretting the object as an instance of '<em>Key Generator Type</em>'.
-     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
-     * @generated
-     */
-    public Object caseKeyGeneratorType(KeyGeneratorType object) {
-        return null;
-    }
-
-    /**
-     * Returns the result of interpretting the object as an instance of '<em>Sequence Table Type</em>'.
-     * <!-- begin-user-doc -->
-     * This implementation returns null;
-     * returning a non-null result will terminate the switch.
-     * <!-- end-user-doc -->
-     * @param object the target of the switch.
-     * @return the result of interpretting the object as an instance of '<em>Sequence Table Type</em>'.
-     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
-     * @generated
-     */
-    public Object caseSequenceTableType(SequenceTableType object) {
-        return null;
-    }
-
-    /**
-     * Returns the result of interpretting the object as an instance of '<em>Sql Generator Type</em>'.
-     * <!-- begin-user-doc -->
-     * This implementation returns null;
-     * returning a non-null result will terminate the switch.
-     * <!-- end-user-doc -->
-     * @param object the target of the switch.
-     * @return the result of interpretting the object as an instance of '<em>Sql Generator Type</em>'.
-     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
-     * @generated
-     */
-    public Object caseSqlGeneratorType(SqlGeneratorType object) {
-        return null;
-    }
-
-    /**
-     * Returns the result of interpretting the object as an instance of '<em>EObject</em>'.
-     * <!-- begin-user-doc -->
-     * This implementation returns null;
-     * returning a non-null result will terminate the switch, but this is the last case anyway.
-     * <!-- end-user-doc -->
-     * @param object the target of the switch.
-     * @return the result of interpretting the object as an instance of '<em>EObject</em>'.
-     * @see #doSwitch(org.eclipse.emf.ecore.EObject)
-     * @generated
-     */
-    public Object defaultCase(EObject object) {
-        return null;
-    }
-
-} //PkgenSwitch
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed 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.openejb.xml.ns.pkgen.util;
+
+import java.util.List;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+
+import org.openejb.xml.ns.pkgen.*;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Switch</b> for the model's inheritance hierarchy.
+ * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
+ * to invoke the <code>caseXXX</code> method for each class of the model,
+ * starting with the actual class of the object
+ * and proceeding up the inheritance hierarchy
+ * until a non-null result is returned,
+ * which is the result of the switch.
+ * <!-- end-user-doc -->
+ * @see org.openejb.xml.ns.pkgen.PkgenPackage
+ * @generated
+ */
+public class PkgenSwitch {
+    /**
+     * The cached model package
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected static PkgenPackage modelPackage;
+
+    /**
+     * Creates an instance of the switch.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public PkgenSwitch() {
+        if (modelPackage == null) {
+            modelPackage = PkgenPackage.eINSTANCE;
+        }
+    }
+
+    /**
+     * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the first non-null result returned by a <code>caseXXX</code> call.
+     * @generated
+     */
+    public Object doSwitch(EObject theEObject) {
+        return doSwitch(theEObject.eClass(), theEObject);
+    }
+
+    /**
+     * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the first non-null result returned by a <code>caseXXX</code> call.
+     * @generated
+     */
+    protected Object doSwitch(EClass theEClass, EObject theEObject) {
+        if (theEClass.eContainer() == modelPackage) {
+            return doSwitch(theEClass.getClassifierID(), theEObject);
+        }
+        else {
+            List eSuperTypes = theEClass.getESuperTypes();
+            return
+                eSuperTypes.isEmpty() ?
+                    defaultCase(theEObject) :
+                    doSwitch((EClass)eSuperTypes.get(0), theEObject);
+        }
+    }
+
+    /**
+     * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the first non-null result returned by a <code>caseXXX</code> call.
+     * @generated
+     */
+    protected Object doSwitch(int classifierID, EObject theEObject) {
+        switch (classifierID) {
+            case PkgenPackage.AUTO_INCREMENT_TABLE_TYPE: {
+                AutoIncrementTableType autoIncrementTableType = (AutoIncrementTableType)theEObject;
+                Object result = caseAutoIncrementTableType(autoIncrementTableType);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case PkgenPackage.CUSTOM_GENERATOR_TYPE: {
+                CustomGeneratorType customGeneratorType = (CustomGeneratorType)theEObject;
+                Object result = caseCustomGeneratorType(customGeneratorType);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case PkgenPackage.DATABASE_GENERATED_TYPE: {
+                DatabaseGeneratedType databaseGeneratedType = (DatabaseGeneratedType)theEObject;
+                Object result = caseDatabaseGeneratedType(databaseGeneratedType);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case PkgenPackage.DOCUMENT_ROOT: {
+                DocumentRoot documentRoot = (DocumentRoot)theEObject;
+                Object result = caseDocumentRoot(documentRoot);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case PkgenPackage.KEY_GENERATOR_TYPE: {
+                KeyGeneratorType keyGeneratorType = (KeyGeneratorType)theEObject;
+                Object result = caseKeyGeneratorType(keyGeneratorType);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case PkgenPackage.SEQUENCE_TABLE_TYPE: {
+                SequenceTableType sequenceTableType = (SequenceTableType)theEObject;
+                Object result = caseSequenceTableType(sequenceTableType);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case PkgenPackage.SQL_GENERATOR_TYPE: {
+                SqlGeneratorType sqlGeneratorType = (SqlGeneratorType)theEObject;
+                Object result = caseSqlGeneratorType(sqlGeneratorType);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            default: return defaultCase(theEObject);
+        }
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>Auto Increment Table Type</em>'.
+     * <!-- begin-user-doc -->
+     * This implementation returns null;
+     * returning a non-null result will terminate the switch.
+     * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpretting the object as an instance of '<em>Auto Increment Table Type</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public Object caseAutoIncrementTableType(AutoIncrementTableType object) {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>Custom Generator Type</em>'.
+     * <!-- begin-user-doc -->
+     * This implementation returns null;
+     * returning a non-null result will terminate the switch.
+     * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpretting the object as an instance of '<em>Custom Generator Type</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public Object caseCustomGeneratorType(CustomGeneratorType object) {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>Database Generated Type</em>'.
+     * <!-- begin-user-doc -->
+     * This implementation returns null;
+     * returning a non-null result will terminate the switch.
+     * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpretting the object as an instance of '<em>Database Generated Type</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public Object caseDatabaseGeneratedType(DatabaseGeneratedType object) {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>Document Root</em>'.
+     * <!-- begin-user-doc -->
+     * This implementation returns null;
+     * returning a non-null result will terminate the switch.
+     * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpretting the object as an instance of '<em>Document Root</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public Object caseDocumentRoot(DocumentRoot object) {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>Key Generator Type</em>'.
+     * <!-- begin-user-doc -->
+     * This implementation returns null;
+     * returning a non-null result will terminate the switch.
+     * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpretting the object as an instance of '<em>Key Generator Type</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public Object caseKeyGeneratorType(KeyGeneratorType object) {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>Sequence Table Type</em>'.
+     * <!-- begin-user-doc -->
+     * This implementation returns null;
+     * returning a non-null result will terminate the switch.
+     * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpretting the object as an instance of '<em>Sequence Table Type</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public Object caseSequenceTableType(SequenceTableType object) {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>Sql Generator Type</em>'.
+     * <!-- begin-user-doc -->
+     * This implementation returns null;
+     * returning a non-null result will terminate the switch.
+     * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpretting the object as an instance of '<em>Sql Generator Type</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public Object caseSqlGeneratorType(SqlGeneratorType object) {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>EObject</em>'.
+     * <!-- begin-user-doc -->
+     * This implementation returns null;
+     * returning a non-null result will terminate the switch, but this is the last case anyway.
+     * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpretting the object as an instance of '<em>EObject</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+     * @generated
+     */
+    public Object defaultCase(EObject object) {
+        return null;
+    }
+
+} //PkgenSwitch

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenSwitch.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/actions/LaunchGeronimoConsoleAction.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/actions/LaunchGeronimoConsoleAction.java?rev=239937&r1=239936&r2=239937&view=diff
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/actions/LaunchGeronimoConsoleAction.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/actions/LaunchGeronimoConsoleAction.java Wed Aug 24 14:34:34 2005
@@ -1,94 +1,94 @@
-/**
- * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
- *
- *  Licensed 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.ui.actions;
-
-import java.net.MalformedURLException;
-import java.net.URL;
-
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.ui.IObjectActionDelegate;
-import org.eclipse.ui.IWorkbenchPart;
-import org.eclipse.ui.internal.browser.BrowserViewer;
-import org.eclipse.ui.internal.browser.WebBrowserEditor;
-import org.eclipse.ui.internal.browser.WebBrowserEditorInput;
-import org.eclipse.wst.server.core.IServer;
-
-/**
- * 
- * 
- */
-public class LaunchGeronimoConsoleAction implements IObjectActionDelegate {
-
-    public static final String serverID = "org.eclipse.jst.server.geronimo.10";
-
-    /**
-     * 
-     */
-    public LaunchGeronimoConsoleAction() {
-        super();
-        // TODO Auto-generated constructor stub
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.eclipse.ui.IObjectActionDelegate#setActivePart(org.eclipse.jface.action.IAction,
-     *      org.eclipse.ui.IWorkbenchPart)
-     */
-    public void setActivePart(IAction action, IWorkbenchPart targetPart) {
-        // TODO Auto-generated method stub
-
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
-     */
-    public void run(IAction action) {
-
-        try {
-            URL url = new URL("http://localhost:8080/console/login.jsp");
-            WebBrowserEditorInput input = new WebBrowserEditorInput(url,
-                    BrowserViewer.LOCATION_BAR);
-            WebBrowserEditor.open(input);
-        } catch (MalformedURLException 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) {
-        
-        IServer server = (IServer) ((StructuredSelection) selection)
-                .getFirstElement();
-        
-        boolean enable = server.getServerType().getId().equals(serverID)
-                && server.getServerState() == IServer.STATE_STARTED;
-
-        action.setEnabled(enable);
-
-    }
-
-}
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed 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.ui.actions;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.StructuredSelection;
+import org.eclipse.ui.IObjectActionDelegate;
+import org.eclipse.ui.IWorkbenchPart;
+import org.eclipse.ui.internal.browser.BrowserViewer;
+import org.eclipse.ui.internal.browser.WebBrowserEditor;
+import org.eclipse.ui.internal.browser.WebBrowserEditorInput;
+import org.eclipse.wst.server.core.IServer;
+
+/**
+ * 
+ * 
+ */
+public class LaunchGeronimoConsoleAction implements IObjectActionDelegate {
+
+    public static final String serverID = "org.eclipse.jst.server.geronimo.10";
+
+    /**
+     * 
+     */
+    public LaunchGeronimoConsoleAction() {
+        super();
+        // TODO Auto-generated constructor stub
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.eclipse.ui.IObjectActionDelegate#setActivePart(org.eclipse.jface.action.IAction,
+     *      org.eclipse.ui.IWorkbenchPart)
+     */
+    public void setActivePart(IAction action, IWorkbenchPart targetPart) {
+        // TODO Auto-generated method stub
+
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
+     */
+    public void run(IAction action) {
+
+        try {
+            URL url = new URL("http://localhost:8080/console/login.jsp");
+            WebBrowserEditorInput input = new WebBrowserEditorInput(url,
+                    BrowserViewer.LOCATION_BAR);
+            WebBrowserEditor.open(input);
+        } catch (MalformedURLException 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) {
+        
+        IServer server = (IServer) ((StructuredSelection) selection)
+                .getFirstElement();
+        
+        boolean enable = server.getServerType().getId().equals(serverID)
+                && server.getServerState() == IServer.STATE_STARTED;
+
+        action.setEnabled(enable);
+
+    }
+
+}

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/actions/LaunchGeronimoConsoleAction.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/editors/DPEditor.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/editors/DPEditor.java?rev=239937&r1=239936&r2=239937&view=diff
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/editors/DPEditor.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/editors/DPEditor.java Wed Aug 24 14:34:34 2005
@@ -1,156 +1,156 @@
-/**
- * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
- *
- *  Licensed 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.ui.editors;
-
-import java.io.InputStream;
-import java.util.ArrayList;
-import java.util.Collections;
-
-import org.apache.geronimo.core.internal.GeronimoUtils;
-import org.apache.geronimo.ui.internal.Messages;
-import org.apache.geronimo.ui.internal.Trace;
-import org.apache.geronimo.ui.pages.NamingFormPage;
-import org.apache.geronimo.ui.pages.SecurityPage;
-import org.apache.geronimo.ui.pages.WebGeneralPage;
-import org.apache.geronimo.xml.ns.web.WebAppType;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.ui.IEditorInput;
-import org.eclipse.ui.IEditorSite;
-import org.eclipse.ui.IFileEditorInput;
-import org.eclipse.ui.PartInitException;
-import org.eclipse.ui.forms.IManagedForm;
-import org.eclipse.ui.forms.editor.FormEditor;
-import org.eclipse.ui.forms.editor.IFormPage;
-import org.eclipse.ui.forms.widgets.FormToolkit;
-import org.eclipse.ui.forms.widgets.ScrolledForm;
-
-public class DPEditor extends FormEditor {
-
-    protected FormToolkit toolkit;
-
-    protected WebAppType plan;
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.eclipse.ui.ISaveablePart#doSave(org.eclipse.core.runtime.IProgressMonitor)
-     */
-    public void doSave(IProgressMonitor monitor) {
-
-        InputStream is = null;
-        try {
-            IEditorInput input = getEditorInput();
-            if (input instanceof IFileEditorInput) {
-
-                plan.eResource().save(Collections.EMPTY_MAP);
-                commitFormPages(true);
-                editorDirtyStateChanged();
-
-            }
-        } catch (Exception e) {
-            Trace.trace(Trace.SEVERE, "Error saving", e);
-        } finally {
-            try {
-                if (is != null)
-                    is.close();
-            } catch (Exception e) {
-                // do nothing
-            }
-        }
-
-    }
-
-    private void commitFormPages(boolean onSave) {
-        IFormPage[] pages = getPages();
-        for (int i = 0; i < pages.length; i++) {
-            IFormPage page = pages[i];
-            IManagedForm mform = page.getManagedForm();
-            if (mform != null && mform.isDirty())
-                mform.commit(true);
-        }
-    }
-
-    private IFormPage[] getPages() {
-        ArrayList formPages = new ArrayList();
-        for (int i = 0; i < pages.size(); i++) {
-            Object page = pages.get(i);
-            if (page instanceof IFormPage)
-                formPages.add(page);
-        }
-        return (IFormPage[]) formPages.toArray(new IFormPage[formPages.size()]);
-    }
-
-    public void doSaveAs() {
-        // ignore
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.eclipse.ui.forms.editor.FormEditor#addPages()
-     */
-    protected void addPages() {
-        try {
-            addPage(new WebGeneralPage(this, "generalpage",
-                    Messages.editorTabGeneral));
-            addPage(new NamingFormPage(this, "namingpage",
-                    Messages.editorTabNaming));
-            addPage(new SecurityPage(this, "securitypage",
-                    Messages.editorTabSecurity));
-            createPageDependencies();
-        } catch (PartInitException e) {
-            e.printStackTrace();
-        }
-
-    }
-
-    protected void createPageDependencies() {
-
-        ScrolledForm form = getToolkit().createScrolledForm(getContainer());
-
-        form.setText(Messages.editorTitle);
-        form.getBody().setLayout(new GridLayout());
-
-        form.reflow(true);
-
-        int index = addPage(form);
-        setPageText(index, Messages.editorTabDependencies); //$NON-NLS-1$
-
-    }
-
-    public void init(IEditorSite site, IEditorInput input)
-            throws PartInitException {
-        super.init(site, input);
-        if (input instanceof IFileEditorInput) {
-            IFileEditorInput fei = (IFileEditorInput) input;
-            plan = GeronimoUtils.getWebDeploymentPlan(fei.getFile());
-        }
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.eclipse.ui.ISaveablePart#isSaveAsAllowed()
-     */
-    public boolean isSaveAsAllowed() {
-        return false;
-    }
-
-    public WebAppType getPlan() {
-        return plan;
-    }
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed 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.ui.editors;
+
+import java.io.InputStream;
+import java.util.ArrayList;
+import java.util.Collections;
+
+import org.apache.geronimo.core.internal.GeronimoUtils;
+import org.apache.geronimo.ui.internal.Messages;
+import org.apache.geronimo.ui.internal.Trace;
+import org.apache.geronimo.ui.pages.NamingFormPage;
+import org.apache.geronimo.ui.pages.SecurityPage;
+import org.apache.geronimo.ui.pages.WebGeneralPage;
+import org.apache.geronimo.xml.ns.web.WebAppType;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.ui.IEditorInput;
+import org.eclipse.ui.IEditorSite;
+import org.eclipse.ui.IFileEditorInput;
+import org.eclipse.ui.PartInitException;
+import org.eclipse.ui.forms.IManagedForm;
+import org.eclipse.ui.forms.editor.FormEditor;
+import org.eclipse.ui.forms.editor.IFormPage;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.eclipse.ui.forms.widgets.ScrolledForm;
+
+public class DPEditor extends FormEditor {
+
+    protected FormToolkit toolkit;
+
+    protected WebAppType plan;
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.eclipse.ui.ISaveablePart#doSave(org.eclipse.core.runtime.IProgressMonitor)
+     */
+    public void doSave(IProgressMonitor monitor) {
+
+        InputStream is = null;
+        try {
+            IEditorInput input = getEditorInput();
+            if (input instanceof IFileEditorInput) {
+
+                plan.eResource().save(Collections.EMPTY_MAP);
+                commitFormPages(true);
+                editorDirtyStateChanged();
+
+            }
+        } catch (Exception e) {
+            Trace.trace(Trace.SEVERE, "Error saving", e);
+        } finally {
+            try {
+                if (is != null)
+                    is.close();
+            } catch (Exception e) {
+                // do nothing
+            }
+        }
+
+    }
+
+    private void commitFormPages(boolean onSave) {
+        IFormPage[] pages = getPages();
+        for (int i = 0; i < pages.length; i++) {
+            IFormPage page = pages[i];
+            IManagedForm mform = page.getManagedForm();
+            if (mform != null && mform.isDirty())
+                mform.commit(true);
+        }
+    }
+
+    private IFormPage[] getPages() {
+        ArrayList formPages = new ArrayList();
+        for (int i = 0; i < pages.size(); i++) {
+            Object page = pages.get(i);
+            if (page instanceof IFormPage)
+                formPages.add(page);
+        }
+        return (IFormPage[]) formPages.toArray(new IFormPage[formPages.size()]);
+    }
+
+    public void doSaveAs() {
+        // ignore
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.eclipse.ui.forms.editor.FormEditor#addPages()
+     */
+    protected void addPages() {
+        try {
+            addPage(new WebGeneralPage(this, "generalpage",
+                    Messages.editorTabGeneral));
+            addPage(new NamingFormPage(this, "namingpage",
+                    Messages.editorTabNaming));
+            addPage(new SecurityPage(this, "securitypage",
+                    Messages.editorTabSecurity));
+            createPageDependencies();
+        } catch (PartInitException e) {
+            e.printStackTrace();
+        }
+
+    }
+
+    protected void createPageDependencies() {
+
+        ScrolledForm form = getToolkit().createScrolledForm(getContainer());
+
+        form.setText(Messages.editorTitle);
+        form.getBody().setLayout(new GridLayout());
+
+        form.reflow(true);
+
+        int index = addPage(form);
+        setPageText(index, Messages.editorTabDependencies); //$NON-NLS-1$
+
+    }
+
+    public void init(IEditorSite site, IEditorInput input)
+            throws PartInitException {
+        super.init(site, input);
+        if (input instanceof IFileEditorInput) {
+            IFileEditorInput fei = (IFileEditorInput) input;
+            plan = GeronimoUtils.getWebDeploymentPlan(fei.getFile());
+        }
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.eclipse.ui.ISaveablePart#isSaveAsAllowed()
+     */
+    public boolean isSaveAsAllowed() {
+        return false;
+    }
+
+    public WebAppType getPlan() {
+        return plan;
+    }
 }

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/editors/DPEditor.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/GeronimoUIPlugin.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/GeronimoUIPlugin.java?rev=239937&r1=239936&r2=239937&view=diff
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/GeronimoUIPlugin.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/GeronimoUIPlugin.java Wed Aug 24 14:34:34 2005
@@ -1,65 +1,65 @@
-/**
- * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
- *
- *  Licensed 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.ui.internal;
-
-import java.io.IOException;
-
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.ui.plugin.*;
-
-/**
- * The main plugin class to be used in the desktop.
- */
-public class GeronimoUIPlugin extends AbstractUIPlugin {
-    protected static final String PLUGIN_ID = "org.apache.geronimo.ui";
-
-    private static final String ICONS_DIRECTORY = "icons/";
-
-    private static String iconLocation;
-
-    private static GeronimoUIPlugin singleton;
-
-    /**
-     * The constructor.
-     */
-    public GeronimoUIPlugin() {
-        super();
-        singleton = this;
-    }
-
-    /**
-     * Returns the singleton instance of this plugin.
-     * 
-     * @return org.apache.geronimo.ui.internal.GeronimoUIPlugin
-     */
-    public static GeronimoUIPlugin getInstance() {
-        return singleton;
-    }
-
-    public static String getIconLocation() {
-        if (iconLocation == null) {
-            try {
-                iconLocation = Platform.resolve(
-                        GeronimoUIPlugin.getInstance().getBundle()
-                                .getEntry("/")).getPath()
-                        + ICONS_DIRECTORY;
-            } catch (IOException e) {
-                e.printStackTrace();
-            }
-        }
-        return iconLocation;
-    }
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed 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.ui.internal;
+
+import java.io.IOException;
+
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.ui.plugin.*;
+
+/**
+ * The main plugin class to be used in the desktop.
+ */
+public class GeronimoUIPlugin extends AbstractUIPlugin {
+    protected static final String PLUGIN_ID = "org.apache.geronimo.ui";
+
+    private static final String ICONS_DIRECTORY = "icons/";
+
+    private static String iconLocation;
+
+    private static GeronimoUIPlugin singleton;
+
+    /**
+     * The constructor.
+     */
+    public GeronimoUIPlugin() {
+        super();
+        singleton = this;
+    }
+
+    /**
+     * Returns the singleton instance of this plugin.
+     * 
+     * @return org.apache.geronimo.ui.internal.GeronimoUIPlugin
+     */
+    public static GeronimoUIPlugin getInstance() {
+        return singleton;
+    }
+
+    public static String getIconLocation() {
+        if (iconLocation == null) {
+            try {
+                iconLocation = Platform.resolve(
+                        GeronimoUIPlugin.getInstance().getBundle()
+                                .getEntry("/")).getPath()
+                        + ICONS_DIRECTORY;
+            } catch (IOException e) {
+                e.printStackTrace();
+            }
+        }
+        return iconLocation;
+    }
 }

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/GeronimoUIPlugin.java
------------------------------------------------------------------------------
    svn:eol-style = native