click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From take...@apache.org
Subject svn commit: r757336 - /incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/editor/forms/ClickServiceEditor.java
Date Mon, 23 Mar 2009 07:38:59 GMT
Author: takezoe
Date: Mon Mar 23 07:38:58 2009
New Revision: 757336

URL: http://svn.apache.org/viewvc?rev=757336&view=rev
Log:
Adding Click 2.0.1 Support.

Modified:
    incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/editor/forms/ClickServiceEditor.java

Modified: incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/editor/forms/ClickServiceEditor.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/editor/forms/ClickServiceEditor.java?rev=757336&r1=757335&r2=757336&view=diff
==============================================================================
--- incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/editor/forms/ClickServiceEditor.java
(original)
+++ incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/editor/forms/ClickServiceEditor.java
Mon Mar 23 07:38:58 2009
@@ -23,6 +23,7 @@
 import org.apache.click.eclipse.ClickUtils;
 import org.apache.click.eclipse.ui.editor.actions.ElementAppendAction;
 import org.apache.click.eclipse.ui.editor.attrs.IAttributeEditor;
+import org.apache.click.eclipse.ui.editor.attrs.PropertyAttributeEditor;
 import org.apache.click.eclipse.ui.editor.attrs.ServiceClassNameAttributeEditor;
 import org.eclipse.wst.xml.core.internal.provisional.document.IDOMElement;
 
@@ -42,10 +43,14 @@
 				newMenu.add(new ElementAppendAction(ClickPlugin.TAG_TEMPLATE_SERVICE, element, null,
this));
 			}
 		}
+		if(element.getNodeName().equals(ClickPlugin.TAG_LOG_SERVICE) ||
+				element.getNodeName().equals(ClickPlugin.TAG_TEMPLATE_SERVICE)){
+			newMenu.add(new ElementAppendAction(ClickPlugin.TAG_PROPERTY, element, null, this));
+		}
 	}
 
 	protected String[] getAcceptElementNames() {
-		return new String[]{ClickPlugin.TAG_LOG_SERVICE, ClickPlugin.TAG_TEMPLATE_SERVICE};
+		return new String[]{ClickPlugin.TAG_LOG_SERVICE, ClickPlugin.TAG_TEMPLATE_SERVICE, ClickPlugin.TAG_PROPERTY};
 	}
 
 	protected IAttributeEditor getAttributeEditor(String elementName) {
@@ -55,6 +60,9 @@
 		if(elementName.equals(ClickPlugin.TAG_TEMPLATE_SERVICE)){
 			return new ServiceClassNameAttributeEditor("net.sf.click.service.TemplateService");
 		}
+		if(elementName.equals(ClickPlugin.TAG_PROPERTY)){
+			return new PropertyAttributeEditor();
+		}
 		return null;
 	}
 



Mime
View raw message