You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by mc...@apache.org on 2010/04/27 20:20:24 UTC
svn commit: r938593 [3/8] - in /geronimo/devtools/eclipse-plugin/trunk:
plugins/org.apache.geronimo.st.ui/ plugins/org.apache.geronimo.st.v21.ui/
plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/sections/
plugins/org.ap...
Added: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/GBeanRefSection.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/GBeanRefSection.java?rev=938593&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/GBeanRefSection.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/GBeanRefSection.java Tue Apr 27 18:20:22 2010
@@ -0,0 +1,205 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.geronimo.st.v30.ui.sections;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.xml.bind.JAXBElement;
+
+import org.apache.geronimo.jee.naming.GbeanRef;
+import org.apache.geronimo.jee.naming.Pattern;
+import org.apache.geronimo.jee.web.WebApp;
+import org.apache.geronimo.st.ui.CommonMessages;
+import org.apache.geronimo.st.ui.sections.AbstractTreeSection;
+import org.apache.geronimo.st.v30.core.jaxb.JAXBModelUtils;
+import org.apache.geronimo.st.v30.ui.Activator;
+import org.apache.geronimo.st.v30.ui.wizards.GBeanRefWizard;
+import org.eclipse.jface.viewers.ILabelProvider;
+import org.eclipse.jface.viewers.ITreeContentProvider;
+import org.eclipse.jface.wizard.Wizard;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class GBeanRefSection extends AbstractTreeSection {
+
+ public GBeanRefSection(JAXBElement plan, Composite parent, FormToolkit toolkit, int style, List gbeanRef) {
+ super(plan, parent, toolkit, style);
+ //this.objectContainer = gbeanRef;
+ this.objectContainer = new ArrayList(gbeanRef.size());
+ for (int i = 0; i < gbeanRef.size(); i++) {
+ if (GbeanRef.class.isInstance(gbeanRef.get(i))) {
+ this.objectContainer.add(gbeanRef.get(i));
+ }
+ else if (GbeanRef.class.isInstance(((JAXBElement)gbeanRef.get(i)).getValue())) {
+ this.objectContainer.add(gbeanRef.get(i));
+ }
+ }
+ createClient();
+ }
+
+ @Override
+ public String getTitle() {
+ return CommonMessages.editorGBeanRefTitle;
+ }
+
+ @Override
+ public String getDescription() {
+ return CommonMessages.editorGBeanRefDescription;
+ }
+
+ @Override
+ public Wizard getWizard() {
+ return new GBeanRefWizard(this);
+ }
+
+ @Override
+ public Class getTableEntryObjectType() {
+ return GbeanRef.class;
+ }
+
+ @Override
+ public Object getInput() {
+ if (objectContainer != null) {
+ return objectContainer;
+ }
+ return super.getInput();
+ }
+
+ @Override
+ protected void activateAddButton() {
+ if (tree.getSelectionCount() == 0 || tree.getSelection()[0].getParentItem() == null) {
+ addButton.setEnabled(true);
+ } else {
+ addButton.setEnabled(false);
+ }
+ }
+
+ public GbeanRef getSelectedObject () {
+ if (tree.getSelection().length == 0) {
+ return null;
+ }
+ Object object;
+ if (tree.getSelection()[0].getParentItem() == null) {
+ object = tree.getSelection()[0].getData();
+ }
+ else {
+ object = tree.getSelection()[0].getParentItem().getData();
+ }
+ if (GbeanRef.class.isInstance(object)) {
+ return (GbeanRef)object;
+ }
+ else {
+ return (GbeanRef)((JAXBElement)object).getValue();
+ }
+ }
+
+ @Override
+ public void removeItem(Object anItem) {
+ if (GbeanRef.class.isInstance(anItem) || JAXBElement.class.isInstance(anItem)) {
+ getObjectContainer().remove(anItem);
+ JAXBModelUtils.getGbeanRefs(getPlan()).remove(anItem);
+ }
+ else if (String.class.isInstance(anItem)) {
+ Object object = tree.getSelection()[0].getParentItem().getData();
+ if (GbeanRef.class.isInstance(object)) {
+ ((GbeanRef)object).getRefType().remove(anItem);
+ }
+ else {
+ ((GbeanRef)((JAXBElement)object).getValue()).getRefType().remove(anItem);
+ }
+ }
+ else if (Pattern.class.isInstance(anItem)) {
+ Object object = tree.getSelection()[0].getParentItem().getData();
+ if (GbeanRef.class.isInstance(object)) {
+ ((GbeanRef)object).getPattern().remove(anItem);
+ }
+ else {
+ ((GbeanRef)((JAXBElement)object).getValue()).getPattern().remove(anItem);
+ }
+ }
+ }
+
+ @Override
+ public ITreeContentProvider getContentProvider() {
+ return new ContentProvider() {
+ @Override
+ public Object[] getElements(Object inputElement) {
+ return getChildren(inputElement);
+ }
+
+ @Override
+ public Object[] getChildren(Object parentElement) {
+ if (List.class.isInstance(parentElement)) {
+ return ((List)parentElement).toArray();
+ }
+ if (JAXBElement.class.isInstance(parentElement)) {
+ parentElement = ((JAXBElement)parentElement).getValue();
+ }
+ if (GbeanRef.class.isInstance(parentElement)) {
+ GbeanRef gbeanRef = (GbeanRef)parentElement;
+ Object[] typeList = gbeanRef.getRefType().toArray();
+ Object[] patternList = gbeanRef.getPattern().toArray();
+ Object[] fullList = new Object[typeList.length + patternList.length];
+ System.arraycopy(typeList, 0, fullList, 0, typeList.length);
+ System.arraycopy(patternList, 0, fullList, typeList.length, patternList.length);
+ return fullList;
+ }
+ return new String[] {};
+ }
+ };
+ }
+
+ @Override
+ public ILabelProvider getLabelProvider() {
+ return new LabelProvider() {
+ @Override
+ public String getText(Object element) {
+ if (JAXBElement.class.isInstance(element)) {
+ element = ((JAXBElement)element).getValue();
+ }
+ if (GbeanRef.class.isInstance(element)) {
+ GbeanRef gbeanRef = (GbeanRef)element;
+ return "Gbean Ref: name = \"" + gbeanRef.getRefName() + "\"";
+ }
+ else if (String.class.isInstance(element)) {
+ return "Gbean type: name = \"" + (String)element + "\"";
+ }
+ else if (Pattern.class.isInstance(element)) {
+ Pattern pattern = (Pattern)element;
+ return "Pattern: name = \"" + pattern.getName() +
+ "\", group = \"" + pattern.getGroupId() +
+ "\", artifact = \"" + pattern.getArtifactId() +
+ "\", version = \"" + pattern.getVersion() +
+ "\", module = \"" + pattern.getModule() + "\"";
+ }
+
+ return null;
+ }
+
+ @Override
+ public Image getImage(Object arg0) {
+ return Activator.imageDescriptorFromPlugin("org.eclipse.jst.j2ee",
+ "icons/full/obj16/module_web_obj.gif").createImage();
+ }
+ };
+ }
+}
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/GBeanRefSection.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/GBeanRefSection.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/GBeanRefSection.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/GBeanSection.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/GBeanSection.java?rev=938593&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/GBeanSection.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/GBeanSection.java Tue Apr 27 18:20:22 2010
@@ -0,0 +1,219 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.geronimo.st.v30.ui.sections;
+
+import java.util.List;
+
+import javax.xml.bind.JAXBElement;
+
+import org.apache.geronimo.jee.deployment.Attribute;
+import org.apache.geronimo.jee.deployment.Gbean;
+import org.apache.geronimo.jee.deployment.Pattern;
+import org.apache.geronimo.jee.deployment.Reference;
+import org.apache.geronimo.st.ui.CommonMessages;
+import org.apache.geronimo.st.ui.sections.AbstractTreeSection;
+import org.apache.geronimo.st.v30.ui.Activator;
+import org.apache.geronimo.st.v30.ui.pages.DeploymentPage;
+import org.apache.geronimo.st.v30.ui.wizards.GBeanWizard;
+import org.eclipse.jface.viewers.ILabelProvider;
+import org.eclipse.jface.viewers.ITreeContentProvider;
+import org.eclipse.jface.wizard.Wizard;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.IFormPart;
+import org.eclipse.ui.forms.editor.FormEditor;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class GBeanSection extends AbstractTreeSection {
+
+ public GBeanSection(JAXBElement plan, List gbeans, Composite parent,
+ FormToolkit toolkit, int style) {
+ super(plan, parent, toolkit, style);
+ this.objectContainer = gbeans;
+ createClient();
+ }
+
+ @Override
+ public String getTitle() {
+ return CommonMessages.editorSectionGBeanTitle;
+ }
+
+ @Override
+ public String getDescription() {
+ return CommonMessages.editorSectionGBeanDescription;
+ }
+
+ @Override
+ public Wizard getWizard() {
+ return new GBeanWizard(this);
+ }
+
+ @Override
+ public Class getTableEntryObjectType() {
+ return Gbean.class;
+ }
+
+ @Override
+ protected void activateAddButton() {
+ if (tree.getSelectionCount() == 0
+ || tree.getSelection()[0].getParentItem() == null) {
+ addButton.setEnabled(true);
+ } else {
+ addButton.setEnabled(false);
+ }
+ }
+
+ public Gbean getSelectedObject() {
+ if (tree.getSelection().length == 0) {
+ return null;
+ }
+ return (Gbean) ((JAXBElement) tree.getSelection()[0].getData())
+ .getValue();
+ }
+
+ @Override
+ public void removeItem(Object anItem) {
+ JAXBElement element = (JAXBElement) tree.getSelection()[0].getData();
+ Object object = element.getValue();
+ if (Gbean.class.isInstance(object)) {
+ objectContainer.remove(anItem);
+ } else {
+ Gbean gbean = (Gbean) ((JAXBElement) tree.getSelection()[0]
+ .getParentItem().getData()).getValue();
+ gbean.getAttributeOrXmlAttributeOrReference().remove(element);
+ }
+ }
+
+ @Override
+ public Object getInput() {
+ if (objectContainer != null) {
+ return objectContainer;
+ }
+ return super.getInput();
+ }
+
+ protected void notifyOthers() {
+ notifySecurityRealmSectionToRefresh();
+ }
+
+ /*
+ * After add, remove, edit ext-module, notify the dbpoolSection to refresh.
+ * If the connectorpage has not been initialized,then catch a
+ * NullPointerException and just ignore it.
+ */
+ private void notifySecurityRealmSectionToRefresh() {
+ try {
+ DeploymentPage deploymentPage = (DeploymentPage) this
+ .getManagedForm().getContainer();
+ FormEditor editor = deploymentPage.getEditor();
+ IFormPart[] parts = editor.findPage("securitypage")
+ .getManagedForm().getParts();
+ SecurityRealmSection securityRealmSection = null;
+ for (IFormPart part : parts) {
+ if (SecurityRealmSection.class.isInstance(part)) {
+ securityRealmSection = (SecurityRealmSection) part;
+ }
+ }
+ securityRealmSection.getViewer().refresh();
+ } catch (NullPointerException e) {
+ // Ignore, this exception happens when the connectorpage hasn't been
+ // initialized
+ }
+ }
+
+ @Override
+ public ITreeContentProvider getContentProvider() {
+ return new ContentProvider() {
+ @Override
+ public Object[] getElements(Object inputElement) {
+ return getChildren(inputElement);
+ }
+
+ @Override
+ public Object[] getChildren(Object parentElement) {
+ if (List.class.isInstance(parentElement)) {
+ return ((List) parentElement).toArray();
+ }
+ if (JAXBElement.class.isInstance(parentElement)) {
+ Object object = ((JAXBElement) parentElement).getValue();
+ if (Gbean.class.isInstance(object)) {
+ Gbean gbean = (Gbean) object;
+ return gbean.getAttributeOrXmlAttributeOrReference()
+ .toArray();
+ }
+ }
+ return new String[] {};
+ }
+ };
+ }
+
+ @Override
+ public ILabelProvider getLabelProvider() {
+ return new LabelProvider() {
+ @Override
+ public String getText(Object element) {
+ if (JAXBElement.class.isInstance(element)) {
+ Object object = ((JAXBElement) element).getValue();
+ if (Gbean.class.isInstance(object)) {
+ Gbean gbean = (Gbean) object;
+ return "GBean: name = \"" + gbean.getName()
+ + "\", class = \"" + gbean.getClazz() + "\"";
+ } else if (Attribute.class.isInstance(object)) {
+ Attribute attribute = (Attribute) object;
+ return "Attribute: name = \"" + attribute.getName()
+ + "\", type = \"" + attribute.getType()
+ + "\", value = \"" + attribute.getValue()
+ + "\"";
+ } else if (Pattern.class.isInstance(object)) {
+ Pattern dependency = (Pattern) object;
+ return "Dependency: group = \""
+ + dependency.getGroupId() + "\", artifact = \""
+ + dependency.getArtifactId()
+ + "\", version = \"" + dependency.getVersion()
+ + "\", module = \"" + dependency.getModule()
+ + "\", type = \"" + dependency.getType()
+ + "\", custom name = \""
+ + dependency.getCustomFoo() + "\"";
+ } else if (Reference.class.isInstance(object)) {
+ Reference reference = (Reference) object;
+ return "Reference: name = \"" + reference.getName()
+ + "\", group = \"" + reference.getGroupId()
+ + "\", artifact = \""
+ + reference.getArtifactId()
+ + "\", version = \"" + reference.getVersion()
+ + "\", module = \"" + reference.getModule()
+ + "\", type = \"" + reference.getType()
+ + "\", custom name = \""
+ + reference.getCustomFoo() + "\"";
+ }
+ }
+
+ return null;
+ }
+
+ @Override
+ public Image getImage(Object arg0) {
+ return Activator.imageDescriptorFromPlugin(
+ "org.eclipse.jst.j2ee",
+ "icons/full/obj16/accessbean_obj.gif").createImage();
+ }
+ };
+ }
+}
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/GBeanSection.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/GBeanSection.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/GBeanSection.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/MessageDestSection.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/MessageDestSection.java?rev=938593&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/MessageDestSection.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/MessageDestSection.java Tue Apr 27 18:20:22 2010
@@ -0,0 +1,93 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.geronimo.st.v30.ui.sections;
+
+import java.util.List;
+
+import javax.xml.bind.JAXBElement;
+
+import org.apache.geronimo.jee.naming.MessageDestination;
+import org.apache.geronimo.st.ui.CommonMessages;
+import org.apache.geronimo.st.ui.sections.AbstractTableSection;
+import org.apache.geronimo.st.v30.ui.wizards.MessageDestWizard;
+import org.eclipse.jface.viewers.ITableLabelProvider;
+import org.eclipse.jface.wizard.Wizard;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class MessageDestSection extends AbstractTableSection {
+
+ public MessageDestSection(JAXBElement plan, Composite parent, FormToolkit toolkit, int style, List messageDest) {
+ super(plan, parent, toolkit, style);
+ this.objectContainer = messageDest;
+ COLUMN_NAMES = new String[] {
+ CommonMessages.messageDestinationName, CommonMessages.adminModule, CommonMessages.adminLink,
+ CommonMessages.groupId, CommonMessages.artifactId, CommonMessages.version,
+ CommonMessages.moduleId, CommonMessages.name };
+ createClient();
+ }
+
+ public String getTitle() {
+ return CommonMessages.editorSectionMessageDestTitle;
+ }
+
+ public String getDescription() {
+ return CommonMessages.editorSectionMessageDestDescription;
+ }
+
+ public Wizard getWizard() {
+ return new MessageDestWizard(this);
+ }
+
+ public Class getTableEntryObjectType() {
+ return MessageDestination.class;
+ }
+
+ @Override
+ public ITableLabelProvider getLabelProvider() {
+ return new LabelProvider() {
+ @Override
+ public String getColumnText(Object element, int columnIndex) {
+ if (MessageDestination.class.isInstance(element)) {
+ MessageDestination msgDest = (MessageDestination) element;
+ switch (columnIndex) {
+ case 0:
+ return msgDest.getMessageDestinationName();
+ case 1:
+ return msgDest.getAdminObjectModule();
+ case 2:
+ return msgDest.getAdminObjectLink();
+ case 3:
+ return msgDest.getPattern().getGroupId();
+ case 4:
+ return msgDest.getPattern().getArtifactId();
+ case 5:
+ return msgDest.getPattern().getVersion();
+ case 6:
+ return msgDest.getPattern().getModule();
+ case 7:
+ return msgDest.getPattern().getName();
+ }
+ }
+ return null;
+ }
+ };
+ }
+}
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/MessageDestSection.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/MessageDestSection.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/MessageDestSection.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/ModuleSection.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/ModuleSection.java?rev=938593&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/ModuleSection.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/ModuleSection.java Tue Apr 27 18:20:22 2010
@@ -0,0 +1,102 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.geronimo.st.v30.ui.sections;
+
+import java.util.List;
+
+import javax.xml.bind.JAXBElement;
+
+import org.apache.geronimo.jee.application.Module;
+import org.apache.geronimo.st.ui.CommonMessages;
+import org.apache.geronimo.st.ui.sections.AbstractTableSection;
+import org.apache.geronimo.st.v30.ui.wizards.ModuleWizard;
+import org.eclipse.jface.viewers.ITableLabelProvider;
+import org.eclipse.jface.wizard.Wizard;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class ModuleSection extends AbstractTableSection {
+
+ public ModuleSection(JAXBElement plan, Composite parent, FormToolkit toolkit, int style, List modules) {
+ super(plan, parent, toolkit, style);
+ this.objectContainer = modules;
+ COLUMN_NAMES = new String[] {
+ CommonMessages.moduleType, CommonMessages.path, CommonMessages.altDD };
+ createClient();
+ }
+
+ public String getTitle() {
+ return CommonMessages.editorSectionModuleTitle;
+ }
+
+ public String getDescription() {
+ return CommonMessages.editorSectionModuleDescription;
+ }
+
+ public Wizard getWizard() {
+ return new ModuleWizard(this);
+ }
+
+ public Class getTableEntryObjectType() {
+ return Module.class;
+ }
+
+ @Override
+ public ITableLabelProvider getLabelProvider() {
+ return new LabelProvider() {
+ @Override
+ public String getColumnText(Object element, int columnIndex) {
+ if (Module.class.isInstance(element)) {
+ Module module = (Module) element;
+ switch (columnIndex) {
+ case 0:
+ if (module.getConnector() != null) {
+ return "connector";
+ } else if (module.getEjb() != null) {
+ return "ejb";
+ } else if (module.getJava() != null) {
+ return "java";
+ } else if (module.getWeb() != null) {
+ return "web";
+ }
+ return "";
+ case 1:
+ if (module.getConnector() != null) {
+ return module.getConnector().getValue();
+ } else if (module.getEjb() != null) {
+ return module.getEjb().getValue();
+ } else if (module.getJava() != null) {
+ return module.getJava().getValue();
+ } else if (module.getWeb() != null) {
+ return module.getWeb().getValue();
+ }
+ return "";
+ case 2:
+ if (module.getAltDd() != null) {
+ return module.getAltDd().getValue();
+ }
+ return "";
+ }
+ }
+ return null;
+ }
+ };
+ }
+}
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/ModuleSection.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/ModuleSection.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/ModuleSection.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/OpenEjbJarCMPSection.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/OpenEjbJarCMPSection.java?rev=938593&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/OpenEjbJarCMPSection.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/OpenEjbJarCMPSection.java Tue Apr 27 18:20:22 2010
@@ -0,0 +1,300 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.geronimo.st.v30.ui.sections;
+
+import javax.xml.bind.JAXBElement;
+
+import org.apache.geronimo.jee.naming.ResourceLocator;
+import org.apache.geronimo.jee.naming.ObjectFactory;
+import org.apache.geronimo.jee.naming.Pattern;
+import org.apache.geronimo.jee.openejb.OpenejbJar;
+import org.apache.geronimo.st.ui.CommonMessages;
+import org.apache.geronimo.st.ui.internal.Messages;
+import org.apache.geronimo.st.ui.sections.AbstractSectionPart;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.ModifyEvent;
+import org.eclipse.swt.events.ModifyListener;
+import org.eclipse.swt.events.SelectionAdapter;
+import org.eclipse.swt.events.SelectionEvent;
+import org.eclipse.swt.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.Text;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.eclipse.ui.forms.widgets.Section;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class OpenEjbJarCMPSection extends AbstractSectionPart {
+
+ protected Text resourceLink;
+
+ protected Text url;
+
+ protected Text artifact;
+
+ protected Text group;
+
+ protected Text module;
+
+ protected Text name;
+
+ protected Text version;
+
+ protected Button specifyAsLink;
+
+ protected Button specifyAsUrl;
+
+ protected Button specifyAsPattern;
+
+ OpenejbJar plan;
+
+ private ObjectFactory namingFactory;
+
+ /**
+ * @param parent
+ * @param toolkit
+ * @param style
+ * @param plan
+ */
+ public OpenEjbJarCMPSection(Composite parent, FormToolkit toolkit, int style, JAXBElement plan) {
+ super(parent, toolkit, style, plan);
+ this.plan = (OpenejbJar) plan.getValue();
+ namingFactory = new ObjectFactory();
+ createClient();
+ }
+
+ protected void createClient() {
+ Section section = getSection();
+
+ section.setText(Messages.cmpConnectionSection);
+ section.setDescription(Messages.cmpConnectionSectionDescription);
+ 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, true, false));
+ section.setClient(composite);
+
+ specifyAsLink = toolkit.createButton(composite, CommonMessages.useResourceLink, SWT.RADIO);
+ GridData data = new GridData();
+ data.horizontalSpan = 2;
+ specifyAsLink.setLayoutData(data);
+
+ ResourceLocator locator = plan.getCmpConnectionFactory();
+
+ toolkit.createLabel(composite, CommonMessages.resourceLink);
+ String value = locator != null ? locator.getResourceLink() : null;
+ resourceLink = toolkit.createText(composite, value, SWT.BORDER);
+ resourceLink.setLayoutData(createTextFieldGridData());
+ resourceLink.addModifyListener(new ModifyListener() {
+ public void modifyText(ModifyEvent e) {
+ getResourceLocator().setResourceLink(resourceLink.getText());
+ markDirty();
+ }
+ });
+
+ specifyAsUrl = toolkit.createButton(composite, CommonMessages.useUrl, SWT.RADIO);
+ data = new GridData();
+ data.horizontalSpan = 2;
+ specifyAsUrl.setLayoutData(data);
+
+ toolkit.createLabel(composite, CommonMessages.url);
+ value = locator != null ? locator.getUrl() : null;
+ url = toolkit.createText(composite, value, SWT.BORDER);
+ url.setLayoutData(createTextFieldGridData());
+ url.addModifyListener(new ModifyListener() {
+ public void modifyText(ModifyEvent e) {
+ getResourceLocator().setUrl(url.getText());
+ markDirty();
+ }
+ });
+
+ specifyAsPattern = toolkit.createButton(composite, CommonMessages.useResourcePattern, SWT.RADIO);
+ specifyAsPattern.setLayoutData(data);
+
+ toolkit.createLabel(composite, CommonMessages.groupId);
+ value = locator != null && locator.getPattern() != null ? locator.getPattern().getGroupId()
+ : null;
+ group = toolkit.createText(composite, value, SWT.BORDER);
+ group.setLayoutData(createTextFieldGridData());
+ group.addModifyListener(new ModifyListener() {
+ public void modifyText(ModifyEvent e) {
+ getPattern().setGroupId(group.getText());
+ markDirty();
+ }
+ });
+
+ toolkit.createLabel(composite, CommonMessages.artifactId);
+ value = locator != null && locator.getPattern() != null ? locator.getPattern().getArtifactId()
+ : null;
+ artifact = toolkit.createText(composite, value, SWT.BORDER);
+ artifact.setLayoutData(createTextFieldGridData());
+ artifact.addModifyListener(new ModifyListener() {
+ public void modifyText(ModifyEvent e) {
+ getPattern().setArtifactId(artifact.getText());
+ markDirty();
+ }
+ });
+
+ toolkit.createLabel(composite, CommonMessages.moduleId);
+ value = locator != null && locator.getPattern() != null ? locator.getPattern().getModule()
+ : null;
+ module = toolkit.createText(composite, value, SWT.BORDER);
+ module.setLayoutData(createTextFieldGridData());
+ module.addModifyListener(new ModifyListener() {
+ public void modifyText(ModifyEvent e) {
+ getPattern().setModule(module.getText());
+ markDirty();
+ }
+ });
+
+ toolkit.createLabel(composite, CommonMessages.name);
+ value = locator != null && locator.getPattern() != null ? locator.getPattern().getName()
+ : null;
+ name = toolkit.createText(composite, value, SWT.BORDER);
+ name.setLayoutData(createTextFieldGridData());
+ name.addModifyListener(new ModifyListener() {
+ public void modifyText(ModifyEvent e) {
+ getPattern().setName(name.getText());
+ markDirty();
+ }
+ });
+
+ toolkit.createLabel(composite, CommonMessages.version);
+ value = locator != null && locator.getPattern() != null ? locator.getPattern().getVersion()
+ : null;
+ version = toolkit.createText(composite, value, SWT.BORDER);
+ version.setLayoutData(createTextFieldGridData());
+ version.addModifyListener(new ModifyListener() {
+ public void modifyText(ModifyEvent e) {
+ getPattern().setVersion(version.getText());
+ markDirty();
+ }
+ });
+
+ specifyAsLink.addSelectionListener(new SelectionAdapter() {
+ public void widgetSelected(SelectionEvent e) {
+ if (specifyAsLink.getSelection()) {
+ getResourceLocator().setUrl(null);
+ getResourceLocator().setPattern(null);
+ if (resourceLink.getText().length() > 0) {
+ getResourceLocator().setResourceLink(resourceLink.getText());
+ }
+ markDirty();
+ toggle();
+ }
+ }
+ });
+
+ specifyAsUrl.addSelectionListener(new SelectionAdapter() {
+ public void widgetSelected(SelectionEvent e) {
+ if (specifyAsUrl.getSelection()) {
+ getResourceLocator().setResourceLink(null);
+ getResourceLocator().setPattern(null);
+ if (url.getText().length() > 0) {
+ getResourceLocator().setUrl(url.getText());
+ }
+ markDirty();
+ toggle();
+ }
+ }
+ });
+
+ specifyAsPattern.addSelectionListener(new SelectionAdapter() {
+ public void widgetSelected(SelectionEvent e) {
+ if (specifyAsPattern.getSelection()) {
+ getResourceLocator().setResourceLink (null);
+ getResourceLocator().setUrl (null);
+
+ if (group.getText().length() > 0) {
+ getPattern().setGroupId(group.getText());
+ }
+ if (artifact.getText().length() > 0) {
+ getPattern().setArtifactId(artifact.getText());
+ }
+ if (module.getText().length() > 0) {
+ getPattern().setModule(module.getText());
+ }
+ if (name.getText().length() > 0) {
+ getPattern().setName(name.getText());
+ }
+ if (version.getText().length() > 0) {
+ getPattern().setVersion(version.getText());
+ }
+ markDirty();
+ toggle();
+ }
+ }
+ });
+
+ if (locator != null) {
+ if (locator.getResourceLink() != null) {
+ specifyAsLink.setSelection(true);
+ } else if (locator.getUrl() != null) {
+ specifyAsUrl.setSelection(true);
+ } else if (locator.getPattern() != null) {
+ specifyAsPattern.setSelection(true);
+ }
+ }
+
+ toggle();
+ }
+
+ public void toggle() {
+ resourceLink.setEnabled(specifyAsLink.getSelection());
+ url.setEnabled(specifyAsUrl.getSelection());
+ artifact.setEnabled(specifyAsPattern.getSelection());
+ group.setEnabled(specifyAsPattern.getSelection());
+ module.setEnabled(specifyAsPattern.getSelection());
+ name.setEnabled(specifyAsPattern.getSelection());
+ version.setEnabled(specifyAsPattern.getSelection());
+ }
+
+ /**
+ * @return
+ */
+ private ResourceLocator getResourceLocator() {
+ ResourceLocator locator = plan.getCmpConnectionFactory();
+ if (locator == null) {
+ locator = namingFactory.createResourceLocator();
+ plan.setCmpConnectionFactory(locator);
+ }
+ return locator;
+ }
+
+ /**
+ * @return
+ */
+ private Pattern getPattern() {
+ ResourceLocator locator = getResourceLocator();
+ Pattern pattern = locator.getPattern();
+ if (pattern == null) {
+ pattern = namingFactory.createPattern();
+ locator.setPattern(pattern);
+ }
+ return pattern;
+ }
+}
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/OpenEjbJarCMPSection.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/OpenEjbJarCMPSection.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/OpenEjbJarCMPSection.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/OpenEjbJarGeneralSection.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/OpenEjbJarGeneralSection.java?rev=938593&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/OpenEjbJarGeneralSection.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/OpenEjbJarGeneralSection.java Tue Apr 27 18:20:22 2010
@@ -0,0 +1,102 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.geronimo.st.v30.ui.sections;
+
+import javax.xml.bind.JAXBElement;
+
+import org.apache.geronimo.jee.openejb.OpenejbJar;
+import org.apache.geronimo.jee.openejb.ObjectFactory;
+import org.apache.geronimo.st.ui.CommonMessages;
+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.Text;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class OpenEjbJarGeneralSection extends CommonGeneralSection {
+
+ protected Text ejbqlCompilerFactory;
+
+ protected Text dbSyntaxFactory;
+
+ protected Button enforceForeignKeyConstraints;
+
+ OpenejbJar plan;
+
+ public OpenEjbJarGeneralSection(Composite parent, FormToolkit toolkit, int style, JAXBElement plan) {
+ super(parent, toolkit, style, plan);
+ this.plan = (OpenejbJar) plan.getValue();
+ createClient();
+ }
+
+ protected void createClient() {
+ super.createClient();
+ Composite composite = (Composite) getSection().getClient();
+
+ createLabel(composite, CommonMessages.editorejbqlCompilerFactory);
+
+ ejbqlCompilerFactory = toolkit.createText(composite, plan.getEjbQlCompilerFactory(), SWT.BORDER);
+ ejbqlCompilerFactory.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false));
+ ejbqlCompilerFactory.addModifyListener(new ModifyListener() {
+ public void modifyText(ModifyEvent e) {
+ plan.setEjbQlCompilerFactory(ejbqlCompilerFactory.getText());
+ markDirty();
+ }
+ });
+
+ createLabel(composite, CommonMessages.editordbSyntaxFactory);
+
+ dbSyntaxFactory = toolkit.createText(composite, plan.getDbSyntaxFactory(), SWT.BORDER);
+ dbSyntaxFactory.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false));
+ dbSyntaxFactory.addModifyListener(new ModifyListener() {
+ public void modifyText(ModifyEvent e) {
+ plan.setDbSyntaxFactory(dbSyntaxFactory.getText());
+ markDirty();
+ }
+ });
+
+ enforceForeignKeyConstraints = toolkit.createButton(composite, CommonMessages.enforceForeignKeyConstraints, SWT.CHECK);
+ enforceForeignKeyConstraints.setSelection(plan.getEnforceForeignKeyConstraints() != null);
+ GridData data = new GridData();
+ data.horizontalSpan = 2;
+ enforceForeignKeyConstraints.setLayoutData(data);
+
+ enforceForeignKeyConstraints.addSelectionListener(new SelectionListener() {
+ public void widgetDefaultSelected(SelectionEvent e) {
+ }
+
+ public void widgetSelected(SelectionEvent e) {
+ if (enforceForeignKeyConstraints.getSelection()) {
+ ObjectFactory objFactory = new ObjectFactory();
+ plan.setEnforceForeignKeyConstraints(objFactory.createEmpty());
+ }
+ else {
+ plan.setEnforceForeignKeyConstraints(null);
+ }
+ markDirty();
+ }
+ });
+ }
+}
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/OpenEjbJarGeneralSection.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/OpenEjbJarGeneralSection.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/OpenEjbJarGeneralSection.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/PersContextRefSection.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/PersContextRefSection.java?rev=938593&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/PersContextRefSection.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/PersContextRefSection.java Tue Apr 27 18:20:22 2010
@@ -0,0 +1,178 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.geronimo.st.v30.ui.sections;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.xml.bind.JAXBElement;
+
+import org.apache.geronimo.jee.naming.PersistenceContextRef;
+import org.apache.geronimo.jee.naming.Property;
+import org.apache.geronimo.st.ui.CommonMessages;
+import org.apache.geronimo.st.ui.sections.AbstractTreeSection;
+import org.apache.geronimo.st.v30.core.jaxb.JAXBModelUtils;
+import org.apache.geronimo.st.v30.ui.Activator;
+import org.apache.geronimo.st.v30.ui.wizards.PersContextRefWizard;
+import org.eclipse.jface.viewers.ILabelProvider;
+import org.eclipse.jface.viewers.ITreeContentProvider;
+import org.eclipse.jface.wizard.Wizard;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class PersContextRefSection extends AbstractTreeSection {
+
+ public PersContextRefSection(JAXBElement plan, Composite parent, FormToolkit toolkit, int style, List persContextRefs) {
+ super(plan, parent, toolkit, style);
+ this.objectContainer = new ArrayList(persContextRefs.size());
+ for (int i = 0; i < persContextRefs.size(); i++) {
+ if (PersistenceContextRef.class.isInstance(((JAXBElement)persContextRefs.get(i)).getValue())) {
+ this.objectContainer.add(persContextRefs.get(i));
+ }
+ }
+ createClient();
+ }
+
+ @Override
+ public String getTitle() {
+ return CommonMessages.editorPersContextRefTitle;
+ }
+
+ @Override
+ public String getDescription() {
+ return CommonMessages.editorPersContextRefDescription;
+ }
+
+ @Override
+ public Wizard getWizard() {
+ return new PersContextRefWizard(this);
+ }
+
+ @Override
+ public Class getTableEntryObjectType() {
+ return PersistenceContextRef.class;
+ }
+
+ @Override
+ public Object getInput() {
+ if (objectContainer != null) {
+ return objectContainer;
+ }
+ return super.getInput();
+ }
+
+ @Override
+ protected void activateAddButton() {
+ if (tree.getSelectionCount() == 0 || tree.getSelection()[0].getParentItem() == null) {
+ addButton.setEnabled(true);
+ } else {
+ addButton.setEnabled(false);
+ }
+ }
+
+ public PersistenceContextRef getSelectedObject () {
+ if (tree.getSelection().length == 0) {
+ return null;
+ }
+ Object object;
+ if (tree.getSelection()[0].getParentItem() == null) {
+ object = tree.getSelection()[0].getData();
+ }
+ else {
+ object = tree.getSelection()[0].getParentItem().getData();
+ }
+ return (PersistenceContextRef)((JAXBElement)object).getValue();
+ }
+
+ @Override
+ public void removeItem(Object anItem) {
+ if (JAXBElement.class.isInstance(anItem)) {
+ getObjectContainer().remove(anItem);
+ JAXBModelUtils.getGbeanRefs(getPlan()).remove(anItem);
+ }
+ else if (Property.class.isInstance(anItem)) {
+ Object object = tree.getSelection()[0].getParentItem().getData();
+ ((PersistenceContextRef)((JAXBElement)object).getValue()).getProperty().remove(anItem);
+ }
+ }
+
+ @Override
+ public ITreeContentProvider getContentProvider() {
+ return new ContentProvider() {
+ @Override
+ public Object[] getElements(Object inputElement) {
+ return getChildren(inputElement);
+ }
+
+ @Override
+ public Object[] getChildren(Object parentElement) {
+ if (List.class.isInstance(parentElement)) {
+ return ((List)parentElement).toArray();
+ }
+ if (JAXBElement.class.isInstance(parentElement)) {
+ return ((PersistenceContextRef)((JAXBElement)parentElement).getValue()).getProperty().toArray();
+ }
+ return new String[] {};
+ }
+ };
+ }
+
+ @Override
+ public ILabelProvider getLabelProvider() {
+ return new LabelProvider() {
+ @Override
+ public String getText(Object element) {
+ if (JAXBElement.class.isInstance(element)) {
+ PersistenceContextRef contextRef = (PersistenceContextRef)((JAXBElement)element).getValue();
+ String temp = "Persistence Context Ref: name = \"" + contextRef.getPersistenceContextRefName() +
+ "\", type = \"" + contextRef.getPersistenceContextType().value();
+ if (contextRef.getPersistenceUnitName() != null)
+ temp += "\", unit name = \"" + contextRef.getPersistenceUnitName();
+ if (contextRef.getPattern() != null && contextRef.getPattern().getName() != null)
+ temp += "\", pattern name = \"" + contextRef.getPattern().getName();
+ if (contextRef.getPattern() != null && contextRef.getPattern().getGroupId() != null)
+ temp += "\", pattern group = \"" + contextRef.getPattern().getGroupId();
+ if (contextRef.getPattern() != null && contextRef.getPattern().getArtifactId() != null)
+ temp += "\", pattern artifact = \"" + contextRef.getPattern().getArtifactId();
+ if (contextRef.getPattern() != null && contextRef.getPattern().getVersion() != null)
+ temp += "\", pattern version = \"" + contextRef.getPattern().getVersion();
+ if (contextRef.getPattern() != null && contextRef.getPattern().getModule() != null)
+ temp += "\", pattern module = \"" + contextRef.getPattern().getModule();
+ temp += "\"";
+ return temp;
+ }
+ else if (Property.class.isInstance(element)) {
+ Property property = (Property)element;
+ return "Property: key = \"" + property.getKey() +
+ "\", value = \"" + property.getValue() + "\"";
+ }
+
+ return null;
+ }
+
+ @Override
+ public Image getImage(Object arg0) {
+ return Activator.imageDescriptorFromPlugin("org.eclipse.jst.j2ee",
+ "icons/full/obj16/module_web_obj.gif").createImage();
+ }
+ };
+ }
+}
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/PersContextRefSection.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/PersContextRefSection.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/PersContextRefSection.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/PersUnitRefSection.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/PersUnitRefSection.java?rev=938593&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/PersUnitRefSection.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/PersUnitRefSection.java Tue Apr 27 18:20:22 2010
@@ -0,0 +1,157 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.geronimo.st.v30.ui.sections;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.xml.bind.JAXBElement;
+
+import org.apache.geronimo.jee.naming.PersistenceUnitRef;
+import org.apache.geronimo.st.ui.CommonMessages;
+import org.apache.geronimo.st.ui.sections.AbstractTreeSection;
+import org.apache.geronimo.st.v30.core.jaxb.JAXBModelUtils;
+import org.apache.geronimo.st.v30.ui.Activator;
+import org.apache.geronimo.st.v30.ui.wizards.PersUnitRefWizard;
+import org.eclipse.jface.viewers.ILabelProvider;
+import org.eclipse.jface.viewers.ITreeContentProvider;
+import org.eclipse.jface.wizard.Wizard;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class PersUnitRefSection extends AbstractTreeSection {
+
+ public PersUnitRefSection(JAXBElement plan, Composite parent, FormToolkit toolkit, int style, List persUnitRefs) {
+ super(plan, parent, toolkit, style);
+ this.objectContainer = new ArrayList(persUnitRefs.size());
+ for (int i = 0; i < persUnitRefs.size(); i++) {
+ if (PersistenceUnitRef.class.isInstance(((JAXBElement)persUnitRefs.get(i)).getValue())) {
+ this.objectContainer.add(persUnitRefs.get(i));
+ }
+ }
+ createClient();
+ }
+
+ @Override
+ public String getTitle() {
+ return CommonMessages.editorPersUnitRefTitle;
+ }
+
+ @Override
+ public String getDescription() {
+ return CommonMessages.editorPersUnitRefDescription;
+ }
+
+ @Override
+ public Wizard getWizard() {
+ return new PersUnitRefWizard(this);
+ }
+
+ @Override
+ public Class getTableEntryObjectType() {
+ return PersistenceUnitRef.class;
+ }
+
+ @Override
+ public Object getInput() {
+ if (objectContainer != null) {
+ return objectContainer;
+ }
+ return super.getInput();
+ }
+
+ @Override
+ protected void activateAddButton() {
+ if (tree.getSelectionCount() == 0 || tree.getSelection()[0].getParentItem() == null) {
+ addButton.setEnabled(true);
+ } else {
+ addButton.setEnabled(false);
+ }
+ }
+
+ public PersistenceUnitRef getSelectedObject () {
+ if (tree.getSelection().length == 0) {
+ return null;
+ }
+ return (PersistenceUnitRef)((JAXBElement)tree.getSelection()[0].getData()).getValue();
+ }
+
+ @Override
+ public void removeItem(Object anItem) {
+ if (JAXBElement.class.isInstance(anItem)) {
+ getObjectContainer().remove(anItem);
+ JAXBModelUtils.getGbeanRefs(getPlan()).remove(anItem);
+ }
+ }
+
+ @Override
+ public ITreeContentProvider getContentProvider() {
+ return new ContentProvider() {
+ @Override
+ public Object[] getElements(Object inputElement) {
+ return getChildren(inputElement);
+ }
+
+ @Override
+ public Object[] getChildren(Object parentElement) {
+ if (List.class.isInstance(parentElement)) {
+ return ((List)parentElement).toArray();
+ }
+ return new String[] {};
+ }
+ };
+ }
+
+ @Override
+ public ILabelProvider getLabelProvider() {
+ return new LabelProvider() {
+ @Override
+ public String getText(Object element) {
+ if (JAXBElement.class.isInstance(element)) {
+ PersistenceUnitRef unitRef = (PersistenceUnitRef)((JAXBElement)element).getValue();
+ String temp = "Persistence Unit Ref: name = \"" + unitRef.getPersistenceUnitRefName();
+ if (unitRef.getPersistenceUnitName() != null)
+ temp += "\", unit name = \"" + unitRef.getPersistenceUnitName();
+ if (unitRef.getPattern() != null && unitRef.getPattern().getName() != null)
+ temp += "\", pattern name = \"" + unitRef.getPattern().getName();
+ if (unitRef.getPattern() != null && unitRef.getPattern().getGroupId() != null)
+ temp += "\", pattern group = \"" + unitRef.getPattern().getGroupId();
+ if (unitRef.getPattern() != null && unitRef.getPattern().getArtifactId() != null)
+ temp += "\", pattern artifact = \"" + unitRef.getPattern().getArtifactId();
+ if (unitRef.getPattern() != null && unitRef.getPattern().getVersion() != null)
+ temp += "\", pattern version = \"" + unitRef.getPattern().getVersion();
+ if (unitRef.getPattern() != null && unitRef.getPattern().getModule() != null)
+ temp += "\", pattern module = \"" + unitRef.getPattern().getModule();
+ temp += "\"";
+ return temp;
+ }
+
+ return null;
+ }
+
+ @Override
+ public Image getImage(Object arg0) {
+ return Activator.imageDescriptorFromPlugin("org.eclipse.jst.j2ee",
+ "icons/full/obj16/module_web_obj.gif").createImage();
+ }
+ };
+ }
+}
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/PersUnitRefSection.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/PersUnitRefSection.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/PersUnitRefSection.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/ResourceEnvRefSection.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/ResourceEnvRefSection.java?rev=938593&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/ResourceEnvRefSection.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/ResourceEnvRefSection.java Tue Apr 27 18:20:22 2010
@@ -0,0 +1,86 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.geronimo.st.v30.ui.sections;
+
+import java.util.List;
+
+import javax.xml.bind.JAXBElement;
+
+import org.apache.geronimo.jee.naming.ResourceEnvRef;
+import org.apache.geronimo.st.ui.CommonMessages;
+import org.apache.geronimo.st.ui.sections.AbstractTableSection;
+import org.apache.geronimo.st.v30.ui.Activator;
+import org.apache.geronimo.st.v30.ui.wizards.ResourceEnvRefWizard;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.jface.viewers.ITableLabelProvider;
+import org.eclipse.jface.wizard.Wizard;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class ResourceEnvRefSection extends AbstractTableSection {
+
+
+ public ResourceEnvRefSection(JAXBElement plan, Composite parent, FormToolkit toolkit, int style, List resourceEnvRefs) {
+ super(plan, parent, toolkit, style);
+ this.objectContainer = resourceEnvRefs;
+ COLUMN_NAMES = new String[] {
+ CommonMessages.editorResEnvRefNameTitle, CommonMessages.editorResEnvRefMsgDestTitle };
+ createClient();
+ }
+
+ public String getTitle() {
+ return CommonMessages.editorResourceEnvRefTitle;
+ }
+
+ public String getDescription() {
+ return CommonMessages.editorResourceEnvRefDescription;
+ }
+
+ public Wizard getWizard() {
+ return new ResourceEnvRefWizard(this);
+ }
+
+ public ImageDescriptor getImageDescriptor() {
+ return Activator.imageDescriptorFromPlugin("org.eclipse.jst.j2ee", "icons/full/obj16/res_env_ref_obj.gif");
+ }
+
+ public Class getTableEntryObjectType() {
+ return ResourceEnvRef.class;
+ }
+
+ @Override
+ public ITableLabelProvider getLabelProvider() {
+ return new LabelProvider() {
+ @Override
+ public String getColumnText(Object element, int columnIndex) {
+ if (ResourceEnvRef.class.isInstance(element)) {
+ ResourceEnvRef resourceEnvRef = (ResourceEnvRef) element;
+ switch (columnIndex) {
+ case 0:
+ return resourceEnvRef.getRefName();
+ case 1:
+ return resourceEnvRef.getMessageDestinationLink();
+ }
+ }
+ return null;
+ }
+ };
+ }
+}
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/ResourceEnvRefSection.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/ResourceEnvRefSection.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/ResourceEnvRefSection.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/ResourceRefSection.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/ResourceRefSection.java?rev=938593&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/ResourceRefSection.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/ResourceRefSection.java Tue Apr 27 18:20:22 2010
@@ -0,0 +1,86 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.geronimo.st.v30.ui.sections;
+
+import java.util.List;
+
+import javax.xml.bind.JAXBElement;
+
+import org.apache.geronimo.jee.naming.ResourceRef;
+import org.apache.geronimo.st.ui.CommonMessages;
+import org.apache.geronimo.st.ui.sections.AbstractTableSection;
+import org.apache.geronimo.st.v30.ui.Activator;
+import org.apache.geronimo.st.v30.ui.wizards.ResourceRefWizard;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.jface.viewers.ITableLabelProvider;
+import org.eclipse.jface.wizard.Wizard;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class ResourceRefSection extends AbstractTableSection {
+
+ public ResourceRefSection(JAXBElement plan, Composite parent, FormToolkit toolkit, int style, List resourceRefs) {
+ super(plan, parent, toolkit, style);
+ this.objectContainer = resourceRefs;
+ COLUMN_NAMES = new String[] {
+ CommonMessages.editorResRefNameTitle, CommonMessages.editorResRefLinkTitle};
+ createClient();
+ getSection().setExpanded(false);
+ }
+
+ public String getTitle() {
+ return CommonMessages.editorResourceRefTitle;
+ }
+
+ public String getDescription() {
+ return CommonMessages.editorResourceRefDescription;
+ }
+
+ public Wizard getWizard() {
+ return new ResourceRefWizard(this);
+ }
+
+ public ImageDescriptor getImageDescriptor() {
+ return Activator.imageDescriptorFromPlugin("org.eclipse.jst.j2ee", "icons/full/obj16/resourceRef_obj.gif");
+ }
+
+ public Class getTableEntryObjectType() {
+ return ResourceRef.class;
+ }
+
+ @Override
+ public ITableLabelProvider getLabelProvider() {
+ return new LabelProvider() {
+ @Override
+ public String getColumnText(Object element, int columnIndex) {
+ if (ResourceRef.class.isInstance(element)) {
+ ResourceRef resourceRef = (ResourceRef) element;
+ switch (columnIndex) {
+ case 0:
+ return resourceRef.getRefName();
+ case 1:
+ return resourceRef.getResourceLink();
+ }
+ }
+ return null;
+ }
+ };
+ }
+}
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/ResourceRefSection.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/ResourceRefSection.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/ResourceRefSection.java
------------------------------------------------------------------------------
svn:mime-type = text/plain