Author: akazakov
Date: 2007-06-29 09:34:14 -0400 (Fri, 29 Jun 2007)
New Revision: 2216
Added:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamVariable.java
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamProject.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProperty.java
Log:
Seam tools model
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamProject.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamProject.java 2007-06-29
13:30:19 UTC (rev 2215)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamProject.java 2007-06-29
13:34:14 UTC (rev 2216)
@@ -58,4 +58,21 @@
* @param component
*/
public void removeComponent(ISeamComponent component);
+
+ /**
+ * @return all seam variables from all contexts.
+ */
+ public Set<ISeamVariable> getVariables();
+
+ /**
+ * @param name
+ * @return all seam variables by name from all contexts
+ */
+ public Set<ISeamVariable> getVariablesByName(String name);
+
+ /**
+ * @param name
+ * @return all seam variables from specific context
+ */
+ public Set<ISeamVariable> getVariablesByScope(ScopeType scope);
}
\ No newline at end of file
Added:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamVariable.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamVariable.java
(rev 0)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamVariable.java 2007-06-29
13:34:14 UTC (rev 2216)
@@ -0,0 +1,24 @@
+ /*******************************************************************************
+ * 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
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.seam.core;
+
+/**
+ * @author Alexey Kazakov
+ */
+public interface ISeamVariable {
+
+ /**
+ * @return name
+ */
+ public String getName();
+
+// TODO we should hold a link to source object (Outjection, Component, etc.)
+}
\ No newline at end of file
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java 2007-06-29
13:30:19 UTC (rev 2215)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java 2007-06-29
13:34:14 UTC (rev 2216)
@@ -21,10 +21,10 @@
import org.eclipse.core.runtime.IPath;
import org.jboss.tools.seam.core.ISeamComponent;
import org.jboss.tools.seam.core.ISeamProject;
+import org.jboss.tools.seam.core.ISeamVariable;
import org.jboss.tools.seam.core.ScopeType;
/**
- *
* @author glory
*/
public class SeamProject implements ISeamProject {
@@ -148,4 +148,28 @@
// TODO Auto-generated method stub
}
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.seam.core.ISeamProject#getVariables()
+ */
+ public Set<ISeamVariable> getVariables() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.seam.core.ISeamProject#getVariablesByName(java.lang.String)
+ */
+ public Set<ISeamVariable> getVariablesByName(String name) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see
org.jboss.tools.seam.core.ISeamProject#getVariablesByScope(org.jboss.tools.seam.core.ScopeType)
+ */
+ public Set<ISeamVariable> getVariablesByScope(ScopeType scope) {
+ // TODO Auto-generated method stub
+ return null;
+ }
}
\ No newline at end of file
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProperty.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProperty.java 2007-06-29
13:30:19 UTC (rev 2215)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProperty.java 2007-06-29
13:34:14 UTC (rev 2216)
@@ -11,6 +11,7 @@
package org.jboss.tools.seam.internal.core;
import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IResource;
import org.jboss.tools.seam.core.ISeamProperty;
public class SeamProperty<T extends Object> implements ISeamProperty<T> {
@@ -68,9 +69,9 @@
}
/* (non-Javadoc)
- * @see org.jboss.tools.seam.core.ISeamXmlElement#getSourceFile()
+ * @see org.jboss.tools.seam.core.ISeamXmlElement#getResource()
*/
- public IFile getSourceFile() {
+ public IResource getResource() {
// TODO Auto-generated method stub
return null;
}