You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2006/10/03 12:02:38 UTC
svn commit: r452386 - in /myfaces/tobago/trunk:
tobago-sandbox/src/main/java/org/apache/myfaces/tobago/taglib/sandbox/
tobago-tool/tobago-tool-annotation/src/main/java/org/apache/myfaces/tobago/apt/annotation/
tobago-tool/tobago-tool-apt/src/main/java/...
Author: bommel
Date: Tue Oct 3 03:02:36 2006
New Revision: 452386
URL: http://svn.apache.org/viewvc?view=rev&rev=452386
Log:
add missing getPackageDeclaraton at visitInterfaceDeclaration
Dummy workaround is not needed anymore
Added:
myfaces/tobago/trunk/tobago-sandbox/src/main/java/org/apache/myfaces/tobago/taglib/sandbox/SeperatorTagDeclaration.java
Removed:
myfaces/tobago/trunk/tobago-tool/tobago-tool-annotation/src/main/java/org/apache/myfaces/tobago/apt/annotation/Dummy.java
Modified:
myfaces/tobago/trunk/tobago-sandbox/src/main/java/org/apache/myfaces/tobago/taglib/sandbox/SeparatorTag.java
myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/AnnotationDeclarationVisitorCollector.java
myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/FaceletAnnotationProcessorFactory.java
myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/FacesConfigAnnotationProcessorFactory.java
myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/TaglibAnnotationProcessorFactory.java
Modified: myfaces/tobago/trunk/tobago-sandbox/src/main/java/org/apache/myfaces/tobago/taglib/sandbox/SeparatorTag.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-sandbox/src/main/java/org/apache/myfaces/tobago/taglib/sandbox/SeparatorTag.java?view=diff&rev=452386&r1=452385&r2=452386
==============================================================================
--- myfaces/tobago/trunk/tobago-sandbox/src/main/java/org/apache/myfaces/tobago/taglib/sandbox/SeparatorTag.java (original)
+++ myfaces/tobago/trunk/tobago-sandbox/src/main/java/org/apache/myfaces/tobago/taglib/sandbox/SeparatorTag.java Tue Oct 3 03:02:36 2006
@@ -33,16 +33,9 @@
* Time: 8:02:34 PM
*/
-/**
- * Renders a separator.
- */
-@Tag(name = "separator")
-@UIComponentTag(rendererType = "Separator",
- uiComponent = "org.apache.myfaces.tobago.component.UISeparator",
- facets = { @Facet(name = "label", description = "This facet contains a UILabel") } )
-public class SeparatorTag extends TobagoTag implements HasIdBindingAndRendered{
+public class SeparatorTag extends TobagoTag implements SeperatorTagDeclaration {
public String getComponentType() {
return UISeparator.COMPONENT_TYPE;
Added: myfaces/tobago/trunk/tobago-sandbox/src/main/java/org/apache/myfaces/tobago/taglib/sandbox/SeperatorTagDeclaration.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-sandbox/src/main/java/org/apache/myfaces/tobago/taglib/sandbox/SeperatorTagDeclaration.java?view=auto&rev=452386
==============================================================================
--- myfaces/tobago/trunk/tobago-sandbox/src/main/java/org/apache/myfaces/tobago/taglib/sandbox/SeperatorTagDeclaration.java (added)
+++ myfaces/tobago/trunk/tobago-sandbox/src/main/java/org/apache/myfaces/tobago/taglib/sandbox/SeperatorTagDeclaration.java Tue Oct 3 03:02:36 2006
@@ -0,0 +1,41 @@
+package org.apache.myfaces.tobago.taglib.sandbox;
+
+/*
+ * Copyright 2002-2006 The Apache Software Foundation.
+ *
+ * Licensed 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.
+ */
+
+import org.apache.myfaces.tobago.taglib.component.TobagoTagDeclaration;
+import org.apache.myfaces.tobago.taglib.decl.HasIdBindingAndRendered;
+import org.apache.myfaces.tobago.apt.annotation.Tag;
+import org.apache.myfaces.tobago.apt.annotation.UIComponentTag;
+import org.apache.myfaces.tobago.apt.annotation.Facet;
+
+/*
+ * Created by IntelliJ IDEA.
+ * User: bommel
+ * Date: Oct 3, 2006
+ * Time: 11:52:52 AM
+ */
+/**
+ * Renders a separator.
+ */
+
+@Tag(name = "separator")
+@UIComponentTag(rendererType = "Separator",
+ uiComponent = "org.apache.myfaces.tobago.component.UISeparator",
+ facets = { @Facet(name = "label", description = "This facet contains a UILabel") } )
+
+public interface SeperatorTagDeclaration extends TobagoTagDeclaration, HasIdBindingAndRendered {
+}
Modified: myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/AnnotationDeclarationVisitorCollector.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/AnnotationDeclarationVisitorCollector.java?view=diff&rev=452386&r1=452385&r2=452386
==============================================================================
--- myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/AnnotationDeclarationVisitorCollector.java (original)
+++ myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/AnnotationDeclarationVisitorCollector.java Tue Oct 3 03:02:36 2006
@@ -71,6 +71,8 @@
}
public void visitInterfaceDeclaration(InterfaceDeclaration d) {
+ // TODO why this needed????
+ visitPackageDeclaration(d.getPackage());
if (!collectedInterfaceDeclations.contains(d)
&& !d.getAnnotationMirrors().isEmpty()) {
collectedInterfaceDeclations.add(d);
Modified: myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/FaceletAnnotationProcessorFactory.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/FaceletAnnotationProcessorFactory.java?view=diff&rev=452386&r1=452385&r2=452386
==============================================================================
--- myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/FaceletAnnotationProcessorFactory.java (original)
+++ myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/FaceletAnnotationProcessorFactory.java Tue Oct 3 03:02:36 2006
@@ -37,8 +37,7 @@
private static final Collection<String> SUPPORTED_ANNOTATIONS
= Collections.unmodifiableCollection(Arrays.asList("org.apache.myfaces.tobago.apt.annotation.Tag",
"org.apache.myfaces.tobago.apt.annotation.TagAttribute", "org.apache.myfaces.tobago.apt.annotation.Taglib",
- "org.apache.myfaces.tobago.apt.annotation.UIComponentTagAttribute",
- "org.apache.myfaces.tobago.apt.annotation.Dummy"));
+ "org.apache.myfaces.tobago.apt.annotation.UIComponentTagAttribute"));
private static final Collection<String> SUPPORTED_OPTIONS = Collections.emptyList();
Modified: myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/FacesConfigAnnotationProcessorFactory.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/FacesConfigAnnotationProcessorFactory.java?view=diff&rev=452386&r1=452385&r2=452386
==============================================================================
--- myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/FacesConfigAnnotationProcessorFactory.java (original)
+++ myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/FacesConfigAnnotationProcessorFactory.java Tue Oct 3 03:02:36 2006
@@ -37,8 +37,7 @@
private static final Collection<String> SUPPORTED_ANNOTATIONS
= Collections.unmodifiableCollection(Arrays.asList("org.apache.myfaces.tobago.apt.annotation.Tag",
"org.apache.myfaces.tobago.apt.annotation.TagAttribute", "org.apache.myfaces.tobago.apt.annotation.Taglib",
- "org.apache.myfaces.tobago.apt.annotation.UIComponentTagAttribute",
- "org.apache.myfaces.tobago.apt.annotation.Dummy"));
+ "org.apache.myfaces.tobago.apt.annotation.UIComponentTagAttribute"));
private static final Collection<String> SUPPORTED_OPTIONS =
Collections.unmodifiableCollection(Arrays.asList(FacesConfigAnnotationVisitor.SOURCE_FACES_CONFIG_KEY,
Modified: myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/TaglibAnnotationProcessorFactory.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/TaglibAnnotationProcessorFactory.java?view=diff&rev=452386&r1=452385&r2=452386
==============================================================================
--- myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/TaglibAnnotationProcessorFactory.java (original)
+++ myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/TaglibAnnotationProcessorFactory.java Tue Oct 3 03:02:36 2006
@@ -36,7 +36,7 @@
private static final Collection<String> SUPPORTED_ANNOTATIONS
= Collections.unmodifiableCollection(Arrays.asList("org.apache.myfaces.tobago.apt.annotation.Tag",
"org.apache.myfaces.tobago.apt.annotation.TagAttribute",
- "org.apache.myfaces.tobago.apt.annotation.Taglib", "org.apache.myfaces.tobago.apt.annotation.Dummy" ));
+ "org.apache.myfaces.tobago.apt.annotation.Taglib" ));
private static final Collection<String> SUPPORTED_OPTIONS = Collections.emptySet();