Author: dazarov
Date: 2010-03-11 12:33:49 -0500 (Thu, 11 Mar 2010)
New Revision: 20767
Added:
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/src/org/jboss/tools/jsf/text/ext/facelets/hyperlink/FaceletsCSSClassHyperlink.java
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/src/org/jboss/tools/jsf/text/ext/facelets/hyperlink/FaceletsCSSClassHyperlinkPartitioner.java
Removed:
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/tools/jsf/text/ext/richfaces/hyperlink/RichfacesCSSClassHyperlink.java
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/tools/jsf/text/ext/richfaces/hyperlink/RichfacesCSSClassHyperlinkPartitioner.java
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/plugin.xml
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/META-INF/MANIFEST.MF
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/plugin.xml
Log:
https://jira.jboss.org/jira/browse/JBIDE-5986
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/plugin.xml
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/plugin.xml 2010-03-11 17:01:46
UTC (rev 20766)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/plugin.xml 2010-03-11 17:33:49
UTC (rev 20767)
@@ -107,6 +107,63 @@
</partitionType>
</contentType>
</hyperlinkPartitioner>
+
+ <hyperlinkPartitioner
+
id="org.jboss.tools.jsf.text.ext.facelets.hyperlink.FaceletsCSSClassHyperlinkPartitioner"
+
class="org.jboss.tools.jsf.text.ext.facelets.hyperlink.FaceletsCSSClassHyperlinkPartitioner">
+
+ <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]:*/columnClasses/"
/>
+ <axis
path="*/[http://java.sun.com/jsf/html]:*/footerClass/"
/>
+ <axis
path="*/[http://java.sun.com/jsf/html]:*/headerClass/"
/>
+ <axis
path="*/[http://java.sun.com/jsf/html]:*/rowClasses/"
/>
+ <axis
path="*/[http://java.sun.com/jsf/html]:*/captionClass/"
/>
+ <axis
path="*/[http://java.sun.com/jsf/html]:*/styleClass/"
/>
+ <axis
path="*/[http://java.sun.com/jsf/html]:*/errorClass/"
/>
+ <axis
path="*/[http://java.sun.com/jsf/html]:*/fatalClass/"
/>
+ <axis
path="*/[http://java.sun.com/jsf/html]:*/infoClass/"
/>
+ <axis
path="*/[http://java.sun.com/jsf/html]:*/warnClass/"
/>
+ <axis
path="*/[http://java.sun.com/jsf/html]:*/disabledClass/"
/>
+ <axis
path="*/[http://java.sun.com/jsf/html]:*/enabledClass/"
/>
+ </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]:*/columnClasses/"
/>
+ <axis
path="*/[http://java.sun.com/jsf/html]:*/footerClass/"
/>
+ <axis
path="*/[http://java.sun.com/jsf/html]:*/headerClass/"
/>
+ <axis
path="*/[http://java.sun.com/jsf/html]:*/rowClasses/"
/>
+ <axis
path="*/[http://java.sun.com/jsf/html]:*/captionClass/"
/>
+ <axis
path="*/[http://java.sun.com/jsf/html]:*/styleClass/"
/>
+ <axis
path="*/[http://java.sun.com/jsf/html]:*/errorClass/"
/>
+ <axis
path="*/[http://java.sun.com/jsf/html]:*/fatalClass/"
/>
+ <axis
path="*/[http://java.sun.com/jsf/html]:*/infoClass/"
/>
+ <axis
path="*/[http://java.sun.com/jsf/html]:*/warnClass/"
/>
+ <axis
path="*/[http://java.sun.com/jsf/html]:*/disabledClass/"
/>
+ <axis
path="*/[http://java.sun.com/jsf/html]:*/enabledClass/"
/>
+ </partitionType>
+ </contentType>
+ </hyperlinkPartitioner>
+
+ </extension>
+
+ <extension
+ point="org.jboss.tools.common.text.ext.hyperlink"
+ id="org.jboss.tools.common.text.ext.jsf.facelets.hyperlink"
+ name="org.jboss.tools.common.text.ext.jsf.facelets.hyperlink">
+
+ <hyperlink
+ class="org.jboss.tools.jsf.text.ext.facelets.hyperlink.FaceletsCSSClassHyperlink"
+ id="org.jboss.tools.jsf.text.ext.facelets.hyperlink.FaceletsCSSClassHyperlink">
+ <contenttypeidentifier id="org.eclipse.jst.jsp.core.jspsource">
+ <partitiontype id="org.jboss.tools.common.text.ext.FACELETS_CSS_CLASS"
/>
+ </contenttypeidentifier>
+ <contenttypeidentifier id="org.eclipse.wst.html.core.htmlsource">
+ <partitiontype id="org.jboss.tools.common.text.ext.FACELETS_CSS_CLASS"
/>
+ </contenttypeidentifier>
+ </hyperlink>
+
</extension>
<extension point="org.jboss.tools.jst.web.kb.KbIncludeContext">
Added:
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/src/org/jboss/tools/jsf/text/ext/facelets/hyperlink/FaceletsCSSClassHyperlink.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/src/org/jboss/tools/jsf/text/ext/facelets/hyperlink/FaceletsCSSClassHyperlink.java
(rev 0)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/src/org/jboss/tools/jsf/text/ext/facelets/hyperlink/FaceletsCSSClassHyperlink.java 2010-03-11
17:33:49 UTC (rev 20767)
@@ -0,0 +1,37 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Exadel, Inc. and 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:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+
+package org.jboss.tools.jsf.text.ext.facelets.hyperlink;
+
+import java.text.MessageFormat;
+
+import org.jboss.tools.common.text.ext.hyperlink.xpl.Messages;
+import org.jboss.tools.jst.text.ext.hyperlink.CSSClassHyperlink;
+
+/**
+ *
+ * @author Victor Rubezhny
+ *
+ */
+public class FaceletsCSSClassHyperlink extends CSSClassHyperlink {
+ /*
+ * (non-Javadoc)
+ *
+ * @see IHyperlink#getHyperlinkText()
+ */
+ public String getHyperlinkText() {
+ String styleName = getStyleName(fLastRegion);
+ if (styleName == null)
+ return MessageFormat.format(Messages.OpenA, Messages.CSSStyle);
+
+ return MessageFormat.format(Messages.OpenCSSStyle, styleName);
+ }
+}
Added:
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/src/org/jboss/tools/jsf/text/ext/facelets/hyperlink/FaceletsCSSClassHyperlinkPartitioner.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/src/org/jboss/tools/jsf/text/ext/facelets/hyperlink/FaceletsCSSClassHyperlinkPartitioner.java
(rev 0)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/src/org/jboss/tools/jsf/text/ext/facelets/hyperlink/FaceletsCSSClassHyperlinkPartitioner.java 2010-03-11
17:33:49 UTC (rev 20767)
@@ -0,0 +1,40 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Exadel, Inc. and 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:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+
+package org.jboss.tools.jsf.text.ext.facelets.hyperlink;
+
+import org.eclipse.jface.text.IDocument;
+import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion;
+import org.jboss.tools.jst.text.ext.hyperlink.CSSClassHyperlinkPartitioner;
+
+/**
+ *
+ * @author Victor Rubezhny
+ *
+ */
+public class FaceletsCSSClassHyperlinkPartitioner extends CSSClassHyperlinkPartitioner {
+ public static final String FACELETS_CSS_CLASS_PARTITION =
"org.jboss.tools.common.text.ext.FACELETS_CSS_CLASS"; //$NON-NLS-1$
+
+
+ @Override
+ public boolean recognize(IDocument document, IHyperlinkRegion region) {
+ if (region.getAxis() != null){
+ return true;
+ }
+ return false;
+ }
+
+ @Override
+ protected String getPartitionType(String axis) {
+ return FACELETS_CSS_CLASS_PARTITION;
+ }
+
+}
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/META-INF/MANIFEST.MF
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/META-INF/MANIFEST.MF 2010-03-11
17:01:46 UTC (rev 20766)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/META-INF/MANIFEST.MF 2010-03-11
17:33:49 UTC (rev 20767)
@@ -15,7 +15,8 @@
org.jboss.tools.jst.web;bundle-version="2.0.0",
org.jboss.tools.jst.web.kb;bundle-version="1.0.0",
org.eclipse.wst.css.core;bundle-version="1.1.300",
- org.jboss.tools.common.el.core;bundle-version="2.0.0"
+ org.jboss.tools.common.el.core;bundle-version="2.0.0",
+ org.jboss.tools.jsf.text.ext.facelets;bundle-version="2.0.0"
Export-Package: org.jboss.tools.jsf.text.ext.richfaces,
org.jboss.tools.jsf.text.ext.richfaces.hyperlink
Bundle-Version: 2.0.0
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/plugin.xml
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/plugin.xml 2010-03-11
17:01:46 UTC (rev 20766)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/plugin.xml 2010-03-11
17:33:49 UTC (rev 20767)
@@ -315,14 +315,200 @@
</hyperlinkPartitioner>
<hyperlinkPartitioner
-
id="org.jboss.tools.jsf.text.ext.richfaces.hyperlink.RichfacesCSSClassHyperlinkPartitioner"
-
class="org.jboss.tools.jsf.text.ext.richfaces.hyperlink.RichfacesCSSClassHyperlinkPartitioner">
+
id="org.jboss.tools.jsf.text.ext.richfaces.hyperlink.FaceletsCSSClassHyperlinkPartitioner"
+
class="org.jboss.tools.jsf.text.ext.facelets.hyperlink.FaceletsCSSClassHyperlinkPartitioner">
<contentType id="org.eclipse.jst.jsp.core.jspsource">
<partitionType
id="org.jboss.tools.common.text.ext.xml.XML_ATTRIBUTE_VALUE">
+ <axis
path="*/[http://richfaces.org/rich]:*/addButtonClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/activeClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/activeTabClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/buttonClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/buttonDisabledClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/buttonInactiveClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/barClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/bottomControlClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/bodyClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/columnClasses/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/controlClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/controlsClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/controlHoverClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/controlPressedClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/controlPressClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/cleanButtonClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/changedClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/changedHoverClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/copyAllControlClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/copyControlClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/contentClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/completeClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/dayStyleClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/decreaseClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/decreaseSelectedClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/disabledItemClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/disabledControlClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/downControlClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/disabledGroupClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/disabledClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/errorClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/errorLabelClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/errorMarkerClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/entryClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/footerClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/fileEntryClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/fileEntryControlClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/fatalClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/fatalLabelClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/fatalMarkerClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/finishClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/headerClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/handleClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/handleSelectedClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/hoveredGroupClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/hoveredItemClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/highlightedClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/inputClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/inputDisabledClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/inputInactiveClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/itemClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/itemSelectedClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/increaseClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/increaseSelectedClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/iconClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/infoClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/infoLabelClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/infoMarkerClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/initialClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/listClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/labelClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/popupClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/rowClasses/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/removeAllControlClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/removeControlClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/remainClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/styleClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/selectItemClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/stopButtonClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/selectClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/sidebarClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/selectedClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/selectValueClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/separatorClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/uploadButtonClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/uploadListClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/upControlClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/editClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/viewClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/viewHoverClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/tipClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/topControlClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/topGroupClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/topItemClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/tabClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/markerClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/warnClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/warnLabelClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/warnMarkerClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/groupClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/disabledTabClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/inactiveTabClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/nodeClass/" />
</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://richfaces.org/rich]:*/addButtonClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/activeClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/activeTabClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/buttonClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/buttonDisabledClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/buttonInactiveClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/barClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/bottomControlClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/bodyClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/columnClasses/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/controlClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/controlsClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/controlHoverClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/controlPressedClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/controlPressClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/cleanButtonClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/changedClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/changedHoverClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/copyAllControlClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/copyControlClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/contentClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/completeClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/dayStyleClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/decreaseClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/decreaseSelectedClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/disabledItemClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/disabledControlClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/downControlClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/disabledGroupClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/disabledClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/errorClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/errorLabelClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/errorMarkerClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/entryClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/footerClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/fileEntryClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/fileEntryControlClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/fatalClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/fatalLabelClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/fatalMarkerClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/finishClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/headerClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/handleClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/handleSelectedClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/hoveredGroupClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/hoveredItemClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/highlightedClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/inputClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/inputDisabledClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/inputInactiveClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/itemClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/itemSelectedClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/increaseClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/increaseSelectedClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/iconClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/infoClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/infoLabelClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/infoMarkerClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/initialClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/listClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/labelClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/popupClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/rowClasses/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/removeAllControlClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/removeControlClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/remainClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/styleClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/selectItemClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/stopButtonClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/selectClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/sidebarClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/selectedClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/selectValueClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/separatorClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/uploadButtonClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/uploadListClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/upControlClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/editClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/viewClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/viewHoverClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/tipClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/topControlClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/topGroupClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/topItemClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/tabClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/markerClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/warnClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/warnLabelClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/warnMarkerClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/groupClass/" />
+ <axis
path="*/[http://richfaces.org/rich]:*/disabledTabClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/inactiveTabClass/"
/>
+ <axis
path="*/[http://richfaces.org/rich]:*/nodeClass/" />
</partitionType>
</contentType>
</hyperlinkPartitioner>
@@ -356,16 +542,6 @@
</contenttypeidentifier>
</hyperlink>
- <hyperlink
- class="org.jboss.tools.jsf.text.ext.richfaces.hyperlink.RichfacesCSSClassHyperlink"
- id="org.jboss.tools.jsf.text.ext.richfaces.hyperlink.RichfacesCSSClassHyperlink">
- <contenttypeidentifier id="org.eclipse.jst.jsp.core.jspsource">
- <partitiontype id="org.jboss.tools.common.text.ext.RICHFACES_CSS_CLASS"
/>
- </contenttypeidentifier>
- <contenttypeidentifier id="org.eclipse.wst.html.core.htmlsource">
- <partitiontype id="org.jboss.tools.common.text.ext.RICHFACES_CSS_CLASS"
/>
- </contenttypeidentifier>
- </hyperlink>
</extension>
<extension point="org.jboss.tools.jst.web.kb.KbIncludeContext">
Deleted:
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/tools/jsf/text/ext/richfaces/hyperlink/RichfacesCSSClassHyperlink.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/tools/jsf/text/ext/richfaces/hyperlink/RichfacesCSSClassHyperlink.java 2010-03-11
17:01:46 UTC (rev 20766)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/tools/jsf/text/ext/richfaces/hyperlink/RichfacesCSSClassHyperlink.java 2010-03-11
17:33:49 UTC (rev 20767)
@@ -1,37 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 Exadel, Inc. and 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:
- * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-
-package org.jboss.tools.jsf.text.ext.richfaces.hyperlink;
-
-import java.text.MessageFormat;
-
-import org.jboss.tools.common.text.ext.hyperlink.xpl.Messages;
-import org.jboss.tools.jst.text.ext.hyperlink.CSSClassHyperlink;
-
-/**
- *
- * @author Victor Rubezhny
- *
- */
-public class RichfacesCSSClassHyperlink extends CSSClassHyperlink {
- /*
- * (non-Javadoc)
- *
- * @see IHyperlink#getHyperlinkText()
- */
- public String getHyperlinkText() {
- String styleName = getStyleName(fLastRegion);
- if (styleName == null)
- return MessageFormat.format(Messages.OpenA, Messages.CSSStyle);
-
- return MessageFormat.format(Messages.OpenCSSStyle, styleName);
- }
-}
Deleted:
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/tools/jsf/text/ext/richfaces/hyperlink/RichfacesCSSClassHyperlinkPartitioner.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/tools/jsf/text/ext/richfaces/hyperlink/RichfacesCSSClassHyperlinkPartitioner.java 2010-03-11
17:01:46 UTC (rev 20766)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/tools/jsf/text/ext/richfaces/hyperlink/RichfacesCSSClassHyperlinkPartitioner.java 2010-03-11
17:33:49 UTC (rev 20767)
@@ -1,140 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 Exadel, Inc. and 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:
- * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-
-package org.jboss.tools.jsf.text.ext.richfaces.hyperlink;
-
-import org.eclipse.jface.text.IDocument;
-import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion;
-import org.jboss.tools.jst.text.ext.hyperlink.CSSClassHyperlinkPartitioner;
-
-/**
- *
- * @author Victor Rubezhny
- *
- */
-public class RichfacesCSSClassHyperlinkPartitioner extends CSSClassHyperlinkPartitioner
{
- public static final String RICHFACES_CSS_CLASS_PARTITION =
"org.jboss.tools.common.text.ext.RICHFACES_CSS_CLASS"; //$NON-NLS-1$
-
- private static final String[] tokens = new String[]{
- "/columnClasses/",
- "/footerClass/",
- "/headerClass/",
- "/rowClasses/",
- "/captionClass/",
- "/styleClass/",
- "/errorClass/",
- "/errorMarkerClass/",
- "/fatalClass/",
- "/fatalLabelClass/",
- "/fatalMarkerClass/",
- "/infoClass/",
- "/infoLabelClass/",
- "/infoMarkerClass/",
- "/disabledClass/",
- "/enabledClass/",
- "/buttonClass/",
- "/buttonDisabledClass/",
- "/buttonInactiveClass/",
- "/bodyClass/",
- "/addButtonClass/",
- "/cleanButtonClass/",
- "/stopButtonClass/",
- "/uploadButtonClass/",
- "/uploadListClass/",
- "/fileEntryClass/",
- "/fileEntryControlClass/",
- "/dayStyleClass/",
- "/inputClass/",
- "/inputDisabledClass/",
- "/inputInactiveClass/",
- "/itemClass/",
- "/itemSelectedClass/",
- "/selectItemClass/",
- "/selectClass/",
- "/disabledItemClass/",
- "/listClass/",
- "/changedClass/",
- "/changedHoverClass/",
- "/controlClass/",
- "/controlsClass/",
- "/controlHoverClass/",
- "/controlPressedClass/",
- "/editClass/",
- "/viewClass/",
- "/viewHoverClass/",
- "/barClass/",
- "/decreaseClass/",
- "/decreaseSelectedClass/",
- "/handleClass/",
- "/handleSelectedClass/",
- "/increaseClass/",
- "/increaseSelectedClass/",
- "/tipClass/",
- "/bottomControlClass/",
- "/copyAllControlClass/",
- "/copyControlClass/",
- "/disabledControlClass/",
- "/downControlClass/",
- "/removeAllControlClass/",
- "/removeControlClass/",
- "/topControlClass/",
- "/upControlClass/",
- "/iconClass/",
- "/labelClass/",
- "/markerClass/",
- "/warnClass/",
- "/warnLabelClass/",
- "/warnMarkerClass/",
- "/sidebarClass/",
- "/contentClass/",
- "/disabledGroupClass/",
- "/disabledItemClass/",
- "/groupClass/",
- "/hoveredGroupClass/",
- "/hoveredItemClass/",
- "/topGroupClass/",
- "/topItemClass/",
- "/completeClass/",
- "/finishClass/",
- "/initialClass/",
- "/remainClass/",
- "/activeClass/",
- "/selectedClass/",
- "/entryClass/",
- "/popupClass/",
- "/selectValueClass/",
- "/activeTabClass/",
- "/disabledTabClass/",
- "/inactiveTabClass/",
- "/tabClass/",
- "/separatorClass/",
- "/highlightedClass/",
- "/nodeClass/",
- "/controlPressClass/",
- "/errorLabelClass/"
- };
-
- @Override
- public boolean recognize(IDocument document, IHyperlinkRegion region) {
- if (region.getAxis() != null){
- for(String token : tokens)
- if(region.getAxis().endsWith(token))
- return true;
- }
- return false;
- }
-
- @Override
- protected String getPartitionType(String axis) {
- return RICHFACES_CSS_CLASS_PARTITION;
- }
-
-}