Author: dgolovin
Date: 2007-10-16 19:57:46 -0400 (Tue, 16 Oct 2007)
New Revision: 4274
Added:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/SeamProjectsSet.java
Removed:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/J2EEProjects.java
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetInstallDataModelProvider.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetPreferenceInitializer.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/scanner/java/SeamAnnotations.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1094
during fixing refresh algorithm is affected, so
http://jira.jboss.com/jira/browse/JBIDE-1057 can be fixed.
Deleted:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/J2EEProjects.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/J2EEProjects.java 2007-10-16
22:48:11 UTC (rev 4273)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/J2EEProjects.java 2007-10-16
23:57:46 UTC (rev 4274)
@@ -1,218 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at
http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package org.jboss.tools.seam.core;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.resources.IContainer;
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.ProjectScope;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.preferences.IEclipsePreferences;
-import org.eclipse.core.runtime.preferences.IScopeContext;
-import org.eclipse.jst.j2ee.ejb.componentcore.util.EJBArtifactEdit;
-import org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities;
-import org.eclipse.wst.common.componentcore.ComponentCore;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.common.componentcore.resources.IVirtualFolder;
-import org.eclipse.wst.common.componentcore.resources.IVirtualReference;
-import org.jboss.tools.common.model.util.EclipseResourceUtil;
-import org.jboss.tools.seam.core.project.facet.SeamFacetPreference;
-import org.jboss.tools.seam.internal.core.project.facet.ISeamFacetDataModelProperties;
-
-/**
- * Helper class that collects related J2EE projects for
- * a given 'seed' project.
- *
- * If seed project is EAR, it's referenced projects are used to fill
- * lists with WAR and EJB projects.
- *
- * If seed project is referenced by a EAR project (the first occurrence is taken),
- * that EAR is used as seed project.
- *
- * If seed project is WAR or EJB not referenced by any EAR project,
- * field 'ear' remains null, and only lists 'wars' and 'ejbs' are
available.
- *
- * Also this class provides helper methods to obtain root folders
- * for involved EAR, WAR and EJB projects.
- *
- * @author Viacheslav Kabanovich
- */
-public class J2EEProjects {
- IProject ear;
- IProject war;
- IProject ejb;
- IProject test;
- IEclipsePreferences prefs;
-
- /**
- * @param project
- * @return
- */
- public static J2EEProjects create(IProject project) {
- return new J2EEProjects(project);
- }
-
- private J2EEProjects(IProject project) {
-
- IScopeContext projectScope = new ProjectScope(project);
- prefs = projectScope.getNode(SeamCorePlugin.PLUGIN_ID);
-
- war = project;
-
- String earName = prefs.get(
- ISeamFacetDataModelProperties.SEAM_EAR_PROJECT,project.getName()+"-ear");
//$NON-NLS-1$
- if(earName!=null && !"".equals(earName.trim())) { //$NON-NLS-1$
- ear = (IProject)project.getWorkspace().getRoot().findMember(earName);
- }
- String ejbName = prefs.get(
- ISeamFacetDataModelProperties.SEAM_EJB_PROJECT,project.getName()+"-ejb");
//$NON-NLS-1$
- if(ejbName!=null && !"".equals(ejbName.trim())) { //$NON-NLS-1$
- ejb = (IProject)project.getWorkspace().getRoot().findMember(ejbName);
- }
- String testName = prefs.get(
- ISeamFacetDataModelProperties.SEAM_TEST_PROJECT,project.getName()+"test");
//$NON-NLS-1$
- if(testName!=null && !"".equals(testName)) { //$NON-NLS-1$
- test = (IProject)project.getWorkspace().getRoot().findMember(testName);
- }
- }
-
- public boolean isWarConfiguration() {
- return prefs.get(
- ISeamFacetDataModelProperties.JBOSS_AS_DEPLOY_AS,
- ISeamFacetDataModelProperties.DEPLOY_AS_WAR)
- .equals(ISeamFacetDataModelProperties.DEPLOY_AS_WAR);
- }
-
- /**
- * Returns list of WAR projects.
- * @return
- */
- public IProject getWarProject() {
- return war;
- }
-
- /**
- * Returns EAR project or null, if WAR project is not used by EAR.
- * @return
- */
- public IProject getEarProject() {
- return ear;
- }
-
- /**
- * Returns list of EJB projects.
- * @return
- */
- public IProject getEJBProject() {
- return ejb;
- }
-
- /**
- * Returns list of EJB projects.
- * @return
- */
- public IProject getTestProject() {
- return test;
- }
-
- /**
- * Returns Content folder of EAR project or null
- * if EAR is not available.
- * @return
- */
- public IFolder getActionsFolder() {
- IFolder actionsFolder = null;
- if(isWarConfiguration()) {
- IVirtualComponent com = ComponentCore.createComponent(war);
- IVirtualFolder webRootFolder = com.getRootFolder().getFolder(new Path("/"));
//$NON-NLS-1$
- final IVirtualFolder srcRootFolder = com.getRootFolder().getFolder(new
Path("/WEB-INF/classes")); //$NON-NLS-1$
- IContainer[] folder = webRootFolder.getUnderlyingFolders();
- if(folder.length==1) {
- actionsFolder = (IFolder)folder[0];
- } else if(folder.length>1) {
- IContainer parent = folder[0].getParent();
- IResource actions = parent.findMember("actions"); //$NON-NLS-1$
- if(actions!=null && actions instanceof IFolder) {
- actionsFolder = (IFolder)actions;
- } else {
- actionsFolder = (IFolder)folder[0];
- }
- }
- } else {
- IVirtualComponent com = ComponentCore.createComponent(ejb);
- IVirtualFolder ejbRootFolder = com.getRootFolder().getFolder(new Path("/"));
//$NON-NLS-1$
- actionsFolder = (IFolder)ejbRootFolder.getUnderlyingFolder();
- }
- return actionsFolder;
- }
-
- /**
- * Returns Content folder for first found WAR project.
- * @return
- */
- public IFolder getBeansFolder() {
- IFolder actionsFolder = null;
- if(isWarConfiguration()) {
- IVirtualComponent com = ComponentCore.createComponent(war);
- final IVirtualFolder srcRootFolder = com.getRootFolder().getFolder(new
Path("/WEB-INF/classes")); //$NON-NLS-1$
- IContainer[] folder = srcRootFolder.getUnderlyingFolders();
- if(folder.length==1) {
- actionsFolder = (IFolder)folder[0];
- } else if(folder.length>1) {
- IContainer parent = folder[0].getParent();
- IResource actions = parent.findMember("model"); //$NON-NLS-1$
- if(actions!=null && actions instanceof IFolder) {
- actionsFolder = (IFolder)actions;
- } else {
- actionsFolder = (IFolder)folder[0];
- }
- }
- } else {
- IVirtualComponent com = ComponentCore.createComponent(ejb);
- IVirtualFolder ejbRootFolder = com.getRootFolder().getFolder(new Path("/"));
//$NON-NLS-1$
- actionsFolder = (IFolder)ejbRootFolder.getUnderlyingFolder();
- }
- return actionsFolder;
- }
-
- /**
- * Returns source roots for first found EJB project.
- * @return
- */
- public IFolder getViewsFolder() {
- IVirtualComponent com = ComponentCore.createComponent(war);
- IVirtualFolder webRootFolder = com.getRootFolder().getFolder(new Path("/"));
//$NON-NLS-1$
- return (IFolder)webRootFolder.getUnderlyingFolder();
- }
-
- /**
- * Returns source roots for first found EJB project.
- * @return
- */
- public IFolder getTestsFolder() {
- IResource testRes = test.findMember("test-src"); //$NON-NLS-1$
- IFolder testFolder = null;
- if(testRes instanceof IFolder) {
- testFolder = (IFolder)testRes;
- }
- return testFolder;
- }
-
- public String getEntityPackage(){
- return prefs.get(ISeamFacetDataModelProperties.ENTITY_BEAN_PACKAGE_NAME,
"entity"); //$NON-NLS-1$
- }
-
-}
Copied:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/SeamProjectsSet.java
(from rev 4039,
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/J2EEProjects.java)
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/SeamProjectsSet.java
(rev 0)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/SeamProjectsSet.java 2007-10-16
23:57:46 UTC (rev 4274)
@@ -0,0 +1,231 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.seam.core;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.core.resources.IContainer;
+import org.eclipse.core.resources.IFolder;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.ProjectScope;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.core.runtime.preferences.IEclipsePreferences;
+import org.eclipse.core.runtime.preferences.IScopeContext;
+import org.eclipse.jst.j2ee.ejb.componentcore.util.EJBArtifactEdit;
+import org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities;
+import org.eclipse.wst.common.componentcore.ComponentCore;
+import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
+import org.eclipse.wst.common.componentcore.resources.IVirtualFolder;
+import org.eclipse.wst.common.componentcore.resources.IVirtualReference;
+import org.jboss.tools.common.model.util.EclipseResourceUtil;
+import org.jboss.tools.seam.core.project.facet.SeamFacetPreference;
+import org.jboss.tools.seam.internal.core.project.facet.ISeamFacetDataModelProperties;
+
+/**
+ * Helper class that collects related J2EE projects for
+ * a given 'seed' project.
+ *
+ * If seed project is EAR, it's referenced projects are used to fill
+ * lists with WAR and EJB projects.
+ *
+ * If seed project is referenced by a EAR project (the first occurrence is taken),
+ * that EAR is used as seed project.
+ *
+ * If seed project is WAR or EJB not referenced by any EAR project,
+ * field 'ear' remains null, and only lists 'wars' and 'ejbs' are
available.
+ *
+ * Also this class provides helper methods to obtain root folders
+ * for involved EAR, WAR and EJB projects.
+ *
+ * @author Viacheslav Kabanovich
+ */
+public class SeamProjectsSet {
+ IProject ear;
+ IProject war;
+ IProject ejb;
+ IProject test;
+ IEclipsePreferences prefs;
+
+ /**
+ * @param project
+ * @return
+ */
+ public static SeamProjectsSet create(IProject project) {
+ return new SeamProjectsSet(project);
+ }
+
+ public SeamProjectsSet(IProject project) {
+
+ IScopeContext projectScope = new ProjectScope(project);
+ prefs = projectScope.getNode(SeamCorePlugin.PLUGIN_ID);
+
+ war = project;
+
+ String earName = prefs.get(
+ ISeamFacetDataModelProperties.SEAM_EAR_PROJECT,project.getName()+"-ear");
//$NON-NLS-1$
+ if(earName!=null && !"".equals(earName.trim())) { //$NON-NLS-1$
+ ear = (IProject)project.getWorkspace().getRoot().findMember(earName);
+ }
+ String ejbName = prefs.get(
+ ISeamFacetDataModelProperties.SEAM_EJB_PROJECT,project.getName()+"-ejb");
//$NON-NLS-1$
+ if(ejbName!=null && !"".equals(ejbName.trim())) { //$NON-NLS-1$
+ ejb = (IProject)project.getWorkspace().getRoot().findMember(ejbName);
+ }
+ String testName = prefs.get(
+ ISeamFacetDataModelProperties.SEAM_TEST_PROJECT,project.getName()+"test");
//$NON-NLS-1$
+ if(testName!=null && !"".equals(testName)) { //$NON-NLS-1$
+ test = (IProject)project.getWorkspace().getRoot().findMember(testName);
+ }
+ }
+
+ public boolean isWarConfiguration() {
+ return prefs.get(
+ ISeamFacetDataModelProperties.JBOSS_AS_DEPLOY_AS,
+ ISeamFacetDataModelProperties.DEPLOY_AS_WAR)
+ .equals(ISeamFacetDataModelProperties.DEPLOY_AS_WAR);
+ }
+
+ /**
+ * Returns list of WAR projects.
+ * @return
+ */
+ public IProject getWarProject() {
+ return war;
+ }
+
+ /**
+ * Returns EAR project or null, if WAR project is not used by EAR.
+ * @return
+ */
+ public IProject getEarProject() {
+ return ear;
+ }
+
+ /**
+ * Returns list of EJB projects.
+ * @return
+ */
+ public IProject getEjbProject() {
+ return ejb;
+ }
+
+ /**
+ * Returns list of EJB projects.
+ * @return
+ */
+ public IProject getTestProject() {
+ return test;
+ }
+
+ /**
+ * Returns Content folder of EAR project or null
+ * if EAR is not available.
+ * @return
+ */
+ public IFolder getActionsFolder() {
+ IFolder actionsFolder = null;
+ if(isWarConfiguration()) {
+ IVirtualComponent com = ComponentCore.createComponent(war);
+ IVirtualFolder webRootFolder = com.getRootFolder().getFolder(new Path("/"));
//$NON-NLS-1$
+ final IVirtualFolder srcRootFolder = com.getRootFolder().getFolder(new
Path("/WEB-INF/classes")); //$NON-NLS-1$
+ IContainer[] folder = webRootFolder.getUnderlyingFolders();
+ if(folder.length==1) {
+ actionsFolder = (IFolder)folder[0];
+ } else if(folder.length>1) {
+ IContainer parent = folder[0].getParent();
+ IResource actions = parent.findMember("actions"); //$NON-NLS-1$
+ if(actions!=null && actions instanceof IFolder) {
+ actionsFolder = (IFolder)actions;
+ } else {
+ actionsFolder = (IFolder)folder[0];
+ }
+ }
+ } else {
+ IVirtualComponent com = ComponentCore.createComponent(ejb);
+ IVirtualFolder ejbRootFolder = com.getRootFolder().getFolder(new Path("/"));
//$NON-NLS-1$
+ actionsFolder = (IFolder)ejbRootFolder.getUnderlyingFolder();
+ }
+ return actionsFolder;
+ }
+
+ /**
+ * Returns Content folder for first found WAR project.
+ * @return
+ */
+ public IFolder getBeansFolder() {
+ IFolder actionsFolder = null;
+ if(isWarConfiguration()) {
+ IVirtualComponent com = ComponentCore.createComponent(war);
+ final IVirtualFolder srcRootFolder = com.getRootFolder().getFolder(new
Path("/WEB-INF/classes")); //$NON-NLS-1$
+ IContainer[] folder = srcRootFolder.getUnderlyingFolders();
+ if(folder.length==1) {
+ actionsFolder = (IFolder)folder[0];
+ } else if(folder.length>1) {
+ IContainer parent = folder[0].getParent();
+ IResource actions = parent.findMember("model"); //$NON-NLS-1$
+ if(actions!=null && actions instanceof IFolder) {
+ actionsFolder = (IFolder)actions;
+ } else {
+ actionsFolder = (IFolder)folder[0];
+ }
+ }
+ } else {
+ IVirtualComponent com = ComponentCore.createComponent(ejb);
+ IVirtualFolder ejbRootFolder = com.getRootFolder().getFolder(new Path("/"));
//$NON-NLS-1$
+ actionsFolder = (IFolder)ejbRootFolder.getUnderlyingFolder();
+ }
+ return actionsFolder;
+ }
+
+ /**
+ * Returns source roots for first found EJB project.
+ * @return
+ */
+ public IFolder getViewsFolder() {
+ IVirtualComponent com = ComponentCore.createComponent(war);
+ IVirtualFolder webRootFolder = com.getRootFolder().getFolder(new Path("/"));
//$NON-NLS-1$
+ return (IFolder)webRootFolder.getUnderlyingFolder();
+ }
+
+ /**
+ * Returns source roots for first found EJB project.
+ * @return
+ */
+ public IFolder getTestsFolder() {
+ IResource testRes = test.findMember("test-src"); //$NON-NLS-1$
+ IFolder testFolder = null;
+ if(testRes instanceof IFolder) {
+ testFolder = (IFolder)testRes;
+ }
+ return testFolder;
+ }
+
+ public String getEntityPackage(){
+ return prefs.get(ISeamFacetDataModelProperties.ENTITY_BEAN_PACKAGE_NAME,
"entity"); //$NON-NLS-1$
+ }
+
+ public void refreshLocal(IProgressMonitor monitor) throws CoreException {
+ if(ejb!=null) {
+ ejb.refreshLocal(IResource.DEPTH_INFINITE, monitor);
+ }
+ if(test!=null) {
+ test.refreshLocal(IResource.DEPTH_INFINITE, monitor);
+ }
+ if(war!=null) {
+ war.refreshLocal(IResource.DEPTH_INFINITE, monitor);
+ }
+ }
+}
\ No newline at end of file
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetInstallDataModelProvider.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetInstallDataModelProvider.java 2007-10-16
22:48:11 UTC (rev 4273)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetInstallDataModelProvider.java 2007-10-16
23:57:46 UTC (rev 4274)
@@ -94,10 +94,16 @@
public Object getDefaultProperty(String propertyName) {
if(JBOSS_AS_HOME.equals(propertyName)) {
return "Jboss_AS_HOME"; //$NON-NLS-1$
- }else if(JBOSS_AS_DEPLOY_AS.equals(propertyName)) {
+ } else if(JBOSS_AS_DEPLOY_AS.equals(propertyName)) {
return "Jboos_DEPLOY_AS"; //$NON-NLS-1$
- }else if (propertyName.equals(FACET_ID)) {
+ } else if (propertyName.equals(FACET_ID)) {
return ISeamCoreConstants.SEAM_CORE_FACET_ID;
+ } else if(SEAM_TEST_PROJECT.equals(propertyName)) {
+ return "";
+ } else if(SEAM_EJB_PROJECT.equals(propertyName)) {
+ return "";
+ } else if(SEAM_EAR_PROJECT.equals(propertyName)) {
+ return "";
}
return super.getDefaultProperty(propertyName);
}
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetPreferenceInitializer.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetPreferenceInitializer.java 2007-10-16
22:48:11 UTC (rev 4273)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetPreferenceInitializer.java 2007-10-16
23:57:46 UTC (rev 4274)
@@ -28,6 +28,7 @@
import org.jboss.tools.seam.core.project.facet.SeamRuntime;
import org.jboss.tools.seam.core.project.facet.SeamRuntimeListConverter1;
import org.jboss.tools.seam.core.project.facet.SeamVersion;
+import org.osgi.service.prefs.BackingStoreException;
/**
* @author eskimo
@@ -52,6 +53,11 @@
node.put(SeamFacetPreference.JBOSS_AS_DEFAULT_DEPLOY_AS, "war");
//$NON-NLS-1$
node.put(SeamFacetPreference.HIBERNATE_DEFAULT_DB_TYPE, "HSQL");
//$NON-NLS-1$
initializeDefault(node,getSeamGenBuildPath());
+ try {
+ node.flush();
+ } catch (BackingStoreException e) {
+ SeamCorePlugin.getPluginLog().logError(e);
+ }
}
public static final String SEAM_GEN_HOME = "../../../../jboss-eap/seam";
//$NON-NLS-1$
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/scanner/java/SeamAnnotations.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/scanner/java/SeamAnnotations.java 2007-10-16
22:48:11 UTC (rev 4273)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/scanner/java/SeamAnnotations.java 2007-10-16
23:57:46 UTC (rev 4274)
@@ -19,31 +19,31 @@
*/
public interface SeamAnnotations {
- public static String SEAM_ANNOTATION_TYPE_PREFIX =
"org.jboss.seam.annotations."; //$NON-NLS-1$
- public static String NAME_ANNOTATION_TYPE = SEAM_ANNOTATION_TYPE_PREFIX +
SeamCoreMessages.getString("SEAM_ANNOTATIONS_NAME"); //$NON-NLS-1$
- public static String SCOPE_ANNOTATION_TYPE = SEAM_ANNOTATION_TYPE_PREFIX +
SeamCoreMessages.getString("SEAM_ANNOTATIONS_SCOPE"); //$NON-NLS-1$
- public static String INSTALL_ANNOTATION_TYPE = SEAM_ANNOTATION_TYPE_PREFIX +
SeamCoreMessages.getString("SEAM_ANNOTATIONS_INSTALL"); //$NON-NLS-1$
+ public static final String SEAM_ANNOTATION_TYPE_PREFIX =
"org.jboss.seam.annotations."; //$NON-NLS-1$
+ public static final String NAME_ANNOTATION_TYPE = SEAM_ANNOTATION_TYPE_PREFIX +
SeamCoreMessages.getString("SEAM_ANNOTATIONS_NAME"); //$NON-NLS-1$
+ public static final String SCOPE_ANNOTATION_TYPE = SEAM_ANNOTATION_TYPE_PREFIX +
SeamCoreMessages.getString("SEAM_ANNOTATIONS_SCOPE"); //$NON-NLS-1$
+ public static final String INSTALL_ANNOTATION_TYPE = SEAM_ANNOTATION_TYPE_PREFIX +
SeamCoreMessages.getString("SEAM_ANNOTATIONS_INSTALL"); //$NON-NLS-1$
- public static String IN_ANNOTATION_TYPE = SEAM_ANNOTATION_TYPE_PREFIX +
SeamCoreMessages.getString("SEAM_ANNOTATIONS_IN"); //$NON-NLS-1$
- public static String OUT_ANNOTATION_TYPE = SEAM_ANNOTATION_TYPE_PREFIX +
SeamCoreMessages.getString("SEAM_ANNOTATIONS_OUT"); //$NON-NLS-1$
- public static String DATA_MODEL_ANNOTATION_TYPE = SEAM_ANNOTATION_TYPE_PREFIX +
"datamodel.DataModel"; //$NON-NLS-1$
- public static String DATA_MODEL_SELECTION_ANNOTATION_TYPE = SEAM_ANNOTATION_TYPE_PREFIX
+ "datamodel.DataModelSelection"; //$NON-NLS-1$
- public static String DATA_MODEL_SELECTION_INDEX_ANNOTATION_TYPE =
SEAM_ANNOTATION_TYPE_PREFIX + "datamodel.DataModelSelectionIndex";
//$NON-NLS-1$
+ public static final String IN_ANNOTATION_TYPE = SEAM_ANNOTATION_TYPE_PREFIX +
SeamCoreMessages.getString("SEAM_ANNOTATIONS_IN"); //$NON-NLS-1$
+ public static final String OUT_ANNOTATION_TYPE = SEAM_ANNOTATION_TYPE_PREFIX +
SeamCoreMessages.getString("SEAM_ANNOTATIONS_OUT"); //$NON-NLS-1$
+ public static final String DATA_MODEL_ANNOTATION_TYPE = SEAM_ANNOTATION_TYPE_PREFIX +
"datamodel.DataModel"; //$NON-NLS-1$
+ public static final String DATA_MODEL_SELECTION_ANNOTATION_TYPE =
SEAM_ANNOTATION_TYPE_PREFIX + "datamodel.DataModelSelection"; //$NON-NLS-1$
+ public static final String DATA_MODEL_SELECTION_INDEX_ANNOTATION_TYPE =
SEAM_ANNOTATION_TYPE_PREFIX + "datamodel.DataModelSelectionIndex";
//$NON-NLS-1$
- public static String CREATE_ANNOTATION_TYPE = SEAM_ANNOTATION_TYPE_PREFIX +
SeamCoreMessages.getString("SEAM_ANNOTATIONS_CREATE"); //$NON-NLS-1$
- public static String DESTROY_ANNOTATION_TYPE = SEAM_ANNOTATION_TYPE_PREFIX +
SeamCoreMessages.getString("SEAM_ANNOTATIONS_DESTROY"); //$NON-NLS-1$
- public static String UNWRAP_ANNOTATION_TYPE = SEAM_ANNOTATION_TYPE_PREFIX +
SeamCoreMessages.getString("SEAM_ANNOTATIONS_UNWRAP"); //$NON-NLS-1$
- public static String OBSERVER_ANNOTATION_TYPE = SEAM_ANNOTATION_TYPE_PREFIX +
SeamCoreMessages.getString("SEAM_ANNOTATIONS_OBSERVER"); //$NON-NLS-1$
- public static String REMOVE_ANNOTATION_TYPE = "javax.ejb.Remove";
//$NON-NLS-1$
+ public static final String CREATE_ANNOTATION_TYPE = SEAM_ANNOTATION_TYPE_PREFIX +
SeamCoreMessages.getString("SEAM_ANNOTATIONS_CREATE"); //$NON-NLS-1$
+ public static final String DESTROY_ANNOTATION_TYPE = SEAM_ANNOTATION_TYPE_PREFIX +
SeamCoreMessages.getString("SEAM_ANNOTATIONS_DESTROY"); //$NON-NLS-1$
+ public static final String UNWRAP_ANNOTATION_TYPE = SEAM_ANNOTATION_TYPE_PREFIX +
SeamCoreMessages.getString("SEAM_ANNOTATIONS_UNWRAP"); //$NON-NLS-1$
+ public static final String OBSERVER_ANNOTATION_TYPE = SEAM_ANNOTATION_TYPE_PREFIX +
SeamCoreMessages.getString("SEAM_ANNOTATIONS_OBSERVER"); //$NON-NLS-1$
+ public static final String REMOVE_ANNOTATION_TYPE = "javax.ejb.Remove";
//$NON-NLS-1$
- public static String FACTORY_ANNOTATION_TYPE = SEAM_ANNOTATION_TYPE_PREFIX +
SeamCoreMessages.getString("SEAM_ANNOTATIONS_FACTORY"); //$NON-NLS-1$
+ public static final String FACTORY_ANNOTATION_TYPE = SEAM_ANNOTATION_TYPE_PREFIX +
SeamCoreMessages.getString("SEAM_ANNOTATIONS_FACTORY"); //$NON-NLS-1$
- public static String ROLES_ANNOTATION_TYPE = SEAM_ANNOTATION_TYPE_PREFIX +
SeamCoreMessages.getString("SEAM_ANNOTATIONS_ROLES"); //$NON-NLS-1$
- public static String ROLE_ANNOTATION_TYPE = SEAM_ANNOTATION_TYPE_PREFIX +
SeamCoreMessages.getString("SEAM_ANNOTATIONS_ROLE"); //$NON-NLS-1$
+ public static final String ROLES_ANNOTATION_TYPE = SEAM_ANNOTATION_TYPE_PREFIX +
SeamCoreMessages.getString("SEAM_ANNOTATIONS_ROLES"); //$NON-NLS-1$
+ public static final String ROLE_ANNOTATION_TYPE = SEAM_ANNOTATION_TYPE_PREFIX +
SeamCoreMessages.getString("SEAM_ANNOTATIONS_ROLE"); //$NON-NLS-1$
- public static String ENTITY_ANNOTATION_TYPE = "javax.persistence.Entity";
//$NON-NLS-1$
- public static String STATEFUL_ANNOTATION_TYPE = "javax.ejb.Stateful";
//$NON-NLS-1$
- public static String STATELESS_ANNOTATION_TYPE = "javax.ejb.Stateless";
//$NON-NLS-1$
- public static String MESSAGE_DRIVEN_ANNOTATION_TYPE =
"javax.ejb.MessageDriven"; //$NON-NLS-1$
+ public static final String ENTITY_ANNOTATION_TYPE =
"javax.persistence.Entity"; //$NON-NLS-1$
+ public static final String STATEFUL_ANNOTATION_TYPE = "javax.ejb.Stateful";
//$NON-NLS-1$
+ public static final String STATELESS_ANNOTATION_TYPE = "javax.ejb.Stateless";
//$NON-NLS-1$
+ public static final String MESSAGE_DRIVEN_ANNOTATION_TYPE =
"javax.ejb.MessageDriven"; //$NON-NLS-1$
}