JBoss Tools SVN: r17210 - in trunk: seam/docs/reference/en/images/create_new_seam and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: smukhina
Date: 2009-08-21 06:44:07 -0400 (Fri, 21 Aug 2009)
New Revision: 17210
Modified:
trunk/portlet/docs/reference/en/images/starting_project/server_runtime_environment.png
trunk/portlet/docs/reference/en/images/starting_project/starting_project_3.png
trunk/seam/docs/reference/en/images/create_new_seam/create_seam_3.png
trunk/seam/docs/reference/en/images/create_new_seam/create_seam_5.png
Log:
https://jira.jboss.org/jira/browse/JBDS-823 JBoss icons new style is updated
Modified: trunk/portlet/docs/reference/en/images/starting_project/server_runtime_environment.png
===================================================================
(Binary files differ)
Modified: trunk/portlet/docs/reference/en/images/starting_project/starting_project_3.png
===================================================================
(Binary files differ)
Modified: trunk/seam/docs/reference/en/images/create_new_seam/create_seam_3.png
===================================================================
(Binary files differ)
Modified: trunk/seam/docs/reference/en/images/create_new_seam/create_seam_5.png
===================================================================
(Binary files differ)
16 years, 4 months
JBoss Tools SVN: r17209 - in trunk: documentation/guides/GettingStartedGuide/en/images/manage and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: smukhina
Date: 2009-08-21 06:41:40 -0400 (Fri, 21 Aug 2009)
New Revision: 17209
Modified:
trunk/as/docs/reference/en/images/runtimes_servers/runtimes_servers_3.png
trunk/as/docs/reference/en/images/runtimes_servers/runtimes_servers_4c.png
trunk/as/docs/reference/en/images/runtimes_servers/runtimes_servers_7.png
trunk/documentation/guides/GettingStartedGuide/en/images/manage/manage_11.png
trunk/documentation/guides/GettingStartedGuide/en/images/manage/manage_15.png
trunk/esb/docs/esb_ref_guide/en/images/esb_project/15AddNew.png
Log:
https://jira.jboss.org/jira/browse/JBDS-823 JBoss icons new style is updated
Modified: trunk/as/docs/reference/en/images/runtimes_servers/runtimes_servers_3.png
===================================================================
(Binary files differ)
Modified: trunk/as/docs/reference/en/images/runtimes_servers/runtimes_servers_4c.png
===================================================================
(Binary files differ)
Modified: trunk/as/docs/reference/en/images/runtimes_servers/runtimes_servers_7.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en/images/manage/manage_11.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en/images/manage/manage_15.png
===================================================================
(Binary files differ)
Modified: trunk/esb/docs/esb_ref_guide/en/images/esb_project/15AddNew.png
===================================================================
(Binary files differ)
16 years, 4 months
JBoss Tools SVN: r17208 - trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/facet.
by jbosstools-commits@lists.jboss.org
Author: dennyxu
Date: 2009-08-21 05:58:17 -0400 (Fri, 21 Aug 2009)
New Revision: 17208
Modified:
trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/facet/JBossESBFacetInstallationDelegate.java
Log:
JBIDE-4654: roll back this patch for now, once the jira JBIDE-4807 get fixed, the patch can be applied again
Modified: trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/facet/JBossESBFacetInstallationDelegate.java
===================================================================
--- trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/facet/JBossESBFacetInstallationDelegate.java 2009-08-21 09:46:00 UTC (rev 17207)
+++ trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/facet/JBossESBFacetInstallationDelegate.java 2009-08-21 09:58:17 UTC (rev 17208)
@@ -11,6 +11,7 @@
package org.jboss.tools.esb.core.facet;
import java.io.ByteArrayInputStream;
+import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import org.eclipse.core.resources.IFile;
@@ -19,7 +20,6 @@
import org.eclipse.core.resources.IProjectDescription;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Path;
@@ -27,7 +27,6 @@
import org.eclipse.jdt.core.IClasspathEntry;
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.jst.common.frameworks.CommonFrameworksPlugin;
import org.eclipse.jst.common.project.facet.WtpUtils;
import org.eclipse.jst.common.project.facet.core.ClasspathHelper;
import org.eclipse.wst.common.componentcore.ComponentCore;
@@ -46,11 +45,12 @@
public void execute(IProject project, IProjectFacetVersion fv,
Object config, IProgressMonitor monitor) throws CoreException {
model = (IDataModel) config;
- final IJavaProject jproj = JavaCore.create(project);
createProjectStructure(project);
+
+
+ final IJavaProject jproj = JavaCore.create(project);
-
// Add WTP natures.
WtpUtils.addNatures(project);
@@ -62,26 +62,31 @@
} catch (Exception e) {
c = ComponentCore.createComponent(project);
}
-
- String outputLoc = jproj.readOutputLocation().removeFirstSegments(1).toString();
+
+
c.create(0, null);
- c.setMetaProperty("java-output-path", outputLoc);
+ //String esbContent = model.getStringProperty(IJBossESBFacetDataModelProperties.ESB_CONTENT_FOLDER);
+ c.setMetaProperty("java-output-path", "/build/classes/");
final IVirtualFolder jbiRoot = c.getRootFolder();
- // Map the esbcontent to root for deploy
- String resourcesFolder = model.getStringProperty(
- IJBossESBFacetDataModelProperties.ESB_CONTENT_FOLDER);
+ // Create directory structure
+ /*String srcFolder = null;
+ srcFolder = model
+ .getStringProperty(IJBossESBFacetDataModelProperties.ESB_SOURCE_FOLDER);
+ jbiRoot.createLink(new Path("/" + srcFolder), 0, null);*/
+ String resourcesFolder = model
+ .getStringProperty(IJBossESBFacetDataModelProperties.ESB_CONTENT_FOLDER);
jbiRoot.createLink(new Path("/" + resourcesFolder), 0, null);
- final IVirtualFolder jsrc = c.getRootFolder().getFolder("/"); //$NON-NLS-1$
- final IClasspathEntry[] cp2 = jproj.getRawClasspath();
- for (int i = 0; i < cp2.length; i++) {
- final IClasspathEntry cpe = cp2[i];
+ final IVirtualFolder jsrc = c.getRootFolder().getFolder("/esbcontent"); //$NON-NLS-1$
+ final IClasspathEntry[] cp = jproj.getRawClasspath();
+ for (int i = 0; i < cp.length; i++) {
+ final IClasspathEntry cpe = cp[i];
if (cpe.getEntryKind() == IClasspathEntry.CPE_SOURCE) {
if( cpe.getPath().removeFirstSegments(1).segmentCount() > 0 )
- jsrc.createLink(new Path(outputLoc), 0, null);
+ jsrc.createLink(cpe.getPath().removeFirstSegments(1), 0, null);
}
}
@@ -97,6 +102,11 @@
ClasspathHelper.removeClasspathEntries(project, fv);
ClasspathHelper.addClasspathEntries(project, fv);
+
+ //String prjName = model.getStringProperty(IFacetDataModelProperties.FACET_PROJECT_NAME);
+ //IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(prjName);
+
+
}
private IFile createJBossESBXML(IFolder folder) throws CoreException{
16 years, 4 months
JBoss Tools SVN: r17207 - in trunk: common/plugins/org.jboss.tools.common.text.ext/META-INF and 4 other directories.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2009-08-21 05:46:00 -0400 (Fri, 21 Aug 2009)
New Revision: 17207
Added:
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/CSSClassHyperlinkPartitioner.java
Modified:
trunk/common/plugins/org.jboss.tools.common.text.ext/META-INF/MANIFEST.MF
trunk/common/plugins/org.jboss.tools.common.text.ext/plugin.xml
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/CSSClassHyperlink.java
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/jsp/JSPCSSClassHyperlinkPartitioner.java
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/plugin.xml
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/text/ext/hyperlink/JSPCSSClassHyperlinkPartitioner.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4775
Modified: trunk/common/plugins/org.jboss.tools.common.text.ext/META-INF/MANIFEST.MF
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.text.ext/META-INF/MANIFEST.MF 2009-08-21 09:08:31 UTC (rev 17206)
+++ trunk/common/plugins/org.jboss.tools.common.text.ext/META-INF/MANIFEST.MF 2009-08-21 09:46:00 UTC (rev 17207)
@@ -27,5 +27,6 @@
org.eclipse.wst.common.modulecore;visibility:=reexport,
org.eclipse.pde.ui,
org.jboss.tools.common.el.core;bundle-version="2.0.0",
- org.eclipse.emf.ecore;bundle-version="2.5.0"
+ org.eclipse.emf.ecore;bundle-version="2.5.0",
+ org.eclipse.wst.css.core
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Modified: trunk/common/plugins/org.jboss.tools.common.text.ext/plugin.xml
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.text.ext/plugin.xml 2009-08-21 09:08:31 UTC (rev 17206)
+++ trunk/common/plugins/org.jboss.tools.common.text.ext/plugin.xml 2009-08-21 09:46:00 UTC (rev 17207)
@@ -9,6 +9,19 @@
point="org.jboss.tools.common.text.ext.hyperlinkPartitioner"
id="org.jboss.tools.common.text.ext.hyperlinkPartitioner"
name="org.jboss.tools.common.text.ext.hyperlinkPartitioner">
+
+ <hyperlinkPartitioner
+ id="org.jboss.tools.common.text.ext.hyperlink.CSSClassHyperlinkPartitioner"
+ class="org.jboss.tools.common.text.ext.hyperlink.CSSClassHyperlinkPartitioner">
+ <contentType id="org.eclipse.jst.jsp.core.jspsource">
+ <partitionType id="org.jboss.tools.common.text.ext.xml.XML_ATTRIBUTE_VALUE">
+ </partitionType>
+ </contentType>
+ <contentType id="org.eclipse.wst.html.core.htmlsource">
+ <partitionType id="org.jboss.tools.common.text.ext.xml.XML_ATTRIBUTE_VALUE">
+ </partitionType>
+ </contentType>
+ </hyperlinkPartitioner>
<!-- Root XML, HTML and JSP hyperlink partitioners -->
<hyperlinkPartitioner
@@ -819,10 +832,10 @@
class="org.jboss.tools.common.text.ext.hyperlink.CSSClassHyperlink"
id="org.jboss.tools.common.text.ext.hyperlink.CSSClassHyperlink">
<contenttypeidentifier id="org.eclipse.jst.jsp.core.jspsource">
- <partitiontype id="org.jboss.tools.common.text.ext.jsp.JSP_CSS_CLASS" />
+ <partitiontype id="org.jboss.tools.common.text.ext.CSS_CLASS" />
</contenttypeidentifier>
<contenttypeidentifier id="org.eclipse.wst.html.core.htmlsource">
- <partitiontype id="org.jboss.tools.common.text.ext.jsp.JSP_CSS_CLASS" />
+ <partitiontype id="org.jboss.tools.common.text.ext.CSS_CLASS" />
</contenttypeidentifier>
</hyperlink>
Modified: trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/CSSClassHyperlink.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/CSSClassHyperlink.java 2009-08-21 09:08:31 UTC (rev 17206)
+++ trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/CSSClassHyperlink.java 2009-08-21 09:46:00 UTC (rev 17207)
@@ -7,343 +7,401 @@
*
* Contributors:
* Exadel, Inc. and Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
+ ******************************************************************************/
package org.jboss.tools.common.text.ext.hyperlink;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.StringReader;
import java.text.MessageFormat;
import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.Comparator;
import java.util.List;
-import java.util.StringTokenizer;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.QualifiedName;
import org.eclipse.jface.text.BadLocationException;
import org.eclipse.jface.text.IRegion;
import org.eclipse.jface.text.Region;
-import org.eclipse.jface.text.rules.IToken;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.IWorkbenchPage;
+import org.eclipse.ui.PartInitException;
import org.eclipse.ui.ide.IDE;
+import org.eclipse.wst.css.core.internal.provisional.adapters.IStyleSheetAdapter;
+import org.eclipse.wst.css.core.internal.provisional.document.ICSSDocument;
+import org.eclipse.wst.css.core.internal.provisional.document.ICSSModel;
+import org.eclipse.wst.css.core.internal.provisional.document.ICSSNode;
+import org.eclipse.wst.css.core.internal.provisional.document.ICSSStyleRule;
+import org.eclipse.wst.css.core.internal.provisional.document.ICSSStyleSheet;
+import org.eclipse.wst.sse.core.internal.provisional.INodeNotifier;
+import org.eclipse.wst.sse.core.internal.provisional.IndexedRegion;
+import org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument;
import org.eclipse.wst.xml.core.internal.provisional.document.IDOMElement;
+import org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel;
import org.eclipse.wst.xml.core.internal.provisional.document.IDOMNode;
-import org.eclipse.wst.xml.core.internal.provisional.document.IDOMText;
import org.jboss.tools.common.text.ext.ExtensionsPlugin;
import org.jboss.tools.common.text.ext.hyperlink.xpl.Messages;
-import org.jboss.tools.common.text.ext.util.CSSTextScanner;
import org.jboss.tools.common.text.ext.util.RegionHolder;
import org.jboss.tools.common.text.ext.util.StructuredModelWrapper;
import org.jboss.tools.common.text.ext.util.StructuredSelectionHelper;
-import org.jboss.tools.common.text.ext.util.TextScanner;
import org.jboss.tools.common.text.ext.util.Utils;
import org.w3c.dom.Attr;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
+import org.w3c.dom.css.CSSRule;
+import org.w3c.dom.css.CSSRuleList;
+import org.w3c.dom.css.CSSStyleSheet;
-/*
- * Created on 26.01.2005
- *
- * TODO To change the template for this generated file go to
- * Window - Preferences - Java - Code Style - Code Templates
- */
-
/**
* @author Jeremy
*/
public class CSSClassHyperlink extends AbstractHyperlink {
- // Qualifiers for CSSList
- public static final String QUALIFIER = "CSSListForm"; //$NON-NLS-1$
- public static final String LOCAL_NAME = "CSSList"; //$NON-NLS-1$
+ public static final String[] STYLE_TAGS = new String[] { "style", "link" }; //$NON-NLS-1$//$NON-NLS-2$
+ public static final String COMPARE_CLASS_REGEX_PREFIX = "[\\.]?"; //$NON-NLS-1$
- /**
- * @see com.ibm.sse.editor.AbstractHyperlink#doHyperlink(org.eclipse.jface.text.IRegion)
+ /**
+ *
*/
protected void doHyperlink(IRegion region) {
-
- try {
- RegionHolder holder = getStyleHolder(getStyleName(region));
- if (holder != null) {
- if (holder.file != null) {
- IWorkbenchPage workbenchPage = ExtensionsPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getActivePage();
- IEditorPart part = IDE.openEditor(workbenchPage,holder.file,true);
- if (part == null) {
- openFileFailed();
- return;
- }
- StructuredSelectionHelper.setSelectionAndReveal(part, holder.region);
- } else {
- StructuredSelectionHelper.setSelectionAndRevealInActiveEditor(holder.region);
- }
- } else {
- openFileFailed();
+
+ IDOMModel model = (IDOMModel) getModelManager()
+ .getExistingModelForRead(getDocument());
+
+ // get name of looked for style
+ String styleName = getStyleName(region);
+
+ // get elements which copntans information about styles (style and link
+ // tags)
+ List<Node> styleElementList = getStyleContainerList(model);
+
+ // sort nodes by position in inverse order - from larger position to
+ // smaller
+ Collections.sort(styleElementList, new Comparator<Node>() {
+
+ public int compare(Node o1, Node o2) {
+ return ((IDOMNode) o2).getStartOffset()
+ - ((IDOMNode) o1).getStartOffset();
}
-
- } catch (CoreException x) {
- // could not open editor
- openFileFailed();
+
+ });
+
+ RegionHolder styleRegion = null;
+ // look for style in each Style element
+ for (Node styleContainer : styleElementList) {
+
+ styleRegion = findStyleRegion(styleContainer, styleName);
+
+ if (styleRegion != null) {
+ showRegion(styleRegion);
+ break;
+ }
+
}
+
+ model.releaseFromRead();
}
-
- private String getStyleName(IRegion region) {
- try {
- return Utils.trimQuotes(getDocument().get(region.getOffset(), region.getLength()));
- } catch (BadLocationException x) {
- //ignore
- return null;
+
+ /**
+ *
+ * @param model
+ * @return
+ */
+ private List<Node> getStyleContainerList(IDOMModel model) {
+
+ // get model of current page
+ IDOMDocument document = model.getDocument();
+
+ List<Node> getStyleContainerList = new ArrayList<Node>();
+
+ // get all tags which contains style ( link, style)
+ for (String tagName : STYLE_TAGS) {
+ getStyleContainerList.addAll(getList(document
+ .getElementsByTagName(tagName)));
+
}
+
+ return getStyleContainerList;
}
-
- IRegion fLastRegion = null;
-
- /**
- * @see com.ibm.sse.editor.AbstractHyperlink#doGetHyperlinkRegion(int)
+
+ /**
+ * move nodes from NodeList to List
+ *
+ * @param nodeList
+ * @return
*/
- protected IRegion doGetHyperlinkRegion(int offset) {
- fLastRegion = getRegion(offset);
- return fLastRegion;
+ List<Node> getList(NodeList nodeList) {
+
+ List<Node> newContainerList = new ArrayList<Node>();
+ for (int i = 0; i < nodeList.getLength(); i++) {
+ newContainerList.add(nodeList.item(i));
+ }
+ return newContainerList;
}
-
- private RegionHolder getStyleHolder (String styleName) {
- StructuredModelWrapper smw = new StructuredModelWrapper();
- try {
- smw.init(getDocument());
- IFile documentFile = smw.getFile();
- if (documentFile == null)
- return null;
-
- IProject project = documentFile.getProject();
- Document xmlDocument = smw.getDocument();
- if (xmlDocument == null) return null;
+ /**
+ *
+ * @param stylesContainer
+ * @param styleName
+ * @return
+ */
+ public RegionHolder findStyleRegion(Node stylesContainer, String styleName) {
- List styleLinks = findStyleLinks(xmlDocument.getChildNodes());
-
- if (styleLinks == null || styleLinks.size() == 0) return null;
- boolean doSearchInProjectCSSList = false;
- for (int i = styleLinks.size() - 1; i >= 0; i--) {
- if (styleLinks.get(i) instanceof Attr) {
- Attr hrefAttr = (Attr)styleLinks.get(i);
- String fileName = Utils.trimQuotes(hrefAttr.getValue());
- if (fileName != null && fileName.length() > 0) {
- IFile file = getFileFromProject(fileName);
- if (file == null || !file.exists()) doSearchInProjectCSSList = true;
- IRegion region = findStyleRegion(file, styleName);
- if (region != null) {
- return new RegionHolder(file, region);
- }
- }
- } else if (styleLinks.get(i) instanceof IDOMElement) {
- IDOMElement styleElement = (IDOMElement)styleLinks.get(i);
- IRegion region = findStyleRegion(styleElement, styleName);
-
- if ( region != null) {
- return new RegionHolder(region);
- } else {
- //"Style region not found"
- }
+ // get style sheet
+ CSSStyleSheet sheet = getSheet(stylesContainer);
+
+ if (sheet != null) {
+
+ CSSRuleList ruleList = sheet.getCssRules();
+
+ // for each cssRule
+ for (int i = 0; i < ruleList.getLength(); i++) {
+
+ CSSRule cssRule = ruleList.item(i);
+
+ // if cssRule describe looked for style
+ if (isRuleMatch(cssRule, styleName)) {
+
+ return new RegionHolder(getFile((ICSSNode) cssRule),
+ getRegion(cssRule));
+
}
}
-
- if (doSearchInProjectCSSList) {
- String cssList = project.getPersistentProperty(new QualifiedName(QUALIFIER, LOCAL_NAME));
- if (cssList != null) {
- StringTokenizer st = new StringTokenizer(cssList, ","); //$NON-NLS-1$
- while (st.hasMoreTokens()) {
- String fileName = st.nextToken().trim();
- IPath path = new Path(fileName).removeFirstSegments(2);
- fileName = path.toString();
- if (fileName != null && fileName.length() > 0) {
- IFile file = getFileFromProject(fileName);
- IRegion region = findStyleRegion(file, styleName);
- if (region != null) {
- return new RegionHolder(file, region);
- }
- }
- }
- }
- }
-
- return null;
- } catch (CoreException x) {
- //ignore
- return null;
- } finally {
- smw.dispose();
+
}
+ return null;
}
- private IRegion findStyleRegion(IDOMElement styleElement, String styleName) {
- if (styleElement == null || styleName == null || styleName.length() == 0) return null;
-
- // get all the XMLText regions and combine them into the string
- // Then parse that string finding the style class
-
- if (!(styleElement.getFirstChild() instanceof IDOMText)) return null;
-
- IDOMText styleText = (IDOMText)styleElement.getFirstChild();
- String text = styleText.getData();
- if (text == null) return null;
-
- int startOffset = styleText.getStartOffset();
- IRegion region = null;
- StringReader reader = new StringReader (text);
- try {
- CSSTextScanner scanner = new CSSTextScanner(reader);
- IToken token = scanner.nextToken();
- while (token != null && !token.isEOF()) {
- if (token instanceof TextScanner.TextToken) {
- TextScanner.TextToken tToken = (TextScanner.TextToken)token;
- if (CSSTextScanner.CSS_CLASS_NAME.equals(tToken.getType())) {
- String name = tToken.getText();
- if (("." + styleName).equalsIgnoreCase(name)) { //$NON-NLS-1$
- final int offset = startOffset + scanner.getTokenOffset();
- final int length = scanner.getTokenLength();
- return new Region (offset,length);
- }
- } else if (CSSTextScanner.CSS_CLASS_BODY.equals(tToken.getType())) {
-// String body = tToken.getText();
- }
- }
-
- token = scanner.nextToken();
- }
- } finally {
- reader.close();
+ /**
+ *
+ * @param stylesContainer
+ * @return
+ */
+ private CSSStyleSheet getSheet(Node stylesContainer) {
+
+ IStyleSheetAdapter adapter = (IStyleSheetAdapter) ((INodeNotifier) stylesContainer)
+ .getAdapterFor(IStyleSheetAdapter.class);
+
+ CSSStyleSheet sheet = null;
+
+ if (adapter != null) {
+ sheet = (CSSStyleSheet) ((IStyleSheetAdapter) adapter).getSheet();
+
+ // get ModelProvideAdapter
+// IModelProvideAdapter modelProvideAdapter = (IModelProvideAdapter) ((INodeNotifier) stylesContainer)
+// .getAdapterFor(IModelProvideAdapter.class);
+//
+// try {
+// /* URLModelProvider */URLModelProviderCSS provider = new /* URLModelProvider */URLModelProviderCSS();
+// IStructuredModel newModel;
+//
+// newModel = provider.getModelForRead(
+// ((IDOMNode) stylesContainer).getModel(),
+// processURL(((Element) stylesContainer)
+// .getAttribute("href"))); //$NON-NLS-1$
+//
+// if (newModel == null)
+// return null;
+// if (!(newModel instanceof ICSSModel)) {
+// newModel.releaseFromRead();
+// return null;
+// }
+//
+// // notify adapter
+// if (modelProvideAdapter != null)
+// modelProvideAdapter.modelProvided(newModel);
+//
+// adapter.s
+// } catch (UnsupportedEncodingException e) {
+// } catch (IOException e) {
+// }
}
+
+ return sheet;
+
+ }
+
+ protected String processURL(String href) {
+ // TODO Auto-generated method stub
return null;
}
-
- private IRegion findStyleRegion(IFile file, String styleName) {
- if (file == null || !file.exists()) return null;
- if (styleName == null || styleName.length() == 0) return null;
- InputStream stream = null;
- try {
- stream = file.getContents(true);
- CSSTextScanner scanner = new CSSTextScanner(stream);
- IToken token = scanner.nextToken();
- while (token != null && !token.isEOF()) {
- if (token instanceof TextScanner.TextToken) {
- TextScanner.TextToken tToken = (TextScanner.TextToken)token;
- if (CSSTextScanner.CSS_CLASS_NAME.equals(tToken.getType())) {
- String name = tToken.getText();
- if (("." + styleName).equalsIgnoreCase(name)) { //$NON-NLS-1$
- final int offset = scanner.getTokenOffset();
- final int length = scanner.getTokenLength();
- return new Region (offset,length);
+ /**
+ *
+ * @param cssRule
+ * @param styleName
+ * @return
+ */
+ private boolean isRuleMatch(CSSRule cssRule, String styleName) {
+
+ // get selector text
+ String selectorText = ((ICSSStyleRule) cssRule).getSelectorText();
+
+ if (selectorText != null) {
+
+ // split selector text by whitespace
+ String[] styles = selectorText.trim().split(" "); //$NON-NLS-1$
+ int searchIndex = Arrays.binarySearch(styles, styleName,
+ new Comparator<String>() {
+
+ public int compare(String o1, String o2) {
+ Matcher matcher = Pattern.compile(
+ COMPARE_CLASS_REGEX_PREFIX + o2)
+ .matcher(o1);
+ return matcher.matches() ? 0 : 1;
}
- } else if (CSSTextScanner.CSS_CLASS_BODY.equals(tToken.getType())) {
-// String body = tToken.getText();
-// "CSS_CLASS_BODY Token: [" + body + "]"
- }
- }
-
- token = scanner.nextToken();
- }
- } catch (CoreException x) {
- ExtensionsPlugin.getPluginLog().logError("Error while looking for style region ", x); //$NON-NLS-1$
- } finally {
+
+ });
+ if (searchIndex >= 0)
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ *
+ * @param node
+ * @return
+ */
+ private IFile getFile(ICSSNode node) {
+
+ ICSSDocument sheet = node.getOwnerDocument();
+
+ return AbstractHyperlink.getFile(sheet.getModel());
+ }
+
+ /**
+ *
+ * @param cssRule
+ * @return
+ */
+ protected Region getRegion(CSSRule cssRule) {
+
+ int offset = ((IndexedRegion) cssRule).getStartOffset();
+
+ // if css rule is contained in style tag so it is require to take into
+ // account offset of this tag
+ ICSSStyleSheet document = (ICSSStyleSheet) ((ICSSStyleRule) cssRule)
+ .getOwnerDocument();
+
+ ICSSModel model = document.getModel();
+
+ // get style tag
+ Node node = model.getOwnerDOMNode();
+
+ // increase offset
+ if (node instanceof IDOMElement)
+ offset += ((IDOMElement) node).getStartEndOffset();
+
+ return new Region(offset, 0);
+
+ }
+
+ /**
+ *
+ * @param styleRegion
+ */
+ private void showRegion(RegionHolder styleRegion) {
+
+ IWorkbenchPage workbenchPage = ExtensionsPlugin.getDefault()
+ .getWorkbench().getActiveWorkbenchWindow().getActivePage();
+ IEditorPart part = null;
+ if (styleRegion.file != null) {
try {
- if(stream!=null) {
- stream.close();
- }
- } catch (IOException x) {
- //ignore
+ part = IDE.openEditor(workbenchPage, styleRegion.file, true);
+ } catch (PartInitException e) {
+ e.printStackTrace();
}
+ if (part == null) {
+ openFileFailed();
+ return;
+ }
}
- return null;
+ StructuredSelectionHelper.setSelectionAndReveal(part,
+ styleRegion.region);
}
-
- private List<Node> findStyleLinks (NodeList list) {
- List<Node> styleLinks = new ArrayList<Node>();
- for (int i = 0; list != null && i < list.getLength(); i++) {
- IDOMNode element = (IDOMNode)list.item(i);
- //String axis = JSPRootHyperlinkPartitioner.computeAxis(getDocument(), element.getStartOffset());
- //axis = axis.toLowerCase();
-
- if ("link".equals(element.getNodeName())) { //$NON-NLS-1$
- Node relAttr = element.getAttributes().getNamedItem("rel"); //$NON-NLS-1$
- if (relAttr != null) {
- String val = relAttr.getNodeValue().toLowerCase();
- if ("stylesheet".equalsIgnoreCase(val) || "\"stylesheet\"".equalsIgnoreCase(val)) { //$NON-NLS-1$ //$NON-NLS-2$
- Node hrefAttr = element.getAttributes().getNamedItem("href"); //$NON-NLS-1$
- if (hrefAttr != null) {
- styleLinks.add(hrefAttr);
- }
- }
- }
- }
-
- if ("link".equals(element.getNodeName())) { //$NON-NLS-1$
-// String value = element.getNodeValue();
- styleLinks.add(element);
- }
-
- if (element.hasChildNodes()) {
- List<Node> add = findStyleLinks(element.getChildNodes());
- if (add != null)
- styleLinks.addAll(add);
- }
- }
- return styleLinks;
+ /**
+ *
+ * @param region
+ * @return
+ */
+ private String getStyleName(IRegion region) {
+ try {
+ return getDocument().get(region.getOffset(), region.getLength());
+ } catch (BadLocationException e) {
+ return null;
+ }
}
-
- protected IRegion getRegion (int offset) {
+
+ IRegion fLastRegion = null;
+
+ /**
+ * @see com.ibm.sse.editor.AbstractHyperlink#doGetHyperlinkRegion(int)
+ */
+ protected IRegion doGetHyperlinkRegion(int offset) {
+ fLastRegion = getRegion(offset);
+ return fLastRegion;
+ }
+
+ /**
+ * TODO research method
+ * @param offset
+ * @return
+ */
+ protected IRegion getRegion(int offset) {
StructuredModelWrapper smw = new StructuredModelWrapper();
try {
smw.init(getDocument());
Document xmlDocument = smw.getDocument();
- if (xmlDocument == null) return null;
-
+ if (xmlDocument == null)
+ return null;
+
Node n = Utils.findNodeForOffset(xmlDocument, offset);
-
- if (n == null || !(n instanceof Attr)) return null;
+
+ if (n == null || !(n instanceof Attr))
+ return null;
int start = Utils.getValueStart(n);
int end = Utils.getValueEnd(n);
- if (start > offset) return null;
+ if (start > offset)
+ return null;
String attrText = getDocument().get(start, end - start);
StringBuffer sb = new StringBuffer(attrText);
- //find start of bean property
+ // find start of bean property
int bStart = offset - start;
- while (bStart >= 0) {
- if (!Character.isJavaIdentifierPart(sb.charAt(bStart)) &&
- sb.charAt(bStart) != '_' && sb.charAt(bStart) != '-' &&
- sb.charAt(bStart) != '.') {
+ while (bStart >= 0) {
+ if (!Character.isJavaIdentifierPart(sb.charAt(bStart))
+ && sb.charAt(bStart) != '_' && sb.charAt(bStart) != '-'
+ && sb.charAt(bStart) != '.') {
bStart++;
break;
}
-
- if (bStart == 0) break;
+
+ if (bStart == 0)
+ break;
bStart--;
}
// find end of bean property
int bEnd = offset - start;
- while (bEnd < sb.length()) {
- if (!Character.isJavaIdentifierPart(sb.charAt(bEnd)) &&
- sb.charAt(bEnd) != '_' && sb.charAt(bEnd) != '-' &&
- sb.charAt(bEnd) != '.')
+ while (bEnd < sb.length()) {
+ if (!Character.isJavaIdentifierPart(sb.charAt(bEnd))
+ && sb.charAt(bEnd) != '_' && sb.charAt(bEnd) != '-'
+ && sb.charAt(bEnd) != '.')
break;
bEnd++;
}
-
+
final int propStart = bStart + start;
final int propLength = bEnd - bStart;
-
- if (propStart > offset || propStart + propLength < offset) return null;
- return new Region (propStart,propLength);
+
+ if (propStart > offset || propStart + propLength < offset)
+ return null;
+ return new Region(propStart, propLength);
} catch (BadLocationException x) {
- //ignore
+ // ignore
return null;
} finally {
smw.dispose();
@@ -358,8 +416,8 @@
public String getHyperlinkText() {
String styleName = getStyleName(fLastRegion);
if (styleName == null)
- return MessageFormat.format(Messages.OpenA, Messages.CSSStyle);
-
+ return MessageFormat.format(Messages.OpenA, Messages.CSSStyle);
+
return MessageFormat.format(Messages.OpenCSSStyle, styleName);
}
Added: trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/CSSClassHyperlinkPartitioner.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/CSSClassHyperlinkPartitioner.java (rev 0)
+++ trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/CSSClassHyperlinkPartitioner.java 2009-08-21 09:46:00 UTC (rev 17207)
@@ -0,0 +1,84 @@
+/*******************************************************************************
+ * Copyright (c) 2007-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
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.common.text.ext.hyperlink;
+
+import org.eclipse.jface.text.IDocument;
+import org.jboss.tools.common.text.ext.hyperlink.AbstractHyperlinkPartitioner;
+import org.jboss.tools.common.text.ext.hyperlink.HyperlinkRegion;
+import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkPartitionRecognizer;
+import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion;
+import org.jboss.tools.common.text.ext.util.StructuredModelWrapper;
+import org.jboss.tools.common.text.ext.util.Utils;
+import org.w3c.dom.Attr;
+import org.w3c.dom.Document;
+import org.w3c.dom.Node;
+
+/**
+ *
+ * @author Sergey Dzmitrovich
+ *
+ */
+public class CSSClassHyperlinkPartitioner extends
+ AbstractHyperlinkPartitioner implements IHyperlinkPartitionRecognizer {
+
+ public static final String CSS_CLASS_PARTITION = "org.jboss.tools.common.text.ext.CSS_CLASS"; //$NON-NLS-1$
+
+ private static final String CSS_CLASS_TOKEN = "class/"; //$NON-NLS-1$
+
+ /**
+ * @see com.ibm.sse.editor.hyperlink.AbstractHyperlinkPartitioner#parse(org.eclipse.jface.text.IDocument,
+ * com.ibm.sse.editor.extensions.hyperlink.IHyperlinkRegion)
+ */
+ protected IHyperlinkRegion parse(IDocument document,
+ IHyperlinkRegion superRegion) {
+ StructuredModelWrapper smw = new StructuredModelWrapper();
+ try {
+ smw.init(document);
+ Document xmlDocument = smw.getDocument();
+ if (xmlDocument == null)
+ return null;
+
+ Node n = Utils.findNodeForOffset(xmlDocument, superRegion
+ .getOffset());
+ if (n == null || !(n instanceof Attr))
+ return null;
+
+ String axis = getAxis(document, superRegion);
+ String contentType = superRegion.getContentType();
+ String type = getPartitionType(axis);
+ int start = Utils.getValueStart(n);
+ int end = Utils.getValueEnd(n);
+ if (start < 0 || end < start)
+ return null;
+ int length = end - start;
+ int offset = superRegion.getOffset();
+
+ IHyperlinkRegion region = new HyperlinkRegion(offset, length, axis,
+ contentType, type);
+ return region;
+ } finally {
+ smw.dispose();
+ }
+ }
+
+ private String getPartitionType(String axis) {
+ return CSS_CLASS_PARTITION;
+ }
+
+ public boolean recognize(IDocument document, IHyperlinkRegion region) {
+
+ if (region.getAxis() != null
+ && region.getAxis().toLowerCase().endsWith(CSS_CLASS_TOKEN))
+ return true;
+ return false;
+ }
+
+}
Property changes on: trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/CSSClassHyperlinkPartitioner.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Modified: trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/jsp/JSPCSSClassHyperlinkPartitioner.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/jsp/JSPCSSClassHyperlinkPartitioner.java 2009-08-21 09:08:31 UTC (rev 17206)
+++ trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/jsp/JSPCSSClassHyperlinkPartitioner.java 2009-08-21 09:46:00 UTC (rev 17207)
@@ -23,6 +23,7 @@
import org.jboss.tools.common.text.ext.util.Utils;
/**
+ * * @deprecated see org.jboss.tools.common.text.ext.hyperlink.CSSClassHyperlinkPartitioner
* @author Jeremy
*/
public class JSPCSSClassHyperlinkPartitioner extends AbstractHyperlinkPartitioner /*implements IHyperlinkPartitionRecognizer */{
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/plugin.xml
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/plugin.xml 2009-08-21 09:08:31 UTC (rev 17206)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/plugin.xml 2009-08-21 09:46:00 UTC (rev 17207)
@@ -561,293 +561,7 @@
</partitionType>
</contentType>
</hyperlinkPartitioner>
-
<hyperlinkPartitioner
- id="org.jboss.tools.common.text.ext.jsf.hyperlink.JSPCSSClassHyperlinkPartitioner"
- class="org.jboss.tools.jsf.text.ext.hyperlink.JSPCSSClassHyperlinkPartitioner">
- <contentType id="org.eclipse.jst.jsp.core.jspsource">
- <partitionType id="org.jboss.tools.common.text.ext.xml.XML_ATTRIBUTE_VALUE">
- <axis path="*/[http://java.sun.com/jsf/html]:commandButton/styleClass/" />
- <axis path="*/[http://java.sun.com/jsf/html]:commandLink/styleClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:dataTable/columnClasses/" />
- <axis path="*/[http://java.sun.com/jsf/html]:dataTable/footerClass/" />
- <axis path="*/[http://java.sun.com/jsf/html]:dataTable/headerClass/" />
- <axis path="*/[http://java.sun.com/jsf/html]:dataTable/rowClasses/" />
- <axis path="*/[http://java.sun.com/jsf/html]:dataTable/styleClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:form/styleClass/" />
- <axis path="*/[http://java.sun.com/jsf/html]:selectManyCheckbox/disabledClass/" />
- <axis path="*/[http://java.sun.com/jsf/html]:selectManyCheckbox/enabledClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:graphicImage/styleClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:inputSecret/styleClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:inputText/styleClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:inputTextarea/styleClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:message/errorClass/" />
- <axis path="*/[http://java.sun.com/jsf/html]:message/fatalClass/" />
- <axis path="*/[http://java.sun.com/jsf/html]:message/infoClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:message/styleClass/" />
- <axis path="*/[http://java.sun.com/jsf/html]:message/warnClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:messages/errorClass/" />
- <axis path="*/[http://java.sun.com/jsf/html]:messages/fatalClass/" />
- <axis path="*/[http://java.sun.com/jsf/html]:messages/infoClass/" />
- <axis path="*/[http://java.sun.com/jsf/html]:messages/styleClass/" />
- <axis path="*/[http://java.sun.com/jsf/html]:messages/warnClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:outputFormat/styleClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:outputLabel/styleClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:outputLink/styleClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:outputText/styleClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:panelGrid/columnClasses/" />
- <axis path="*/[http://java.sun.com/jsf/html]:panelGrid/footerClass/" />
- <axis path="*/[http://java.sun.com/jsf/html]:panelGrid/headerClass/" />
- <axis path="*/[http://java.sun.com/jsf/html]:panelGrid/rowClasses/" />
- <axis path="*/[http://java.sun.com/jsf/html]:panelGrid/styleClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:panelGroup/styleClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:selectBooleanCheckbox/styleClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:selectManyCheckbox/styleClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:selectManyListbox/styleClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:selectManyMenu/styleClass/" />
- <axis path="*/[http://java.sun.com/jsf/html]:selectManyMenu/disabledClass/" />
- <axis path="*/[http://java.sun.com/jsf/html]:selectManyMenu/enabledClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:selectOneListbox/styleClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:selectOneMenu/styleClass/" />
- <axis path="*/[http://java.sun.com/jsf/html]:selectOneMenu/disabledClass/" />
- <axis path="*/[http://java.sun.com/jsf/html]:selectOneMenu/enabledClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:selectOneRadio/disabledClass/" />
- <axis path="*/[http://java.sun.com/jsf/html]:selectOneRadio/enabledClass/" />
- <axis path="*/[http://java.sun.com/jsf/html]:selectOneRadio/styleClass/" />
-
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:commandButton/styleClass/" />
- <axis path="*/[http://myfaces.apache.org/tomahawk]:commandLink/styleClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:dataTable/columnClasses/" />
- <axis path="*/[http://myfaces.apache.org/tomahawk]:dataTable/footerClass/" />
- <axis path="*/[http://myfaces.apache.org/tomahawk]:dataTable/headerClass/" />
- <axis path="*/[http://myfaces.apache.org/tomahawk]:dataTable/rowClasses/" />
- <axis path="*/[http://myfaces.apache.org/tomahawk]:dataTable/styleClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:form/styleClass/" />
- <axis path="*/[http://myfaces.apache.org/tomahawk]:selectManyCheckbox/disabledClass/" />
- <axis path="*/[http://myfaces.apache.org/tomahawk]:selectManyCheckbox/enabledClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:graphicImage/styleClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:inputSecret/styleClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:inputText/styleClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:inputTextarea/styleClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:message/errorClass/" />
- <axis path="*/[http://myfaces.apache.org/tomahawk]:message/fatalClass/" />
- <axis path="*/[http://myfaces.apache.org/tomahawk]:message/infoClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:message/styleClass/" />
- <axis path="*/[http://myfaces.apache.org/tomahawk]:message/warnClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:messages/errorClass/" />
- <axis path="*/[http://myfaces.apache.org/tomahawk]:messages/fatalClass/" />
- <axis path="*/[http://myfaces.apache.org/tomahawk]:messages/infoClass/" />
- <axis path="*/[http://myfaces.apache.org/tomahawk]:messages/styleClass/" />
- <axis path="*/[http://myfaces.apache.org/tomahawk]:messages/warnClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:outputFormat/styleClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:outputLabel/styleClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:outputLink/styleClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:outputText/styleClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:panelGrid/columnClasses/" />
- <axis path="*/[http://myfaces.apache.org/tomahawk]:panelGrid/footerClass/" />
- <axis path="*/[http://myfaces.apache.org/tomahawk]:panelGrid/headerClass/" />
- <axis path="*/[http://myfaces.apache.org/tomahawk]:panelGrid/rowClasses/" />
- <axis path="*/[http://myfaces.apache.org/tomahawk]:panelGrid/styleClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:panelGroup/styleClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:selectBooleanCheckbox/styleClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:selectManyCheckbox/styleClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:selectManyListbox/styleClass/" />
- <axis path="*/[http://java.sun.com/jsf/html]:selectManyListbox/disabledClass/" />
- <axis path="*/[http://java.sun.com/jsf/html]:selectManyListbox/enabledClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:selectManyMenu/styleClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:selectOneListbox/styleClass/" />
- <axis path="*/[http://java.sun.com/jsf/html]:selectOneListbox/disabledClass/" />
- <axis path="*/[http://java.sun.com/jsf/html]:selectOneListbox/enabledClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:selectOneMenu/styleClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:selectOneRadio/disabledClass/" />
- <axis path="*/[http://myfaces.apache.org/tomahawk]:selectOneRadio/enabledClass/" />
- <axis path="*/[http://myfaces.apache.org/tomahawk]:selectOneRadio/styleClass/" />
-
- </partitionType>
- </contentType>
- <contentType id="org.eclipse.wst.html.core.htmlsource">
- <partitionType id="org.jboss.tools.common.text.ext.xml.XML_ATTRIBUTE_VALUE">
- <axis path="*/[http://java.sun.com/jsf/html]:commandButton/styleClass/" />
- <axis path="*/[http://java.sun.com/jsf/html]:commandLink/styleClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:dataTable/columnClasses/" />
- <axis path="*/[http://java.sun.com/jsf/html]:dataTable/footerClass/" />
- <axis path="*/[http://java.sun.com/jsf/html]:dataTable/headerClass/" />
- <axis path="*/[http://java.sun.com/jsf/html]:dataTable/rowClasses/" />
- <axis path="*/[http://java.sun.com/jsf/html]:dataTable/styleClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:form/styleClass/" />
- <axis path="*/[http://java.sun.com/jsf/html]:selectManyCheckbox/disabledClass/" />
- <axis path="*/[http://java.sun.com/jsf/html]:selectManyCheckbox/enabledClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:graphicImage/styleClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:inputSecret/styleClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:inputText/styleClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:inputTextarea/styleClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:message/errorClass/" />
- <axis path="*/[http://java.sun.com/jsf/html]:message/fatalClass/" />
- <axis path="*/[http://java.sun.com/jsf/html]:message/infoClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:message/styleClass/" />
- <axis path="*/[http://java.sun.com/jsf/html]:message/warnClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:messages/errorClass/" />
- <axis path="*/[http://java.sun.com/jsf/html]:messages/fatalClass/" />
- <axis path="*/[http://java.sun.com/jsf/html]:messages/infoClass/" />
- <axis path="*/[http://java.sun.com/jsf/html]:messages/styleClass/" />
- <axis path="*/[http://java.sun.com/jsf/html]:messages/warnClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:outputFormat/styleClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:outputLabel/styleClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:outputLink/styleClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:outputText/styleClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:panelGrid/columnClasses/" />
- <axis path="*/[http://java.sun.com/jsf/html]:panelGrid/footerClass/" />
- <axis path="*/[http://java.sun.com/jsf/html]:panelGrid/headerClass/" />
- <axis path="*/[http://java.sun.com/jsf/html]:panelGrid/rowClasses/" />
- <axis path="*/[http://java.sun.com/jsf/html]:panelGrid/styleClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:panelGroup/styleClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:selectBooleanCheckbox/styleClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:selectManyCheckbox/styleClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:selectManyListbox/styleClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:selectManyMenu/styleClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:selectOneListbox/styleClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:selectOneMenu/styleClass/" />
-
- <axis path="*/[http://java.sun.com/jsf/html]:selectOneRadio/disabledClass/" />
- <axis path="*/[http://java.sun.com/jsf/html]:selectOneRadio/enabledClass/" />
- <axis path="*/[http://java.sun.com/jsf/html]:selectOneRadio/styleClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:commandButton/styleClass/" />
- <axis path="*/[http://myfaces.apache.org/tomahawk]:commandLink/styleClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:dataTable/columnClasses/" />
- <axis path="*/[http://myfaces.apache.org/tomahawk]:dataTable/footerClass/" />
- <axis path="*/[http://myfaces.apache.org/tomahawk]:dataTable/headerClass/" />
- <axis path="*/[http://myfaces.apache.org/tomahawk]:dataTable/rowClasses/" />
- <axis path="*/[http://myfaces.apache.org/tomahawk]:dataTable/styleClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:form/styleClass/" />
- <axis path="*/[http://myfaces.apache.org/tomahawk]:selectManyCheckbox/disabledClass/" />
- <axis path="*/[http://myfaces.apache.org/tomahawk]:selectManyCheckbox/enabledClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:graphicImage/styleClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:inputSecret/styleClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:inputText/styleClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:inputTextarea/styleClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:message/errorClass/" />
- <axis path="*/[http://myfaces.apache.org/tomahawk]:message/fatalClass/" />
- <axis path="*/[http://myfaces.apache.org/tomahawk]:message/infoClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:message/styleClass/" />
- <axis path="*/[http://myfaces.apache.org/tomahawk]:message/warnClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:messages/errorClass/" />
- <axis path="*/[http://myfaces.apache.org/tomahawk]:messages/fatalClass/" />
- <axis path="*/[http://myfaces.apache.org/tomahawk]:messages/infoClass/" />
- <axis path="*/[http://myfaces.apache.org/tomahawk]:messages/styleClass/" />
- <axis path="*/[http://myfaces.apache.org/tomahawk]:messages/warnClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:outputFormat/styleClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:outputLabel/styleClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:outputLink/styleClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:outputText/styleClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:panelGrid/columnClasses/" />
- <axis path="*/[http://myfaces.apache.org/tomahawk]:panelGrid/footerClass/" />
- <axis path="*/[http://myfaces.apache.org/tomahawk]:panelGrid/headerClass/" />
- <axis path="*/[http://myfaces.apache.org/tomahawk]:panelGrid/rowClasses/" />
- <axis path="*/[http://myfaces.apache.org/tomahawk]:panelGrid/styleClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:panelGroup/styleClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:selectBooleanCheckbox/styleClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:selectManyCheckbox/styleClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:selectManyListbox/styleClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:selectManyMenu/styleClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:selectOneListbox/styleClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:selectOneMenu/styleClass/" />
-
- <axis path="*/[http://myfaces.apache.org/tomahawk]:selectOneRadio/disabledClass/" />
- <axis path="*/[http://myfaces.apache.org/tomahawk]:selectOneRadio/enabledClass/" />
- <axis path="*/[http://myfaces.apache.org/tomahawk]:selectOneRadio/styleClass/" />
- </partitionType>
- </contentType>
- </hyperlinkPartitioner>
-
- <hyperlinkPartitioner
id="org.jboss.tools.common.text.ext.jsf.hyperlink.JSPExprHyperlinkPartitioner"
class="org.jboss.tools.jsf.text.ext.hyperlink.JSPExprHyperlinkPartitioner">
<contentType id="org.eclipse.jst.jsp.core.jspsource">
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/text/ext/hyperlink/JSPCSSClassHyperlinkPartitioner.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/text/ext/hyperlink/JSPCSSClassHyperlinkPartitioner.java 2009-08-21 09:08:31 UTC (rev 17206)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/text/ext/hyperlink/JSPCSSClassHyperlinkPartitioner.java 2009-08-21 09:46:00 UTC (rev 17207)
@@ -25,6 +25,8 @@
import org.jboss.tools.jsf.text.ext.JSFExtensionsPlugin;
/**
+ *
+ * @deprecated see org.jboss.tools.common.text.ext.hyperlink.CSSClassHyperlinkPartitioner
* @author Jeremy
*/
public class JSPCSSClassHyperlinkPartitioner extends AbstractHyperlinkPartitioner /*implements IHyperlinkPartitionRecognizer */{
16 years, 4 months
JBoss Tools SVN: r17206 - trunk/jsf/docs/userguide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2009-08-21 05:08:31 -0400 (Fri, 21 Aug 2009)
New Revision: 17206
Modified:
trunk/jsf/docs/userguide/en/modules/editors.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-820 - updating the 'Visual Page Editor' section according to the JSF 2.0 support implemented;
Modified: trunk/jsf/docs/userguide/en/modules/editors.xml
===================================================================
--- trunk/jsf/docs/userguide/en/modules/editors.xml 2009-08-21 07:40:53 UTC (rev 17205)
+++ trunk/jsf/docs/userguide/en/modules/editors.xml 2009-08-21 09:08:31 UTC (rev 17206)
@@ -747,7 +747,13 @@
<property>Visual Page Editor</property> (VPE). You can use the Visual Page Editor to
develop an application using any technology: JSF, Struts, JSP, HTML and others. Double-click on the necessary file in the Package Explorer view to open it in the Visual Editor or just drag-and-drop it into perspective (the drag-and-drop feature can be also applied to JSP, XHTML or HTML files created locally).</para>
- <para>Current VPE version has three tabs: <property>Visual/Source</property>,
+ <para>As a new JSF 2.0 specification has been released, support of new features is now implemented in the <property>Visual Page Editor</property>.
+ The JSF 2.0 tags like <literal><h:body></literal>, <literal><h:head></literal>, <literal><h:outputscript></literal>, <literal><h:outputstyle></literal>
+ are supported in the editor as well as the resource handling from the expression language. (See the
+ <ulink url="http://blogs.sun.com/rlubke/entry/jsf_2_0_new_feature3">following blog post</ulink> on how to handle the resources form the EL).
+ </para>
+
+ <para>Current VPE version has three tabs: <property>Visual/Source</property>,
<property>Source</property> and <property>Preview</property>. To switch between the
views you can use tabs at the bottom of the VPE or the shortcuts <emphasis>
<property>Ctrl + PageUp/Ctrl + PageDown</property>
16 years, 4 months
JBoss Tools SVN: r17205 - trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/properties.
by jbosstools-commits@lists.jboss.org
Author: dgeraskov
Date: 2009-08-21 03:40:53 -0400 (Fri, 21 Aug 2009)
New Revision: 17205
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/properties/HibernatePropertyPage.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4804
removed unused imports
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/properties/HibernatePropertyPage.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/properties/HibernatePropertyPage.java 2009-08-21 07:38:43 UTC (rev 17204)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/properties/HibernatePropertyPage.java 2009-08-21 07:40:53 UTC (rev 17205)
@@ -26,10 +26,8 @@
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.ProjectScope;
-import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.preferences.IScopeContext;
import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.core.IJavaProject;
@@ -57,7 +55,6 @@
import org.hibernate.eclipse.console.HibernateConsolePlugin;
import org.hibernate.eclipse.console.utils.EclipseImages;
import org.hibernate.eclipse.console.utils.ProjectUtils;
-import org.osgi.service.prefs.BackingStoreException;
import org.osgi.service.prefs.Preferences;
public class HibernatePropertyPage extends PropertyPage {
16 years, 4 months
JBoss Tools SVN: r17204 - trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/properties.
by jbosstools-commits@lists.jboss.org
Author: dgeraskov
Date: 2009-08-21 03:38:43 -0400 (Fri, 21 Aug 2009)
New Revision: 17204
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/properties/HibernatePropertyPage.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4804
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/properties/HibernatePropertyPage.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/properties/HibernatePropertyPage.java 2009-08-21 07:23:56 UTC (rev 17203)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/properties/HibernatePropertyPage.java 2009-08-21 07:38:43 UTC (rev 17204)
@@ -120,7 +120,7 @@
jbossLogoButton.setImage(EclipseImages.getImage(ImageConstants.JBOSS_LOGO));
jbossLogoButton.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
- openBrowser("http://www.jboss.org/products/jbosside"); //$NON-NLS-1$
+ openBrowser("http://www.jboss.com/products/devstudio"); //$NON-NLS-1$
}
});
}
16 years, 4 months
JBoss Tools SVN: r17203 - in trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal: context and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: dgeraskov
Date: 2009-08-21 03:23:56 -0400 (Fri, 21 Aug 2009)
New Revision: 17203
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/HibernateJpaProject.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/HibernatePersistenceUnit.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/Messages.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/Messages.properties
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/NamingStrategyMappingTools.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/java/HibernateJavaColumn.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/java/HibernateJavaEntityImpl.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/java/JavaGenericGeneratorImpl.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/orm/HibernateOrmBasicMapping.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/orm/HibernateOrmEntity.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/orm/HibernateOrmIdMapping.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4761
Catch NamingStrategy exceptions.
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/HibernateJpaProject.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/HibernateJpaProject.java 2009-08-21 01:51:09 UTC (rev 17202)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/HibernateJpaProject.java 2009-08-21 07:23:56 UTC (rev 17203)
@@ -33,21 +33,21 @@
public HibernateJpaProject(JpaProject.Config config) throws CoreException {
super(config);
}
-
+
public NamingStrategy getNamingStrategy(){
String ccName = getDefaultConsoleConfigurationName();
if (ccName != null || "".equals(ccName)){//$NON-NLS-1$
ConsoleConfiguration cc = KnownConfigurations.getInstance().find(ccName);
if (cc != null){
- if (cc.getConfiguration() != null){
+ if (cc.getConfiguration() != null){
Configuration config = cc.getConfiguration();
- return config.getNamingStrategy();
+ return config.getNamingStrategy();
}
}
}
return null;
}
-
+
public String getDefaultConsoleConfigurationName(){
IScopeContext scope = new ProjectScope(getProject());
Preferences node = scope.getNode("org.hibernate.eclipse.console"); //$NON-NLS-1$
@@ -56,5 +56,5 @@
}
return null;
}
-
+
}
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/HibernatePersistenceUnit.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/HibernatePersistenceUnit.java 2009-08-21 01:51:09 UTC (rev 17202)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/HibernatePersistenceUnit.java 2009-08-21 07:23:56 UTC (rev 17203)
@@ -69,14 +69,14 @@
int resType= res.getType();
if (resType != IResource.FILE) {
Property prop = getProperty(BasicHibernateProperties.HIBERNATE_CONFIG_FILE);
- IMessage message = new LocalMessage(Messages.class.getName(), IMessage.HIGH_SEVERITY,
+ IMessage message = new LocalMessage(IMessage.HIGH_SEVERITY,
NOT_A_FILE, new String[]{configFile}, getResource());
message.setLineNo(prop.getValidationTextRange().getLineNumber());
messages.add(message);
}
} else {
Property prop = getProperty(BasicHibernateProperties.HIBERNATE_CONFIG_FILE);
- IMessage message = new LocalMessage(Messages.class.getName(), IMessage.HIGH_SEVERITY,
+ IMessage message = new LocalMessage(IMessage.HIGH_SEVERITY,
CONFIG_FILE_NOT_FOUND, new String[]{configFile}, getResource());
message.setLineNo(prop.getValidationTextRange().getLineNumber());
messages.add(message);
@@ -92,9 +92,9 @@
*/
static public class LocalMessage extends Message {
- public LocalMessage(String name, int severity, String message,
+ public LocalMessage(int severity, String message,
String[] strings, IResource resource) {
- super(name, severity, message, strings, resource);
+ super(Messages.class.getName(), severity, message, strings, resource);
}
}
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/Messages.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/Messages.java 2009-08-21 01:51:09 UTC (rev 17202)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/Messages.java 2009-08-21 07:23:56 UTC (rev 17203)
@@ -26,4 +26,6 @@
String STRATEGY_INTERFACE = "STRATEGY_INTERFACE"; //$NON-NLS-1$
+ String NAMING_STRATEGY_EXCEPTION = "NAMING_STRATEGY_EXCEPTION"; //$NON-NLS-1$
+
}
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/Messages.properties
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/Messages.properties 2009-08-21 01:51:09 UTC (rev 17202)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/Messages.properties 2009-08-21 07:23:56 UTC (rev 17203)
@@ -2,4 +2,5 @@
CONFIG_FILE_NOT_FOUND = Configuration file named \"{0}\" could not be found.
STRATEGY_CLASS_NOT_FOUND = Strategy class \"{0}\" could not be found.
STRATEGY_CANT_BE_EMPTY = Strategy could not be empty.
-STRATEGY_INTERFACE = Strategy class \"{0}\" should implement interface \"org.hibernate.id.IdentifierGenerator\".
\ No newline at end of file
+STRATEGY_INTERFACE = Strategy class \"{0}\" should implement interface \"org.hibernate.id.IdentifierGenerator\".
+NAMING_STRATEGY_EXCEPTION = Exception occurred when calling NamingStrategy:
\ No newline at end of file
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/NamingStrategyMappingTools.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/NamingStrategyMappingTools.java 2009-08-21 01:51:09 UTC (rev 17202)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/NamingStrategyMappingTools.java 2009-08-21 07:23:56 UTC (rev 17203)
@@ -17,8 +17,12 @@
import org.eclipse.jpt.core.internal.context.MappingTools;
import org.eclipse.jpt.db.Database;
import org.eclipse.jpt.db.Table;
+import org.eclipse.wst.validation.internal.core.Message;
+import org.eclipse.wst.validation.internal.provisional.core.IMessage;
import org.hibernate.cfg.NamingStrategy;
import org.jboss.tools.hibernate.jpt.core.internal.HibernateJpaProject;
+import org.jboss.tools.hibernate.jpt.core.internal.HibernateJptPlugin;
+import org.jboss.tools.hibernate.jpt.core.internal.context.HibernatePersistenceUnit.LocalMessage;
/**
* @author Dmitry Geraskov
@@ -44,12 +48,19 @@
if (targetTableName == null) {
return null;
}
- NamingStrategy namingStrategy =((HibernateJpaProject)targetEntity.getJpaProject()).getNamingStrategy();
- if (namingStrategy != null){
- String name = namingStrategy.collectionTableName(relationshipMapping.getEntity().getPersistentType().getName(),
- owningTableName, targetEntity.getPersistentType().getName(), targetTableName, relationshipMapping.getName());
- Table primaryTable = relationshipMapping.getTypeMapping().getPrimaryDbTable();
- return primaryTable.getDatabase().convertNameToIdentifier(name);
+ NamingStrategy ns =((HibernateJpaProject)targetEntity.getJpaProject()).getNamingStrategy();
+ if (ns != null){
+ try{
+ String name = ns.collectionTableName(relationshipMapping.getEntity().getPersistentType().getName(),
+ owningTableName, targetEntity.getPersistentType().getName(), targetTableName, relationshipMapping.getName());
+ Table primaryTable = relationshipMapping.getTypeMapping().getPrimaryDbTable();
+ return primaryTable != null ? primaryTable.getDatabase().convertNameToIdentifier(name)
+ : name;
+ } catch (Exception e) {
+ Message m = new LocalMessage(IMessage.HIGH_SEVERITY,
+ Messages.NAMING_STRATEGY_EXCEPTION, new String[0], null);
+ HibernateJptPlugin.logException(m.getText(), e);
+ }
}
return owningTableName + '_' + targetTableName;
}
@@ -67,11 +78,17 @@
if (targetTable == null) {
return null;
}
- NamingStrategy namingStrategy = ((HibernateJpaProject)targetEntity.getJpaProject()).getNamingStrategy();
- if (namingStrategy != null){
- String name = namingStrategy.collectionTableName(relationshipMapping.getEntity().getPersistentType().getName(),
- owningTable.getName(), targetEntity.getPersistentType().getName(), targetTable.getName(), relationshipMapping.getName());
- return owningTable.getDatabase().convertNameToIdentifier(name);
+ NamingStrategy ns = ((HibernateJpaProject)targetEntity.getJpaProject()).getNamingStrategy();
+ if (ns != null){
+ try {
+ String name = ns.collectionTableName(relationshipMapping.getEntity().getPersistentType().getName(),
+ owningTable.getName(), targetEntity.getPersistentType().getName(), targetTable.getName(), relationshipMapping.getName());
+ return owningTable.getDatabase().convertNameToIdentifier(name);
+ } catch (Exception e) {
+ Message m = new LocalMessage(IMessage.HIGH_SEVERITY,
+ Messages.NAMING_STRATEGY_EXCEPTION, new String[0], null);
+ HibernateJptPlugin.logException(m.getText(), e);
+ }
}
String name = owningTable.getName() + '_' + targetTable.getName();
return owningTable.getDatabase().convertNameToIdentifier(name);
@@ -98,18 +115,24 @@
// Column targetColumn = joinColumn.getTargetPrimaryKeyDbColumn();
String targetColumnName = joinColumn.getReferencedColumnName();
- NamingStrategy namingStrategy = ((HibernateJpaProject)targetEntity.getJpaProject()).getNamingStrategy();
- if (namingStrategy != null){
+ NamingStrategy ns = ((HibernateJpaProject)targetEntity.getJpaProject()).getNamingStrategy();
+ if (ns != null){
String logicalTargetColumnName = null;
- if (targetColumnName != null || prefix != null){
- logicalTargetColumnName = namingStrategy.logicalColumnName(targetColumnName, prefix);
+ try {
+ if (targetColumnName != null || prefix != null){
+ logicalTargetColumnName = ns.logicalColumnName(targetColumnName, prefix);
+ }
+ String name = ns.foreignKeyColumnName(prefix,
+ targetEntity.getPersistentType().getName(),
+ targetEntity.getPrimaryTableName(),
+ logicalTargetColumnName);
+ Table t = targetEntity.getPrimaryDbTable();
+ return t != null ? t.getDatabase().convertNameToIdentifier(name) : name;
+ } catch (Exception e) {
+ Message m = new LocalMessage(IMessage.HIGH_SEVERITY,
+ Messages.NAMING_STRATEGY_EXCEPTION, new String[0], null);
+ HibernateJptPlugin.logException(m.getText(), e);
}
- String name = namingStrategy.foreignKeyColumnName(prefix,
- targetEntity.getPersistentType().getName(),
- targetEntity.getPrimaryTableName(),
- logicalTargetColumnName);
- Table t = targetEntity.getPrimaryDbTable();
- return t != null ? t.getDatabase().convertNameToIdentifier(name) : name;
}
if (prefix == null) {
prefix = targetEntityName;
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/java/HibernateJavaColumn.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/java/HibernateJavaColumn.java 2009-08-21 01:51:09 UTC (rev 17202)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/java/HibernateJavaColumn.java 2009-08-21 07:23:56 UTC (rev 17203)
@@ -3,8 +3,13 @@
import org.eclipse.jpt.core.context.java.JavaColumn;
import org.eclipse.jpt.core.context.java.JavaJpaContextNode;
import org.eclipse.jpt.core.internal.context.java.GenericJavaColumn;
+import org.eclipse.wst.validation.internal.core.Message;
+import org.eclipse.wst.validation.internal.provisional.core.IMessage;
import org.hibernate.cfg.NamingStrategy;
import org.jboss.tools.hibernate.jpt.core.internal.HibernateJpaProject;
+import org.jboss.tools.hibernate.jpt.core.internal.HibernateJptPlugin;
+import org.jboss.tools.hibernate.jpt.core.internal.context.Messages;
+import org.jboss.tools.hibernate.jpt.core.internal.context.HibernatePersistenceUnit.LocalMessage;
@SuppressWarnings("restriction")
public class HibernateJavaColumn extends GenericJavaColumn {
@@ -20,9 +25,15 @@
@Override
protected String buildDefaultName() {
- NamingStrategy namingStrategy = getJpaProject().getNamingStrategy();
- if (namingStrategy != null && super.buildDefaultName() != null){
- return namingStrategy.propertyToColumnName(super.buildDefaultName());
+ NamingStrategy ns = getJpaProject().getNamingStrategy();
+ if (ns != null && super.buildDefaultName() != null){
+ try {
+ return ns.propertyToColumnName(super.buildDefaultName());
+ } catch (Exception e) {
+ Message m = new LocalMessage(IMessage.HIGH_SEVERITY,
+ Messages.NAMING_STRATEGY_EXCEPTION, new String[0], null);
+ HibernateJptPlugin.logException(m.getText(), e);
+ }
}
return super.buildDefaultName();
}
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/java/HibernateJavaEntityImpl.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/java/HibernateJavaEntityImpl.java 2009-08-21 01:51:09 UTC (rev 17202)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/java/HibernateJavaEntityImpl.java 2009-08-21 07:23:56 UTC (rev 17203)
@@ -33,14 +33,18 @@
import org.eclipse.jpt.utility.internal.iterators.ArrayIterator;
import org.eclipse.jpt.utility.internal.iterators.CloneListIterator;
import org.eclipse.jpt.utility.internal.iterators.CompositeIterator;
+import org.eclipse.wst.validation.internal.core.Message;
import org.eclipse.wst.validation.internal.provisional.core.IMessage;
import org.eclipse.wst.validation.internal.provisional.core.IReporter;
import org.hibernate.cfg.NamingStrategy;
import org.jboss.tools.hibernate.jpt.core.internal.HibernateJpaFactory;
import org.jboss.tools.hibernate.jpt.core.internal.HibernateJpaProject;
+import org.jboss.tools.hibernate.jpt.core.internal.HibernateJptPlugin;
import org.jboss.tools.hibernate.jpt.core.internal.context.GenericGenerator;
import org.jboss.tools.hibernate.jpt.core.internal.context.HibernateNamedNativeQuery;
import org.jboss.tools.hibernate.jpt.core.internal.context.HibernateNamedQuery;
+import org.jboss.tools.hibernate.jpt.core.internal.context.Messages;
+import org.jboss.tools.hibernate.jpt.core.internal.context.HibernatePersistenceUnit.LocalMessage;
import org.jboss.tools.hibernate.jpt.core.internal.context.basic.Hibernate;
import org.jboss.tools.hibernate.jpt.core.internal.resource.java.DiscriminatorFormulaAnnotation;
import org.jboss.tools.hibernate.jpt.core.internal.resource.java.GenericGeneratorAnnotation;
@@ -466,9 +470,15 @@
}
protected String getResourceDefaultName() {
- NamingStrategy namingStrategy = getJpaProject().getNamingStrategy();
- if (namingStrategy != null){
- return namingStrategy.classToTableName(javaResourcePersistentType.getQualifiedName());
+ NamingStrategy ns = getJpaProject().getNamingStrategy();
+ if (ns != null){
+ try {
+ return ns.classToTableName(javaResourcePersistentType.getQualifiedName());
+ } catch (Exception e) {
+ Message m = new LocalMessage(IMessage.HIGH_SEVERITY,
+ Messages.NAMING_STRATEGY_EXCEPTION, new String[0], null);
+ HibernateJptPlugin.logException(m.getText(), e);
+ }
}
return javaResourcePersistentType.getName();
}
@@ -513,15 +523,21 @@
}
Entity parentEntity = HibernateJavaEntityImpl.this.getParentEntity();
NamingStrategy ns = HibernateJavaEntityImpl.this.getJpaProject().getNamingStrategy();
- if (ns == null)
- return parentEntity.getPrimaryKeyColumnName();
-
- String name = ns.joinKeyColumnName(parentEntity.getPrimaryKeyColumnName(),
- parentEntity.getPrimaryTableName());
- if (parentEntity.getPrimaryDbTable() != null){
- return parentEntity.getPrimaryDbTable().getDatabase().convertNameToIdentifier(name);
+ if (ns != null) {
+ try {
+ String name = ns.joinKeyColumnName(parentEntity.getPrimaryKeyColumnName(),
+ parentEntity.getPrimaryTableName());
+ if (parentEntity.getPrimaryDbTable() != null){
+ return parentEntity.getPrimaryDbTable().getDatabase().convertNameToIdentifier(name);
+ }
+ return name ;
+ } catch (Exception e) {
+ Message m = new LocalMessage(IMessage.HIGH_SEVERITY,
+ Messages.NAMING_STRATEGY_EXCEPTION, new String[0], null);
+ HibernateJptPlugin.logException(m.getText(), e);
+ }
}
- return name ;
+ return parentEntity.getPrimaryKeyColumnName();
}
}
}
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/java/JavaGenericGeneratorImpl.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/java/JavaGenericGeneratorImpl.java 2009-08-21 01:51:09 UTC (rev 17202)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/java/JavaGenericGeneratorImpl.java 2009-08-21 07:23:56 UTC (rev 17203)
@@ -193,7 +193,7 @@
}
protected IMessage creatErrorMessage(String strmessage, String[] params, int lineNum){
- IMessage message = new LocalMessage(Messages.class.getName(), IMessage.HIGH_SEVERITY,
+ IMessage message = new LocalMessage(IMessage.HIGH_SEVERITY,
strmessage, params, getResource());
message.setLineNo(lineNum);
return message;
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/orm/HibernateOrmBasicMapping.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/orm/HibernateOrmBasicMapping.java 2009-08-21 01:51:09 UTC (rev 17202)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/orm/HibernateOrmBasicMapping.java 2009-08-21 07:23:56 UTC (rev 17203)
@@ -14,8 +14,13 @@
import org.eclipse.jpt.core.context.orm.OrmPersistentAttribute;
import org.eclipse.jpt.core.internal.context.orm.GenericOrmBasicMapping;
import org.eclipse.jpt.core.resource.orm.XmlBasic;
+import org.eclipse.wst.validation.internal.core.Message;
+import org.eclipse.wst.validation.internal.provisional.core.IMessage;
import org.hibernate.cfg.NamingStrategy;
import org.jboss.tools.hibernate.jpt.core.internal.HibernateJpaProject;
+import org.jboss.tools.hibernate.jpt.core.internal.HibernateJptPlugin;
+import org.jboss.tools.hibernate.jpt.core.internal.context.Messages;
+import org.jboss.tools.hibernate.jpt.core.internal.context.HibernatePersistenceUnit.LocalMessage;
/**
* @author Dmitry Geraskov
@@ -38,7 +43,13 @@
public String getDefaultColumnName() {
NamingStrategy ns = getJpaProject().getNamingStrategy();
if (ns != null) {
- return ns.propertyToColumnName(getName());
+ try {
+ return ns.propertyToColumnName(getName());
+ } catch (Exception e) {
+ Message m = new LocalMessage(IMessage.HIGH_SEVERITY,
+ Messages.NAMING_STRATEGY_EXCEPTION, new String[0], null);
+ HibernateJptPlugin.logException(m.getText(), e);
+ }
}
return super.getDefaultColumnName();
}
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/orm/HibernateOrmEntity.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/orm/HibernateOrmEntity.java 2009-08-21 01:51:09 UTC (rev 17202)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/orm/HibernateOrmEntity.java 2009-08-21 07:23:56 UTC (rev 17203)
@@ -21,8 +21,13 @@
import org.eclipse.jpt.core.resource.orm.XmlEntity;
import org.eclipse.jpt.core.utility.TextRange;
import org.eclipse.jpt.utility.internal.ClassTools;
+import org.eclipse.wst.validation.internal.core.Message;
+import org.eclipse.wst.validation.internal.provisional.core.IMessage;
import org.hibernate.cfg.NamingStrategy;
import org.jboss.tools.hibernate.jpt.core.internal.HibernateJpaProject;
+import org.jboss.tools.hibernate.jpt.core.internal.HibernateJptPlugin;
+import org.jboss.tools.hibernate.jpt.core.internal.context.Messages;
+import org.jboss.tools.hibernate.jpt.core.internal.context.HibernatePersistenceUnit.LocalMessage;
/**
* @author Dmitry Geraskov
@@ -52,8 +57,14 @@
}
String className = getClass_();
if (className != null) {
- return ns == null ? ClassTools.shortNameForClassNamed(className)
+ try {
+ return ns == null ? ClassTools.shortNameForClassNamed(className)
: ns.classToTableName(className);
+ } catch (Exception e) {
+ Message m = new LocalMessage(IMessage.HIGH_SEVERITY,
+ Messages.NAMING_STRATEGY_EXCEPTION, new String[0], null);
+ HibernateJptPlugin.logException(m.getText(), e);
+ }
}
return null;
}
@@ -94,12 +105,18 @@
}
Entity parentEntity = HibernateOrmEntity.this.getParentEntity();
NamingStrategy ns = HibernateOrmEntity.this.getJpaProject().getNamingStrategy();
- if (ns == null)
- return parentEntity.getPrimaryKeyColumnName();
-
- String name = ns.joinKeyColumnName(parentEntity.getPrimaryKeyColumnName(),
- parentEntity.getPrimaryTableName());
- return name;
+ if (ns != null){
+ try {
+ String name = ns.joinKeyColumnName(parentEntity.getPrimaryKeyColumnName(),
+ parentEntity.getPrimaryTableName());
+ return name;
+ } catch (Exception e) {
+ Message m = new LocalMessage(IMessage.HIGH_SEVERITY,
+ Messages.NAMING_STRATEGY_EXCEPTION, new String[0], null);
+ HibernateJptPlugin.logException(m.getText(), e);
+ }
+ }
+ return parentEntity.getPrimaryKeyColumnName();
}
public TextRange getValidationTextRange() {
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/orm/HibernateOrmIdMapping.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/orm/HibernateOrmIdMapping.java 2009-08-21 01:51:09 UTC (rev 17202)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/orm/HibernateOrmIdMapping.java 2009-08-21 07:23:56 UTC (rev 17203)
@@ -14,8 +14,13 @@
import org.eclipse.jpt.core.context.orm.OrmPersistentAttribute;
import org.eclipse.jpt.core.internal.context.orm.GenericOrmIdMapping;
import org.eclipse.jpt.core.resource.orm.XmlId;
+import org.eclipse.wst.validation.internal.core.Message;
+import org.eclipse.wst.validation.internal.provisional.core.IMessage;
import org.hibernate.cfg.NamingStrategy;
import org.jboss.tools.hibernate.jpt.core.internal.HibernateJpaProject;
+import org.jboss.tools.hibernate.jpt.core.internal.HibernateJptPlugin;
+import org.jboss.tools.hibernate.jpt.core.internal.context.Messages;
+import org.jboss.tools.hibernate.jpt.core.internal.context.HibernatePersistenceUnit.LocalMessage;
/**
* @author Dmitry Geraskov
@@ -37,7 +42,13 @@
public String getDefaultColumnName() {
NamingStrategy namingStrategy = getJpaProject().getNamingStrategy();
if (namingStrategy != null && getName() != null){
+ try {
return namingStrategy.propertyToColumnName(getName());
+ } catch (Exception e) {
+ Message m = new LocalMessage(IMessage.HIGH_SEVERITY,
+ Messages.NAMING_STRATEGY_EXCEPTION, new String[0], null);
+ HibernateJptPlugin.logException(m.getText(), e);
+ }
}
return super.getDefaultColumnName();
}
16 years, 4 months
JBoss Tools SVN: r17202 - in trunk/bpel/plugins/org.jboss.tools.bpel.as.integration/src/org/jboss: tools/bpel/as/integration and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2009-08-20 21:51:09 -0400 (Thu, 20 Aug 2009)
New Revision: 17202
Removed:
trunk/bpel/plugins/org.jboss.tools.bpel.as.integration/src/org/jboss/bpel/
Modified:
trunk/bpel/plugins/org.jboss.tools.bpel.as.integration/src/org/jboss/tools/bpel/as/integration/JBossServerBPELPublisher.java
Log:
deleting emtpy folders, preparing for future multiple deployment types
Modified: trunk/bpel/plugins/org.jboss.tools.bpel.as.integration/src/org/jboss/tools/bpel/as/integration/JBossServerBPELPublisher.java
===================================================================
--- trunk/bpel/plugins/org.jboss.tools.bpel.as.integration/src/org/jboss/tools/bpel/as/integration/JBossServerBPELPublisher.java 2009-08-21 01:10:23 UTC (rev 17201)
+++ trunk/bpel/plugins/org.jboss.tools.bpel.as.integration/src/org/jboss/tools/bpel/as/integration/JBossServerBPELPublisher.java 2009-08-21 01:51:09 UTC (rev 17202)
@@ -17,6 +17,10 @@
public JBossServerBPELPublisher() {
}
+ public boolean accepts(String method, IServer server, IModule[] module) {
+ return "local".equals(method) && accepts(server, module);
+ }
+
public boolean accepts(IServer server, IModule[] module) {
IProject project = module[0].getProject();
if(project == null) return false;
16 years, 4 months
JBoss Tools SVN: r17201 - trunk/flow/plugins/org.jboss.tools.flow.common.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2009-08-20 21:10:23 -0400 (Thu, 20 Aug 2009)
New Revision: 17201
Modified:
trunk/flow/plugins/org.jboss.tools.flow.common/plugin.properties
Log:
https://jira.jboss.org/jira/browse/JBIDE-4571 fix provider and plug-in names for flow.common
Modified: trunk/flow/plugins/org.jboss.tools.flow.common/plugin.properties
===================================================================
--- trunk/flow/plugins/org.jboss.tools.flow.common/plugin.properties 2009-08-21 01:09:27 UTC (rev 17200)
+++ trunk/flow/plugins/org.jboss.tools.flow.common/plugin.properties 2009-08-21 01:10:23 UTC (rev 17201)
@@ -1,3 +1,3 @@
#Properties file for org.jboss.tools.flow.common
-Bundle-Vendor.0 = JBoss
+Bundle-Vendor.0 = JBoss by Red Hat
Bundle-Name.0 = Flow Language Common Tools
\ No newline at end of file
16 years, 4 months