Author: scabanovich
Date: 2009-10-08 13:09:02 -0400 (Thu, 08 Oct 2009)
New Revision: 17986
Added:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/scanner/JSF2ResourcesScanner.java
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/composite/
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/composite/CompositeAttribute.java
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/composite/CompositeComponent.java
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/composite/CompositeTagLibrary.java
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/META-INF/MANIFEST.MF
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/KbBuilder.java
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/KbProject.java
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/KbResourceVisitor.java
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/KbXMLStoreConstants.java
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/scanner/LibraryScanner.java
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/AbstractComponent.java
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/AbstractTagLib.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4970
Modified: trunk/jst/plugins/org.jboss.tools.jst.web.kb/META-INF/MANIFEST.MF
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/META-INF/MANIFEST.MF 2009-10-08 16:55:41
UTC (rev 17985)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/META-INF/MANIFEST.MF 2009-10-08 17:09:02
UTC (rev 17986)
@@ -22,4 +22,5 @@
org.jboss.tools.jst.web.kb.internal,
org.jboss.tools.jst.web.kb.internal.scanner,
org.jboss.tools.jst.web.kb.internal.taglib,
- org.jboss.tools.jst.web.kb.taglib
+ org.jboss.tools.jst.web.kb.taglib,
+ org.jboss.tools.jst.web.kb.internal.taglib.composite
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/KbBuilder.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/KbBuilder.java 2009-10-08
16:55:41 UTC (rev 17985)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/KbBuilder.java 2009-10-08
17:09:02 UTC (rev 17986)
@@ -124,7 +124,7 @@
} finally {
sp.fireChanges();
}
-
+ getResourceVisitor().init();
return null;
}
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/KbProject.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/KbProject.java 2009-10-08
16:55:41 UTC (rev 17985)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/KbProject.java 2009-10-08
17:09:02 UTC (rev 17986)
@@ -42,7 +42,9 @@
import org.jboss.tools.jst.web.kb.internal.scanner.LoadedDeclarations;
import org.jboss.tools.jst.web.kb.internal.taglib.AbstractTagLib;
import org.jboss.tools.jst.web.kb.internal.taglib.FaceletTagLibrary;
+import org.jboss.tools.jst.web.kb.internal.taglib.FacesConfigTagLibrary;
import org.jboss.tools.jst.web.kb.internal.taglib.TLDLibrary;
+import org.jboss.tools.jst.web.kb.internal.taglib.composite.CompositeTagLibrary;
import org.jboss.tools.jst.web.kb.taglib.ICustomTagLibrary;
import org.jboss.tools.jst.web.kb.taglib.ITagLibrary;
import org.w3c.dom.Element;
@@ -402,6 +404,10 @@
tagLib = new TLDLibrary();
} else if(KbXMLStoreConstants.CLS_FACELET_LIBRARY.equals(cls)) {
tagLib = new FaceletTagLibrary();
+ } else if(KbXMLStoreConstants.CLS_FACESCONFIG_LIBRARY.equals(cls)) {
+ tagLib = new FacesConfigTagLibrary();
+ } else if(KbXMLStoreConstants.CLS_COMPOSITE_LIBRARY.equals(cls)) {
+ tagLib = new CompositeTagLibrary();
} else {
//consider other cases;
}
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/KbResourceVisitor.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/KbResourceVisitor.java 2009-10-08
16:55:41 UTC (rev 17985)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/KbResourceVisitor.java 2009-10-08
17:09:02 UTC (rev 17986)
@@ -8,6 +8,7 @@
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IResourceVisitor;
+import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.jdt.core.IClasspathEntry;
@@ -19,6 +20,7 @@
import org.jboss.tools.common.model.util.EclipseResourceUtil;
import org.jboss.tools.jst.web.kb.WebKbPlugin;
import org.jboss.tools.jst.web.kb.internal.scanner.IFileScanner;
+import org.jboss.tools.jst.web.kb.internal.scanner.JSF2ResourcesScanner;
import org.jboss.tools.jst.web.kb.internal.scanner.LoadedDeclarations;
import org.jboss.tools.jst.web.kb.internal.scanner.ScannerException;
import org.jboss.tools.jst.web.kb.internal.scanner.XMLScanner;
@@ -34,6 +36,9 @@
IPath[] outs = new IPath[0];
IPath[] srcs = new IPath[0];
IPath webinf = null;
+ IPath jsf2resources = null; //JSF 2
+ IResource jsf2resourcesFolder = null;
+ boolean jsf2resourcesProcessed = false;
public KbResourceVisitor(KbProject p) {
this.p = p;
@@ -48,6 +53,13 @@
IResource wir = (IResource)wio.getAdapter(IResource.class);
if(wir != null) {
webinf = wir.getFullPath();
+ jsf2resources = webinf.removeLastSegments(1).append("resources");
//$NON-NLS-1$
+ IResource rf = ResourcesPlugin.getWorkspace().getRoot().getFolder(jsf2resources);
+ if(rf == null || !rf.exists()) {
+ jsf2resources = null;
+ } else {
+ jsf2resourcesFolder = rf;
+ }
}
}
}
@@ -58,6 +70,10 @@
return this;
}
+ public void init() {
+ jsf2resourcesProcessed = false;
+ }
+
public boolean visit(IResource resource) {
if(resource instanceof IFile) {
IFile f = (IFile)resource;
@@ -99,6 +115,25 @@
return true;
}
}
+ if(jsf2resources != null) {
+ if (jsf2resources.isPrefixOf(path)) {
+ if (jsf2resourcesProcessed) return false;
+ jsf2resourcesProcessed = true;
+ JSF2ResourcesScanner scanner = new JSF2ResourcesScanner();
+ LoadedDeclarations c = null;
+ try {
+ c = scanner.parse((IFolder) jsf2resourcesFolder, p);
+ } catch (ScannerException e) {
+ WebKbPlugin.getDefault().logError(e);
+ }
+ if (c != null)
+ componentsLoaded(c, resource);
+ return false;
+ }
+ if(path.isPrefixOf(jsf2resources)) {
+ return true;
+ }
+ }
if(webinf != null) {
if(webinf.isPrefixOf(path) || path.isPrefixOf(webinf)
|| webinf.removeLastSegments(1).isPrefixOf(path) //Webroot
@@ -106,6 +141,7 @@
return true;
}
}
+
if(resource == resource.getProject()) {
return true;
}
@@ -115,7 +151,7 @@
return true;
}
- void componentsLoaded(LoadedDeclarations c, IFile resource) {
+ void componentsLoaded(LoadedDeclarations c, IResource resource) {
if(c == null || c.getLibraries().size() == 0) return;
p.registerComponents(c, resource.getFullPath());
}
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/KbXMLStoreConstants.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/KbXMLStoreConstants.java 2009-10-08
16:55:41 UTC (rev 17985)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/KbXMLStoreConstants.java 2009-10-08
17:09:02 UTC (rev 17986)
@@ -26,6 +26,7 @@
public String CLS_TLD_LIBRARY = "tld"; //$NON-NLS-1$
public String CLS_FACELET_LIBRARY = "facelet"; //$NON-NLS-1$
public String CLS_FACESCONFIG_LIBRARY = "faces-config"; //$NON-NLS-1$
+ public String CLS_COMPOSITE_LIBRARY = "composite"; //$NON-NLS-1$
public String ATTR_URI = "uri"; //$NON-NLS-1$
public String ATTR_SHORT_NAME = "short-name"; //$NON-NLS-1$
Added:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/scanner/JSF2ResourcesScanner.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/scanner/JSF2ResourcesScanner.java
(rev 0)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/scanner/JSF2ResourcesScanner.java 2009-10-08
17:09:02 UTC (rev 17986)
@@ -0,0 +1,99 @@
+package org.jboss.tools.jst.web.kb.internal.scanner;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IFolder;
+import org.eclipse.core.runtime.IPath;
+import org.jboss.tools.common.model.XModel;
+import org.jboss.tools.common.model.XModelObject;
+import org.jboss.tools.common.model.XModelObjectConstants;
+import org.jboss.tools.common.model.project.ext.IValueInfo;
+import org.jboss.tools.common.model.project.ext.impl.ValueInfo;
+import org.jboss.tools.common.model.util.EclipseResourceUtil;
+import org.jboss.tools.jst.web.kb.IKbProject;
+import org.jboss.tools.jst.web.kb.internal.taglib.AbstractAttribute;
+import org.jboss.tools.jst.web.kb.internal.taglib.composite.CompositeAttribute;
+import org.jboss.tools.jst.web.kb.internal.taglib.composite.CompositeComponent;
+import org.jboss.tools.jst.web.kb.internal.taglib.composite.CompositeTagLibrary;
+import org.jboss.tools.jst.web.model.helpers.InnerModelHelper;
+import org.jboss.tools.jst.web.model.project.ext.store.XMLValueInfo;
+
+public class JSF2ResourcesScanner implements IFileScanner {
+ public static String ATTR_SHORT_DESCRIPTION = "shortDescription";
//$NON-NLS-1$
+ public static String URI_PREFIX = "http://java.sun.com/jsf/composite";
//$NON-NLS-1$
+
+ public JSF2ResourcesScanner() {}
+
+ public boolean isLikelyComponentSource(IFile f) {
+ //only to be invoked on IFolder named 'resources'
+ return false;
+ }
+
+ public boolean isRelevant(IFile resource) {
+ //only to be invoked on IFolder named 'resources'
+ return false;
+ }
+
+ public LoadedDeclarations parse(IFile f, IKbProject sp) throws ScannerException {
+ return null;
+ }
+
+ public LoadedDeclarations parse(IFolder f, IKbProject sp) throws ScannerException {
+ XModel model = InnerModelHelper.createXModel(f.getProject());
+ if(model == null) return null;
+ XModelObject o = EclipseResourceUtil.getObjectByResource(model, f);
+ return parse(o, f.getFullPath(), sp);
+ }
+
+ //XModelObject must represent folder named 'resources' under web root.
+ public LoadedDeclarations parse(XModelObject o, IPath source, IKbProject sp) {
+ if(o == null) return null;
+
+ LoadedDeclarations ds = new LoadedDeclarations();
+ processFolder(o, ds, source, URI_PREFIX);
+ return ds;
+ }
+
+ void processFolder(XModelObject o, LoadedDeclarations ds, IPath source, String
uriPrefix) {
+ CompositeTagLibrary library = null;
+ XModelObject[] cs = o.getChildren();
+ for (XModelObject c: cs) {
+ if(c.getFileType() == XModelObject.FOLDER) {
+ String n = c.getAttributeValue(XModelObjectConstants.ATTR_NAME);
+ processFolder(c, ds, source, uriPrefix + "/" + n); //$NON-NLS-1$
+ }
+ String entity = c.getModelEntity().getName();
+ if("FileJSF2Component".equals(entity)) { //$NON-NLS-1$
+ if(library == null) {
+ library = new CompositeTagLibrary();
+ library.setId(o);
+ library.setURI(createValueInfo(uriPrefix));
+ ds.getLibraries().add(library);
+ }
+
+ CompositeComponent component = new CompositeComponent();
+ component.setId(c);
+ component.setName(createValueInfo(c.getAttributeValue(XModelObjectConstants.ATTR_NAME)));
+ library.addComponent(component);
+
+ XModelObject is = c.getChildByPath("Interface"); //$NON-NLS-1$
+ if(is == null) continue;
+ XModelObject[] as = is.getChildren();
+ for (XModelObject a: as) {
+ CompositeAttribute attr = new CompositeAttribute();
+ attr.setId(a);
+ attr.setName(new XMLValueInfo(a, XModelObjectConstants.ATTR_NAME));
+ attr.setDescription(new XMLValueInfo(a, ATTR_SHORT_DESCRIPTION));
+ attr.setRequired(new XMLValueInfo(a, AbstractAttribute.REQUIRED));
+
+ component.addAttribute(attr);
+ }
+ }
+ }
+ }
+
+ private IValueInfo createValueInfo(String value) {
+ ValueInfo v = new ValueInfo();
+ v.setValue(value);
+ return v;
+ }
+}
Property changes on:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/scanner/JSF2ResourcesScanner.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/scanner/LibraryScanner.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/scanner/LibraryScanner.java 2009-10-08
16:55:41 UTC (rev 17985)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/scanner/LibraryScanner.java 2009-10-08
17:09:02 UTC (rev 17986)
@@ -14,6 +14,7 @@
import org.eclipse.core.runtime.IPath;
import org.jboss.tools.common.model.XModel;
import org.jboss.tools.common.model.XModelObject;
+import org.jboss.tools.common.model.XModelObjectConstants;
import org.jboss.tools.common.model.filesystems.impl.FileSystemsImpl;
import org.jboss.tools.common.model.util.EclipseResourceUtil;
import org.jboss.tools.jst.web.kb.IKbProject;
@@ -81,9 +82,14 @@
LoadedDeclarations ds1 = s.parse(tld, path, sp);
if(ds1 != null) ds.add(ds1);
}
+ if(tld.getFileType() == XModelObject.FOLDER &&
tld.getAttributeValue(XModelObjectConstants.ATTR_NAME).equals("resources")) {
//$NON-NLS-1$
+ JSF2ResourcesScanner s = new JSF2ResourcesScanner();
+ LoadedDeclarations ds1 = s.parse(tld, path, sp);
+ if(ds1 != null) ds.add(ds1);
+ }
}
}
-
+
return ds;
}
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/AbstractComponent.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/AbstractComponent.java 2009-10-08
16:55:41 UTC (rev 17985)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/AbstractComponent.java 2009-10-08
17:09:02 UTC (rev 17986)
@@ -27,6 +27,7 @@
import org.jboss.tools.jst.web.kb.KbQuery;
import org.jboss.tools.jst.web.kb.internal.KbObject;
import org.jboss.tools.jst.web.kb.internal.KbXMLStoreConstants;
+import org.jboss.tools.jst.web.kb.internal.taglib.composite.CompositeAttribute;
import org.jboss.tools.jst.web.kb.taglib.Facet;
import org.jboss.tools.jst.web.kb.taglib.IAttribute;
import org.jboss.tools.jst.web.kb.taglib.IComponent;
@@ -575,6 +576,8 @@
c = new TLDAttribute();
} else if(KbXMLStoreConstants.CLS_FACESCONFIG_LIBRARY.equals(cls)) {
c = new FacesConfigAttribute();
+ } else if(KbXMLStoreConstants.CLS_COMPOSITE_LIBRARY.equals(cls)) {
+ c = new CompositeAttribute();
} else {
//consider other cases;
}
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/AbstractTagLib.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/AbstractTagLib.java 2009-10-08
16:55:41 UTC (rev 17985)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/AbstractTagLib.java 2009-10-08
17:09:02 UTC (rev 17986)
@@ -32,6 +32,7 @@
import org.jboss.tools.jst.web.kb.KbQuery;
import org.jboss.tools.jst.web.kb.internal.KbObject;
import org.jboss.tools.jst.web.kb.internal.KbXMLStoreConstants;
+import org.jboss.tools.jst.web.kb.internal.taglib.composite.CompositeComponent;
import org.jboss.tools.jst.web.kb.taglib.IAttribute;
import org.jboss.tools.jst.web.kb.taglib.IComponent;
import org.jboss.tools.jst.web.kb.taglib.INameSpace;
@@ -532,6 +533,8 @@
c = new FaceletTag();
} else if(KbXMLStoreConstants.CLS_FACESCONFIG_LIBRARY.equals(cls)) {
c = new FacesConfigComponent();
+ } else if(KbXMLStoreConstants.CLS_COMPOSITE_LIBRARY.equals(cls)) {
+ c = new CompositeComponent();
} else {
//consider other cases;
}
Added:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/composite/CompositeAttribute.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/composite/CompositeAttribute.java
(rev 0)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/composite/CompositeAttribute.java 2009-10-08
17:09:02 UTC (rev 17986)
@@ -0,0 +1,45 @@
+/*******************************************************************************
+ * 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.jst.web.kb.internal.taglib.composite;
+
+import java.util.Properties;
+
+import org.jboss.tools.common.model.XModelObject;
+import org.jboss.tools.common.model.project.ext.store.XMLStoreConstants;
+import org.jboss.tools.jst.web.kb.internal.KbXMLStoreConstants;
+import org.jboss.tools.jst.web.kb.internal.scanner.JSF2ResourcesScanner;
+import org.jboss.tools.jst.web.kb.internal.taglib.AbstractAttribute;
+import org.jboss.tools.jst.web.kb.internal.taglib.AbstractComponent;
+import org.jboss.tools.jst.web.model.project.ext.store.XMLValueInfo;
+import org.w3c.dom.Element;
+
+public class CompositeAttribute extends AbstractAttribute {
+
+ public CompositeAttribute clone() throws CloneNotSupportedException {
+ return (CompositeAttribute)super.clone();
+ }
+
+ public String getXMLClass() {
+ return KbXMLStoreConstants.CLS_COMPOSITE_LIBRARY;
+ }
+
+ @Override
+ protected void loadAttributesInfo(Element element, Properties context) {
+ if(context.get(XMLStoreConstants.KEY_MODEL_OBJECT) == getId() && getId() !=
null) {
+ XModelObject a = (XModelObject)getId();
+ attributesInfo.put(XMLStoreConstants.ATTR_NAME, new XMLValueInfo(a,
XMLStoreConstants.ATTR_NAME));
+ attributesInfo.put(AbstractComponent.DESCRIPTION, new XMLValueInfo(a,
JSF2ResourcesScanner.ATTR_SHORT_DESCRIPTION));
+ attributesInfo.put(REQUIRED, new XMLValueInfo(a, REQUIRED));
+ } else {
+ super.loadAttributesInfo(element, context);
+ }
+ }
+}
Property changes on:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/composite/CompositeAttribute.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/composite/CompositeComponent.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/composite/CompositeComponent.java
(rev 0)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/composite/CompositeComponent.java 2009-10-08
17:09:02 UTC (rev 17986)
@@ -0,0 +1,35 @@
+/*******************************************************************************
+ * 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.jst.web.kb.internal.taglib.composite;
+
+import java.util.Properties;
+
+import org.jboss.tools.jst.web.kb.internal.KbXMLStoreConstants;
+import org.jboss.tools.jst.web.kb.internal.taglib.AbstractComponent;
+import org.w3c.dom.Element;
+
+public class CompositeComponent extends AbstractComponent {
+
+ public String getXMLClass() {
+ return KbXMLStoreConstants.CLS_COMPOSITE_LIBRARY;
+ }
+
+ @Override
+ protected void saveAttributesInfo(Element element, Properties context) {
+ super.saveAttributesInfo(element, context);
+ }
+
+ @Override
+ protected void loadAttributesInfo(Element element, Properties context) {
+ super.loadAttributesInfo(element, context);
+ }
+
+}
Property changes on:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/composite/CompositeComponent.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/composite/CompositeTagLibrary.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/composite/CompositeTagLibrary.java
(rev 0)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/composite/CompositeTagLibrary.java 2009-10-08
17:09:02 UTC (rev 17986)
@@ -0,0 +1,18 @@
+package org.jboss.tools.jst.web.kb.internal.taglib.composite;
+
+import org.jboss.tools.jst.web.kb.internal.KbXMLStoreConstants;
+import org.jboss.tools.jst.web.kb.internal.taglib.AbstractTagLib;
+
+public class CompositeTagLibrary extends AbstractTagLib {
+
+ public CompositeTagLibrary() {}
+
+ public CompositeTagLibrary clone() throws CloneNotSupportedException {
+ return (CompositeTagLibrary)super.clone();
+ }
+
+ public String getXMLClass() {
+ return KbXMLStoreConstants.CLS_COMPOSITE_LIBRARY;
+ }
+
+}
Property changes on:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/composite/CompositeTagLibrary.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain