geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r382997 [6/7] - in /geronimo/devtools/eclipse-plugin/trunk: ./ assembly/ etc/ features/org.apache.geronimo.feature.source/ features/org.apache.geronimo.feature/ features/org.apache.geronimo.installableruntime.tomcat.feature/ geronimo-emf/ m...
Date Sat, 04 Mar 2006 01:30:47 GMT
Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/EjbLocalRefSection.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/EjbLocalRefSection.java?rev=382997&r1=382996&r2=382997&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/EjbLocalRefSection.java (original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/EjbLocalRefSection.java Fri Mar  3 17:30:38 2006
@@ -1,102 +1,102 @@
-/**
- * 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.sections;
-
-import org.apache.geronimo.ui.internal.GeronimoUIPlugin;
-import org.apache.geronimo.ui.internal.Messages;
-import org.apache.geronimo.ui.wizards.EjbLocalRefWizard;
-import org.apache.geronimo.xml.ns.naming.NamingPackage;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.jface.wizard.Wizard;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.ui.forms.widgets.FormToolkit;
-
-public class EjbLocalRefSection extends AbstractTableSection {
-
-	EReference ejbLocalRefERef;
-
-	private static final String[] COLUMN_NAMES = new String[] {
-			Messages.editorEjbRefTargetName, Messages.editorEjbRefEjbLink };
-
-	public EjbLocalRefSection(EObject plan, Composite parent,
-			FormToolkit toolkit, int style, EReference ejbLocalRefERef) {
-		super(plan, parent, toolkit, style);
-		this.ejbLocalRefERef = ejbLocalRefERef;
-		createClient();
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getTitle()
-	 */
-	public String getTitle() {
-		return Messages.editorEjbLocalRefTitle;
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getDescription()
-	 */
-	public String getDescription() {
-		return Messages.editorEjbLocalRefDescription;
-	}
-	
-	/* (non-Javadoc)
-	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getTableColumnNames()
-	 */
-	public String[] getTableColumnNames() {
-		return COLUMN_NAMES;
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getEReference()
-	 */
-	public EReference getEReference() {
-		return ejbLocalRefERef;
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getWizard()
-	 */
-	public Wizard getWizard() {
-		return new EjbLocalRefWizard(this);
-	}
-
-	public ImageDescriptor getImageDescriptor() {
-		return GeronimoUIPlugin.imageDescriptorFromPlugin(
-				"org.eclipse.jst.j2ee",
-				"icons/full/obj16/ejb_local_ref_obj.gif");
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getTableEntryObjectType()
-	 */
-	public EClass getTableEntryObjectType() {
-		return NamingPackage.eINSTANCE.getEjbLocalRefType();
-	}
-
-}
+/**
+ * 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.sections;
+
+import org.apache.geronimo.ui.internal.GeronimoUIPlugin;
+import org.apache.geronimo.ui.internal.Messages;
+import org.apache.geronimo.ui.wizards.EjbLocalRefWizard;
+import org.apache.geronimo.xml.ns.naming.NamingPackage;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EReference;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.jface.wizard.Wizard;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+
+public class EjbLocalRefSection extends AbstractTableSection {
+
+	EReference ejbLocalRefERef;
+
+	private static final String[] COLUMN_NAMES = new String[] {
+			Messages.editorEjbRefTargetName, Messages.editorEjbRefEjbLink };
+
+	public EjbLocalRefSection(EObject plan, Composite parent,
+			FormToolkit toolkit, int style, EReference ejbLocalRefERef) {
+		super(plan, parent, toolkit, style);
+		this.ejbLocalRefERef = ejbLocalRefERef;
+		createClient();
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getTitle()
+	 */
+	public String getTitle() {
+		return Messages.editorEjbLocalRefTitle;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getDescription()
+	 */
+	public String getDescription() {
+		return Messages.editorEjbLocalRefDescription;
+	}
+	
+	/* (non-Javadoc)
+	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getTableColumnNames()
+	 */
+	public String[] getTableColumnNames() {
+		return COLUMN_NAMES;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getEReference()
+	 */
+	public EReference getEReference() {
+		return ejbLocalRefERef;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getWizard()
+	 */
+	public Wizard getWizard() {
+		return new EjbLocalRefWizard(this);
+	}
+
+	public ImageDescriptor getImageDescriptor() {
+		return GeronimoUIPlugin.imageDescriptorFromPlugin(
+				"org.eclipse.jst.j2ee",
+				"icons/full/obj16/ejb_local_ref_obj.gif");
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getTableEntryObjectType()
+	 */
+	public EClass getTableEntryObjectType() {
+		return NamingPackage.eINSTANCE.getEjbLocalRefType();
+	}
+
+}

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/EjbLocalRefSection.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/EjbLocalRefSection.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/EjbLocalRefSection.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/EjbRefSection.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/EjbRefSection.java?rev=382997&r1=382996&r2=382997&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/EjbRefSection.java (original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/EjbRefSection.java Fri Mar  3 17:30:38 2006
@@ -1,109 +1,109 @@
-/**
- * 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.sections;
-
-import org.apache.geronimo.ui.internal.GeronimoUIPlugin;
-import org.apache.geronimo.ui.internal.Messages;
-import org.apache.geronimo.ui.wizards.EjbRefWizard;
-import org.apache.geronimo.xml.ns.naming.NamingPackage;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.jface.wizard.Wizard;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.ui.forms.widgets.FormToolkit;
-
-public class EjbRefSection extends AbstractTableSection {
-
-	EReference ejbRefERef;
-	
-	private static final String[]
-		COLUMN_NAMES = new String[] { Messages.editorEjbRefTargetName,
-				Messages.editorEjbRefEjbLink };
-	
-
-	/**
-	 * @param plan
-	 * @param parent
-	 * @param toolkit
-	 * @param style
-	 */
-	public EjbRefSection(EObject plan, Composite parent, FormToolkit toolkit,
-			int style, EReference ejbRefERef) {
-		super(plan, parent, toolkit, style);
-		this.ejbRefERef = ejbRefERef;
-		createClient();
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getTitle()
-	 */
-	public String getTitle() {
-		return Messages.editorEjbRefTitle;
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getDescription()
-	 */
-	public String getDescription() {
-		return Messages.editorEjbRefDescription;
-	}
-	
-	/* (non-Javadoc)
-	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getTableColumnNames()
-	 */
-	public String[] getTableColumnNames() {
-		return COLUMN_NAMES;
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getEReference()
-	 */
-	public EReference getEReference() {
-		return ejbRefERef;
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getWizard()
-	 */
-	public Wizard getWizard() {
-		return new EjbRefWizard(this);
-	}
-
-	public ImageDescriptor getImageDescriptor() {
-		return GeronimoUIPlugin.imageDescriptorFromPlugin(
-				"org.eclipse.jst.j2ee", "icons/full/obj16/ejbRef_obj.gif");
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getTableEntryObjectType()
-	 */
-	public EClass getTableEntryObjectType() {
-		return NamingPackage.eINSTANCE.getEjbRefType();
-	}
-
-}
+/**
+ * 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.sections;
+
+import org.apache.geronimo.ui.internal.GeronimoUIPlugin;
+import org.apache.geronimo.ui.internal.Messages;
+import org.apache.geronimo.ui.wizards.EjbRefWizard;
+import org.apache.geronimo.xml.ns.naming.NamingPackage;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EReference;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.jface.wizard.Wizard;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+
+public class EjbRefSection extends AbstractTableSection {
+
+	EReference ejbRefERef;
+	
+	private static final String[]
+		COLUMN_NAMES = new String[] { Messages.editorEjbRefTargetName,
+				Messages.editorEjbRefEjbLink };
+	
+
+	/**
+	 * @param plan
+	 * @param parent
+	 * @param toolkit
+	 * @param style
+	 */
+	public EjbRefSection(EObject plan, Composite parent, FormToolkit toolkit,
+			int style, EReference ejbRefERef) {
+		super(plan, parent, toolkit, style);
+		this.ejbRefERef = ejbRefERef;
+		createClient();
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getTitle()
+	 */
+	public String getTitle() {
+		return Messages.editorEjbRefTitle;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getDescription()
+	 */
+	public String getDescription() {
+		return Messages.editorEjbRefDescription;
+	}
+	
+	/* (non-Javadoc)
+	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getTableColumnNames()
+	 */
+	public String[] getTableColumnNames() {
+		return COLUMN_NAMES;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getEReference()
+	 */
+	public EReference getEReference() {
+		return ejbRefERef;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getWizard()
+	 */
+	public Wizard getWizard() {
+		return new EjbRefWizard(this);
+	}
+
+	public ImageDescriptor getImageDescriptor() {
+		return GeronimoUIPlugin.imageDescriptorFromPlugin(
+				"org.eclipse.jst.j2ee", "icons/full/obj16/ejbRef_obj.gif");
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getTableEntryObjectType()
+	 */
+	public EClass getTableEntryObjectType() {
+		return NamingPackage.eINSTANCE.getEjbRefType();
+	}
+
+}

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/EjbRefSection.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/EjbRefSection.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/EjbRefSection.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/GBeanRefSection.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/GBeanRefSection.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/GBeanRefSection.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/GBeanSection.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/GBeanSection.java?rev=382997&r1=382996&r2=382997&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/GBeanSection.java (original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/GBeanSection.java Fri Mar  3 17:30:38 2006
@@ -1,100 +1,100 @@
-/**
- * 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.sections;
-
-import org.apache.geronimo.ui.internal.Messages;
-import org.apache.geronimo.ui.wizards.GBeanWizard;
-import org.apache.geronimo.xml.ns.deployment.DeploymentPackage;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.jface.wizard.Wizard;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.ui.forms.widgets.FormToolkit;
-
-public class GBeanSection extends AbstractTableSection {
-
-	private EReference gBeanERef;
-	
-	private static final String[] COLUMN_NAMES = new String[] { Messages.name, Messages.GbeanName,
-				Messages.className };
-	
-	/**
-	 * @param plan
-	 * @param parent
-	 * @param toolkit
-	 * @param style
-	 */
-	public GBeanSection(EObject plan, EReference gBeanERef, Composite parent,
-			FormToolkit toolkit, int style) {
-		super(plan, parent, toolkit, style);
-		this.gBeanERef = gBeanERef;
-		createClient();
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getTitle()
-	 */
-	public String getTitle() {
-		return Messages.editorSectionGBeanTitle;
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getDescription()
-	 */
-	public String getDescription() {
-		return Messages.editorSectionGBeanDescription;
-	}
-	
-	/* (non-Javadoc)
-	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getTableColumnNames()
-	 */
-	public String[] getTableColumnNames() {
-		return COLUMN_NAMES;
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getEReference()
-	 */
-	public EReference getEReference() {
-		return gBeanERef;
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getWizard()
-	 */
-	public Wizard getWizard() {
-		return new GBeanWizard(this);
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getTableEntryObjectType()
-	 */
-	public EClass getTableEntryObjectType() {
-		return DeploymentPackage.eINSTANCE.getGbeanType();
-	}
-
-}
+/**
+ * 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.sections;
+
+import org.apache.geronimo.ui.internal.Messages;
+import org.apache.geronimo.ui.wizards.GBeanWizard;
+import org.apache.geronimo.xml.ns.deployment.DeploymentPackage;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EReference;
+import org.eclipse.jface.wizard.Wizard;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+
+public class GBeanSection extends AbstractTableSection {
+
+	private EReference gBeanERef;
+	
+	private static final String[] COLUMN_NAMES = new String[] { Messages.name, Messages.GbeanName,
+				Messages.className };
+	
+	/**
+	 * @param plan
+	 * @param parent
+	 * @param toolkit
+	 * @param style
+	 */
+	public GBeanSection(EObject plan, EReference gBeanERef, Composite parent,
+			FormToolkit toolkit, int style) {
+		super(plan, parent, toolkit, style);
+		this.gBeanERef = gBeanERef;
+		createClient();
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getTitle()
+	 */
+	public String getTitle() {
+		return Messages.editorSectionGBeanTitle;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getDescription()
+	 */
+	public String getDescription() {
+		return Messages.editorSectionGBeanDescription;
+	}
+	
+	/* (non-Javadoc)
+	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getTableColumnNames()
+	 */
+	public String[] getTableColumnNames() {
+		return COLUMN_NAMES;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getEReference()
+	 */
+	public EReference getEReference() {
+		return gBeanERef;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getWizard()
+	 */
+	public Wizard getWizard() {
+		return new GBeanWizard(this);
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getTableEntryObjectType()
+	 */
+	public EClass getTableEntryObjectType() {
+		return DeploymentPackage.eINSTANCE.getGbeanType();
+	}
+
+}

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/GBeanSection.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/GBeanSection.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/GBeanSection.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ImportSection.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ImportSection.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ImportSection.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/OpenEjbJarGeneralSection.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/OpenEjbJarGeneralSection.java?rev=382997&r1=382996&r2=382997&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/OpenEjbJarGeneralSection.java (original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/OpenEjbJarGeneralSection.java Fri Mar  3 17:30:38 2006
@@ -1,58 +1,58 @@
-/**
- * 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.sections;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.ui.forms.widgets.FormToolkit;
-import org.openejb.xml.ns.openejb.jar.JarPackage;
-import org.openejb.xml.ns.openejb.jar.OpenejbJarType;
-
-public class OpenEjbJarGeneralSection extends CommonGeneralSection {
-
-	OpenejbJarType plan;
-
-	public OpenEjbJarGeneralSection(Composite parent, FormToolkit toolkit,
-			int style, EObject plan) {
-		super(parent, toolkit, style, plan);
-		this.plan = (OpenejbJarType) plan;
-		createClient();
-	}
-
-	protected void createClient() {
-		super.createClient();
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.geronimo.ui.sections.CommonGeneralSection#getConfigIdEAttribute()
-	 */
-	protected EAttribute getConfigIdEAttribute() {
-		return JarPackage.eINSTANCE.getOpenejbJarType_ConfigId();
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.geronimo.ui.sections.CommonGeneralSection#getParentIdEAttribute()
-	 */
-	protected EAttribute getParentIdEAttribute() {
-		return JarPackage.eINSTANCE.getOpenejbJarType_ParentId();
-	}
-
-}
+/**
+ * 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.sections;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.openejb.xml.ns.openejb.jar.JarPackage;
+import org.openejb.xml.ns.openejb.jar.OpenejbJarType;
+
+public class OpenEjbJarGeneralSection extends CommonGeneralSection {
+
+	OpenejbJarType plan;
+
+	public OpenEjbJarGeneralSection(Composite parent, FormToolkit toolkit,
+			int style, EObject plan) {
+		super(parent, toolkit, style, plan);
+		this.plan = (OpenejbJarType) plan;
+		createClient();
+	}
+
+	protected void createClient() {
+		super.createClient();
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.CommonGeneralSection#getConfigIdEAttribute()
+	 */
+	protected EAttribute getConfigIdEAttribute() {
+		return JarPackage.eINSTANCE.getOpenejbJarType_ConfigId();
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.CommonGeneralSection#getParentIdEAttribute()
+	 */
+	protected EAttribute getParentIdEAttribute() {
+		return JarPackage.eINSTANCE.getOpenejbJarType_ParentId();
+	}
+
+}

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/OpenEjbJarGeneralSection.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/OpenEjbJarGeneralSection.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/OpenEjbJarGeneralSection.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ResourceEnvRefSection.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ResourceEnvRefSection.java?rev=382997&r1=382996&r2=382997&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ResourceEnvRefSection.java (original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ResourceEnvRefSection.java Fri Mar  3 17:30:38 2006
@@ -1,102 +1,102 @@
-/**
- * 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.sections;
-
-import org.apache.geronimo.ui.internal.GeronimoUIPlugin;
-import org.apache.geronimo.ui.internal.Messages;
-import org.apache.geronimo.ui.wizards.ResourceEnvRefWizard;
-import org.apache.geronimo.xml.ns.naming.NamingPackage;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.jface.wizard.Wizard;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.ui.forms.widgets.FormToolkit;
-
-public class ResourceEnvRefSection extends AbstractTableSection {
-
-	EReference resourceEnvRefERef;
-	
-	private static final String[] COLUMN_NAMES = new String[] { Messages.editorResEnvRefNameTitle,
-				Messages.editorResEnvRefMsgDestTitle };
-	
-
-	public ResourceEnvRefSection(EObject plan, Composite parent,
-			FormToolkit toolkit, int style, EReference resourceEnvRefERef) {
-		super(plan, parent, toolkit, style);
-		this.resourceEnvRefERef = resourceEnvRefERef;
-		createClient();
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getTitle()
-	 */
-	public String getTitle() {
-		return Messages.editorResourceEnvRefTitle;
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getDescription()
-	 */
-	public String getDescription() {
-		return Messages.editorResourceEnvRefDescription;
-	}
-	
-	/* (non-Javadoc)
-	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getTableColumnNames()
-	 */
-	public String[] getTableColumnNames() {
-		return COLUMN_NAMES;
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getEReference()
-	 */
-	public EReference getEReference() {
-		return resourceEnvRefERef;
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getWizard()
-	 */
-	public Wizard getWizard() {
-		return new ResourceEnvRefWizard(this);
-	}
-
-	public ImageDescriptor getImageDescriptor() {
-		return GeronimoUIPlugin.imageDescriptorFromPlugin(
-				"org.eclipse.jst.j2ee", "icons/full/obj16/res_env_ref_obj.gif");
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getTableEntryObjectType()
-	 */
-	public EClass getTableEntryObjectType() {
-		return NamingPackage.eINSTANCE.getResourceEnvRefType();
-	}
-
-}
+/**
+ * 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.sections;
+
+import org.apache.geronimo.ui.internal.GeronimoUIPlugin;
+import org.apache.geronimo.ui.internal.Messages;
+import org.apache.geronimo.ui.wizards.ResourceEnvRefWizard;
+import org.apache.geronimo.xml.ns.naming.NamingPackage;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EReference;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.jface.wizard.Wizard;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+
+public class ResourceEnvRefSection extends AbstractTableSection {
+
+	EReference resourceEnvRefERef;
+	
+	private static final String[] COLUMN_NAMES = new String[] { Messages.editorResEnvRefNameTitle,
+				Messages.editorResEnvRefMsgDestTitle };
+	
+
+	public ResourceEnvRefSection(EObject plan, Composite parent,
+			FormToolkit toolkit, int style, EReference resourceEnvRefERef) {
+		super(plan, parent, toolkit, style);
+		this.resourceEnvRefERef = resourceEnvRefERef;
+		createClient();
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getTitle()
+	 */
+	public String getTitle() {
+		return Messages.editorResourceEnvRefTitle;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getDescription()
+	 */
+	public String getDescription() {
+		return Messages.editorResourceEnvRefDescription;
+	}
+	
+	/* (non-Javadoc)
+	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getTableColumnNames()
+	 */
+	public String[] getTableColumnNames() {
+		return COLUMN_NAMES;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getEReference()
+	 */
+	public EReference getEReference() {
+		return resourceEnvRefERef;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getWizard()
+	 */
+	public Wizard getWizard() {
+		return new ResourceEnvRefWizard(this);
+	}
+
+	public ImageDescriptor getImageDescriptor() {
+		return GeronimoUIPlugin.imageDescriptorFromPlugin(
+				"org.eclipse.jst.j2ee", "icons/full/obj16/res_env_ref_obj.gif");
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getTableEntryObjectType()
+	 */
+	public EClass getTableEntryObjectType() {
+		return NamingPackage.eINSTANCE.getResourceEnvRefType();
+	}
+
+}

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ResourceEnvRefSection.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ResourceEnvRefSection.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ResourceEnvRefSection.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ResourceRefSection.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ResourceRefSection.java?rev=382997&r1=382996&r2=382997&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ResourceRefSection.java (original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ResourceRefSection.java Fri Mar  3 17:30:38 2006
@@ -1,102 +1,102 @@
-/**
- * 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.sections;
-
-import org.apache.geronimo.ui.internal.GeronimoUIPlugin;
-import org.apache.geronimo.ui.internal.Messages;
-import org.apache.geronimo.ui.wizards.ResourceRefWizard;
-import org.apache.geronimo.xml.ns.naming.NamingPackage;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.jface.wizard.Wizard;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.ui.forms.widgets.FormToolkit;
-
-public class ResourceRefSection extends AbstractTableSection {
-
-	EReference resourceRefERef;
-	
-	private static final String[] COLUMN_NAMES = new String[] { Messages.editorResRefNameTitle,
-				Messages.editorResRefLinkTitle,
-				Messages.editorResRefTargetNameTitle };
-
-	public ResourceRefSection(EObject plan, Composite parent,
-			FormToolkit toolkit, int style, EReference resourceRefERef) {
-		super(plan, parent, toolkit, style);
-		this.resourceRefERef = resourceRefERef;
-		createClient();
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getTitle()
-	 */
-	public String getTitle() {
-		return Messages.editorResourceRefTitle;
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getDescription()
-	 */
-	public String getDescription() {
-		return Messages.editorResourceRefDescription;
-	}
-	
-	/* (non-Javadoc)
-	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getTableColumnNames()
-	 */
-	public String[] getTableColumnNames() {
-		return COLUMN_NAMES;
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getEReference()
-	 */
-	public EReference getEReference() {
-		return resourceRefERef;
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.geronimo.ui.sections.DynamicTableSection#getWizard()
-	 */
-	public Wizard getWizard() {
-		return new ResourceRefWizard(this);
-	}
-
-	public ImageDescriptor getImageDescriptor() {
-		return GeronimoUIPlugin.imageDescriptorFromPlugin(
-				"org.eclipse.jst.j2ee", "icons/full/obj16/resourceRef_obj.gif");
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getTableEntryObjectType()
-	 */
-	public EClass getTableEntryObjectType() {
-		return NamingPackage.eINSTANCE.getResourceRefType();
-	}
-
-}
+/**
+ * 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.sections;
+
+import org.apache.geronimo.ui.internal.GeronimoUIPlugin;
+import org.apache.geronimo.ui.internal.Messages;
+import org.apache.geronimo.ui.wizards.ResourceRefWizard;
+import org.apache.geronimo.xml.ns.naming.NamingPackage;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EReference;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.jface.wizard.Wizard;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+
+public class ResourceRefSection extends AbstractTableSection {
+
+	EReference resourceRefERef;
+	
+	private static final String[] COLUMN_NAMES = new String[] { Messages.editorResRefNameTitle,
+				Messages.editorResRefLinkTitle,
+				Messages.editorResRefTargetNameTitle };
+
+	public ResourceRefSection(EObject plan, Composite parent,
+			FormToolkit toolkit, int style, EReference resourceRefERef) {
+		super(plan, parent, toolkit, style);
+		this.resourceRefERef = resourceRefERef;
+		createClient();
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getTitle()
+	 */
+	public String getTitle() {
+		return Messages.editorResourceRefTitle;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getDescription()
+	 */
+	public String getDescription() {
+		return Messages.editorResourceRefDescription;
+	}
+	
+	/* (non-Javadoc)
+	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getTableColumnNames()
+	 */
+	public String[] getTableColumnNames() {
+		return COLUMN_NAMES;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getEReference()
+	 */
+	public EReference getEReference() {
+		return resourceRefERef;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.DynamicTableSection#getWizard()
+	 */
+	public Wizard getWizard() {
+		return new ResourceRefWizard(this);
+	}
+
+	public ImageDescriptor getImageDescriptor() {
+		return GeronimoUIPlugin.imageDescriptorFromPlugin(
+				"org.eclipse.jst.j2ee", "icons/full/obj16/resourceRef_obj.gif");
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getTableEntryObjectType()
+	 */
+	public EClass getTableEntryObjectType() {
+		return NamingPackage.eINSTANCE.getResourceRefType();
+	}
+
+}

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ResourceRefSection.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ResourceRefSection.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ResourceRefSection.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/SecurityRootSection.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/SecurityRootSection.java?rev=382997&r1=382996&r2=382997&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/SecurityRootSection.java (original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/SecurityRootSection.java Fri Mar  3 17:30:38 2006
@@ -1,161 +1,161 @@
-/**
- * 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.sections;
-
-import org.apache.geronimo.ui.internal.Messages;
-import org.apache.geronimo.xml.ns.security.SecurityFactory;
-import org.apache.geronimo.xml.ns.security.SecurityPackage;
-import org.apache.geronimo.xml.ns.security.SecurityType;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.ModifyEvent;
-import org.eclipse.swt.events.ModifyListener;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.events.SelectionListener;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Text;
-import org.eclipse.ui.forms.FormColors;
-import org.eclipse.ui.forms.widgets.FormToolkit;
-import org.eclipse.ui.forms.widgets.Section;
-
-public class SecurityRootSection extends AbstractSectionPart {
-
-	EReference secERef;
-
-	Text defaultRole;
-
-	Button doas;
-
-	Button useCtxHdl;
-
-	/**
-	 * @param section
-	 */
-	public SecurityRootSection(Section section) {
-		super(section);
-	}
-
-	/**
-	 * @param parent
-	 * @param toolkit
-	 * @param style
-	 */
-	public SecurityRootSection(Composite parent, FormToolkit toolkit,
-			int style, EObject plan, EReference secERef) {
-		super(parent, toolkit, style, plan);
-		this.secERef = secERef;
-		createClient();
-	}
-
-	protected void createClient() {
-		Section section = getSection();
-
-		section.setText(Messages.editorSectionGeneralTitle);
-		section.setDescription(Messages.editorSectionGeneralDescription);
-		section.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false));
-
-		Composite composite = toolkit.createComposite(section);
-		GridLayout layout = new GridLayout();
-		layout.numColumns = 2;
-		layout.marginHeight = 5;
-		layout.marginWidth = 10;
-		layout.verticalSpacing = 5;
-		layout.horizontalSpacing = 15;
-		composite.setLayout(layout);
-		composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false));
-		section.setClient(composite);
-
-		createLabel(composite, Messages.defaultRole, toolkit);
-		defaultRole = toolkit.createText(composite, getDefaultRole(),
-				SWT.BORDER);
-		GridData gd = new GridData();
-		gd.widthHint = 150;
-		defaultRole.setLayoutData(gd);
-		defaultRole.addModifyListener(new ModifyListener() {
-			public void modifyText(ModifyEvent e) {
-				getSecurityType().setDefaultRole(defaultRole.getText());
-				markDirty();
-			}
-		});
-
-		doas = toolkit.createButton(composite, Messages.doasCurrentCaller,
-				SWT.CHECK);
-		doas.setLayoutData(createGridData());
-		doas.addSelectionListener(new SelectionListener() {
-			public void widgetDefaultSelected(SelectionEvent e) {
-			}
-
-			public void widgetSelected(SelectionEvent e) {
-				getSecurityType().setDoasCurrentCaller(doas.getSelection());
-				markDirty();
-			}
-		});
-
-		useCtxHdl = toolkit.createButton(composite, Messages.useContextHandler,
-				SWT.CHECK);
-		useCtxHdl.setLayoutData(createGridData());
-		useCtxHdl.addSelectionListener(new SelectionListener() {
-			public void widgetDefaultSelected(SelectionEvent e) {
-			}
-
-			public void widgetSelected(SelectionEvent e) {
-				getSecurityType()
-						.setUseContextHandler(useCtxHdl.getSelection());
-				markDirty();
-			}
-		});
-
-	}
-
-	protected GridData createGridData() {
-		GridData gd = new GridData(SWT.FILL, SWT.CENTER, true, false);
-		gd.horizontalSpan = 2;
-		return gd;
-	}
-
-	protected Label createLabel(Composite parent, String text,
-			FormToolkit toolkit) {
-		Label label = toolkit.createLabel(parent, text);
-		label.setForeground(toolkit.getColors().getColor(FormColors.TITLE));
-		label.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false));
-		return label;
-	}
-
-	private String getDefaultRole() {
-		SecurityType secType = (SecurityType) getPlan().eGet(secERef);
-		if (secType != null
-				&& secType.eIsSet(SecurityPackage.eINSTANCE
-						.getSecurityType_DefaultRole())) {
-			return secType.getDefaultRole();
-		}
-		return "";
-	}
-
-	private SecurityType getSecurityType() {
-		SecurityType secType = (SecurityType) getPlan().eGet(secERef);
-		if (secType == null) {
-			secType = SecurityFactory.eINSTANCE.createSecurityType();
-			getPlan().eSet(secERef, secType);
-		}
-		return secType;
-	}
-
-}
+/**
+ * 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.sections;
+
+import org.apache.geronimo.ui.internal.Messages;
+import org.apache.geronimo.xml.ns.security.SecurityFactory;
+import org.apache.geronimo.xml.ns.security.SecurityPackage;
+import org.apache.geronimo.xml.ns.security.SecurityType;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EReference;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.ModifyEvent;
+import org.eclipse.swt.events.ModifyListener;
+import org.eclipse.swt.events.SelectionEvent;
+import org.eclipse.swt.events.SelectionListener;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Button;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Text;
+import org.eclipse.ui.forms.FormColors;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.eclipse.ui.forms.widgets.Section;
+
+public class SecurityRootSection extends AbstractSectionPart {
+
+	EReference secERef;
+
+	Text defaultRole;
+
+	Button doas;
+
+	Button useCtxHdl;
+
+	/**
+	 * @param section
+	 */
+	public SecurityRootSection(Section section) {
+		super(section);
+	}
+
+	/**
+	 * @param parent
+	 * @param toolkit
+	 * @param style
+	 */
+	public SecurityRootSection(Composite parent, FormToolkit toolkit,
+			int style, EObject plan, EReference secERef) {
+		super(parent, toolkit, style, plan);
+		this.secERef = secERef;
+		createClient();
+	}
+
+	protected void createClient() {
+		Section section = getSection();
+
+		section.setText(Messages.editorSectionGeneralTitle);
+		section.setDescription(Messages.editorSectionGeneralDescription);
+		section.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false));
+
+		Composite composite = toolkit.createComposite(section);
+		GridLayout layout = new GridLayout();
+		layout.numColumns = 2;
+		layout.marginHeight = 5;
+		layout.marginWidth = 10;
+		layout.verticalSpacing = 5;
+		layout.horizontalSpacing = 15;
+		composite.setLayout(layout);
+		composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false));
+		section.setClient(composite);
+
+		createLabel(composite, Messages.defaultRole, toolkit);
+		defaultRole = toolkit.createText(composite, getDefaultRole(),
+				SWT.BORDER);
+		GridData gd = new GridData();
+		gd.widthHint = 150;
+		defaultRole.setLayoutData(gd);
+		defaultRole.addModifyListener(new ModifyListener() {
+			public void modifyText(ModifyEvent e) {
+				getSecurityType().setDefaultRole(defaultRole.getText());
+				markDirty();
+			}
+		});
+
+		doas = toolkit.createButton(composite, Messages.doasCurrentCaller,
+				SWT.CHECK);
+		doas.setLayoutData(createGridData());
+		doas.addSelectionListener(new SelectionListener() {
+			public void widgetDefaultSelected(SelectionEvent e) {
+			}
+
+			public void widgetSelected(SelectionEvent e) {
+				getSecurityType().setDoasCurrentCaller(doas.getSelection());
+				markDirty();
+			}
+		});
+
+		useCtxHdl = toolkit.createButton(composite, Messages.useContextHandler,
+				SWT.CHECK);
+		useCtxHdl.setLayoutData(createGridData());
+		useCtxHdl.addSelectionListener(new SelectionListener() {
+			public void widgetDefaultSelected(SelectionEvent e) {
+			}
+
+			public void widgetSelected(SelectionEvent e) {
+				getSecurityType()
+						.setUseContextHandler(useCtxHdl.getSelection());
+				markDirty();
+			}
+		});
+
+	}
+
+	protected GridData createGridData() {
+		GridData gd = new GridData(SWT.FILL, SWT.CENTER, true, false);
+		gd.horizontalSpan = 2;
+		return gd;
+	}
+
+	protected Label createLabel(Composite parent, String text,
+			FormToolkit toolkit) {
+		Label label = toolkit.createLabel(parent, text);
+		label.setForeground(toolkit.getColors().getColor(FormColors.TITLE));
+		label.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false));
+		return label;
+	}
+
+	private String getDefaultRole() {
+		SecurityType secType = (SecurityType) getPlan().eGet(secERef);
+		if (secType != null
+				&& secType.eIsSet(SecurityPackage.eINSTANCE
+						.getSecurityType_DefaultRole())) {
+			return secType.getDefaultRole();
+		}
+		return "";
+	}
+
+	private SecurityType getSecurityType() {
+		SecurityType secType = (SecurityType) getPlan().eGet(secERef);
+		if (secType == null) {
+			secType = SecurityFactory.eINSTANCE.createSecurityType();
+			getPlan().eSet(secERef, secType);
+		}
+		return secType;
+	}
+
+}

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/SecurityRootSection.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/SecurityRootSection.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/SecurityRootSection.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/SecuritySection.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/SecuritySection.java?rev=382997&r1=382996&r2=382997&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/SecuritySection.java (original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/SecuritySection.java Fri Mar  3 17:30:38 2006
@@ -1,216 +1,216 @@
-/**
- * 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.sections;
-
-import org.apache.geronimo.ui.internal.GeronimoUIPlugin;
-import org.apache.geronimo.ui.internal.Messages;
-import org.apache.geronimo.ui.wizards.SecurityRoleWizard;
-import org.apache.geronimo.xml.ns.security.DescriptionType;
-import org.apache.geronimo.xml.ns.security.RoleType;
-import org.apache.geronimo.xml.ns.security.SecurityPackage;
-import org.apache.geronimo.xml.ns.security.SecurityType;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.jface.wizard.Wizard;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.SelectionAdapter;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.events.SelectionListener;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.TableItem;
-import org.eclipse.swt.widgets.Text;
-import org.eclipse.ui.forms.widgets.FormToolkit;
-
-public class SecuritySection extends AbstractTableSection {
-
-	public EReference securityERef;
-
-	Text roleNameText;
-
-	Text roleDescriptionText;
-
-	private static final String[] COLUMN_NAMES = new String[] { Messages.name };
-
-	/**
-	 * @param plan
-	 * @param parent
-	 * @param toolkit
-	 * @param style
-	 */
-	public SecuritySection(EObject plan, Composite parent, FormToolkit toolkit,
-			int style, EReference securityERef) {
-		super(plan, parent, toolkit, style);
-		this.securityERef = securityERef;
-		createClient();
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getTitle()
-	 */
-	public String getTitle() {
-		return Messages.editorSectionSecurityRolesTitle;
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getDescription()
-	 */
-	public String getDescription() {
-		return Messages.editorSectionSecurityRolesDescription;
-	}
-	
-	/* (non-Javadoc)
-	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getTableColumnNames()
-	 */
-	public String[] getTableColumnNames() {
-		return COLUMN_NAMES;
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getEReference()
-	 */
-	public EReference getEReference() {
-		return SecurityPackage.eINSTANCE.getRoleMappingsType_Role();
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getWizard()
-	 */
-	public Wizard getWizard() {
-		return new SecurityRoleWizard(this);
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getTableEntryObjectType()
-	 */
-	public EClass getTableEntryObjectType() {
-		return SecurityPackage.eINSTANCE.getRoleType();
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#isHeaderVisible()
-	 */
-	public boolean isHeaderVisible() {
-		return false;
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#createClient()
-	 */
-	public void createClient() {
-
-		super.createClient();
-
-		Composite detail = toolkit.createComposite(getTable().getParent());
-		GridLayout gl = new GridLayout();
-		gl.marginWidth = 4;
-		gl.marginHeight = 8;
-		gl.numColumns = 2;
-		detail.setLayout(gl);
-		detail.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
-
-		Label roleNameLabel = toolkit.createLabel(detail, Messages.name + ":");
-		roleNameLabel.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false,
-				false));
-		roleNameLabel.setEnabled(true);
-
-		roleNameText = toolkit.createText(detail, "", SWT.BORDER);
-		roleNameText
-				.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
-		roleNameText.setEnabled(true);
-
-		Label roleDescriptionLabel = toolkit.createLabel(detail,
-				Messages.description + ":");
-		roleDescriptionLabel.setLayoutData(new GridData(SWT.FILL, SWT.FILL,
-				false, false));
-		roleDescriptionLabel.setEnabled(true);
-
-		roleDescriptionText = toolkit.createText(detail, "", SWT.MULTI
-				| SWT.BORDER);
-		GridData data = new GridData(SWT.FILL, SWT.FILL, true, false);
-		data.heightHint = 50;
-		roleDescriptionText.setLayoutData(data);
-		roleDescriptionText.setEnabled(true);
-
-		getTable().addSelectionListener(new TableSelectionListener());
-
-		removeButton.addSelectionListener(new SelectionAdapter() {
-			public void widgetSelected(SelectionEvent e) {
-				roleNameText.setText("");
-				roleDescriptionText.setText("");
-			}
-		});
-
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getInput()
-	 */
-	public Object getInput() {
-		SecurityType secType = (SecurityType) getPlan().eGet(securityERef);
-		if (secType != null) {
-			return secType.getRoleMappings();
-		}
-		return super.getInput();
-	}
-
-	public ImageDescriptor getImageDescriptor() {
-		return GeronimoUIPlugin.imageDescriptorFromPlugin(
-				"org.eclipse.jst.j2ee", "icons/full/obj16/security_role.gif");
-	}
-
-	class TableSelectionListener implements SelectionListener {
-
-		public void widgetSelected(SelectionEvent e) {
-			TableItem item = (TableItem) e.item;
-			RoleType roleType = (RoleType) item.getData();
-			roleNameText.setText(roleType.getRoleName());
-
-			if (!roleType.getDescription().isEmpty()) {
-				roleDescriptionText.setText(((DescriptionType) roleType
-						.getDescription().get(0)).getValue());
-			} else {
-				roleDescriptionText.setText("");
-			}
-		}
-
-		public void widgetDefaultSelected(SelectionEvent e) {
-			// do nothing
-		}
-
-	}
-
-}
+/**
+ * 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.sections;
+
+import org.apache.geronimo.ui.internal.GeronimoUIPlugin;
+import org.apache.geronimo.ui.internal.Messages;
+import org.apache.geronimo.ui.wizards.SecurityRoleWizard;
+import org.apache.geronimo.xml.ns.security.DescriptionType;
+import org.apache.geronimo.xml.ns.security.RoleType;
+import org.apache.geronimo.xml.ns.security.SecurityPackage;
+import org.apache.geronimo.xml.ns.security.SecurityType;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EReference;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.jface.wizard.Wizard;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.SelectionAdapter;
+import org.eclipse.swt.events.SelectionEvent;
+import org.eclipse.swt.events.SelectionListener;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.TableItem;
+import org.eclipse.swt.widgets.Text;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+
+public class SecuritySection extends AbstractTableSection {
+
+	public EReference securityERef;
+
+	Text roleNameText;
+
+	Text roleDescriptionText;
+
+	private static final String[] COLUMN_NAMES = new String[] { Messages.name };
+
+	/**
+	 * @param plan
+	 * @param parent
+	 * @param toolkit
+	 * @param style
+	 */
+	public SecuritySection(EObject plan, Composite parent, FormToolkit toolkit,
+			int style, EReference securityERef) {
+		super(plan, parent, toolkit, style);
+		this.securityERef = securityERef;
+		createClient();
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getTitle()
+	 */
+	public String getTitle() {
+		return Messages.editorSectionSecurityRolesTitle;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getDescription()
+	 */
+	public String getDescription() {
+		return Messages.editorSectionSecurityRolesDescription;
+	}
+	
+	/* (non-Javadoc)
+	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getTableColumnNames()
+	 */
+	public String[] getTableColumnNames() {
+		return COLUMN_NAMES;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getEReference()
+	 */
+	public EReference getEReference() {
+		return SecurityPackage.eINSTANCE.getRoleMappingsType_Role();
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getWizard()
+	 */
+	public Wizard getWizard() {
+		return new SecurityRoleWizard(this);
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getTableEntryObjectType()
+	 */
+	public EClass getTableEntryObjectType() {
+		return SecurityPackage.eINSTANCE.getRoleType();
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#isHeaderVisible()
+	 */
+	public boolean isHeaderVisible() {
+		return false;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#createClient()
+	 */
+	public void createClient() {
+
+		super.createClient();
+
+		Composite detail = toolkit.createComposite(getTable().getParent());
+		GridLayout gl = new GridLayout();
+		gl.marginWidth = 4;
+		gl.marginHeight = 8;
+		gl.numColumns = 2;
+		detail.setLayout(gl);
+		detail.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
+
+		Label roleNameLabel = toolkit.createLabel(detail, Messages.name + ":");
+		roleNameLabel.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false,
+				false));
+		roleNameLabel.setEnabled(true);
+
+		roleNameText = toolkit.createText(detail, "", SWT.BORDER);
+		roleNameText
+				.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
+		roleNameText.setEnabled(true);
+
+		Label roleDescriptionLabel = toolkit.createLabel(detail,
+				Messages.description + ":");
+		roleDescriptionLabel.setLayoutData(new GridData(SWT.FILL, SWT.FILL,
+				false, false));
+		roleDescriptionLabel.setEnabled(true);
+
+		roleDescriptionText = toolkit.createText(detail, "", SWT.MULTI
+				| SWT.BORDER);
+		GridData data = new GridData(SWT.FILL, SWT.FILL, true, false);
+		data.heightHint = 50;
+		roleDescriptionText.setLayoutData(data);
+		roleDescriptionText.setEnabled(true);
+
+		getTable().addSelectionListener(new TableSelectionListener());
+
+		removeButton.addSelectionListener(new SelectionAdapter() {
+			public void widgetSelected(SelectionEvent e) {
+				roleNameText.setText("");
+				roleDescriptionText.setText("");
+			}
+		});
+
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getInput()
+	 */
+	public Object getInput() {
+		SecurityType secType = (SecurityType) getPlan().eGet(securityERef);
+		if (secType != null) {
+			return secType.getRoleMappings();
+		}
+		return super.getInput();
+	}
+
+	public ImageDescriptor getImageDescriptor() {
+		return GeronimoUIPlugin.imageDescriptorFromPlugin(
+				"org.eclipse.jst.j2ee", "icons/full/obj16/security_role.gif");
+	}
+
+	class TableSelectionListener implements SelectionListener {
+
+		public void widgetSelected(SelectionEvent e) {
+			TableItem item = (TableItem) e.item;
+			RoleType roleType = (RoleType) item.getData();
+			roleNameText.setText(roleType.getRoleName());
+
+			if (!roleType.getDescription().isEmpty()) {
+				roleDescriptionText.setText(((DescriptionType) roleType
+						.getDescription().get(0)).getValue());
+			} else {
+				roleDescriptionText.setText("");
+			}
+		}
+
+		public void widgetDefaultSelected(SelectionEvent e) {
+			// do nothing
+		}
+
+	}
+
+}

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/SecuritySection.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/SecuritySection.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/SecuritySection.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ServerEditorLogLevelSection.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ServerEditorLogLevelSection.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ServerEditorLogLevelSection.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ServerEditorPortsSection.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ServerEditorPortsSection.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ServerEditorPortsSection.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ServerEditorSecuritySection.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ServerEditorSecuritySection.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ServerEditorSecuritySection.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ServiceRefSection.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ServiceRefSection.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/ServiceRefSection.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/WebGeneralSection.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/WebGeneralSection.java?rev=382997&r1=382996&r2=382997&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/WebGeneralSection.java (original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/WebGeneralSection.java Fri Mar  3 17:30:38 2006
@@ -1,143 +1,143 @@
-/**
- * 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.sections;
-
-import org.apache.geronimo.ui.internal.Messages;
-import org.apache.geronimo.xml.ns.j2ee.web.WebAppType;
-import org.apache.geronimo.xml.ns.j2ee.web.WebPackage;
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.ModifyEvent;
-import org.eclipse.swt.events.ModifyListener;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.events.SelectionListener;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Text;
-import org.eclipse.ui.forms.widgets.FormToolkit;
-
-public class WebGeneralSection extends CommonGeneralSection {
-
-	protected Text contextRoot;
-
-	protected Text securityRealm;
-
-	protected Button cpClassLoaderWebAppFirst;
-
-	protected Button cpClassLoaderServerFirst;
-
-	WebAppType plan;
-
-	public WebGeneralSection(Composite parent, FormToolkit toolkit, int style,
-			EObject plan) {
-		super(parent, toolkit, style, plan);
-		this.plan = (WebAppType) plan;
-		createClient();
-	}
-
-	protected void createClient() {
-
-		super.createClient();
-
-		Composite composite = (Composite) getSection().getClient();
-
-		// ------- Label and text field for the context root -------
-		createLabel(composite, Messages.editorContextRoot, toolkit);
-
-		contextRoot = toolkit.createText(composite, plan.getContextRoot(),
-				SWT.BORDER);
-		contextRoot.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false,
-				false));
-		contextRoot.addModifyListener(new ModifyListener() {
-			public void modifyText(ModifyEvent e) {
-				plan.setContextRoot(contextRoot.getText());
-				markDirty();
-			}
-		});
-
-		// ------- Label and text field for the security realm -------
-		createLabel(composite, Messages.securityRealmName, toolkit);
-
-		securityRealm = toolkit.createText(composite, plan
-				.getSecurityRealmName(), SWT.BORDER);
-		securityRealm.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false,
-				false));
-		securityRealm.addModifyListener(new ModifyListener() {
-			public void modifyText(ModifyEvent e) {
-				plan.setSecurityRealmName(securityRealm.getText());
-				markDirty();
-			}
-		});
-
-		// ------- Label and check box for the Context Priority Classloader
-		// -------
-		Label classLoaderLabel = toolkit.createLabel(composite,
-				Messages.editorClassloader);
-		GridData data = new GridData(SWT.LEFT, SWT.CENTER, false, false);
-		data.horizontalSpan = 2;
-		classLoaderLabel.setLayoutData(data);
-
-		cpClassLoaderServerFirst = toolkit.createButton(composite,
-				Messages.editorClassloaderServer, SWT.RADIO);
-		data = new GridData(SWT.FILL, SWT.CENTER, false, false);
-		data.horizontalSpan = 2;
-		cpClassLoaderServerFirst.setLayoutData(data);
-		cpClassLoaderServerFirst.setSelection(!plan
-				.isContextPriorityClassloader());
-
-		cpClassLoaderWebAppFirst = toolkit.createButton(composite,
-				Messages.editorClassloaderWebApp, SWT.RADIO);
-		data = new GridData(SWT.FILL, SWT.CENTER, false, false);
-		data.horizontalSpan = 2;
-		cpClassLoaderWebAppFirst.setLayoutData(data);
-		cpClassLoaderWebAppFirst.setSelection(plan
-				.isContextPriorityClassloader());
-
-		cpClassLoaderWebAppFirst.addSelectionListener(new SelectionListener() {
-			public void widgetSelected(SelectionEvent e) {
-				plan.setContextPriorityClassloader(cpClassLoaderWebAppFirst
-						.getSelection());
-				markDirty();
-			}
-
-			public void widgetDefaultSelected(SelectionEvent e) {
-				// Not invoked
-			}
-		});
-
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.geronimo.ui.sections.CommonGeneralSection#getConfigIdEAttribute()
-	 */
-	protected EAttribute getConfigIdEAttribute() {
-		return WebPackage.eINSTANCE.getWebAppType_ConfigId();
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.geronimo.ui.sections.CommonGeneralSection#getParentIdEAttribute()
-	 */
-	protected EAttribute getParentIdEAttribute() {
-		return WebPackage.eINSTANCE.getWebAppType_ParentId();
-	}
-}
+/**
+ * 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.sections;
+
+import org.apache.geronimo.ui.internal.Messages;
+import org.apache.geronimo.xml.ns.j2ee.web.WebAppType;
+import org.apache.geronimo.xml.ns.j2ee.web.WebPackage;
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.ModifyEvent;
+import org.eclipse.swt.events.ModifyListener;
+import org.eclipse.swt.events.SelectionEvent;
+import org.eclipse.swt.events.SelectionListener;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.widgets.Button;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Text;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+
+public class WebGeneralSection extends CommonGeneralSection {
+
+	protected Text contextRoot;
+
+	protected Text securityRealm;
+
+	protected Button cpClassLoaderWebAppFirst;
+
+	protected Button cpClassLoaderServerFirst;
+
+	WebAppType plan;
+
+	public WebGeneralSection(Composite parent, FormToolkit toolkit, int style,
+			EObject plan) {
+		super(parent, toolkit, style, plan);
+		this.plan = (WebAppType) plan;
+		createClient();
+	}
+
+	protected void createClient() {
+
+		super.createClient();
+
+		Composite composite = (Composite) getSection().getClient();
+
+		// ------- Label and text field for the context root -------
+		createLabel(composite, Messages.editorContextRoot, toolkit);
+
+		contextRoot = toolkit.createText(composite, plan.getContextRoot(),
+				SWT.BORDER);
+		contextRoot.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false,
+				false));
+		contextRoot.addModifyListener(new ModifyListener() {
+			public void modifyText(ModifyEvent e) {
+				plan.setContextRoot(contextRoot.getText());
+				markDirty();
+			}
+		});
+
+		// ------- Label and text field for the security realm -------
+		createLabel(composite, Messages.securityRealmName, toolkit);
+
+		securityRealm = toolkit.createText(composite, plan
+				.getSecurityRealmName(), SWT.BORDER);
+		securityRealm.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false,
+				false));
+		securityRealm.addModifyListener(new ModifyListener() {
+			public void modifyText(ModifyEvent e) {
+				plan.setSecurityRealmName(securityRealm.getText());
+				markDirty();
+			}
+		});
+
+		// ------- Label and check box for the Context Priority Classloader
+		// -------
+		Label classLoaderLabel = toolkit.createLabel(composite,
+				Messages.editorClassloader);
+		GridData data = new GridData(SWT.LEFT, SWT.CENTER, false, false);
+		data.horizontalSpan = 2;
+		classLoaderLabel.setLayoutData(data);
+
+		cpClassLoaderServerFirst = toolkit.createButton(composite,
+				Messages.editorClassloaderServer, SWT.RADIO);
+		data = new GridData(SWT.FILL, SWT.CENTER, false, false);
+		data.horizontalSpan = 2;
+		cpClassLoaderServerFirst.setLayoutData(data);
+		cpClassLoaderServerFirst.setSelection(!plan
+				.isContextPriorityClassloader());
+
+		cpClassLoaderWebAppFirst = toolkit.createButton(composite,
+				Messages.editorClassloaderWebApp, SWT.RADIO);
+		data = new GridData(SWT.FILL, SWT.CENTER, false, false);
+		data.horizontalSpan = 2;
+		cpClassLoaderWebAppFirst.setLayoutData(data);
+		cpClassLoaderWebAppFirst.setSelection(plan
+				.isContextPriorityClassloader());
+
+		cpClassLoaderWebAppFirst.addSelectionListener(new SelectionListener() {
+			public void widgetSelected(SelectionEvent e) {
+				plan.setContextPriorityClassloader(cpClassLoaderWebAppFirst
+						.getSelection());
+				markDirty();
+			}
+
+			public void widgetDefaultSelected(SelectionEvent e) {
+				// Not invoked
+			}
+		});
+
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.CommonGeneralSection#getConfigIdEAttribute()
+	 */
+	protected EAttribute getConfigIdEAttribute() {
+		return WebPackage.eINSTANCE.getWebAppType_ConfigId();
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.sections.CommonGeneralSection#getParentIdEAttribute()
+	 */
+	protected EAttribute getParentIdEAttribute() {
+		return WebPackage.eINSTANCE.getWebAppType_ParentId();
+	}
+}

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/WebGeneralSection.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/WebGeneralSection.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/WebGeneralSection.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain



Mime
View raw message