JBoss Tools SVN: r15276 - trunk/seam/plugins/org.jboss.tools.seam.core/META-INF.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2009-05-15 08:44:23 -0400 (Fri, 15 May 2009)
New Revision: 15276
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/META-INF/MANIFEST.MF
Log:
https://jira.jboss.org/jira/browse/JBIDE-2808
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/META-INF/MANIFEST.MF
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/META-INF/MANIFEST.MF 2009-05-15 12:43:44 UTC (rev 15275)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/META-INF/MANIFEST.MF 2009-05-15 12:44:23 UTC (rev 15276)
@@ -51,7 +51,8 @@
org.eclipse.jst.j2ee.core,
org.eclipse.jst.jsf.facesconfig,
org.eclipse.jst.common.frameworks,
- org.jboss.tools.common.kb
+ org.jboss.tools.common.kb,
+ org.jboss.tools.jst.web.kb;bundle-version="1.0.0"
Bundle-Version: 2.0.0
Export-Package:
org.jboss.tools.seam.core,
15 years, 4 months
JBoss Tools SVN: r15275 - in trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb: internal and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2009-05-15 08:43:44 -0400 (Fri, 15 May 2009)
New Revision: 15275
Added:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/FaceletContextImpl.java
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/JspContextImpl.java
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/AbstractAttribute.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-2808
Share project "org.jboss.tools.jst.web.kb" into "https://svn.jboss.org/repos/jbosstools"
Added: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/FaceletContextImpl.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/FaceletContextImpl.java (rev 0)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/FaceletContextImpl.java 2009-05-15 12:43:44 UTC (rev 15275)
@@ -0,0 +1,49 @@
+/*******************************************************************************
+ * 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;
+
+import java.util.Map;
+
+import org.jboss.tools.jst.web.kb.IFaceletPageContext;
+
+/**
+ * Facelet page context
+ * @author Alexey Kazakov
+ */
+public class FaceletContextImpl extends JspContextImpl implements IFaceletPageContext {
+
+ private IFaceletPageContext parentContext;
+ private Map<String, String> params;
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.tools.common.kb.text.FaceletPageContext#getParentContext()
+ */
+ public IFaceletPageContext getParentContext() {
+ return parentContext;
+ }
+
+ public void setParentContext(IFaceletPageContext parentContext) {
+ this.parentContext = parentContext;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.tools.common.kb.text.FaceletPageContext#getParams()
+ */
+ public Map<String, String> getParams() {
+ return params;
+ }
+
+ public void setParams(Map<String, String> params) {
+ this.params = params;
+ }
+}
\ No newline at end of file
Property changes on: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/FaceletContextImpl.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/JspContextImpl.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/JspContextImpl.java (rev 0)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/JspContextImpl.java 2009-05-15 12:43:44 UTC (rev 15275)
@@ -0,0 +1,165 @@
+/*******************************************************************************
+ * 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;
+
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Map;
+import java.util.Set;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.jface.text.IDocument;
+import org.eclipse.jface.text.Region;
+import org.jboss.tools.common.el.core.resolver.ELResolver;
+import org.jboss.tools.common.el.core.resolver.ElVarSearcher;
+import org.jboss.tools.common.el.core.resolver.Var;
+import org.jboss.tools.jst.web.kb.IPageContext;
+import org.jboss.tools.jst.web.kb.IResourceBundle;
+import org.jboss.tools.jst.web.kb.taglib.ITagLibrary;
+
+/**
+ * JSP page context
+ * @author Alexey Kazakov
+ */
+public class JspContextImpl implements IPageContext {
+
+ private IFile resource;
+ private IDocument document;
+ private ElVarSearcher varSearcher;
+ private ITagLibrary[] libs;
+ private ELResolver[] elResolvers;
+ private Map<Region, Var[]> vars = new HashMap<Region, Var[]>();
+ private Set<Var> allVars = new HashSet<Var>();
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.tools.common.kb.text.PageContext#getResource()
+ */
+ public IFile getResource() {
+ return resource;
+ }
+
+ public void setResource(IFile resource) {
+ this.resource = resource;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.tools.common.kb.text.PageContext#getLibraries()
+ */
+ public ITagLibrary[] getLibraries() {
+ return libs;
+ }
+
+ public void setLibraries(ITagLibrary[] libs) {
+ this.libs = libs;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.tools.common.kb.text.PageContext#getElResolvers()
+ */
+ public ELResolver[] getElResolvers() {
+ return elResolvers;
+ }
+
+ public void setElResolvers(ELResolver[] elResolvers) {
+ this.elResolvers = elResolvers;
+ }
+
+ private final static Var[] EMPTY_VAR_ARRAY = new Var[0];
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.tools.common.kb.text.PageContext#getVars(int)
+ */
+ public Var[] getVars(int offset) {
+ for (Region region : vars.keySet()) {
+ if(offset>=region.getOffset() && offset<=region.getOffset() + region.getLength()) {
+ return vars.get(region);
+ }
+ }
+ return EMPTY_VAR_ARRAY;
+ }
+
+ /**
+ * Adds new Var to the context
+ * @param region
+ * @param vars
+ */
+ public void addVars(Region region, Var[] vars) {
+ this.vars.put(region, vars);
+ for (int i = 0; i < vars.length; i++) {
+ allVars.add(vars[i]);
+ }
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.tools.common.kb.text.PageContext#getResourceBundles()
+ */
+ public IResourceBundle[] getResourceBundles() {
+ // TODO
+ return null;
+ }
+
+ /**
+ * @return the libs
+ */
+ public ITagLibrary[] getLibs() {
+ return libs;
+ }
+
+ /**
+ * @param libs the libs to set
+ */
+ public void setLibs(ITagLibrary[] libs) {
+ this.libs = libs;
+ }
+
+ /**
+ * @param document the document to set
+ */
+ public void setDocument(IDocument document) {
+ this.document = document;
+ }
+
+ /**
+ * @param varSearcher the varSearcher to set
+ */
+ public void setVarSearcher(ElVarSearcher varSearcher) {
+ this.varSearcher = varSearcher;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.tools.jst.web.kb.PageContext#getDocument()
+ */
+ public IDocument getDocument() {
+ return document;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.tools.common.el.core.resolver.ELContext#getVarSearcher()
+ */
+ public ElVarSearcher getVarSearcher() {
+ return varSearcher;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.tools.common.el.core.resolver.ELContext#getVars()
+ */
+ public Var[] getVars() {
+ return allVars.toArray(new Var[allVars.size()]);
+ }
+}
\ No newline at end of file
Property changes on: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/JspContextImpl.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/AbstractAttribute.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/AbstractAttribute.java (rev 0)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/AbstractAttribute.java 2009-05-15 12:43:44 UTC (rev 15275)
@@ -0,0 +1,100 @@
+/*******************************************************************************
+ * 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;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.jboss.tools.common.el.core.resolver.ELResolver;
+import org.jboss.tools.common.text.TextProposal;
+import org.jboss.tools.jst.web.kb.IPageContext;
+import org.jboss.tools.jst.web.kb.KbQuery;
+import org.jboss.tools.jst.web.kb.taglib.IAttribute;
+
+/**
+ * Abstract implementation of IAttribute
+ * @author Alexey Kazakov
+ */
+public abstract class AbstractAttribute implements IAttribute {
+
+ protected String description;
+ protected String name;
+ protected boolean preferable;
+ protected boolean required;
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.jst.web.kb.taglib.IAttribute#getDescription()
+ */
+ public String getDescription() {
+ return description;
+ }
+
+ /**
+ * @param description the description to set
+ */
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.jst.web.kb.taglib.IAttribute#getName()
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * @param name the name to set
+ */
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.jst.web.kb.taglib.IAttribute#isPreferable()
+ */
+ public boolean isPreferable() {
+ return preferable;
+ }
+
+ /**
+ * @param preferable the preferable to set
+ */
+ public void setPreferable(boolean preferable) {
+ this.preferable = preferable;
+ }
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.jst.web.kb.taglib.IAttribute#isRequired()
+ */
+ public boolean isRequired() {
+ return required;
+ }
+
+ /**
+ * @param required the required to set
+ */
+ public void setRequired(boolean required) {
+ this.required = required;
+ }
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.jst.web.kb.IProposalProcessor#getProposals(org.jboss.tools.jst.web.kb.KbQuery, org.jboss.tools.jst.web.kb.IPageContext)
+ */
+ public TextProposal[] getProposals(KbQuery query, IPageContext context) {
+ List<TextProposal> proposals = new ArrayList<TextProposal>();
+ ELResolver[] resolvers = context.getElResolvers();
+ for (int i = 0; i < resolvers.length; i++) {
+ proposals.addAll(resolvers[i].getCompletions(query.getValue(), false, query.getValue().length(), context));
+ }
+ return proposals.toArray(new TextProposal[proposals.size()]);
+ }
+}
\ No newline at end of file
Property changes on: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/AbstractAttribute.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/AbstractComponent.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/AbstractComponent.java (rev 0)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/AbstractComponent.java 2009-05-15 12:43:44 UTC (rev 15275)
@@ -0,0 +1,242 @@
+/*******************************************************************************
+ * 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;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.jboss.tools.common.text.TextProposal;
+import org.jboss.tools.jst.web.kb.IPageContext;
+import org.jboss.tools.jst.web.kb.KbQuery;
+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;
+
+/**
+ * Abstract implementation of IComponent
+ * @author Alexey Kazakov
+ */
+public abstract class AbstractComponent implements IComponent {
+
+ protected boolean canHaveBody;
+ protected String componentClass;
+ protected String componentType;
+ protected String description;
+ protected String name;
+ protected INameSpace nameSpace;
+ protected Map<String, IAttribute> attributes = new HashMap<String, IAttribute>();
+ protected Map<String, IAttribute> preferableAttributes = new HashMap<String, IAttribute>();
+ protected Map<String, IAttribute> requiredAttributes = new HashMap<String, IAttribute>();
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.jst.web.kb.taglib.IComponent#canHaveBody()
+ */
+ public boolean canHaveBody() {
+ return canHaveBody;
+ }
+
+ /**
+ * @param canHaveBody
+ */
+ public void setCanHaveBody(boolean canHaveBody) {
+ this.canHaveBody = canHaveBody;
+ }
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.jst.web.kb.taglib.IComponent#getAttribute(java.lang.String)
+ */
+ public IAttribute getAttribute(String name) {
+ return attributes.get(name);
+ }
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.jst.web.kb.taglib.IComponent#getAttributes()
+ */
+ public IAttribute[] getAttributes() {
+ synchronized (attributes) {
+ return attributes.values().toArray(new IAttribute[attributes.size()]);
+ }
+ }
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.jst.web.kb.taglib.IComponent#getAttributes(java.lang.String)
+ */
+ public IAttribute[] getAttributes(String nameTemplate) {
+ List<IAttribute> list = new ArrayList<IAttribute>();
+ IAttribute[] atts = getAttributes();
+ for (int i = 0; i < atts.length; i++) {
+ if(atts[i].getName().startsWith(nameTemplate)) {
+ list.add(atts[i]);
+ }
+ }
+ return list.toArray(new IAttribute[list.size()]);
+ }
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.jst.web.kb.taglib.IComponent#getAttributes(org.jboss.tools.jst.web.kb.KbQuery, org.jboss.tools.jst.web.kb.IPageContext)
+ */
+ public IAttribute[] getAttributes(KbQuery query, IPageContext context) {
+ String attrName = null;
+ boolean mask = false;
+ if(query.getType()==KbQuery.Type.ATTRIBUTE_NAME) {
+ attrName = query.getValue();
+ mask = query.isMask();
+ } else if(query.getType()==KbQuery.Type.ATTRIBUTE_VALUE) {
+ attrName = query.getParent();
+ }
+ if(attrName == null) {
+ return null;
+ }
+ if(mask) {
+ return getAttributes(attrName);
+ }
+ return new IAttribute[]{getAttribute(attrName)};
+ }
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.jst.web.kb.taglib.IComponent#getComponentClass()
+ */
+ public String getComponentClass() {
+ return componentClass;
+ }
+
+ /**
+ * @param componentClass the component class name to set
+ */
+ public void setComponentClass(String componentClass) {
+ this.componentClass = componentClass;
+ }
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.jst.web.kb.taglib.IComponent#getComponentType()
+ */
+ public String getComponentType() {
+ return componentType;
+ }
+
+ /**
+ * @param componentType the component type to set
+ */
+ public void setComponentType(String componentType) {
+ this.componentType = componentType;
+ }
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.jst.web.kb.taglib.IComponent#getDescription()
+ */
+ public String getDescription() {
+ return description;
+ }
+
+ /**
+ * @param description the description to set
+ */
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.jst.web.kb.taglib.IComponent#getName()
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * @param name the name to set
+ */
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.jst.web.kb.taglib.IComponent#getNameSpace()
+ */
+ public INameSpace getNameSpace() {
+ return nameSpace;
+ }
+
+ /**
+ * @param nameSpace the name space to set
+ */
+ public void setNameSpace(INameSpace nameSpace) {
+ this.nameSpace = nameSpace;
+ }
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.jst.web.kb.taglib.IComponent#getPreferableAttributes()
+ */
+ public IAttribute[] getPreferableAttributes() {
+ synchronized (preferableAttributes) {
+ return preferableAttributes.values().toArray(new IAttribute[preferableAttributes.size()]);
+ }
+ }
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.jst.web.kb.taglib.IComponent#getRequiredAttributes()
+ */
+ public IAttribute[] getRequiredAttributes() {
+ synchronized (requiredAttributes) {
+ return requiredAttributes.values().toArray(new IAttribute[requiredAttributes.size()]);
+ }
+ }
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.jst.web.kb.IProposalProcessor#getProposals(org.jboss.tools.jst.web.kb.KbQuery, org.jboss.tools.jst.web.kb.IPageContext)
+ */
+ public TextProposal[] getProposals(KbQuery query, IPageContext context) {
+ List<TextProposal> proposals = new ArrayList<TextProposal>();
+ IAttribute[] attributes = getAttributes(query, context);
+ if(query.getType() == KbQuery.Type.ATTRIBUTE_NAME) {
+ for (int i = 0; i < attributes.length; i++) {
+ TextProposal proposal = new TextProposal();
+ proposal.setContextInfo(attributes[i].getDescription());
+ proposal.setReplacementString(attributes[i].getName());
+ proposal.setLabel(attributes[i].getName());
+ proposals.add(proposal);
+ }
+ } else if(query.getType() == KbQuery.Type.ATTRIBUTE_VALUE) {
+ for (int i = 0; i < attributes.length; i++) {
+ TextProposal[] attributeProposals = attributes[i].getProposals(query, context);
+ for (int j = 0; j < attributeProposals.length; j++) {
+ proposals.add(attributeProposals[j]);
+ }
+ }
+ }
+ return proposals.toArray(new TextProposal[proposals.size()]);
+ }
+
+ /**
+ * Adds the attribute to the component.
+ * @param attribute
+ */
+ public void addAttribute(IAttribute attribute) {
+ attributes.put(attribute.getName(), attribute);
+ if(attribute.isPreferable()) {
+ preferableAttributes.put(attribute.getName(), attribute);
+ }
+ if(attribute.isRequired()) {
+ requiredAttributes.put(attribute.getName(), attribute);
+ }
+ }
+
+ /**
+ * Removes the attribute from the component
+ * @param attribute
+ */
+ public void removeAttribute(IAttribute attribute) {
+ attributes.remove(attribute.getName());
+ preferableAttributes.remove(attribute.getName());
+ requiredAttributes.remove(attribute.getName());
+ }
+}
\ No newline at end of file
Property changes on: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/AbstractComponent.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/AbstractTagLib.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/AbstractTagLib.java (rev 0)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/AbstractTagLib.java 2009-05-15 12:43:44 UTC (rev 15275)
@@ -0,0 +1,179 @@
+/*******************************************************************************
+ * 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;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IResource;
+import org.jboss.tools.common.text.TextProposal;
+import org.jboss.tools.jst.web.kb.IPageContext;
+import org.jboss.tools.jst.web.kb.KbQuery;
+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.ITagLibrary;
+
+/**
+ * Abstract implementation of ITagLibrary
+ * @author Alexey Kazakov
+ */
+public abstract class AbstractTagLib implements ITagLibrary {
+
+ protected String uri;
+ protected IFile resource;
+ protected Map<String, IComponent> components = new HashMap<String, IComponent>();
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.jst.web.kb.taglib.TagLibrary#getAllComponents()
+ */
+ public IComponent[] getComponents() {
+ synchronized (components) {
+ return components.values().toArray(new IComponent[components.size()]);
+ }
+ }
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.jst.web.kb.taglib.TagLibrary#getComponent(java.lang.String)
+ */
+ public IComponent getComponent(String name) {
+ return components.get(name);
+ }
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.jst.web.kb.taglib.TagLibrary#getComponents(java.lang.String)
+ */
+ public IComponent[] getComponents(String nameTemplate) {
+ List<IComponent> list = new ArrayList<IComponent>();
+ IComponent[] comps = getComponents();
+ for (int i = 0; i < comps.length; i++) {
+ if(comps[i].getName().startsWith(nameTemplate)) {
+ list.add(comps[i]);
+ }
+ }
+ return list.toArray(new IComponent[list.size()]);
+ }
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.jst.web.kb.taglib.TagLibrary#getComponents(org.jboss.tools.jst.web.kb.KbQuery, org.jboss.tools.jst.web.kb.PageContext)
+ */
+ public IComponent[] getComponents(KbQuery query, IPageContext context) {
+ String tagName = null;
+ boolean mask = false;
+ if(query.getType()==KbQuery.Type.TAG_NAME) {
+ tagName = query.getValue();
+ mask = query.isMask();
+ } else {
+ tagName = query.getLastParentTag();
+ }
+ if(tagName == null) {
+ return null;
+ }
+ if(mask) {
+ return getComponents(tagName);
+ }
+ return new IComponent[]{getComponent(tagName)};
+ }
+
+ /**
+ * Adds component to tag lib.
+ * @param component
+ */
+ public void addComponent(IComponent component) {
+ components.put(component.getName(), component);
+ }
+
+ /**
+ * @param components the components to set
+ */
+ protected void setComponents(Map<String, IComponent> components) {
+ this.components = components;
+ }
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.jst.web.kb.taglib.TagLibrary#getResource()
+ */
+ public IResource getResource() {
+ return resource;
+ }
+
+ /**
+ * @param resource the resource to set
+ */
+ public void setResource(IFile resource) {
+ this.resource = resource;
+ }
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.jst.web.kb.taglib.TagLibrary#getURI()
+ */
+ public String getURI() {
+ return uri;
+ }
+
+ /**
+ * @param uri the URI to set
+ */
+ public void setURI(String uri) {
+ this.uri = uri;
+ }
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.jst.web.kb.ProposalProcessor#getProposals(org.jboss.tools.jst.web.kb.KbQuery, org.jboss.tools.jst.web.kb.PageContext)
+ */
+ public TextProposal[] getProposals(KbQuery query, IPageContext context) {
+ List<TextProposal> proposals = new ArrayList<TextProposal>();
+ IComponent[] components = getComponents(query, context);
+ if(query.getType() == KbQuery.Type.TAG_NAME) {
+ for (int i = 0; i < components.length; i++) {
+ TextProposal proposal = new TextProposal();
+ proposal.setContextInfo(components[i].getDescription());
+ StringBuffer label = new StringBuffer();
+ if(query.getPrefix()!=null) {
+ label.append(query.getPrefix() + KbQuery.PREFIX_SEPARATOR);
+ }
+ label.append(components[i].getName());
+ proposal.setLabel(label.toString());
+
+ IAttribute[] attributes = components[i].getPreferableAttributes();
+ StringBuffer attributeSB = new StringBuffer();
+ for (int j = 0; j < attributes.length; j++) {
+ attributeSB.append(" ").append(attributes[j].getName()).append("=\"\"");
+ }
+ label.append(attributeSB);
+ if(!components[i].canHaveBody()) {
+ label.append(" /");
+ }
+
+ proposal.setReplacementString(label.toString());
+
+ int position = proposal.getReplacementString().indexOf('"');
+ if(position!=-1) {
+ position ++;
+ } else {
+ position = proposal.getReplacementString().length();
+ }
+ proposal.setPosition(position);
+ proposals.add(proposal);
+ }
+ } else {
+ for (int i = 0; i < components.length; i++) {
+ TextProposal[] componentProposals = components[i].getProposals(query, context);
+ for (int j = 0; j < componentProposals.length; j++) {
+ proposals.add(componentProposals[j]);
+ }
+ }
+ }
+ return proposals.toArray(new TextProposal[proposals.size()]);
+ }
+}
\ No newline at end of file
Property changes on: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/AbstractTagLib.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
15 years, 4 months
JBoss Tools SVN: r15274 - in trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb: taglib and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2009-05-15 08:42:35 -0400 (Fri, 15 May 2009)
New Revision: 15274
Added:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/Facet.java
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/IAttribute.java
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/IComponent.java
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/ICustomTagLibrary.java
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/IELFunction.java
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/IFaceletTagLibrary.java
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/IFacesConfigTagLibrary.java
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/INameSpace.java
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/ITLDLibrary.java
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/ITagLibrary.java
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/TagLibriryManager.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2808
Share project "org.jboss.tools.jst.web.kb" into "https://svn.jboss.org/repos/jbosstools"
Added: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/Facet.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/Facet.java (rev 0)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/Facet.java 2009-05-15 12:42:35 UTC (rev 15274)
@@ -0,0 +1,43 @@
+/*******************************************************************************
+ * 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.taglib;
+
+/**
+ * JSF Facet Component
+ * @author Alexey Kazakov
+ */
+public class Facet {
+
+ private String description;
+ private String name;
+
+ /**
+ * @return the description
+ */
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ /**
+ * @return the name
+ */
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+}
\ No newline at end of file
Property changes on: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/Facet.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/IAttribute.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/IAttribute.java (rev 0)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/IAttribute.java 2009-05-15 12:42:35 UTC (rev 15274)
@@ -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.jst.web.kb.taglib;
+
+import org.jboss.tools.jst.web.kb.IProposalProcessor;
+
+/**
+ * @author Alexey Kazakov
+ */
+public interface IAttribute extends IProposalProcessor {
+
+ /**
+ * @return name of attribute
+ */
+ String getName();
+
+ /**
+ * @return description
+ */
+ String getDescription();
+
+ /**
+ * @return true if the attribute is required.
+ */
+ boolean isRequired();
+
+ /**
+ * @return true if the attribute is preferable. E.g. <h:outputText value=""/>
+ */
+ boolean isPreferable();
+}
\ No newline at end of file
Property changes on: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/IAttribute.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/IComponent.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/IComponent.java (rev 0)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/IComponent.java 2009-05-15 12:42:35 UTC (rev 15274)
@@ -0,0 +1,86 @@
+/*******************************************************************************
+ * 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.taglib;
+
+import org.jboss.tools.jst.web.kb.IPageContext;
+import org.jboss.tools.jst.web.kb.IProposalProcessor;
+import org.jboss.tools.jst.web.kb.KbQuery;
+
+/**
+ * @author Alexey Kazakov
+ */
+public interface IComponent extends IProposalProcessor {
+
+ /**
+ * @return name space
+ */
+ INameSpace getNameSpace();
+
+ /**
+ * @return component name
+ */
+ String getName();
+
+ /**
+ * @return description
+ */
+ String getDescription();
+
+ /**
+ * @return true if the tag can have a body
+ */
+ boolean canHaveBody();
+
+ /**
+ * @return the component type
+ */
+ String getComponentType();
+
+ /**
+ * @return the component class name
+ */
+ String getComponentClass();
+
+ /**
+ * @return all attributes of this component
+ */
+ IAttribute[] getAttributes();
+
+ /**
+ * @param nameTemplate
+ * @return attributes with names which start with given template.
+ */
+ IAttribute[] getAttributes(String nameTemplate);
+
+ /**
+ * @return all required attributes of this component
+ */
+ IAttribute[] getRequiredAttributes();
+
+ /**
+ * @return all preferable attributes of this component
+ */
+ IAttribute[] getPreferableAttributes();
+
+ /**
+ * @param name
+ * @return attribute by name
+ */
+ IAttribute getAttribute(String name);
+
+ /**
+ * Return attributes
+ * @param query
+ * @param context
+ * @return
+ */
+ public IAttribute[] getAttributes(KbQuery query, IPageContext context);
+}
\ No newline at end of file
Property changes on: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/IComponent.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/ICustomTagLibrary.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/ICustomTagLibrary.java (rev 0)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/ICustomTagLibrary.java 2009-05-15 12:42:35 UTC (rev 15274)
@@ -0,0 +1,18 @@
+/*******************************************************************************
+ * 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.taglib;
+
+/**
+ * @author Alexey Kazakov
+ */
+public interface ICustomTagLibrary extends ITagLibrary {
+
+}
\ No newline at end of file
Property changes on: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/ICustomTagLibrary.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/IELFunction.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/IELFunction.java (rev 0)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/IELFunction.java 2009-05-15 12:42:35 UTC (rev 15274)
@@ -0,0 +1,27 @@
+/*******************************************************************************
+ * 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.taglib;
+
+/**
+ * @author Alexey Kazakov
+ */
+public interface IELFunction {
+
+ /**
+ * @return the name of EL function
+ */
+ String getName();
+
+ /**
+ * @return the signature
+ */
+ String getFunctionSignature();
+}
\ No newline at end of file
Property changes on: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/IELFunction.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/IFaceletTagLibrary.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/IFaceletTagLibrary.java (rev 0)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/IFaceletTagLibrary.java 2009-05-15 12:42:35 UTC (rev 15274)
@@ -0,0 +1,22 @@
+/*******************************************************************************
+ * 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.taglib;
+
+/**
+ * @author Alexey Kazakov
+ */
+public interface IFaceletTagLibrary extends ITagLibrary {
+
+ /**
+ * @return EL functions
+ */
+ IELFunction[] getFunctions();
+}
\ No newline at end of file
Property changes on: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/IFaceletTagLibrary.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/IFacesConfigTagLibrary.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/IFacesConfigTagLibrary.java (rev 0)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/IFacesConfigTagLibrary.java 2009-05-15 12:42:35 UTC (rev 15274)
@@ -0,0 +1,40 @@
+/*******************************************************************************
+ * 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.taglib;
+
+/**
+ * @author Alexey Kazakov
+ */
+public interface IFacesConfigTagLibrary extends ITagLibrary {
+
+ /**
+ * @param type
+ * @return component by type
+ */
+ IComponent getComponentByType(String type);
+
+ /**
+ * @return all facets of this component
+ */
+ Facet[] getFacets();
+
+ /**
+ * @param nameTemplate
+ * @return facets with names which start with given template.
+ */
+ Facet[] getFacets(String nameTemplate);
+
+ /**
+ * @param name
+ * @return facet by name
+ */
+ Facet getFacet(String name);
+}
\ No newline at end of file
Property changes on: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/IFacesConfigTagLibrary.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/INameSpace.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/INameSpace.java (rev 0)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/INameSpace.java 2009-05-15 12:42:35 UTC (rev 15274)
@@ -0,0 +1,27 @@
+/*******************************************************************************
+ * 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.taglib;
+
+/**
+ * @author Alexey Kazakov
+ */
+public interface INameSpace {
+
+ /**
+ * @return URI
+ */
+ String getURI();
+
+ /**
+ * @return prefix
+ */
+ String getPrefix();
+}
\ No newline at end of file
Property changes on: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/INameSpace.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/ITLDLibrary.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/ITLDLibrary.java (rev 0)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/ITLDLibrary.java 2009-05-15 12:42:35 UTC (rev 15274)
@@ -0,0 +1,32 @@
+/*******************************************************************************
+ * 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.taglib;
+
+/**
+ * @author Alexey Kazakov
+ */
+public interface ITLDLibrary extends ITagLibrary {
+
+ /**
+ * @return version of TLD
+ */
+ String getVersion();
+
+ /**
+ * @return display name
+ */
+ String displayName();
+
+ /**
+ * @return short name
+ */
+ String getShortName();
+}
\ No newline at end of file
Property changes on: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/ITLDLibrary.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/ITagLibrary.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/ITagLibrary.java (rev 0)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/ITagLibrary.java 2009-05-15 12:42:35 UTC (rev 15274)
@@ -0,0 +1,57 @@
+/*******************************************************************************
+ * 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.taglib;
+
+import org.eclipse.core.resources.IResource;
+import org.jboss.tools.jst.web.kb.KbQuery;
+import org.jboss.tools.jst.web.kb.IPageContext;
+import org.jboss.tools.jst.web.kb.IProposalProcessor;
+
+/**
+ * Represents a tag library.
+ * @author Alexey Kazakov
+ */
+public interface ITagLibrary extends IProposalProcessor {
+
+ /**
+ * @return URI of the tag lib.
+ */
+ String getURI();
+
+ /**
+ * @return resource of this tag lib.
+ */
+ IResource getResource();
+
+ /**
+ * @return all tags
+ */
+ IComponent[] getComponents();
+
+ /**
+ * @param nameTemplate
+ * @return tags with names which start with given template
+ */
+ IComponent[] getComponents(String nameTemplate);
+
+ /**
+ * @param name
+ * @return tag by name
+ */
+ IComponent getComponent(String name);
+
+ /**
+ * @param query
+ * @param context
+ * @return components
+ */
+ public IComponent[] getComponents(KbQuery query, IPageContext context);
+}
\ No newline at end of file
Property changes on: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/ITagLibrary.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/TagLibriryManager.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/TagLibriryManager.java (rev 0)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/TagLibriryManager.java 2009-05-15 12:42:35 UTC (rev 15274)
@@ -0,0 +1,29 @@
+/*******************************************************************************
+ * 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.taglib;
+
+import org.eclipse.core.resources.IFile;
+
+/**
+ * @author Alexey Kazakov
+ */
+public class TagLibriryManager {
+
+ /**
+ * Returns all tag libraries which are available in the page.
+ * @param page
+ * @return
+ */
+ public static ITagLibrary[] getLibraries(IFile page) {
+ //TODO
+ return null;
+ }
+}
\ No newline at end of file
Property changes on: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/taglib/TagLibriryManager.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
15 years, 4 months
JBoss Tools SVN: r15273 - trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/kb/taglib.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2009-05-15 08:29:17 -0400 (Fri, 15 May 2009)
New Revision: 15273
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/kb/taglib/Facet.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2808
Share project "org.jboss.tools.jst.web.kb" into "https://svn.jboss.org/repos/jbosstools"
Modified: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/kb/taglib/Facet.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/kb/taglib/Facet.java 2009-05-15 12:24:51 UTC (rev 15272)
+++ trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/kb/taglib/Facet.java 2009-05-15 12:29:17 UTC (rev 15273)
@@ -17,7 +17,7 @@
public class Facet {
private String description;
- private String name;
+ private String name;
/**
* @return the description
15 years, 4 months
JBoss Tools SVN: r15271 - in trunk/jst/plugins/org.jboss.tools.jst.web.kb: .settings and 9 other directories.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2009-05-15 08:18:47 -0400 (Fri, 15 May 2009)
New Revision: 15271
Added:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/.classpath
trunk/jst/plugins/org.jboss.tools.jst.web.kb/.project
trunk/jst/plugins/org.jboss.tools.jst.web.kb/.settings/
trunk/jst/plugins/org.jboss.tools.jst.web.kb/.settings/org.eclipse.jdt.core.prefs
trunk/jst/plugins/org.jboss.tools.jst.web.kb/META-INF/
trunk/jst/plugins/org.jboss.tools.jst.web.kb/META-INF/MANIFEST.MF
trunk/jst/plugins/org.jboss.tools.jst.web.kb/about.html
trunk/jst/plugins/org.jboss.tools.jst.web.kb/build.properties
trunk/jst/plugins/org.jboss.tools.jst.web.kb/plugin.properties
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/Activator.java
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/IFaceletPageContext.java
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/IPageContext.java
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/IProposalProcessor.java
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/IResourceBundle.java
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/KbQuery.java
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageContextFactory.java
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageProcessor.java
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/FaceletContextImpl.java
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/JspContextImpl.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2808
Share project "org.jboss.tools.jst.web.kb" into "https://svn.jboss.org/repos/jbosstools"
Added: trunk/jst/plugins/org.jboss.tools.jst.web.kb/.classpath
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/.classpath (rev 0)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/.classpath 2009-05-15 12:18:47 UTC (rev 15271)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Property changes on: trunk/jst/plugins/org.jboss.tools.jst.web.kb/.classpath
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/plugins/org.jboss.tools.jst.web.kb/.project
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/.project (rev 0)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/.project 2009-05-15 12:18:47 UTC (rev 15271)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.jst.web.kb</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Property changes on: trunk/jst/plugins/org.jboss.tools.jst.web.kb/.project
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/plugins/org.jboss.tools.jst.web.kb/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/.settings/org.eclipse.jdt.core.prefs 2009-05-15 12:18:47 UTC (rev 15271)
@@ -0,0 +1,8 @@
+#Fri May 15 15:20:06 MSD 2009
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
Property changes on: trunk/jst/plugins/org.jboss.tools.jst.web.kb/.settings/org.eclipse.jdt.core.prefs
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: 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 (rev 0)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/META-INF/MANIFEST.MF 2009-05-15 12:18:47 UTC (rev 15271)
@@ -0,0 +1,16 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %Bundle-Name.0
+Bundle-SymbolicName: org.jboss.tools.jst.web.kb;singleton:=true
+Bundle-Version: 1.0.0
+Bundle-Activator: org.jboss.tools.jst.web.kb.Activator
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime,
+ org.jboss.tools.jst.web;bundle-version="2.0.0",
+ org.jboss.tools.common.el.core;bundle-version="2.0.0",
+ org.eclipse.jface.text;bundle-version="3.5.0"
+Bundle-ActivationPolicy: lazy
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Bundle-Vendor: %providerName
+Export-Package: org.jboss.tools.jst.web.kb,
+ org.jboss.tools.jst.web.kb.taglib
Property changes on: trunk/jst/plugins/org.jboss.tools.jst.web.kb/META-INF/MANIFEST.MF
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/plugins/org.jboss.tools.jst.web.kb/about.html
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/about.html (rev 0)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/about.html 2009-05-15 12:18:47 UTC (rev 15271)
@@ -0,0 +1,34 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<HTML>
+
+<head>
+<title>About</title>
+<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
+</head>
+
+<BODY lang="EN-US">
+
+<H3>About This Content</H3>
+
+<P>©2009 Red Hat, Inc. All rights reserved</P>
+
+<H3>License</H3>
+
+<P>Red Hat Inc., through its JBoss division, makes available all content in this plug-in
+("Content"). Unless otherwise indicated below, the Content is provided to you
+under the terms and conditions of the Eclipse Public License Version 1.0
+("EPL"). A copy of the EPL is available at
+<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>.
+For purposes of the EPL, "Program" will mean the Content.</P>
+
+<P>If you did not receive this Content directly from Red Hat Inc., the
+Content is being redistributed by another party ("Redistributor") and different
+terms and conditions may apply to your use of any object code in the Content.
+Check the Redistributor's license that was provided with the Content. If no such
+license exists, contact the Redistributor. Unless otherwise indicated below, the
+terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at
+ <A href="http://www.jboss.org/tools">http://www.jboss.org/tools</A>.</P>
+
+</BODY>
+</HTML>
\ No newline at end of file
Property changes on: trunk/jst/plugins/org.jboss.tools.jst.web.kb/about.html
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/plugins/org.jboss.tools.jst.web.kb/build.properties
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/build.properties (rev 0)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/build.properties 2009-05-15 12:18:47 UTC (rev 15271)
@@ -0,0 +1,7 @@
+bin.includes = META-INF/,\
+ plugin.properties,\
+ webKb.jar,\
+ about.html
+source.webKb.jar = src/
+output.webKb.jar = bin/
+jars.compile.order = webKb.jar
Property changes on: trunk/jst/plugins/org.jboss.tools.jst.web.kb/build.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/plugins/org.jboss.tools.jst.web.kb/plugin.properties
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/plugin.properties (rev 0)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/plugin.properties 2009-05-15 12:18:47 UTC (rev 15271)
@@ -0,0 +1,4 @@
+providerName=JBoss, a division of Red Hat
+# START NON-TRANSLATABLE
+Bundle-Name.0 = Web KB
+# END NON-TRANSLATABLE
\ No newline at end of file
Property changes on: trunk/jst/plugins/org.jboss.tools.jst.web.kb/plugin.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/Activator.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/Activator.java (rev 0)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/Activator.java 2009-05-15 12:18:47 UTC (rev 15271)
@@ -0,0 +1,50 @@
+package org.jboss.tools.jst.web.kb;
+
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class Activator extends AbstractUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.jboss.tools.jst.web.kb";
+
+ // The shared instance
+ private static Activator plugin;
+
+ /**
+ * The constructor
+ */
+ public Activator() {
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static Activator getDefault() {
+ return plugin;
+ }
+
+}
Property changes on: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/Activator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/IFaceletPageContext.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/IFaceletPageContext.java (rev 0)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/IFaceletPageContext.java 2009-05-15 12:18:47 UTC (rev 15271)
@@ -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;
+
+import java.util.Map;
+
+/**
+ * @author Alexey Kazakov
+ */
+public interface IFaceletPageContext extends IPageContext {
+
+ /**
+ * Returns parent page context. For example if some this facelet page is used in a template then
+ * this method will return a page context for that template.
+ * May return null.
+ * @return
+ */
+ IFaceletPageContext getParentContext();
+
+ /**
+ * Returns parameters which are declared in the parent context and are available within this page.
+ * Key - name of Parameter.
+ * Value - value of Parameter.
+ * @return
+ */
+ Map<String, String> getParams();
+}
\ No newline at end of file
Property changes on: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/IFaceletPageContext.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/IPageContext.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/IPageContext.java (rev 0)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/IPageContext.java 2009-05-15 12:18:47 UTC (rev 15271)
@@ -0,0 +1,55 @@
+/*******************************************************************************
+ * 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;
+
+import org.eclipse.jface.text.IDocument;
+import org.jboss.tools.common.el.core.resolver.ELContext;
+import org.jboss.tools.common.el.core.resolver.ELResolver;
+import org.jboss.tools.common.el.core.resolver.Var;
+import org.jboss.tools.jst.web.kb.taglib.ITagLibrary;
+
+/**
+ * Page context
+ * @author Alexey Kazakov
+ */
+public interface IPageContext extends ELContext {
+
+ /**
+ * Returns libraries which should be used in this context
+ * @return
+ */
+ ITagLibrary[] getLibraries();
+
+ /**
+ * Returns EL Resolvers which are declared for this page
+ * @return
+ */
+ ELResolver[] getElResolvers();
+
+ /**
+ * Returns resource bundles
+ * @return
+ */
+ IResourceBundle[] getResourceBundles();
+
+ /**
+ * Returns IDocument for source file
+ * @return
+ */
+ IDocument getDocument();
+
+ /**
+ * Returns "var" attributes which are available in particular offset.
+ * @param offset
+ * @return
+ */
+ Var[] getVars(int offset);
+}
\ No newline at end of file
Property changes on: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/IPageContext.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/IProposalProcessor.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/IProposalProcessor.java (rev 0)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/IProposalProcessor.java 2009-05-15 12:18:47 UTC (rev 15271)
@@ -0,0 +1,25 @@
+/*******************************************************************************
+ * 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;
+
+import org.jboss.tools.common.text.TextProposal;
+
+/**
+ * @author Alexey Kazakov
+ */
+public interface IProposalProcessor {
+
+ /**
+ * @return proposals
+ */
+ TextProposal[] getProposals(KbQuery query, IPageContext context);
+
+}
\ No newline at end of file
Property changes on: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/IProposalProcessor.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/IResourceBundle.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/IResourceBundle.java (rev 0)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/IResourceBundle.java 2009-05-15 12:18:47 UTC (rev 15271)
@@ -0,0 +1,27 @@
+/*******************************************************************************
+ * 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;
+
+/**
+ * @author Alexey Kazakov
+ */
+public interface IResourceBundle {
+
+ /**
+ * @return var attribute value
+ */
+ String getVar();
+
+ /**
+ * @return basename attribute value
+ */
+ String getBasename();
+}
\ No newline at end of file
Property changes on: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/IResourceBundle.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/KbQuery.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/KbQuery.java (rev 0)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/KbQuery.java 2009-05-15 12:18:47 UTC (rev 15271)
@@ -0,0 +1,175 @@
+/*******************************************************************************
+ * 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;
+
+/**
+ * Query object is used to get info from Page Processors.
+ * @author Alexey Kazakov
+ */
+public class KbQuery {
+
+ public static final String PREFIX_SEPARATOR = ":";
+
+ private int offset;
+ private String uri;
+ private String[] parentTags;
+ private String value;
+ private String stringQuery;
+ private boolean useAsMask;
+ private String prefix;
+ private Type type;
+ private String parent;
+
+ /**
+ * Type of object for which we want to get info
+ * @author Alexey Kazakov
+ */
+ public static enum Type {
+ TEXT,
+ TAG_NAME,
+ ATTRIBUTE_NAME,
+ ATTRIBUTE_VALUE
+ }
+
+ public KbQuery() {
+ }
+
+ /**
+ * URI of tag library
+ * @return
+ */
+ public String getUri() {
+ return uri;
+ }
+
+ public void setUri(String uri) {
+ this.uri = uri;
+ }
+
+ /**
+ * The stack of parent tags
+ * @return
+ */
+ public String[] getParentTags() {
+ return parentTags;
+ }
+
+ /**
+ * @param parentTags the stack of parent tags
+ */
+ public void setParentTags(String[] parentTags) {
+ this.parentTags = parentTags;
+ }
+
+ /**
+ * return the last parent tag
+ */
+ public String getLastParentTag() {
+ if(parentTags.length>0) {
+ return parentTags[parentTags.length-1];
+ }
+ return null;
+ }
+
+ /**
+ * @return the name of parent tag (type==TAG_NAME) or attribute (type==ATTRIBUTE_NAME or type==ATTRIBUTE_VALE) to set
+ */
+ public String getParent() {
+ if(type == Type.TAG_NAME) {
+ return getLastParentTag();
+ }
+ return parent;
+ }
+
+ /**
+ * @param name the name of parent tag or attribute to set
+ */
+ public void setParent(String name) {
+ this.parent = name;
+ }
+
+ /**
+ * Value of query. For example in case of ATTRIBUTE_NAME type it is an attribute name.
+ * @return
+ */
+ public String getValue() {
+ return value;
+ }
+
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+ /**
+ * True if the value is a mask. For example we ask all tags which start with "<h:outputT" then the value "outputT" is a mask.
+ * @return
+ */
+ public boolean isMask() {
+ return useAsMask;
+ }
+
+ public void setMask(boolean useAsMask) {
+ this.useAsMask = useAsMask;
+ }
+
+ /**
+ * Returns type of value
+ * @return
+ */
+ public Type getType() {
+ return type;
+ }
+
+ public void setType(Type type) {
+ this.type = type;
+ }
+
+ /**
+ * @return offset
+ */
+ public int getOffset() {
+ return offset;
+ }
+
+ public void setOffset(int offset) {
+ this.offset = offset;
+ }
+
+ /**
+ * @return the string representation of this query.
+ * In case of tag name this method will return "<h:outputText"
+ * but getValue() will return "outputText".
+ */
+ public String getStringQuery() {
+ return stringQuery;
+ }
+
+ /**
+ * @param stringQuery the stringQuery to set
+ */
+ public void setStringQuery(String stringQuery) {
+ this.stringQuery = stringQuery;
+ }
+
+ /**
+ * @return the tag prefix.
+ */
+ public String getPrefix() {
+ return prefix;
+ }
+
+ /**
+ * @param prefix the prefix to set
+ */
+ public void setPrefix(String prefix) {
+ this.prefix = prefix;
+ }
+}
\ No newline at end of file
Property changes on: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/KbQuery.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageContextFactory.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageContextFactory.java (rev 0)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageContextFactory.java 2009-05-15 12:18:47 UTC (rev 15271)
@@ -0,0 +1,30 @@
+/*******************************************************************************
+ * 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;
+
+import org.eclipse.core.resources.IFile;
+
+/**
+ * @author Alexey Kazakov
+ */
+public class PageContextFactory {
+
+ /**
+ * Creates a page context for given resource and offset.
+ * @param file
+ * @param offset
+ * @return
+ */
+ public static IPageContext createPageContext(IFile file, int offset) {
+ // TODO
+ return null;
+ }
+}
\ No newline at end of file
Property changes on: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageContextFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageProcessor.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageProcessor.java (rev 0)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageProcessor.java 2009-05-15 12:18:47 UTC (rev 15271)
@@ -0,0 +1,89 @@
+/*******************************************************************************
+ * 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;
+
+import java.util.ArrayList;
+
+import org.jboss.tools.common.el.core.resolver.ELResolver;
+import org.jboss.tools.common.text.TextProposal;
+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.ITagLibrary;
+
+/**
+ * @author Alexey Kazakov
+ */
+public class PageProcessor implements IProposalProcessor {
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.tools.jst.web.kb.ProposalProcessor#getProposals(org.jboss.tools.jst.web.kb.KbQuery, org.jboss.tools.jst.web.kb.PageContext)
+ */
+ public TextProposal[] getProposals(KbQuery query, IPageContext context) {
+ ArrayList<TextProposal> proposals = new ArrayList<TextProposal>();
+ ITagLibrary[] libs = context.getLibraries();
+ for (int i = 0; i < libs.length; i++) {
+ TextProposal[] libProposals = libs[i].getProposals(query, context);
+ for (int j = 0; j < libProposals.length; j++) {
+ proposals.add(libProposals[i]);
+ }
+ }
+ if(query.getType() == KbQuery.Type.ATTRIBUTE_VALUE || query.getType() == KbQuery.Type.TEXT) {
+ String value = query.getValue();
+ //TODO convert value to EL string.
+ String elString = value;
+ ELResolver[] resolvers = context.getElResolvers();
+ for (int i = 0; i < resolvers.length; i++) {
+ proposals.addAll(resolvers[i].getCompletions(elString, !query.isMask(), query.getOffset(), context));
+ }
+ }
+
+ return proposals.toArray(new TextProposal[proposals.size()]);
+ }
+
+ /**
+ * Returns components
+ * @param query
+ * @param context
+ * @return components
+ */
+ public IComponent[] getComponents(KbQuery query, IPageContext context) {
+ ArrayList<IComponent> components = new ArrayList<IComponent>();
+ ITagLibrary[] libs = context.getLibraries();
+ for (int i = 0; i < libs.length; i++) {
+ IComponent[] libComponents = libs[i].getComponents(query, context);
+ for (int j = 0; j < libComponents.length; j++) {
+ components.add(libComponents[i]);
+ }
+ }
+ return components.toArray(new IComponent[components.size()]);
+ }
+
+ /**
+ * Returns attributes
+ * @param query
+ * @param context
+ * @return attributes
+ */
+ public IAttribute[] getAttributes(KbQuery query, IPageContext context) {
+ ArrayList<IAttribute> attributes = new ArrayList<IAttribute>();
+ if(query.getType() == KbQuery.Type.ATTRIBUTE_NAME || query.getType() == KbQuery.Type.ATTRIBUTE_VALUE) {
+ IComponent[] components = getComponents(query, context);
+ for (int i = 0; i < components.length; i++) {
+ IAttribute[] libAttributess = components[i].getAttributes(query, context);
+ for (int j = 0; j < libAttributess.length; j++) {
+ attributes.add(libAttributess[i]);
+ }
+ }
+ }
+ return attributes.toArray(new IAttribute[attributes.size()]);
+ }
+}
\ No newline at end of file
Property changes on: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageProcessor.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/FaceletContextImpl.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/FaceletContextImpl.java (rev 0)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/FaceletContextImpl.java 2009-05-15 12:18:47 UTC (rev 15271)
@@ -0,0 +1,49 @@
+/*******************************************************************************
+ * 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;
+
+import java.util.Map;
+
+import org.jboss.tools.jst.web.kb.IFaceletPageContext;
+
+/**
+ * Facelet page context
+ * @author Alexey Kazakov
+ */
+public class FaceletContextImpl extends JspContextImpl implements IFaceletPageContext {
+
+ private IFaceletPageContext parentContext;
+ private Map<String, String> params;
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.tools.common.kb.text.FaceletPageContext#getParentContext()
+ */
+ public IFaceletPageContext getParentContext() {
+ return parentContext;
+ }
+
+ public void setParentContext(IFaceletPageContext parentContext) {
+ this.parentContext = parentContext;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.tools.common.kb.text.FaceletPageContext#getParams()
+ */
+ public Map<String, String> getParams() {
+ return params;
+ }
+
+ public void setParams(Map<String, String> params) {
+ this.params = params;
+ }
+}
\ No newline at end of file
Property changes on: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/FaceletContextImpl.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/JspContextImpl.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/JspContextImpl.java (rev 0)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/JspContextImpl.java 2009-05-15 12:18:47 UTC (rev 15271)
@@ -0,0 +1,165 @@
+/*******************************************************************************
+ * 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;
+
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Map;
+import java.util.Set;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.jface.text.IDocument;
+import org.eclipse.jface.text.Region;
+import org.jboss.tools.common.el.core.resolver.ELResolver;
+import org.jboss.tools.common.el.core.resolver.ElVarSearcher;
+import org.jboss.tools.common.el.core.resolver.Var;
+import org.jboss.tools.jst.web.kb.IPageContext;
+import org.jboss.tools.jst.web.kb.IResourceBundle;
+import org.jboss.tools.jst.web.kb.taglib.ITagLibrary;
+
+/**
+ * JSP page context
+ * @author Alexey Kazakov
+ */
+public class JspContextImpl implements IPageContext {
+
+ private IFile resource;
+ private IDocument document;
+ private ElVarSearcher varSearcher;
+ private ITagLibrary[] libs;
+ private ELResolver[] elResolvers;
+ private Map<Region, Var[]> vars = new HashMap<Region, Var[]>();
+ private Set<Var> allVars = new HashSet<Var>();
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.tools.common.kb.text.PageContext#getResource()
+ */
+ public IFile getResource() {
+ return resource;
+ }
+
+ public void setResource(IFile resource) {
+ this.resource = resource;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.tools.common.kb.text.PageContext#getLibraries()
+ */
+ public ITagLibrary[] getLibraries() {
+ return libs;
+ }
+
+ public void setLibraries(ITagLibrary[] libs) {
+ this.libs = libs;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.tools.common.kb.text.PageContext#getElResolvers()
+ */
+ public ELResolver[] getElResolvers() {
+ return elResolvers;
+ }
+
+ public void setElResolvers(ELResolver[] elResolvers) {
+ this.elResolvers = elResolvers;
+ }
+
+ private final static Var[] EMPTY_VAR_ARRAY = new Var[0];
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.tools.common.kb.text.PageContext#getVars(int)
+ */
+ public Var[] getVars(int offset) {
+ for (Region region : vars.keySet()) {
+ if(offset>=region.getOffset() && offset<=region.getOffset() + region.getLength()) {
+ return vars.get(region);
+ }
+ }
+ return EMPTY_VAR_ARRAY;
+ }
+
+ /**
+ * Adds new Var to the context
+ * @param region
+ * @param vars
+ */
+ public void addVars(Region region, Var[] vars) {
+ this.vars.put(region, vars);
+ for (int i = 0; i < vars.length; i++) {
+ allVars.add(vars[i]);
+ }
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.tools.common.kb.text.PageContext#getResourceBundles()
+ */
+ public IResourceBundle[] getResourceBundles() {
+ // TODO
+ return null;
+ }
+
+ /**
+ * @return the libs
+ */
+ public ITagLibrary[] getLibs() {
+ return libs;
+ }
+
+ /**
+ * @param libs the libs to set
+ */
+ public void setLibs(ITagLibrary[] libs) {
+ this.libs = libs;
+ }
+
+ /**
+ * @param document the document to set
+ */
+ public void setDocument(IDocument document) {
+ this.document = document;
+ }
+
+ /**
+ * @param varSearcher the varSearcher to set
+ */
+ public void setVarSearcher(ElVarSearcher varSearcher) {
+ this.varSearcher = varSearcher;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.tools.jst.web.kb.PageContext#getDocument()
+ */
+ public IDocument getDocument() {
+ return document;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.tools.common.el.core.resolver.ELContext#getVarSearcher()
+ */
+ public ElVarSearcher getVarSearcher() {
+ return varSearcher;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.tools.common.el.core.resolver.ELContext#getVars()
+ */
+ public Var[] getVars() {
+ return allVars.toArray(new Var[allVars.size()]);
+ }
+}
\ No newline at end of file
Property changes on: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/JspContextImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
15 years, 4 months
JBoss Tools SVN: r15269 - in trunk/as/plugins: org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2009-05-15 03:09:19 -0400 (Fri, 15 May 2009)
New Revision: 15269
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/ServerListener.java
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossServerWizardFragment.java
Log:
Fixing broken unit test
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/ServerListener.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/ServerListener.java 2009-05-15 04:47:06 UTC (rev 15268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/ServerListener.java 2009-05-15 07:09:19 UTC (rev 15269)
@@ -49,6 +49,7 @@
}
public void serverAdded(IServer server) {
+ ServerUtil.createStandardFolders(server);
}
public void serverRemoved(IServer server) {
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossServerWizardFragment.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossServerWizardFragment.java 2009-05-15 04:47:06 UTC (rev 15268)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossServerWizardFragment.java 2009-05-15 07:09:19 UTC (rev 15269)
@@ -202,7 +202,6 @@
IServer saved = serverWC.save(false, new NullProgressMonitor());
getTaskModel().putObject(TaskModel.TASK_SERVER, saved);
- ServerUtil.createStandardFolders(saved);
}
private IJBossServerRuntime getRuntime() {
15 years, 4 months
JBoss Tools SVN: r15268 - trunk/jmx/releng.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2009-05-15 00:47:06 -0400 (Fri, 15 May 2009)
New Revision: 15268
Modified:
trunk/jmx/releng/build.properties
Log:
tests.feature
Modified: trunk/jmx/releng/build.properties
===================================================================
--- trunk/jmx/releng/build.properties 2009-05-15 04:44:40 UTC (rev 15267)
+++ trunk/jmx/releng/build.properties 2009-05-15 04:47:06 UTC (rev 15268)
@@ -9,7 +9,7 @@
version=0.2.2
mainFeatureToBuildID=org.jboss.tools.jmx.sdk.feature
-testFeatureToBuildID=org.jboss.tools.jmx.test.feature
+testFeatureToBuildID=org.jboss.tools.jmx.tests.feature
build.steps=buildUpdate,buildTests,generateDigests,test,publish,cleanup
15 years, 4 months
JBoss Tools SVN: r15267 - trunk/jmx/releng.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2009-05-15 00:44:40 -0400 (Fri, 15 May 2009)
New Revision: 15267
Removed:
trunk/jmx/releng/buildlog.latest.txt
Log:
Deleted: trunk/jmx/releng/buildlog.latest.txt
===================================================================
--- trunk/jmx/releng/buildlog.latest.txt 2009-05-15 04:43:57 UTC (rev 15266)
+++ trunk/jmx/releng/buildlog.latest.txt 2009-05-15 04:44:40 UTC (rev 15267)
@@ -1,388 +0,0 @@
-Buildfile: /home/nboldt/eclipse/workspace-jboss/jbosstools-trunk/jmx/releng/build.xml
-run:
-runEclipse:
- [mkdir] Created dir: /tmp/build/N200905142058-JMX/eclipse
-check.ant-contrib:
-get.pde.build.svn:
-get.ant4eclipse:
- [echo] Run /usr/lib/jvm/java/bin/java
- [echo] -enableassertions
- [echo] -jar /home/nboldt/eclipse/workspace-jboss/org.eclipse.releng.basebuilder/plugins/org.eclipse.equinox.launcher_1.0.200.v20090306-1900.jar
- [echo] -application org.eclipse.ant.core.antRunner
- [echo] -f /home/nboldt/eclipse/workspace-jboss/org.eclipse.dash.common.releng/buildAll.xml run
- [echo] -Dprojectid=jbosstools.jmx -DbuildTimestamp=200905142058 -DbuildType=N -Dversion=0.2.2 -DwritableBuildRoot=/tmp/build -DdownloadsDir=/tmp/build/downloads -DthirdPartyJarsDir=/tmp/build/3rdPartyJars -DbuildDir=/tmp/build/N200905142058-JMX -DrelengBuilderDir=/home/nboldt/eclipse/workspace-jboss/jbosstools-trunk/jmx/releng -DrelengCommonBuilderDir=/home/nboldt/eclipse/workspace-jboss/org.eclipse.dash.common.releng -DrelengBaseBuilderDir=/home/nboldt/eclipse/workspace-jboss/org.eclipse.releng.basebuilder -DJAVA_HOME=/usr/lib/jvm/java -DdependencyURLs=http://www.eclipse.org/downloads/download.php?r=1&file=/eclipse/downloads/drops/S-3.5M7-200904302300/eclipse-SDK-3.5M7-linux-gtk.tar.gz -DlocalSourceCheckoutDir=/home/nboldt/eclipse/workspace-jboss/jbosstools-trunk/jmx
- [build] Buildfile: /home/nboldt/eclipse/workspace-jboss/org.eclipse.dash.common.releng/buildAll.xml
- [build] init:
- [build] check.ant-contrib:
- [build] init:
- [build] genBuildCfgInit:
- [build] Trying to override old definition of task echo-timestamp
- [build] projectid2names:
- [build] genBuildCfg:
- [build] Trying to override old definition of task echo-timestamp
- [build] createBuildConfigFile:
- [build] [echo] Created /tmp/build/N200905142058-JMX/build.cfg
- [build] Trying to override old definition of task echo-timestamp
- [build] collectURLs:
- [build] getZip:
- [build] [echo] Found 1 dependency URLs
- [build] [echo] Load properties from /tmp/build/N200905142058-JMX/build.cfg
- [build] create.label.properties:
- [build] [echo] subprojectName = jmx
- [build] [echo] Base OS: linux; Base Window System: gtk
- [build] collectMaps:
- [build] run:
- [build] [echo] Get pde.build.svn
- [build] get.pde.build.svn:
- [build] [echo] Get ant4eclipse
- [build] get.ant4eclipse:
- [build] [echo] buildAll.xml#run :: build.step :: buildUpdate
- [build] buildUpdate:
- [build] buildMasterZip:
- [build] -timestamp:
- [build] [echo] 08:58:30
- [build] init:
- [build] main:
- [build] main:
- [build] preBuild:
- [build] preSetup:
- [build] [mkdir] Created dir: /tmp/build/N200905142058-JMX/eclipse/N200905142058
- [build] copyLocalSourceCheckout:
- [build] [copy] Copying 142 files to /tmp/build/N200905142058-JMX/eclipse/plugins
- [build] [copy] Copying 67 files to /tmp/build/N200905142058-JMX/eclipse/plugins
- [build] getMapFiles:
- [build] [copy] Copying 1 file to /tmp/build/N200905142058-JMX/eclipse
- [build] postSetup:
- [build] [echo] Download, then unpack Eclipse ...
- [build] init:
- [build] stripVersionsDef:
- [build] getDependency:
- [build] getBundle:
- [build] downloadFile:
- [build] unpackBundle:
- [build] unzipFile:
- [build] untarFile:
- [build] [untar] Expanding: /tmp/build/downloads/eclipse-SDK-3.5M7-linux-gtk.tar.gz into /tmp/build/N200905142058-JMX
- [build] unpackDocISV:
- [build] processRepos:
- [build] fetch:
- [build] generate:
- [build] preGenerate:
- [build] allElements:
- [build] allElementsDelegator:
- [build] init:
- [build] generateScript:
- [build] [eclipse.buildScript] Some inter-plug-in dependencies have not been satisfied.
- [build] [eclipse.buildScript] Bundle org.eclipse.core.filesystem:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.core.filesystem_1.2.0.v20090429-1800
- [build] [eclipse.buildScript] Bundle org.eclipse.equinox.frameworkadmin:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.equinox.frameworkadmin_1.0.100.v20090429-2126
- [build] [eclipse.buildScript] Bundle org.jboss.tools.jmx.ui:
- [build] [eclipse.buildScript] Another singleton version selected: org.jboss.tools.jmx.ui_0.2.2
- [build] [eclipse.buildScript] Bundle org.eclipse.ui.intro:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.ui.intro_3.3.0.v20090429_1800
- [build] [eclipse.buildScript] Bundle org.eclipse.jdt.launching:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.jdt.launching_3.5.0.v20090429
- [build] [eclipse.buildScript] Bundle org.eclipse.update.core:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.update.core_3.2.300.v20090429-1625
- [build] [eclipse.buildScript] Bundle org.eclipse.ant.core:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.ant.core_3.2.100.v20090429
- [build] [eclipse.buildScript] Bundle org.eclipse.equinox.p2.metadata.generator:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.equinox.p2.metadata.generator_1.0.100.v20090429-2126
- [build] [eclipse.buildScript] Bundle org.eclipse.ui.browser:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.ui.browser_3.2.300.v20090413
- [build] [eclipse.buildScript] Bundle org.eclipse.jdt:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.jdt_3.5.0.v20090429-1800b
- [build] [eclipse.buildScript] Bundle org.eclipse.equinox.p2.jarprocessor:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.equinox.p2.jarprocessor_1.0.1.v20090429-2126
- [build] [eclipse.buildScript] Bundle org.eclipse.ui.console:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.ui.console_3.4.0.v20090429
- [build] [eclipse.buildScript] Bundle org.eclipse.ui.intro.universal:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.ui.intro.universal_3.2.300.v20090429_1800
- [build] [eclipse.buildScript] Bundle org.eclipse.equinox.p2.ui.sdk:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.equinox.p2.ui.sdk_1.0.100.v20090430-0100
- [build] [eclipse.buildScript] Bundle org.eclipse.equinox.app:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.equinox.app_1.2.0.v20090429-1630
- [build] [eclipse.buildScript] Bundle org.eclipse.sdk:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.sdk_3.5.0.v200904302300
- [build] [eclipse.buildScript] Bundle org.eclipse.swt.gtk.linux.x86:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.swt.gtk.linux.x86_3.5.0.v3545a
- [build] [eclipse.buildScript] Bundle org.eclipse.platform:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.platform_3.3.200.v200904302300
- [build] [eclipse.buildScript] Bundle org.eclipse.equinox.p2.publisher:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.equinox.p2.publisher_1.0.0.v20090429-2126
- [build] [eclipse.buildScript] Bundle org.eclipse.pde:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.pde_3.4.100.v20090429-1800
- [build] [eclipse.buildScript] Bundle org.eclipse.pde.build:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.pde.build_3.5.0.v20090430-1420
- [build] [eclipse.buildScript] Bundle org.eclipse.jdt.debug:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.jdt.debug_3.5.0.v20090429
- [build] [eclipse.buildScript] Bundle org.eclipse.pde.api.tools:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.pde.api.tools_1.0.100.v20090430-1530
- [build] [eclipse.buildScript] Bundle org.eclipse.compare:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.compare_3.5.0.I20090430-0408
- [build] [eclipse.buildScript] Bundle org.eclipse.core.runtime:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.core.runtime_3.5.0.v20090429-1800
- [build] [eclipse.buildScript] Bundle org.jboss.tools.jmx.ui.test.interactive:
- [build] [eclipse.buildScript] Another singleton version selected: org.jboss.tools.jmx.ui.test.interactive_0.2.2
- [build] [eclipse.buildScript] Bundle org.eclipse.pde.junit.runtime:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.pde.junit.runtime_3.4.0.v20090429-1800
- [build] [eclipse.buildScript] Bundle org.eclipse.equinox.registry:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.equinox.registry_3.4.100.v20090429-1630
- [build] [eclipse.buildScript] Bundle org.eclipse.ui.externaltools:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.ui.externaltools_3.2.0.v20090429
- [build] [eclipse.buildScript] Bundle org.eclipse.jdt.junit:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.jdt.junit_3.5.0.v20090429-1800b
- [build] [eclipse.buildScript] Bundle org.eclipse.equinox.common:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.equinox.common_3.5.0.v20090429-1630
- [build] [eclipse.buildScript] Bundle org.eclipse.ui.views.properties.tabbed:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.ui.views.properties.tabbed_3.5.0.I20090429-1800
- [build] [eclipse.buildScript] Bundle org.eclipse.equinox.p2.repository.tools:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.equinox.p2.repository.tools_1.0.0.v20090429-2126
- [build] [eclipse.buildScript] Bundle org.eclipse.core.net:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.core.net_1.2.0.I20090430-0408
- [build] [eclipse.buildScript] Bundle org.eclipse.equinox.p2.touchpoint.eclipse:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.equinox.p2.touchpoint.eclipse_1.0.100.v20090429-2126
- [build] [eclipse.buildScript] Bundle org.eclipse.jdt.core.manipulation:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.jdt.core.manipulation_1.3.0.v20090429-1800b
- [build] [eclipse.buildScript] Bundle org.eclipse.debug.ui:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.debug.ui_3.5.0.v20090430-1530
- [build] [eclipse.buildScript] Bundle org.eclipse.pde.ua.ui:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.pde.ua.ui_1.0.0.v20090429-1800
- [build] [eclipse.buildScript] Bundle org.eclipse.jdt.apt.ui:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.jdt.apt.ui_3.3.200.v20090429-1720
- [build] [eclipse.buildScript] Bundle org.eclipse.help:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.help_3.4.0.v20090429_1800
- [build] [eclipse.buildScript] Bundle org.eclipse.equinox.p2.exemplarysetup:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.equinox.p2.exemplarysetup_1.0.0.v20090429-2126
- [build] [eclipse.buildScript] Bundle org.eclipse.ui.views:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.ui.views_3.4.0.I20090421-0800
- [build] [eclipse.buildScript] Bundle org.eclipse.pde.ui:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.pde.ui_3.5.0.v20090429-1800
- [build] [eclipse.buildScript] Bundle org.eclipse.ecf.filetransfer:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.ecf.filetransfer_3.0.0.v20090429-2045
- [build] [eclipse.buildScript] Bundle org.eclipse.team.cvs.core:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.team.cvs.core_3.3.200.I20090430-0408
- [build] [eclipse.buildScript] Bundle org.eclipse.core.jobs:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.core.jobs_3.4.100.v20090429-1800
- [build] [eclipse.buildScript] Bundle org.eclipse.core.variables:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.core.variables_3.2.200.v20090428
- [build] [eclipse.buildScript] Bundle org.eclipse.team.ui:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.team.ui_3.5.0.I20090430-0408
- [build] [eclipse.buildScript] Bundle org.eclipse.jdt.compiler.tool:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.jdt.compiler.tool_1.0.100.v_955
- [build] [eclipse.buildScript] Bundle org.eclipse.help.webapp:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.help.webapp_3.4.0.v20090429_1800
- [build] [eclipse.buildScript] Bundle org.eclipse.rcp:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.rcp_3.4.0.v20080507
- [build] [eclipse.buildScript] Bundle org.eclipse.equinox.p2.console:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.equinox.p2.console_1.0.0.v20090429-2126
- [build] [eclipse.buildScript] Bundle org.eclipse.pde.api.tools.ui:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.pde.api.tools.ui_1.0.100.v20090430-1530
- [build] [eclipse.buildScript] Bundle org.eclipse.jdt.debug.ui:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.jdt.debug.ui_3.4.0.v20090429
- [build] [eclipse.buildScript] Bundle org.eclipse.equinox.p2.core:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.equinox.p2.core_1.0.100.v20090429-2126
- [build] [eclipse.buildScript] Bundle org.eclipse.ui:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.ui_3.5.0.I20090430-0800
- [build] [eclipse.buildScript] Bundle org.eclipse.core.contenttype:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.core.contenttype_3.4.0.v20090429-1800
- [build] [eclipse.buildScript] Bundle org.eclipse.jsch.ui:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.jsch.ui_1.1.200.I20090430-0408
- [build] [eclipse.buildScript] Bundle org.eclipse.pde.core:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.pde.core_3.5.0.v20090429-1800
- [build] [eclipse.buildScript] Bundle org.eclipse.equinox.preferences:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.equinox.preferences_3.2.300.v20090429-1630
- [build] [eclipse.buildScript] Bundle org.eclipse.equinox.http.registry:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.equinox.http.registry_1.0.200.v20090429-1630
- [build] [eclipse.buildScript] Bundle org.eclipse.jdt.junit4.runtime:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.jdt.junit4.runtime_1.1.0.v20090429-1800b
- [build] [eclipse.buildScript] Bundle org.eclipse.equinox.simpleconfigurator.manipulator:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.equinox.simpleconfigurator.manipulator_1.0.100.v20090429-2126
- [build] [eclipse.buildScript] Bundle org.eclipse.pde.doc.user:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.pde.doc.user_3.3.0.v20090430-1445
- [build] [eclipse.buildScript] Bundle org.jboss.tools.jmx.core:
- [build] [eclipse.buildScript] Another singleton version selected: org.jboss.tools.jmx.core_0.2.1
- [build] [eclipse.buildScript] Bundle org.eclipse.equinox.p2.metadata:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.equinox.p2.metadata_1.0.0.v20090429-2126
- [build] [eclipse.buildScript] Bundle org.eclipse.update.scheduler:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.update.scheduler_3.2.200.v20081127
- [build] [eclipse.buildScript] Bundle org.eclipse.pde.ds.ui:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.pde.ds.ui_1.0.0.v20090429-1800
- [build] [eclipse.buildScript] Bundle org.eclipse.ui.navigator.resources:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.ui.navigator.resources_3.4.0.I20090429-1800
- [build] [eclipse.buildScript] Bundle org.eclipse.jdt.apt.pluggable.core:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.jdt.apt.pluggable.core_1.0.200.v20090429-1720
- [build] [eclipse.buildScript] Bundle org.eclipse.equinox.p2.updatesite:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.equinox.p2.updatesite_1.0.100.v20090430-1645
- [build] [eclipse.buildScript] Bundle com.ibm.icu:
- [build] [eclipse.buildScript] Another singleton version selected: com.ibm.icu_4.0.1.v20090415
- [build] [eclipse.buildScript] Bundle org.eclipse.equinox.p2.directorywatcher:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.equinox.p2.directorywatcher_1.0.100.v20090429-2126
- [build] [eclipse.buildScript] Bundle org.eclipse.pde.ua.core:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.pde.ua.core_1.0.0.v20090429-1800
- [build] [eclipse.buildScript] Bundle org.eclipse.equinox.p2.artifact.repository:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.equinox.p2.artifact.repository_1.0.100.v20090430-2300
- [build] [eclipse.buildScript] Bundle org.eclipse.equinox.ds:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.equinox.ds_1.1.0.v20090429-1630
- [build] [eclipse.buildScript] Bundle org.eclipse.equinox.p2.garbagecollector:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.equinox.p2.garbagecollector_1.0.100.v20090429-2126
- [build] [eclipse.buildScript] Bundle org.eclipse.jdt.junit.runtime:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.jdt.junit.runtime_3.4.100.v20090429-1800b
- [build] [eclipse.buildScript] Bundle org.eclipse.platform.doc.isv:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.platform.doc.isv_3.5.0.v20090429-1800b
- [build] [eclipse.buildScript] Bundle org.eclipse.ui.workbench:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.ui.workbench_3.5.0.I20090429-1800
- [build] [eclipse.buildScript] Bundle org.eclipse.equinox.simpleconfigurator:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.equinox.simpleconfigurator_1.0.100.v20090429-2126
- [build] [eclipse.buildScript] Bundle org.eclipse.ltk.ui.refactoring:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.ltk.ui.refactoring_3.4.100.v20090429-1800b
- [build] [eclipse.buildScript] Bundle org.eclipse.update.ui:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.update.ui_3.2.200.v20090213
- [build] [eclipse.buildScript] Bundle org.eclipse.equinox.p2.director.app:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.equinox.p2.director.app_1.0.100.v20090429-2126
- [build] [eclipse.buildScript] Bundle org.eclipse.team.core:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.team.core_3.5.0.I20090430-0408
- [build] [eclipse.buildScript] Bundle org.eclipse.cvs:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.cvs_1.0.100.v20090123
- [build] [eclipse.buildScript] Bundle org.eclipse.ecf.provider.filetransfer.httpclient.ssl:
- [build] [eclipse.buildScript] Bundle org.eclipse.equinox.p2.reconciler.dropins:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.equinox.p2.reconciler.dropins_1.0.100.v20090429-2126
- [build] [eclipse.buildScript] Bundle org.eclipse.jdt.compiler.apt:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.jdt.compiler.apt_1.0.200.v20090429-1720
- [build] [eclipse.buildScript] Bundle org.eclipse.help.base:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.help.base_3.4.0.v20090429_1800
- [build] [eclipse.buildScript] Bundle org.eclipse.jdt.core:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.jdt.core_3.5.0.v_955
- [build] [eclipse.buildScript] Bundle org.eclipse.ecf.provider.filetransfer:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.ecf.provider.filetransfer_3.0.0.v20090429-2045
- [build] [eclipse.buildScript] Bundle org.eclipse.jdt.doc.user:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.jdt.doc.user_3.5.0.v20090429-1800b
- [build] [eclipse.buildScript] Bundle org.eclipse.core.net.linux.x86:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.core.net.linux.x86_1.1.0.I20081021
- [build] [eclipse.buildScript] Bundle org.eclipse.ui.workbench.texteditor:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.ui.workbench.texteditor_3.5.0.v20090429-1800b
- [build] [eclipse.buildScript] Bundle org.eclipse.ecf.provider.filetransfer.ssl:
- [build] [eclipse.buildScript] Bundle org.eclipse.core.resources.compatibility:
- [build] [eclipse.buildScript] Bundle org.eclipse.pde.ui.templates:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.pde.ui.templates_3.4.100.v20090429-1800
- [build] [eclipse.buildScript] Bundle org.eclipse.jsch.core:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.jsch.core_1.1.100.I20090430-0408
- [build] [eclipse.buildScript] Bundle org.eclipse.team.cvs.ui:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.team.cvs.ui_3.3.200.I20090430-0408
- [build] [eclipse.buildScript] Bundle org.eclipse.core.expressions:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.core.expressions_3.4.100.v20090429-1800
- [build] [eclipse.buildScript] Bundle org.eclipse.ui.navigator:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.ui.navigator_3.4.0.I20090429-1800
- [build] [eclipse.buildScript] Bundle org.eclipse.equinox.p2.engine:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.equinox.p2.engine_1.0.100.v20090430-0100
- [build] [eclipse.buildScript] Bundle org.eclipse.osgi:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.osgi_3.5.0.v20090429-1630
- [build] [eclipse.buildScript] Bundle org.eclipse.core.filebuffers:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.core.filebuffers_3.5.0.v20090429-1800b
- [build] [eclipse.buildScript] Bundle org.eclipse.core.runtime.compatibility:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.core.runtime.compatibility_3.2.0.v20090413
- [build] [eclipse.buildScript] Bundle org.eclipse.jdt.ui:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.jdt.ui_3.5.0.v20090430-0800
- [build] [eclipse.buildScript] Bundle org.eclipse.ecf:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.ecf_3.0.0.v20090429-2045
- [build] [eclipse.buildScript] Bundle org.eclipse.platform.doc.user:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.platform.doc.user_3.5.0.v20090429-1800b
- [build] [eclipse.buildScript] Bundle org.eclipse.ui.cheatsheets:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.ui.cheatsheets_3.3.200.v20090413
- [build] [eclipse.buildScript] Bundle org.eclipse.ui.workbench.compatibility:
- [build] [eclipse.buildScript] Bundle org.jboss.tools.jmx.ui.test:
- [build] [eclipse.buildScript] Bundle org.eclipse.core.resources:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.core.resources_3.5.0.v20090429-1800
- [build] [eclipse.buildScript] Bundle org.eclipse.equinox.security:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.equinox.security_1.0.100.v20090429-1630
- [build] [eclipse.buildScript] Bundle org.eclipse.team.cvs.ssh2:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.team.cvs.ssh2_3.2.200.I20090430-0408
- [build] [eclipse.buildScript] Bundle org.eclipse.equinox.security.ui:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.equinox.security.ui_1.0.100.v20090429-1630
- [build] [eclipse.buildScript] Bundle org.eclipse.pde.ds.core:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.pde.ds.core_1.0.0.v20090429-1800
- [build] [eclipse.buildScript] Bundle org.eclipse.ui.net:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.ui.net_1.2.0.I20090430-0408
- [build] [eclipse.buildScript] Bundle org.eclipse.search:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.search_3.5.0.v20090429-1800b
- [build] [eclipse.buildScript] Bundle org.eclipse.ui.editors:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.ui.editors_3.5.0.v20090429-1800b
- [build] [eclipse.buildScript] Bundle org.eclipse.equinox.p2.ui:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.equinox.p2.ui_1.0.100.v20090430-0100
- [build] [eclipse.buildScript] Bundle org.eclipse.ant.ui:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.ant.ui_3.4.0.v20090429
- [build] [eclipse.buildScript] Bundle org.eclipse.equinox.launcher.gtk.linux.x86:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.equinox.launcher.gtk.linux.x86_1.0.200.v20090306-1900
- [build] [eclipse.buildScript] Bundle org.eclipse.ecf.provider.filetransfer.httpclient:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.ecf.provider.filetransfer.httpclient_3.0.0.v20090429-2045
- [build] [eclipse.buildScript] Bundle org.eclipse.equinox.p2.touchpoint.natives:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.equinox.p2.touchpoint.natives_1.0.0.v20090429-2126
- [build] [eclipse.buildScript] Bundle org.eclipse.update.core.linux:
- [build] [eclipse.buildScript] Bundle org.eclipse.ui.views.log:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.ui.views.log_1.0.100.v20090429-1800
- [build] [eclipse.buildScript] Bundle org.eclipse.jdt.doc.isv:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.jdt.doc.isv_3.5.0.v20090429-1800b
- [build] [eclipse.buildScript] Bundle org.eclipse.equinox.p2.extensionlocation:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.equinox.p2.extensionlocation_1.0.100.v20090429-2126
- [build] [eclipse.buildScript] Bundle org.eclipse.ui.presentations.r21:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.ui.presentations.r21_3.2.100.I20081007-0800
- [build] [eclipse.buildScript] Bundle org.eclipse.equinox.p2.metadata.repository:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.equinox.p2.metadata.repository_1.0.100.v20090429-2126
- [build] [eclipse.buildScript] Bundle org.eclipse.ui.ide.application:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.ui.ide.application_1.0.100.I20090429-1800
- [build] [eclipse.buildScript] Bundle org.eclipse.jdt.apt.core:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.jdt.apt.core_3.3.200.v20090429-1720
- [build] [eclipse.buildScript] Bundle org.eclipse.equinox.p2.updatechecker:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.equinox.p2.updatechecker_1.1.0.v20090429-2126
- [build] [eclipse.buildScript] Bundle org.eclipse.help.ui:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.help.ui_3.4.0.v20090429_1800
- [build] [eclipse.buildScript] Bundle org.eclipse.ecf.identity:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.ecf.identity_3.0.0.v20090429-2045
- [build] [eclipse.buildScript] Bundle org.eclipse.ltk.core.refactoring:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.ltk.core.refactoring_3.5.0.v20090429-1800b
- [build] [eclipse.buildScript] Bundle org.eclipse.debug.core:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.debug.core_3.5.0.v20090429
- [build] [eclipse.buildScript] Bundle org.eclipse.pde.runtime:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.pde.runtime_3.4.100.v20090429-1800
- [build] [eclipse.buildScript] Bundle org.eclipse.equinox.p2.ui.sdk.scheduler:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.equinox.p2.ui.sdk.scheduler_1.0.0.v20090429-2126
- [build] [eclipse.buildScript] Bundle org.eclipse.update.configurator:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.update.configurator_3.3.0.v20090312
- [build] [eclipse.buildScript] Bundle org.eclipse.equinox.p2.director:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.equinox.p2.director_1.0.100.v20090429-2126
- [build] [eclipse.buildScript] Bundle org.eclipse.core.runtime.compatibility.registry:
- [build] [eclipse.buildScript] Bundle org.eclipse.swt:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.swt_3.5.0.v3545a
- [build] [eclipse.buildScript] Unsatisfied import package org.eclipse.swt.accessibility2_0.0.0.
- [build] [eclipse.buildScript] Unsatisfied import package org.mozilla.xpcom_0.0.0.
- [build] [eclipse.buildScript] Bundle org.eclipse.ui.ide:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.ui.ide_3.5.0.I20090429-1800
- [build] [eclipse.buildScript] Bundle org.eclipse.help.appserver:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.help.appserver_3.1.400.v20090429_1800
- [build] [eclipse.buildScript] Bundle org.eclipse.ecf.ssl:
- [build] [eclipse.buildScript] Bundle org.eclipse.core.filesystem.linux.x86:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.core.filesystem.linux.x86_1.2.0.v20080604-1400
- [build] BUILD FAILED
- [build] [eclipse.buildScript] Bundle org.eclipse.equinox.p2.repository:
- [build] /home/nboldt/eclipse/workspace-jboss/org.eclipse.dash.common.releng/buildAll.xml:309: The following error occurred while executing this line:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.equinox.p2.repository_1.0.0.v20090430-1645
- [build] /home/nboldt/eclipse/workspace-jboss/org.eclipse.dash.common.releng/buildAll.xml:346: The following error occurred while executing this line:
- [build] [eclipse.buildScript] Bundle org.eclipse.equinox.frameworkadmin.equinox:
- [build] [eclipse.buildScript] Another singleton version selected: org.eclipse.equinox.frameworkadmin.equinox_1.0.100.v20090429-2126
- [build] /home/nboldt/eclipse/workspace-jboss/org.eclipse.dash.common.releng/tools/scripts/buildAllHelper.xml:522: The following error occurred while executing this line:
- [build] /home/nboldt/eclipse/workspace-jboss/org.eclipse.dash.common.releng/tools/scripts/buildAllHelper.xml:775: The following error occurred while executing this line:
- [build] /home/nboldt/eclipse/workspace-jboss/org.eclipse.dash.common.releng/build.xml:24: The following error occurred while executing this line:
- [build] /home/nboldt/eclipse/workspace-jboss/org.eclipse.releng.basebuilder/plugins/org.eclipse.pde.build_3.5.0.v20090330/scripts/build.xml:25: The following error occurred while executing this line:
- [build] /home/nboldt/eclipse/workspace-jboss/org.eclipse.releng.basebuilder/plugins/org.eclipse.pde.build_3.5.0.v20090330/scripts/build.xml:77: The following error occurred while executing this line:
- [build] /home/nboldt/eclipse/workspace-jboss/org.eclipse.dash.common.releng/builder/all/customTargets.xml:12: The following error occurred while executing this line:
- [build] /home/nboldt/eclipse/workspace-jboss/org.eclipse.dash.common.releng/builder/all/allElements.xml:16: The following error occurred while executing this line:
- [build] /home/nboldt/eclipse/workspace-jboss/org.eclipse.releng.basebuilder/plugins/org.eclipse.pde.build_3.5.0.v20090330/scripts/genericTargets.xml:96: Unable to find feature: org.jboss.tools.jmx.sdk.feature.
- [build] Total time: 24 seconds
-
-BUILD FAILED
-/home/nboldt/eclipse/workspace-jboss/jbosstools-trunk/jmx/releng/build.xml:52: The following error occurred while executing this line:
-/home/nboldt/eclipse/workspace-jboss/org.eclipse.dash.common.releng/buildAll.xml:269: The following error occurred while executing this line:
-/home/nboldt/eclipse/workspace-jboss/org.eclipse.dash.common.releng/buildAll.xml:288: Java returned: 13
-
-Total time: 28 seconds
15 years, 4 months