Author: vrubezhny
Date: 2008-10-17 09:17:39 -0400 (Fri, 17 Oct 2008)
New Revision: 10922
Added:
trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/.classpath
trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/.cvsignore
trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/.project
trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/META-INF/
trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/META-INF/MANIFEST.MF
trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/about.html
trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/build.properties
trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/plugin.properties
trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/plugin.xml
trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/
trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/
trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/
trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/tools/
trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/tools/jsf/
trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/tools/jsf/text/
trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/tools/jsf/text/ext/
trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/tools/jsf/text/ext/richfaces/
trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/tools/jsf/text/ext/richfaces/RichfacesExtensionsPlugin.java
Log:
Share project 'org.jboss.tools.jsf.text.ext.richfaces' into
'https://svn.jboss.org/repos/jbosstools/trunk'
JBIDE-1898 OpenOns for attributes of richfaces tags
JBIDE-2406 openon doesn't work for "viewId" attribute of <a4j:include>
component.
Added: trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/.classpath
===================================================================
--- trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/.classpath
(rev 0)
+++ trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/.classpath 2008-10-17
13:17:39 UTC (rev 10922)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con"
path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Added: trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/.cvsignore
===================================================================
--- trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/.cvsignore
(rev 0)
+++ trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/.cvsignore 2008-10-17
13:17:39 UTC (rev 10922)
@@ -0,0 +1 @@
+bin
Added: trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/.project
===================================================================
--- trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/.project
(rev 0)
+++ trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/.project 2008-10-17
13:17:39 UTC (rev 10922)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.jsf.text.ext.facelets</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Added:
trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/META-INF/MANIFEST.MF
===================================================================
--- trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/META-INF/MANIFEST.MF
(rev 0)
+++
trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/META-INF/MANIFEST.MF 2008-10-17
13:17:39 UTC (rev 10922)
@@ -0,0 +1,17 @@
+Manifest-Version: 1.0
+Eclipse-LazyStart: true
+Bundle-Name: Richfaces Text Editors Extensions
+Bundle-ClassPath: jsfrichfacesextensions.jar
+Bundle-Activator: org.jboss.tools.jsf.text.ext.richfaces.RichfacesExtensionsPlugin
+Bundle-ManifestVersion: 2
+Bundle-Vendor: %providerName
+Bundle-SymbolicName: org.jboss.tools.jsf.text.ext.richfaces; singleton:=true
+Bundle-Localization: plugin
+Require-Bundle:
+ org.eclipse.ui,org.eclipse.core.runtime,
+ org.eclipse.core.resources,org.eclipse.jface.text,
+ org.jboss.tools.common.text.ext,
+ org.jboss.tools.jsf.text.ext
+Export-Package: org.jboss.tools.jsf.text.ext.richfaces
+Bundle-Version: 2.0.0
+
Added: trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/about.html
===================================================================
--- trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/about.html
(rev 0)
+++ trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/about.html 2008-10-17
13:17:39 UTC (rev 10922)
@@ -0,0 +1,34 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<HTML>
+
+<head>
+<title>About</title>
+<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
+</head>
+
+<BODY lang="EN-US">
+
+<H3>About This Content</H3>
+
+<P>©2007 Red Hat, Inc. All rights reserved</P>
+
+<H3>License</H3>
+
+<P>Red Hat Inc., through its JBoss division, makes available all content in this
plug-in
+("Content"). Unless otherwise indicated below, the Content is provided to you
+under the terms and conditions of the Eclipse Public License Version 1.0
+("EPL"). A copy of the EPL is available at
+<A
href="http://www.eclipse.org/org/documents/epl-v10.php">http...;.
+For purposes of the EPL, "Program" will mean the Content.</P>
+
+<P>If you did not receive this Content directly from Red Hat Inc., the
+Content is being redistributed by another party ("Redistributor") and different
+terms and conditions may apply to your use of any object code in the Content.
+Check the Redistributor's license that was provided with the Content. If no such
+license exists, contact the Redistributor. Unless otherwise indicated below, the
+terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at
+ <A
href="http://www.jboss.org/tools">http://www.jboss.org/tools...
+
+</BODY>
+</HTML>
\ No newline at end of file
Added: trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/build.properties
===================================================================
--- trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/build.properties
(rev 0)
+++
trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/build.properties 2008-10-17
13:17:39 UTC (rev 10922)
@@ -0,0 +1,8 @@
+bin.includes = META-INF/,\
+ plugin.xml,\
+ jsfextensions.jar,\
+ about.html,\
+ plugin.properties
+jars.compile.order = jsfextensions.jar
+source.jsfextensions.jar = src/
+output.jsfextensions.jar = bin/
Added: trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/plugin.properties
===================================================================
--- trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/plugin.properties
(rev 0)
+++
trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/plugin.properties 2008-10-17
13:17:39 UTC (rev 10922)
@@ -0,0 +1 @@
+providerName=Red Hat, Inc.
Added: trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/plugin.xml
===================================================================
--- trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/plugin.xml
(rev 0)
+++ trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/plugin.xml 2008-10-17
13:17:39 UTC (rev 10922)
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.0"?>
+<plugin>
+
+ <extension
+ point="org.jboss.tools.common.text.ext.hyperlinkPartitioner"
+ id="org.jboss.tools.common.text.ext.jsf.richfaces.hyperlinkPartitioner"
+ name="org.jboss.tools.common.text.ext.jsf.richfaces.hyperlinkPartitioner">
+
+ <hyperlinkPartitioner
+
id="org.jboss.tools.common.text.ext.jsf.richfaces.hyperlink.jsp.JSPLinkHyperlinkPartitioner"
+
class="org.jboss.tools.common.text.ext.hyperlink.jsp.JSPLinkHyperlinkPartitioner">
+ <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/a4j]:include/viewId/" />
+ <axis
path="*/[http://richfaces.org/rich]:insert/src/" />
+ </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/a4j]:include/viewId/" />
+ <axis
path="*/[http://richfaces.org/rich]:insert/src/" />
+ </partitionType>
+ </contentType>
+ </hyperlinkPartitioner>
+
+ <hyperlinkPartitioner
+
id="org.jboss.tools.common.text.ext.jsf.richfaces.hyperlink.JSFJSPLinkHyperlinkPartitioner"
+
class="org.jboss.tools.jsf.text.ext.hyperlink.JSFJSPLinkHyperlinkPartitioner">
+ <contentType id="org.eclipse.jst.jsp.core.jspsource">
+ <partitionType id="org.jboss.tools.common.text.ext.jsp.JSP_LINK"
>
+ <axis
path="*/[http://richfaces.org/a4j]:include/viewId/" />
+ <axis
path="*/[http://richfaces.org/rich]:insert/src/" />
+ </partitionType>
+ </contentType>
+ <contentType id="org.eclipse.wst.html.core.htmlsource">
+ <partitionType id="org.jboss.tools.common.text.ext.jsp.JSP_LINK"
>
+ <axis
path="*/[http://richfaces.org/a4j]:include/viewId/" />
+ <axis
path="*/[http://richfaces.org/rich]:insert/src/" />
+ </partitionType>
+ </contentType>
+ </hyperlinkPartitioner>
+
+ </extension>
+</plugin>
Added:
trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/tools/jsf/text/ext/richfaces/RichfacesExtensionsPlugin.java
===================================================================
---
trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/tools/jsf/text/ext/richfaces/RichfacesExtensionsPlugin.java
(rev 0)
+++
trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/tools/jsf/text/ext/richfaces/RichfacesExtensionsPlugin.java 2008-10-17
13:17:39 UTC (rev 10922)
@@ -0,0 +1,107 @@
+/*******************************************************************************
+ * Copyright (c) 2007 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;
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+import org.eclipse.ui.plugin.*;
+import org.eclipse.core.resources.IWorkspace;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The main plugin class to be used in the desktop.
+ */
+public class RichfacesExtensionsPlugin extends AbstractUIPlugin {
+
+ //The shared instance.
+ private static RichfacesExtensionsPlugin plugin;
+ //Resource bundle.
+ private ResourceBundle resourceBundle;
+
+ public static final String PLUGIN_ID =
"org.jboss.tools.jsf.text.ext.richfaces";
+
+
+ /**
+ * The constructor.
+ */
+ public RichfacesExtensionsPlugin() {
+ plugin = this;
+ try {
+ resourceBundle=
ResourceBundle.getBundle("org.jboss.tools.jsf.text.ext.richfaces.RichfacesExtensionsPlugin");
+ } catch (MissingResourceException x) {
+ resourceBundle = null;
+ }
+ }
+
+ /**
+ * This method is called upon plug-in activation
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ }
+
+ /**
+ * This method is called when the plug-in is stopped
+ */
+ public void stop(BundleContext context) throws Exception {
+ super.stop(context);
+ plugin = null;
+ }
+
+ /**
+ * Returns the shared instance.
+ */
+ public static RichfacesExtensionsPlugin getDefault() {
+ return plugin;
+ }
+
+ /**
+ * Returns an image descriptor for the image file at the given
+ * plug-in relative path.
+ *
+ * @param path the path
+ * @return the image descriptor
+ */
+ public static ImageDescriptor getImageDescriptor(String path) {
+ return
AbstractUIPlugin.imageDescriptorFromPlugin("org.jboss.tools.jsf.text.ext.richfaces",
path);
+ }
+
+ /**
+ * Returns the workspace instance.
+ */
+ public static IWorkspace getWorkspace() {
+ return ResourcesPlugin.getWorkspace();
+ }
+
+ /**
+ * Returns the string from the plugin's resource bundle,
+ * or 'key' if not found.
+ */
+ public static String getResourceString(String key) {
+ ResourceBundle bundle= RichfacesExtensionsPlugin.getDefault().getResourceBundle();
+ try {
+ return bundle.getString(key);
+ } catch (MissingResourceException e) {
+ return key;
+ }
+ }
+
+ /**
+ * Returns the plugin's resource bundle,
+ */
+ public ResourceBundle getResourceBundle() {
+ return resourceBundle;
+ }
+
+}