Author: akazakov
Date: 2009-11-25 03:21:44 -0500 (Wed, 25 Nov 2009)
New Revision: 18815
Added:
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/text/INodeReference.java
Removed:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/IXmlElementReference.java
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/IBeanManager.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4943
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/IBeanManager.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/IBeanManager.java 2009-11-24
21:14:41 UTC (rev 18814)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/IBeanManager.java 2009-11-25
08:21:44 UTC (rev 18815)
@@ -14,6 +14,7 @@
import java.util.Set;
import org.eclipse.jdt.core.IType;
+import org.jboss.tools.common.text.INodeReference;
/**
* @author Alexey Kazakov
@@ -83,7 +84,7 @@
* @return the source reference to <class>...</class> element of
* <alternatives> of beans.xml.
*/
- List<IXmlElementReference> getAlternativeClasses();
+ List<INodeReference> getAlternativeClasses();
/**
* Returns the source reference to <stereotype>...</stereotype> element of
@@ -95,7 +96,7 @@
* @return the source reference to <stereotype>...</stereotype> element of
* <alternatives> of beans.xml.
*/
- List<IXmlElementReference> getAlternativeStereotypes();
+ List<INodeReference> getAlternativeStereotypes();
/**
* Returns the source reference to <stereotype>...</stereotype> or
<class>...<class> element of
@@ -108,7 +109,7 @@
* @return the source reference to <stereotype>...</stereotype> or
<class>...</class> element of
* <alternatives> of beans.xml by its full qualified type name
*/
- List<IXmlElementReference> getAlternatives(String fullQualifiedTypeName);
+ List<INodeReference> getAlternatives(String fullQualifiedTypeName);
/**
* Returns the source reference to <class>...</class> element of
@@ -120,7 +121,7 @@
* @return the source reference to <class>...</class> element of
* <decorators> of beans.xml.
*/
- List<IXmlElementReference> getDecoratorClasses();
+ List<INodeReference> getDecoratorClasses();
/**
* Returns the source reference to <class>...</class> element of
@@ -132,5 +133,5 @@
* @return the source reference to <class>...</class> element of
* <decorators> of beans.xml by its full qualified type name.
*/
- List<IXmlElementReference> getDecoratorClasses(String fullQualifiedTypeName);
+ List<INodeReference> getDecoratorClasses(String fullQualifiedTypeName);
}
\ No newline at end of file
Deleted:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/IXmlElementReference.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/IXmlElementReference.java 2009-11-24
21:14:41 UTC (rev 18814)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/IXmlElementReference.java 2009-11-25
08:21:44 UTC (rev 18815)
@@ -1,38 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 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.cdi.core;
-
-import org.jboss.tools.common.text.ITextSourceReference;
-
-/**
- * Represents a reference to XML element. For example there is
- * <class>
- * org.mycompany.Logger
- * </class>
- * then getBody() will return "org.mycompany.Logger"
- * and getStartPosition() will return the offset of the trimmed value (the index of
"o")
- * and getLength() will return the length of "org.mycompany.Logger" string.
- *
- * @author Alexey Kazakov
- */
-public interface IXmlElementReference extends ITextSourceReference {
-
- /**
- * Returns the trimmed string representation of the body of this XML
- * element. For example if this object is reference to <class>
- * org.mycompany.Logger </class> then this method will return
- * "org.mycompany.Logger".
- *
- * @return the trimmed string representation of the body of this XML
- * element.
- */
- String getBody();
-}
\ No newline at end of file
Added:
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/text/INodeReference.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/text/INodeReference.java
(rev 0)
+++
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/text/INodeReference.java 2009-11-25
08:21:44 UTC (rev 18815)
@@ -0,0 +1,39 @@
+/*******************************************************************************
+ * Copyright (c) 2009 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.common.text;
+
+
+/**
+ * Represents a reference to XML node. For example there is
+ * <class>
+ * org.mycompany.Logger
+ * </class>
+ * then getValue() will return "org.mycompany.Logger"
+ * and getStartPosition() will return the offset of the trimmed value (the index of
"o")
+ * and getLength() will return the length of "org.mycompany.Logger" string.
+ *
+ * @author Alexey Kazakov
+ */
+public interface INodeReference extends ITextSourceReference {
+
+ /**
+ * Returns the trimmed string representation of the value of the
+ * node. For example if this object is reference to
+ * <class>
+ * org.mycompany.Logger
+ * </class>
+ * then this method will return "org.mycompany.Logger".
+ *
+ * @return the trimmed string representation of the body of this XML
+ * element.
+ */
+ String getValue();
+}
\ No newline at end of file