Author: scabanovich
Date: 2007-07-10 13:22:42 -0400 (Tue, 10 Jul 2007)
New Revision: 2376
Added:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamElement.java
Removed:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamObject.java
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamComponentDeclaration.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamComponentMethod.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamContextVariable.java
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/ISeamProperty.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamObject.java
Log:
EXIN-217 ISeamObject renamed to ISeamElement
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamComponentDeclaration.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamComponentDeclaration.java 2007-07-10
17:10:55 UTC (rev 2375)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamComponentDeclaration.java 2007-07-10
17:22:42 UTC (rev 2376)
@@ -14,7 +14,7 @@
* Represents declaration of seam component.
* @author Alexey Kazakov
*/
-public interface ISeamComponentDeclaration extends ISeamObject, ISeamTextSourceReference
{
+public interface ISeamComponentDeclaration extends ISeamElement, ISeamTextSourceReference
{
/**
* @return name of component.
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamComponentMethod.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamComponentMethod.java 2007-07-10
17:10:55 UTC (rev 2375)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamComponentMethod.java 2007-07-10
17:22:42 UTC (rev 2376)
@@ -15,7 +15,7 @@
* This interface represents only methods with types enumerated in
SeamComponentMethodType
* @author Alexey Kazakov
*/
-public interface ISeamComponentMethod extends ISeamJavaSourceReference, ISeamObject {
+public interface ISeamComponentMethod extends ISeamJavaSourceReference, ISeamElement {
/**
* @return is @ Create method
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamContextVariable.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamContextVariable.java 2007-07-10
17:10:55 UTC (rev 2375)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamContextVariable.java 2007-07-10
17:22:42 UTC (rev 2376)
@@ -14,7 +14,7 @@
* Represents Seam Context Variable.
* @author Alexey Kazakov
*/
-public interface ISeamContextVariable extends ISeamObject {
+public interface ISeamContextVariable extends ISeamElement {
/**
* @return name of context variable
Copied:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamElement.java
(from rev 2369,
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamObject.java)
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamElement.java
(rev 0)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamElement.java 2007-07-10
17:22:42 UTC (rev 2376)
@@ -0,0 +1,47 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Exadel, Inc. and 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:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.seam.core;
+
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.runtime.IPath;
+
+/**
+ * Common interface for objects of seam model.
+ *
+ * @author Viacheslav Kabanovich
+ */
+public interface ISeamElement {
+
+ /**
+ * Returns seam project that contains this object.
+ * @return
+ */
+ public ISeamProject getSeamProject();
+
+ /**
+ * Returns parent object of seam model.
+ * @return
+ */
+ public ISeamElement getParent();
+
+ /**
+ * Returns path of resource that declares this object.
+ * @return
+ */
+ public IPath getSourcePath();
+
+ /**
+ * Returns resource that declares this object.
+ * @return resource
+ */
+ public IResource getResource();
+
+}
Deleted:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamObject.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamObject.java 2007-07-10
17:10:55 UTC (rev 2375)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamObject.java 2007-07-10
17:22:42 UTC (rev 2376)
@@ -1,47 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Exadel, Inc. and 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:
- * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package org.jboss.tools.seam.core;
-
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.runtime.IPath;
-
-/**
- * Common interface for objects of seam model.
- *
- * @author Viacheslav Kabanovich
- */
-public interface ISeamObject {
-
- /**
- * Returns seam project that contains this object.
- * @return
- */
- public ISeamProject getSeamProject();
-
- /**
- * Returns parent object of seam model.
- * @return
- */
- public ISeamObject getParent();
-
- /**
- * Returns path of resource that declares this object.
- * @return
- */
- public IPath getSourcePath();
-
- /**
- * Returns resource that declares this object.
- * @return resource
- */
- public IResource getResource();
-
-}
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-07-10
17:10:55 UTC (rev 2375)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamProject.java 2007-07-10
17:22:42 UTC (rev 2376)
@@ -16,7 +16,7 @@
import org.eclipse.core.runtime.IPath;
import org.jboss.tools.seam.core.event.ISeamProjectChangeListener;
-public interface ISeamProject extends IProjectNature, ISeamObject {
+public interface ISeamProject extends IProjectNature, ISeamElement {
public static String NATURE_ID = "org.jboss.tools.seam.core.seam";
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamProperty.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamProperty.java 2007-07-10
17:10:55 UTC (rev 2375)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamProperty.java 2007-07-10
17:22:42 UTC (rev 2376)
@@ -13,7 +13,7 @@
/**
* A property of Seam Component defined in component.xml or seam.properties files
*/
-public interface ISeamProperty extends ISeamObject, ISeamTextSourceReference {
+public interface ISeamProperty extends ISeamElement, ISeamTextSourceReference {
/**
* @return name of this property
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamObject.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamObject.java 2007-07-10
17:10:55 UTC (rev 2375)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamObject.java 2007-07-10
17:22:42 UTC (rev 2376)
@@ -15,14 +15,14 @@
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.IPath;
-import org.jboss.tools.seam.core.ISeamObject;
+import org.jboss.tools.seam.core.ISeamElement;
import org.jboss.tools.seam.core.ISeamProject;
import org.jboss.tools.seam.core.event.Change;
/**
* @author Viacheslav Kabanovich
*/
-public class SeamObject implements ISeamObject {
+public class SeamObject implements ISeamElement {
/**
* Object that allows to identify this object.
*/
@@ -41,7 +41,7 @@
/**
* Parent seam object in the seam model.
*/
- protected ISeamObject parent;
+ protected ISeamElement parent;
public SeamObject() {}
@@ -93,15 +93,15 @@
* Returns parent object of seam model.
* @return
*/
- public ISeamObject getParent() {
+ public ISeamElement getParent() {
return parent;
}
- public void setParent(ISeamObject parent) {
+ public void setParent(ISeamElement parent) {
this.parent = parent;
}
- protected void adopt(ISeamObject child) {
+ protected void adopt(ISeamElement child) {
((SeamObject)child).setParent(this);
}