Author: dazarov
Date: 2010-04-20 11:52:21 -0400 (Tue, 20 Apr 2010)
New Revision: 21559
Added:
branches/jbosstools-3.1.x/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/src/org/jboss/tools/jsf/text/ext/facelets/hyperlink/FaceletsCSSClassHyperlink.java
branches/jbosstools-3.1.x/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/src/org/jboss/tools/jsf/text/ext/facelets/hyperlink/FaceletsCSSClassHyperlinkPartitioner.java
Removed:
branches/jbosstools-3.1.x/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/tools/jsf/text/ext/richfaces/hyperlink/RichfacesCSSClassHyperlink.java
branches/jbosstools-3.1.x/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/tools/jsf/text/ext/richfaces/hyperlink/RichfacesCSSClassHyperlinkPartitioner.java
Modified:
branches/jbosstools-3.1.x/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/HyperlinkPartitionerDefinition.java
branches/jbosstools-3.1.x/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/plugin.xml
branches/jbosstools-3.1.x/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/plugin.xml
Log:
https://jira.jboss.org/jira/browse/JBIDE-5986
Modified:
branches/jbosstools-3.1.x/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/HyperlinkPartitionerDefinition.java
===================================================================
---
branches/jbosstools-3.1.x/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/HyperlinkPartitionerDefinition.java 2010-04-20
15:19:22 UTC (rev 21558)
+++
branches/jbosstools-3.1.x/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/HyperlinkPartitionerDefinition.java 2010-04-20
15:52:21 UTC (rev 21559)
@@ -376,7 +376,7 @@
return false;
}
} else {
- int currentIndex = path.indexOf(fDelimitedPathElements[i]);
+ int currentIndex = path.lastIndexOf(fDelimitedPathElements[i]);
if(currentIndex>-1 && currentIndex>lastIndex) {
lastIndex = currentIndex;
if(fDelimitedPathElements[i].startsWith(TAGLIB))
Modified:
branches/jbosstools-3.1.x/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/plugin.xml
===================================================================
---
branches/jbosstools-3.1.x/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/plugin.xml 2010-04-20
15:19:22 UTC (rev 21558)
+++
branches/jbosstools-3.1.x/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/plugin.xml 2010-04-20
15:52:21 UTC (rev 21559)
@@ -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:
branches/jbosstools-3.1.x/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/src/org/jboss/tools/jsf/text/ext/facelets/hyperlink/FaceletsCSSClassHyperlink.java
===================================================================
---
branches/jbosstools-3.1.x/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/src/org/jboss/tools/jsf/text/ext/facelets/hyperlink/FaceletsCSSClassHyperlink.java
(rev 0)
+++
branches/jbosstools-3.1.x/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/src/org/jboss/tools/jsf/text/ext/facelets/hyperlink/FaceletsCSSClassHyperlink.java 2010-04-20
15:52:21 UTC (rev 21559)
@@ -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);
+ }
+}
Property changes on:
branches/jbosstools-3.1.x/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/src/org/jboss/tools/jsf/text/ext/facelets/hyperlink/FaceletsCSSClassHyperlink.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
branches/jbosstools-3.1.x/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/src/org/jboss/tools/jsf/text/ext/facelets/hyperlink/FaceletsCSSClassHyperlinkPartitioner.java
===================================================================
---
branches/jbosstools-3.1.x/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/src/org/jboss/tools/jsf/text/ext/facelets/hyperlink/FaceletsCSSClassHyperlinkPartitioner.java
(rev 0)
+++
branches/jbosstools-3.1.x/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/src/org/jboss/tools/jsf/text/ext/facelets/hyperlink/FaceletsCSSClassHyperlinkPartitioner.java 2010-04-20
15:52:21 UTC (rev 21559)
@@ -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;
+ }
+
+}
Property changes on:
branches/jbosstools-3.1.x/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/src/org/jboss/tools/jsf/text/ext/facelets/hyperlink/FaceletsCSSClassHyperlinkPartitioner.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified:
branches/jbosstools-3.1.x/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/plugin.xml
===================================================================
---
branches/jbosstools-3.1.x/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/plugin.xml 2010-04-20
15:19:22 UTC (rev 21558)
+++
branches/jbosstools-3.1.x/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/plugin.xml 2010-04-20
15:52:21 UTC (rev 21559)
@@ -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:
branches/jbosstools-3.1.x/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/tools/jsf/text/ext/richfaces/hyperlink/RichfacesCSSClassHyperlink.java
===================================================================
---
branches/jbosstools-3.1.x/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/tools/jsf/text/ext/richfaces/hyperlink/RichfacesCSSClassHyperlink.java 2010-04-20
15:19:22 UTC (rev 21558)
+++
branches/jbosstools-3.1.x/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/tools/jsf/text/ext/richfaces/hyperlink/RichfacesCSSClassHyperlink.java 2010-04-20
15:52:21 UTC (rev 21559)
@@ -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:
branches/jbosstools-3.1.x/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/tools/jsf/text/ext/richfaces/hyperlink/RichfacesCSSClassHyperlinkPartitioner.java
===================================================================
---
branches/jbosstools-3.1.x/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/tools/jsf/text/ext/richfaces/hyperlink/RichfacesCSSClassHyperlinkPartitioner.java 2010-04-20
15:19:22 UTC (rev 21558)
+++
branches/jbosstools-3.1.x/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/tools/jsf/text/ext/richfaces/hyperlink/RichfacesCSSClassHyperlinkPartitioner.java 2010-04-20
15:52:21 UTC (rev 21559)
@@ -1,40 +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 RICHFACES_CSS_CLASS_TOKEN = "/styleClass/";
//$NON-NLS-1$
-
- @Override
- public boolean recognize(IDocument document, IHyperlinkRegion region) {
- if (region.getAxis() != null
- && region.getAxis().endsWith(RICHFACES_CSS_CLASS_TOKEN))
- return true;
- return false;
- }
-
- @Override
- protected String getPartitionType(String axis) {
- return RICHFACES_CSS_CLASS_PARTITION;
- }
-
-}