geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r280909 [50/52] - in /geronimo/devtools/trunk/modules/eclipse-plugin: ./ features/ features/org.apache.geronimo.feature/ org.apache.geronimo.core/ org.apache.geronimo.deployment.model/ org.apache.geronimo.feature/ org.apache.geronimo.runtim...
Date Wed, 14 Sep 2005 19:01:03 GMT
Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/SequenceTableTypeImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/SequenceTableTypeImpl.java?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/SequenceTableTypeImpl.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/SequenceTableTypeImpl.java Wed Sep 14 11:59:30 2005
@@ -0,0 +1,313 @@
+/**
+ * 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.SequenceTableType;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Sequence Table Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.openejb.xml.ns.pkgen.impl.SequenceTableTypeImpl#getTableName <em>Table Name</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.pkgen.impl.SequenceTableTypeImpl#getSequenceName <em>Sequence Name</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.pkgen.impl.SequenceTableTypeImpl#getBatchSize <em>Batch Size</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class SequenceTableTypeImpl extends EObjectImpl implements SequenceTableType {
+    /**
+     * The default value of the '{@link #getTableName() <em>Table Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getTableName()
+     * @generated
+     * @ordered
+     */
+    protected static final String TABLE_NAME_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getTableName() <em>Table Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getTableName()
+     * @generated
+     * @ordered
+     */
+    protected String tableName = TABLE_NAME_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getSequenceName() <em>Sequence Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getSequenceName()
+     * @generated
+     * @ordered
+     */
+    protected static final String SEQUENCE_NAME_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getSequenceName() <em>Sequence Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getSequenceName()
+     * @generated
+     * @ordered
+     */
+    protected String sequenceName = SEQUENCE_NAME_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getBatchSize() <em>Batch Size</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getBatchSize()
+     * @generated
+     * @ordered
+     */
+    protected static final int BATCH_SIZE_EDEFAULT = 0;
+
+    /**
+     * The cached value of the '{@link #getBatchSize() <em>Batch Size</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getBatchSize()
+     * @generated
+     * @ordered
+     */
+    protected int batchSize = BATCH_SIZE_EDEFAULT;
+
+    /**
+     * This is true if the Batch Size attribute has been set.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     * @ordered
+     */
+    protected boolean batchSizeESet = false;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected SequenceTableTypeImpl() {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected EClass eStaticClass() {
+        return PkgenPackage.eINSTANCE.getSequenceTableType();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getTableName() {
+        return tableName;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setTableName(String newTableName) {
+        String oldTableName = tableName;
+        tableName = newTableName;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, PkgenPackage.SEQUENCE_TABLE_TYPE__TABLE_NAME, oldTableName, tableName));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getSequenceName() {
+        return sequenceName;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setSequenceName(String newSequenceName) {
+        String oldSequenceName = sequenceName;
+        sequenceName = newSequenceName;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, PkgenPackage.SEQUENCE_TABLE_TYPE__SEQUENCE_NAME, oldSequenceName, sequenceName));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public int getBatchSize() {
+        return batchSize;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setBatchSize(int newBatchSize) {
+        int oldBatchSize = batchSize;
+        batchSize = newBatchSize;
+        boolean oldBatchSizeESet = batchSizeESet;
+        batchSizeESet = true;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, PkgenPackage.SEQUENCE_TABLE_TYPE__BATCH_SIZE, oldBatchSize, batchSize, !oldBatchSizeESet));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void unsetBatchSize() {
+        int oldBatchSize = batchSize;
+        boolean oldBatchSizeESet = batchSizeESet;
+        batchSize = BATCH_SIZE_EDEFAULT;
+        batchSizeESet = false;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.UNSET, PkgenPackage.SEQUENCE_TABLE_TYPE__BATCH_SIZE, oldBatchSize, BATCH_SIZE_EDEFAULT, oldBatchSizeESet));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean isSetBatchSize() {
+        return batchSizeESet;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public Object eGet(EStructuralFeature eFeature, boolean resolve) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case PkgenPackage.SEQUENCE_TABLE_TYPE__TABLE_NAME:
+                return getTableName();
+            case PkgenPackage.SEQUENCE_TABLE_TYPE__SEQUENCE_NAME:
+                return getSequenceName();
+            case PkgenPackage.SEQUENCE_TABLE_TYPE__BATCH_SIZE:
+                return new Integer(getBatchSize());
+        }
+        return eDynamicGet(eFeature, resolve);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eSet(EStructuralFeature eFeature, Object newValue) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case PkgenPackage.SEQUENCE_TABLE_TYPE__TABLE_NAME:
+                setTableName((String)newValue);
+                return;
+            case PkgenPackage.SEQUENCE_TABLE_TYPE__SEQUENCE_NAME:
+                setSequenceName((String)newValue);
+                return;
+            case PkgenPackage.SEQUENCE_TABLE_TYPE__BATCH_SIZE:
+                setBatchSize(((Integer)newValue).intValue());
+                return;
+        }
+        eDynamicSet(eFeature, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eUnset(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case PkgenPackage.SEQUENCE_TABLE_TYPE__TABLE_NAME:
+                setTableName(TABLE_NAME_EDEFAULT);
+                return;
+            case PkgenPackage.SEQUENCE_TABLE_TYPE__SEQUENCE_NAME:
+                setSequenceName(SEQUENCE_NAME_EDEFAULT);
+                return;
+            case PkgenPackage.SEQUENCE_TABLE_TYPE__BATCH_SIZE:
+                unsetBatchSize();
+                return;
+        }
+        eDynamicUnset(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean eIsSet(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case PkgenPackage.SEQUENCE_TABLE_TYPE__TABLE_NAME:
+                return TABLE_NAME_EDEFAULT == null ? tableName != null : !TABLE_NAME_EDEFAULT.equals(tableName);
+            case PkgenPackage.SEQUENCE_TABLE_TYPE__SEQUENCE_NAME:
+                return SEQUENCE_NAME_EDEFAULT == null ? sequenceName != null : !SEQUENCE_NAME_EDEFAULT.equals(sequenceName);
+            case PkgenPackage.SEQUENCE_TABLE_TYPE__BATCH_SIZE:
+                return isSetBatchSize();
+        }
+        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(" (tableName: ");
+        result.append(tableName);
+        result.append(", sequenceName: ");
+        result.append(sequenceName);
+        result.append(", batchSize: ");
+        if (batchSizeESet) result.append(batchSize); else result.append("<unset>");
+        result.append(')');
+        return result.toString();
+    }
+
+} //SequenceTableTypeImpl

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/SqlGeneratorTypeImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/SqlGeneratorTypeImpl.java?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/SqlGeneratorTypeImpl.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/SqlGeneratorTypeImpl.java Wed Sep 14 11:59:30 2005
@@ -0,0 +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

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenAdapterFactory.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenAdapterFactory.java?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenAdapterFactory.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenAdapterFactory.java Wed Sep 14 11:59:30 2005
@@ -0,0 +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

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenResourceFactoryImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenResourceFactoryImpl.java?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenResourceFactoryImpl.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenResourceFactoryImpl.java Wed Sep 14 11:59:30 2005
@@ -0,0 +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

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenResourceImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenResourceImpl.java?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenResourceImpl.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenResourceImpl.java Wed Sep 14 11:59:30 2005
@@ -0,0 +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

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenSwitch.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenSwitch.java?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenSwitch.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenSwitch.java Wed Sep 14 11:59:30 2005
@@ -0,0 +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

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/templates/Header.javajetinc
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/templates/Header.javajetinc?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/templates/Header.javajetinc (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/templates/Header.javajetinc Wed Sep 14 11:59:30 2005
@@ -0,0 +1,15 @@
+/**
+ * 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.
+ */

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.runtime.v1/.classpath
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.runtime.v1/.classpath?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.runtime.v1/.classpath (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.runtime.v1/.classpath Wed Sep 14 11:59:30 2005
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry exported="true" kind="lib" path="lib/geronimo-deploy-jsr88-1.0-SNAPSHOT.jar"/>
+	<classpathentry exported="true" kind="lib" path="lib/geronimo-kernel-1.0-SNAPSHOT.jar"/>
+	<classpathentry exported="true" kind="lib" path="lib/geronimo-spec-j2ee-deployment-1.1-rc4.jar"/>
+	<classpathentry exported="true" kind="lib" path="lib/mx4j-3.0.1.jar"/>
+	<classpathentry exported="true" kind="lib" path="lib/mx4j-remote-3.0.1.jar"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+	<classpathentry kind="output" path="bin"/>
+</classpath>

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.runtime.v1/.project
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.runtime.v1/.project?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.runtime.v1/.project (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.runtime.v1/.project Wed Sep 14 11:59:30 2005
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>org.apache.geronimo.runtime.v1</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.pde.ManifestBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.pde.SchemaBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+		<nature>org.eclipse.pde.PluginNature</nature>
+	</natures>
+</projectDescription>

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.runtime.v1/build.properties
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.runtime.v1/build.properties?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.runtime.v1/build.properties (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.runtime.v1/build.properties Wed Sep 14 11:59:30 2005
@@ -0,0 +1,5 @@
+bin.includes = plugin.xml,\
+               lib/
+src.includes = .classpath,\
+               .project,\
+               build.properties

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.runtime.v1/maven.xml
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.runtime.v1/maven.xml?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.runtime.v1/maven.xml (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.runtime.v1/maven.xml Wed Sep 14 11:59:30 2005
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<project default="default"
+    xmlns:j="jelly:core"
+    xmlns:ant="jelly:ant">
+
+    <goal name="default">
+        <attainGoal name="build"/>
+    </goal>    
+    
+    <goal name="build">     
+        <attainGoal name="jar:install"/>
+    </goal>
+    
+    <preGoal name="java:jar-resources">        
+        <attainGoal name="copyjars"/>
+    </preGoal>
+
+    <goal name="rebuild">
+        <attainGoal name="clean"/>
+        <attainGoal name="build"/>
+    </goal>
+        
+    <preGoal name="clean:clean">        
+        <ant:delete dir="${basedir}/lib"/>    
+    </preGoal>
+
+    <goal name="copyjars">        
+        <j:forEach var="artifact" items="${pom.artifacts}">  
+          <ant:copy todir="${basedir}/lib" file="${artifact.path}"/>          
+        </j:forEach>                 
+    </goal>  
+     
+</project>
\ No newline at end of file

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.runtime.v1/plugin.xml
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.runtime.v1/plugin.xml?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.runtime.v1/plugin.xml (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.runtime.v1/plugin.xml Wed Sep 14 11:59:30 2005
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.0"?>
+<plugin
+   id="org.apache.geronimo.runtime.v1"
+   name="Apache Geronimo Runtime V1 Plug-in"
+   version="1.0.0"
+   provider-name="Apache Software Foundation">
+   <runtime>     
+      <library name="lib/geronimo-deploy-jsr88-1.0-SNAPSHOT.jar">
+         <export name="*"/>
+      </library>     
+      <library name="lib/geronimo-kernel-1.0-SNAPSHOT.jar">
+         <export name="*"/>
+      </library>     
+      <library name="lib/geronimo-spec-j2ee-deployment-1.1-rc4.jar">
+         <export name="*"/>
+      </library>     
+      <library name="lib/mx4j-3.0.1.jar">
+         <export name="*"/>
+      </library>
+      <library name="lib/mx4j-remote-3.0.1.jar">
+         <export name="*"/>
+      </library>   
+   </runtime>
+</plugin>

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.runtime.v1/project.xml
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.runtime.v1/project.xml?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.runtime.v1/project.xml (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.runtime.v1/project.xml Wed Sep 14 11:59:30 2005
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+  <extend>../../etc/project.xml</extend>
+  <id>org.apache.geronimo.runtime.v1</id>
+  <name>org.apache.geronimo.runtime.v1</name>
+  <build>
+    <resources>
+      <resource>
+        <directory>.</directory>
+        <includes>
+          <include>plugin.xml</include>
+        </includes>
+      </resource>
+      <resource>
+        <directory>lib</directory>
+        <targetPath>lib</targetPath>
+        <includes>
+          <include>*.jar</include>
+        </includes>
+      </resource>
+    </resources>
+  </build>
+  <dependencies>
+    <!-- geronimo lib dependencies -->
+    <dependency>
+      <groupId>geronimo</groupId>
+      <artifactId>geronimo-kernel</artifactId>
+      <version>${geronimo_runtime_version}</version>
+    </dependency>
+    <dependency>
+      <groupId>geronimo</groupId>
+      <artifactId>geronimo-deploy-jsr88</artifactId>
+      <version>${geronimo_runtime_version}</version>
+    </dependency>
+    <dependency>
+      <groupId>mx4j</groupId>
+      <artifactId>mx4j-remote</artifactId>
+      <version>${mx4j_version}</version>
+    </dependency>
+    <dependency>
+      <groupId>mx4j</groupId>
+      <artifactId>mx4j</artifactId>
+      <version>${mx4j_version}</version>
+    </dependency>
+    <dependency>
+      <groupId>geronimo-spec</groupId>
+      <artifactId>geronimo-spec-j2ee-deployment</artifactId>
+      <version>${geronimo_spec_version}</version>
+    </dependency>
+  </dependencies>
+</project>
+
+

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/.classpath
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/.classpath?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/.classpath (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/.classpath Wed Sep 14 11:59:30 2005
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" path="src"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+	<classpathentry kind="output" path="target/classes"/>
+</classpath>

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/.options
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/.options?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/.options (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/.options Wed Sep 14 11:59:30 2005
@@ -0,0 +1,4 @@
+# Debugging options for the org.eclipse.jst.server.geronimo.ui plugin
+
+# Turn on general debugging
+org.eclipse.jst.server.geronimo.ui/debug=true

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/.project
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/.project?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/.project (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/.project Wed Sep 14 11:59:30 2005
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>org.apache.geronimo.ui</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.pde.ManifestBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.pde.SchemaBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.pde.PluginNature</nature>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+	</natures>
+</projectDescription>

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/COPYRIGHT
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/COPYRIGHT?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/COPYRIGHT (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/COPYRIGHT Wed Sep 14 11:59:30 2005
@@ -0,0 +1,14 @@
+The following copyright notice(s) were affixed to portions of the code
+with which this file is now or was at one time distributed
+and are placed here unaltered.
+
+/*******************************************************************************
+ * Copyright (c) 2005 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ * 
+ * Contributors:
+ *     IBM Corporation - Initial API and implementation
+ *******************************************************************************/
\ No newline at end of file

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/META-INF/MANIFEST.MF
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/META-INF/MANIFEST.MF?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/META-INF/MANIFEST.MF (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/META-INF/MANIFEST.MF Wed Sep 14 11:59:30 2005
@@ -0,0 +1,30 @@
+nifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %pluginNameh
+Bundle-SymbolicName: org.apache.geronimo.ui; singleton:=true
+Bundle-Version: 1.0.0
+Bundle-Activator: org.apache.geronimo.ui.internal.GeronimoUIPlugin
+Bundle-Vendor: %providerName
+Bundle-Localization: plugin
+Require-Bundle: org.eclipse.core.runtime,
+ org.eclipse.core.resources,
+ org.eclipse.ui,
+ org.eclipse.ui.forms,
+ org.eclipse.ui.ide,
+ org.apache.geronimo.core,
+ org.eclipse.core.resources,
+ org.eclipse.core.runtime,
+ org.eclipse.core.resources,
+ org.eclipse.emf.common,
+ org.eclipse.emf.ecore,
+ org.eclipse.wst.server.core,
+ org.apache.geronimo.deployment.model,
+ org.eclipse.jst.server.generic.ui,
+ org.apache.geronimo.core,
+ org.eclipse.ui.editors,
+ org.eclipse.ui.workbench,
+ org.eclipse.ui.workbench.texteditor,
+ org.eclipse.ui.browser,
+ org.eclipse.wst.server.ui,
+  org.eclipse.jst.server.generic.core
+Eclipse-AutoStart: true

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/NOTICE
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/NOTICE?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/NOTICE (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/NOTICE Wed Sep 14 11:59:30 2005
@@ -0,0 +1,8 @@
+This product includes software developed by
+The Apache Software Foundation (http://www.apache.org/).
+
+Portions of the Eclipse Geronimo Server Adapter were orginally developed by
+International Business Machines Corporation and are
+licensed to the Apache Software Foundation under the
+"Software Grant and Corporate Contribution License Agreement",
+informally known as the "Eclipse Geronimo Server Adapter CLA".
\ No newline at end of file

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/build.properties
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/build.properties?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/build.properties (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/build.properties Wed Sep 14 11:59:30 2005
@@ -0,0 +1,15 @@
+bin.includes = icons/,\
+               plugin.xml,\
+               serverdef/,\
+               META-INF/,\
+               plugin.properties,\
+               .options,\
+               .
+jars.compile.order = .
+src.includes = build.properties,\
+               NOTICE,\
+               .project,\
+               .classpath,\
+               COPYRIGHT
+source.. = src/
+output.. = bin/

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/icons/obj16/geronimo.gif
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/icons/obj16/geronimo.gif?rev=280909&view=auto
==============================================================================
Binary file - no diff available.

Propchange: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/icons/obj16/geronimo.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/plugin.properties
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/plugin.properties?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/plugin.properties (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/plugin.properties Wed Sep 14 11:59:30 2005
@@ -0,0 +1,6 @@
+pluginName=Geronimo server UI support
+providerName=Apache Software Foundation
+
+editorName=Geronimo Web Deployment Plan Editor
+
+PopupMenus.launchconsole=Launch Geronimo Console
\ No newline at end of file

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/plugin.xml
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/plugin.xml?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/plugin.xml (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/plugin.xml Wed Sep 14 11:59:30 2005
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.0"?>
+<plugin>
+
+  <extension point="org.eclipse.wst.server.ui.wizardFragments">
+     <fragment
+        id="org.eclipse.jst.server.generic.runtime"
+        typeIds="org.eclipse.jst.server.runtime.geronimo.10"
+        class="org.eclipse.jst.server.generic.ui.internal.GenericServerRuntimeWizardFragment"/>
+     <fragment
+        id="org.eclipse.jst.server.generic.server"
+        typeIds="org.eclipse.jst.server.geronimo.10"
+        class="org.eclipse.jst.server.generic.ui.internal.GenericServerWizardFragment"/>
+  </extension>
+
+  <extension point="org.eclipse.wst.server.ui.serverImages">
+     <image
+         id="org.eclipse.jst.server.geronimo.image.runtime"
+         icon="icons/obj16/geronimo.gif"
+         typeIds="org.eclipse.jst.server.runtime.geronimo.10"/>
+     <image
+         id="org.eclipse.jst.server.geronimo.image.server"
+         icon="icons/obj16/geronimo.gif"
+         typeIds="org.eclipse.jst.server.geronimo.10"/>
+  </extension>
+
+  <extension point="org.eclipse.ui.editors">
+      <editor
+            class="org.apache.geronimo.ui.editors.DPEditor"
+            default="true"
+            filenames="geronimo-web.xml"
+            icon="icons/obj16/geronimo.gif"
+            id="org.apache.geronimo.ui.editors.DPEditor"
+            name="%editorName">
+      </editor>
+  </extension>
+  
+  <extension point = "org.eclipse.ui.popupMenus">
+     <objectContribution
+        id="org.apache.geronimo.ui.serveractions"
+        objectClass="org.eclipse.wst.server.core.IServer">
+	    <action id="org.apache.geronimo.ui.launchconsole"
+	       label="%PopupMenus.launchconsole"
+	       icon="icons/obj16/geronimo.gif"
+	       class="org.apache.geronimo.ui.actions.LaunchGeronimoConsoleAction"	
+	       enablesFor="1">
+	    </action>
+	 </objectContribution>
+  </extension>
+  
+  <extension point="org.eclipse.wst.server.ui.editorPageSections">   
+      <section
+         id="org.apache.server.geronimo.security"
+         order="10"
+         insertionId="org.eclipse.wst.server.editor.overview.left"
+         typeIds="org.eclipse.jst.server.geronimo.10"
+         class="org.apache.geronimo.ui.sections.ServerSecurityEditorSection">
+      </section>
+   </extension>
+
+</plugin>
\ No newline at end of file

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/project.properties
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/project.properties?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/project.properties (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/project.properties Wed Sep 14 11:59:30 2005
@@ -0,0 +1,24 @@
+maven.jar.manifest=META-INF/MANIFEST.MF
+
+maven.jar.org.eclipse.osgi = ${eclipse.home.plugins}/org.eclipse.osgi_3.1.0.jar
+maven.jar.org.eclipse.core.runtime = ${eclipse.home.plugins}/org.eclipse.core.runtime_3.1.0.jar
+maven.jar.org.eclipse.core.resources = ${eclipse.home.plugins}/org.eclipse.core.resources_3.1.0.jar
+maven.jar.org.eclipse.emf.common = ${eclipse.home.plugins}/org.eclipse.emf.common_2.1.0.jar
+maven.jar.org.eclipse.emf.ecore = ${eclipse.home.plugins}/org.eclipse.emf.ecore_2.1.0.jar
+maven.jar.org.eclipse.ui = ${eclipse.home.plugins}/org.eclipse.ui_3.1.0.jar
+maven.jar.org.eclipse.ui.browser = ${eclipse.home.plugins}/org.eclipse.ui.browser_3.1.0.jar
+maven.jar.org.eclipse.ui.editors = ${eclipse.home.plugins}/org.eclipse.ui.editors_3.1.0.jar
+maven.jar.org.eclipse.ui.forms = ${eclipse.home.plugins}/org.eclipse.ui.forms_3.1.0.jar
+maven.jar.org.eclipse.ui.ide = ${eclipse.home.plugins}/org.eclipse.ui.ide_3.1.0.jar
+maven.jar.org.eclipse.ui.workbench = ${eclipse.home.plugins}/org.eclipse.ui.workbench_3.1.0.jar
+maven.jar.org.eclipse.ui.workbench.texteditor = ${eclipse.home.plugins}/org.eclipse.ui.workbench.texteditor_3.1.0.jar
+maven.jar.org.eclipse.wst.server.core = ${eclipse.home.plugins}/org.eclipse.wst.server.core_0.7.0.jar
+maven.jar.org.eclipse.wst.server.ui = ${eclipse.home.plugins}/org.eclipse.wst.server.ui_0.7.0.jar
+maven.jar.org.eclipse.jface = ${eclipse.home.plugins}/org.eclipse.jface_3.1.0.jar
+maven.jar.org.eclipse.core.commands = ${eclipse.home.plugins}/org.eclipse.core.commands_3.1.0.jar 
+
+maven.jar.org.eclipse.jst.server.generic.core = ${eclipse.home.plugins}/org.eclipse.jst.server.generic.core_0.7.0/genericserver.jar
+maven.jar.org.eclipse.jst.server.generic.ui = ${eclipse.home.plugins}/org.eclipse.jst.server.generic.ui_0.7.0/genericui.jar
+maven.jar.org.eclipse.wst.common.modulecore = ${eclipse.home.plugins}/org.eclipse.wst.common.modulecore_0.7.0/modulecore.jar
+
+maven.jar.org.eclipse.swt.fragment = ${eclipse.home.plugins}/org.eclipse.swt.${swt.fragmentid}_3.1.0.jar
\ No newline at end of file

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/project.xml
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/project.xml?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/project.xml (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/project.xml Wed Sep 14 11:59:30 2005
@@ -0,0 +1,139 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+  <extend>../../etc/project.xml</extend>
+  <id>org.apache.geronimo.ui</id>
+  <name>org.apache.geronimo.ui</name>
+  <build>
+    <sourceDirectory>src</sourceDirectory>
+    <resources>
+      <resource>
+        <directory>.</directory>
+        <includes>
+          <include>plugin.xml</include>
+        </includes>
+      </resource>
+      <resource>
+        <targetPath>icons/obj16/</targetPath>
+        <directory>icons/obj16</directory>
+        <includes>
+          <include>*.gif</include>
+        </includes>
+      </resource>
+    </resources>
+  </build>
+  <dependencies>
+    <!-- geronimo plugin dependencies -->
+    <dependency>
+      <groupId>geronimo-devtools</groupId>
+      <artifactId>org.apache.geronimo.core</artifactId>
+      <version>${devtools_currentversion}</version>
+    </dependency>
+    <dependency>
+      <groupId>geronimo-devtools</groupId>
+      <artifactId>org.apache.geronimo.deployment.model</artifactId>
+      <version>${devtools_currentversion}</version>
+    </dependency>
+
+    <!--  eclipse dependencies -->
+    <dependency>
+      <groupId>eclipse</groupId>
+      <artifactId>org.eclipse.osgi</artifactId>
+      <version>3.1.0</version>
+    </dependency>
+    <dependency>
+      <groupId>eclipse</groupId>
+      <artifactId>org.eclipse.swt.fragment</artifactId>
+      <version>3.1.0</version>
+    </dependency>
+    <dependency>
+      <groupId>eclipse</groupId>
+      <artifactId>org.eclipse.jface</artifactId>
+      <version>3.1.0</version>
+    </dependency>
+    <dependency>
+      <groupId>eclipse</groupId>
+      <artifactId>org.eclipse.core.runtime</artifactId>
+      <version>3.1.0</version>
+    </dependency>
+    <dependency>
+      <groupId>eclipse</groupId>
+      <artifactId>org.eclipse.core.resources</artifactId>
+      <version>3.1.0</version>
+    </dependency>
+    <dependency>
+      <groupId>eclipse</groupId>
+      <artifactId>org.eclipse.emf.common</artifactId>
+      <version>2.1.0</version>
+    </dependency>
+    <dependency>
+      <groupId>eclipse</groupId>
+      <artifactId>org.eclipse.emf.ecore</artifactId>
+      <version>2.1.0</version>
+    </dependency>
+    <dependency>
+      <groupId>eclipse</groupId>
+      <artifactId>org.eclipse.ui</artifactId>
+      <version>3.1.0</version>
+    </dependency>
+    <dependency>
+      <groupId>eclipse</groupId>
+      <artifactId>org.eclipse.ui.browser</artifactId>
+      <version>3.1.0</version>
+    </dependency>
+    <dependency>
+      <groupId>eclipse</groupId>
+      <artifactId>org.eclipse.ui.editors</artifactId>
+      <version>3.1.0</version>
+    </dependency>
+    <dependency>
+      <groupId>eclipse</groupId>
+      <artifactId>org.eclipse.ui.forms</artifactId>
+      <version>3.1.0</version>
+    </dependency>
+    <dependency>
+      <groupId>eclipse</groupId>
+      <artifactId>org.eclipse.ui.ide</artifactId>
+      <version>3.1.0</version>
+    </dependency>
+    <dependency>
+      <groupId>eclipse</groupId>
+      <artifactId>org.eclipse.ui.workbench</artifactId>
+      <version>3.1.0</version>
+    </dependency>
+    <dependency>
+      <groupId>eclipse</groupId>
+      <artifactId>org.eclipse.core.commands</artifactId>
+      <version>3.1.0</version>
+    </dependency>
+    <dependency>
+      <groupId>eclipse</groupId>
+      <artifactId>org.eclipse.ui.workbench.texteditor</artifactId>
+      <version>3.1.0</version>
+    </dependency>
+    <dependency>
+      <groupId>eclipse</groupId>
+      <artifactId>org.eclipse.wst.server.core</artifactId>
+      <version>0.7.0</version>
+    </dependency>
+    <dependency>
+      <groupId>eclipse</groupId>
+      <artifactId>org.eclipse.wst.server.ui</artifactId>
+      <version>0.7.0</version>
+    </dependency>
+    <dependency>
+      <groupId>eclipse</groupId>
+      <artifactId>org.eclipse.jst.server.generic.core</artifactId>
+      <version>0.7.0</version>
+    </dependency>
+    <dependency>
+      <groupId>eclipse</groupId>
+      <artifactId>org.eclipse.jst.server.generic.ui</artifactId>
+      <version>0.7.0</version>
+    </dependency>
+    <dependency>
+      <groupId>eclipse</groupId>
+      <artifactId>org.eclipse.wst.common.modulecore</artifactId>
+      <version>0.7.0</version>
+    </dependency>
+  </dependencies>
+</project>
\ No newline at end of file

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/actions/LaunchGeronimoConsoleAction.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/actions/LaunchGeronimoConsoleAction.java?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/actions/LaunchGeronimoConsoleAction.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/actions/LaunchGeronimoConsoleAction.java Wed Sep 14 11:59:30 2005
@@ -0,0 +1,95 @@
+/**
+ * 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 != null && serverID.equals(server.getServerType().getId())
+                && server.getServerState() == IServer.STATE_STARTED;
+
+        action.setEnabled(enable);
+
+    }
+
+}

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/commands/SetPasswordCommand.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/commands/SetPasswordCommand.java?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/commands/SetPasswordCommand.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/commands/SetPasswordCommand.java Wed Sep 14 11:59:30 2005
@@ -0,0 +1,70 @@
+/**
+ * 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.commands;
+
+import org.apache.geronimo.core.internal.GeronimoServer;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.wst.server.core.IServerWorkingCopy;
+import org.eclipse.wst.server.ui.internal.command.ServerCommand;
+
+/**
+ * 
+ * 
+ */
+public class SetPasswordCommand extends ServerCommand {
+
+    protected String name;
+
+    protected String oldName;
+
+    GeronimoServer 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 = (GeronimoServer) server.getAdapter(GeronimoServer.class);
+        if (gs == null) {
+            gs = (GeronimoServer) server.loadAdapter(GeronimoServer.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/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/commands/SetUsernameCommand.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/commands/SetUsernameCommand.java?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/commands/SetUsernameCommand.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/commands/SetUsernameCommand.java Wed Sep 14 11:59:30 2005
@@ -0,0 +1,71 @@
+/**
+ * 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.commands;
+
+import org.apache.geronimo.core.internal.GeronimoServer;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.wst.server.core.IServerWorkingCopy;
+import org.eclipse.wst.server.ui.internal.command.ServerCommand;
+
+/**
+ * 
+ * 
+ */
+public class SetUsernameCommand extends ServerCommand {
+
+    protected String name;
+
+    protected String oldName;
+
+    GeronimoServer 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 = (GeronimoServer) server.getAdapter(GeronimoServer.class);
+        if (gs == null) {
+            gs = (GeronimoServer) server.loadAdapter(GeronimoServer.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);
+        }
+    }
+
+}



Mime
View raw message