JBoss Tools SVN: r9791 - trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/edit.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2008-08-19 05:59:43 -0400 (Tue, 19 Aug 2008)
New Revision: 9791
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/edit/LinkEndpointEditPolicy.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-1189
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/edit/LinkEndpointEditPolicy.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/edit/LinkEndpointEditPolicy.java 2008-08-19 08:20:59 UTC (rev 9790)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/edit/LinkEndpointEditPolicy.java 2008-08-19 09:59:43 UTC (rev 9791)
@@ -26,10 +26,13 @@
import org.eclipse.gef.handles.AbstractHandle;
import org.eclipse.gef.handles.ConnectionHandle;
import org.eclipse.gef.tools.ConnectionEndpointTracker;
+import org.eclipse.swt.SWT;
import org.eclipse.swt.dnd.DragSourceEvent;
import org.eclipse.swt.events.MouseEvent;
+import org.jboss.tools.jst.web.model.ReferenceObject;
import org.jboss.tools.seam.ui.pages.editor.dnd.DndHelper;
import org.jboss.tools.seam.ui.pages.editor.ecore.pages.Link;
+import org.jboss.tools.seam.ui.pages.editor.ecore.pages.Page;
import org.jboss.tools.seam.ui.pages.editor.figures.ConnectionFigure;
@@ -56,8 +59,15 @@
}
protected void addSelectionHandles() {
-
- super.addSelectionHandles();
+ Page page=null;
+ Link link = ((LinkEditPart)getHost()).getLinkModel();
+ if(link != null && link.getFromElement() instanceof Page)
+ page = (Page)link.getFromElement();
+
+ if(page != null && page.getData() != null && page.getData() instanceof ReferenceObject && ((ReferenceObject)page.getData()).getReference() == null){
+
+ }else
+ super.addSelectionHandles();
addPagesHandles();
getConnectionFigure().setSelected(true);
17 years, 8 months
JBoss Tools SVN: r9790 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor.
by jbosstools-commits@lists.jboss.org
Author: dmaliarevich
Date: 2008-08-19 04:20:59 -0400 (Tue, 19 Aug 2008)
New Revision: 9790
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-1363,
https://jira.jboss.org/jira/browse/JBIDE-2442.
In InsertAction StructuredSelectionProvider from source view is used instead of VpeSelectionProvider .
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java 2008-08-19 08:16:07 UTC (rev 9789)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java 2008-08-19 08:20:59 UTC (rev 9790)
@@ -73,6 +73,7 @@
import org.eclipse.wst.sse.core.internal.provisional.IStructuredModel;
import org.eclipse.wst.sse.core.internal.provisional.IndexedRegion;
import org.eclipse.wst.sse.ui.StructuredTextEditor;
+import org.eclipse.wst.sse.ui.internal.StructuredTextViewer;
import org.eclipse.wst.sse.ui.internal.view.events.INodeSelectionListener;
import org.eclipse.wst.sse.ui.internal.view.events.ITextSelectionListener;
import org.eclipse.wst.sse.ui.internal.view.events.NodeSelectionChangedEvent;
@@ -2174,19 +2175,44 @@
String uri = (parent == null) ? "" : parent.getAttributeValue(URIConstants.LIBRARY_URI); //$NON-NLS-1$
String libraryVersion = (parent == null) ? "" : parent.getAttributeValue(URIConstants.LIBRARY_VERSION); //$NON-NLS-1$
String defaultPrefix = (parent == null) ? "" : parent.getAttributeValue(URIConstants.DEFAULT_PREFIX); //$NON-NLS-1$
- VpeSelectionProvider selProvider = new VpeSelectionProvider(
- region);
-
+
+ /*
+ * Fixes https://jira.jboss.org/jira/browse/JBIDE-1363.
+ * Fixes https://jira.jboss.org/jira/browse/JBIDE-2442.
+ * author: dmaliarevich
+ * StructuredSelectionProvider from source view is used
+ * instead of VpeSelectionProvider.
+ * It helps automatically update selection range
+ * after taglib insertion.
+ */
+ StructuredTextViewer structuredTextViewer = null;
+ structuredTextViewer = getSourceEditor().getTextViewer();
+ int offset = 0;
+ int length = 0;
+
String startText = "" + item.getAttributeValue("start text"); //$NON-NLS-1$ //$NON-NLS-2$
String endText = "" + item.getAttributeValue("end text"); //$NON-NLS-1$ //$NON-NLS-2$
if (type == AROUND_MENU) {
+ /*
+ * In this case node was already selected correctly.
+ */
} else if (type == BEFORE_MENU) {
- selProvider = new VpeSelectionProvider(region
- .getStartOffset());
+ offset = region.getStartOffset();
+ length = 0;
+ structuredTextViewer.setSelectedRange(offset, length);
+ structuredTextViewer.revealRange(offset, length);
} else if (type == AFTER_MENU) {
- selProvider = new VpeSelectionProvider(region
- .getEndOffset());
+ offset = region.getEndOffset();
+ length = 0;
+ structuredTextViewer.setSelectedRange(offset, length);
+ structuredTextViewer.revealRange(offset, length);
}
+
+ /*
+ * Gets source editor's selection provider
+ * with updated text selection.
+ */
+ ISelectionProvider selProvider = getSourceEditor().getSelectionProvider();
Properties p = new Properties();
p.setProperty("tag name", tagName); //$NON-NLS-1$
17 years, 8 months
JBoss Tools SVN: r9789 - trunk/jsf/docs/userguide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2008-08-19 04:16:07 -0400 (Tue, 19 Aug 2008)
New Revision: 9789
Modified:
trunk/jsf/docs/userguide/en/modules/palette.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-240 - adding info about RichFaces components in JBDS
Modified: trunk/jsf/docs/userguide/en/modules/palette.xml
===================================================================
--- trunk/jsf/docs/userguide/en/modules/palette.xml 2008-08-19 03:07:26 UTC (rev 9788)
+++ trunk/jsf/docs/userguide/en/modules/palette.xml 2008-08-19 08:16:07 UTC (rev 9789)
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='UTF-8'?>
-<chapter id="palette" xreflabel="palette" revisionflag="changed">
+<chapter id="palette" xreflabel="palette" revisionflag="changed">
<?dbhtml filename="palette.html"?>
<chapterinfo>
<keywordset>
@@ -98,231 +98,224 @@
new one, as well.</para>
<para>To open the editor, click on the <emphasis>
<property>Palette Editor</property>
- </emphasis> icon:
+ </emphasis> icon: <figure>
+ <title>Palette Editor Icon</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/palette/palette_7.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </para>
+ <para>The window has two parts. There is a reflected grouped list of components on the
+ left side of the palette editor. Each group is divided into multiple groups, every
+ of which is a tag library. The right side of the palette editor is an editing window
+ where it's possible to change values of group or tag library attributes
+ that you've chosen on the left part of the window. </para>
+ <para>It can also be done by right click and using <emphasis>
+ <property>Edit…</property>
+ </emphasis> option.</para>
+ <literallayout/>
+ <para> For example, <property>JSF</property> group consists of
+ <property>Core</property>, <property>Facelets</property>, <property>HTML</property>
+ tag libraries and the attributes as <property>name</property>,
+ <property>description</property> and <property>hidden</property> which are available
+ for editing: </para>
+ <figure>
+ <title>Tag Libraries of the JSF Group</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/palette/palette_24.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>The Palette Editor provides the following possibilities when working with existing
+ tags or icons:</para>
+ <itemizedlist>
+ <listitem>
+ <para>to work with a set of icons</para>
+ <para><emphasis>
+ <property>Icons</property>
+ </emphasis> is the root folder for the icon sets. The first step is creating
+ the icon set. Right click on the <emphasis>
+ <property>Icons</property>
+ </emphasis> folder and select <emphasis>
+ <property>Create > Create Set...</property>
+ </emphasis></para>
+ <para>Set the value of the name in the <emphasis>
+ <property>Add Icons</property>
+ </emphasis> window and click <emphasis>
+ <property>Finish</property>
+ </emphasis> button. A new element will appear in the list.</para>
<figure>
- <title>Palette Editor Icon</title>
+ <title>Creating a Set of Icons</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/palette/palette_7.png"/>
+ <imagedata fileref="images/palette/palette_17.png"/>
</imageobject>
</mediaobject>
</figure>
- </para>
- <para>The window has two parts. There is a reflected grouped list of components
- on the left side of the palette editor. Each group is divided into multiple
- groups, every of which is a tag library. The right side of the palette
- editor is an editing window where it's possible to change values of
- group or tag library attributes that you've chosen on the left part
- of the window. </para>
- <para>It can also be done by right click and using <emphasis>
- <property>Edit…</property>
+ <para>Also you can delete the set. Right click on the set of icons that you wish
+ to remove and chose the <emphasis>
+ <property>Delete Set</property>
+ </emphasis> option from the pop-up menu or click the <emphasis>
+ <property>Delete</property>
+ </emphasis> keyboard button.</para>
+ </listitem>
+ <listitem>
+ <para>to edit icons in the chosen set</para>
+ <para>When the set of icons is created, new icons can be imported to it. Choose
+ the required set and select the option <emphasis>
+ <property>Create > Import Icon... </property>
+ </emphasis> from the pop-up menu that appears after you right-click on a
+ folder.</para>
+ <figure>
+ <title>Creating Icons</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/palette/palette_18.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>Set the name of the icon and the path and click <emphasis>
+ <property>Finish</property>
+ </emphasis> button.</para>
+ </listitem>
+ <listitem>
+ <para>to work with a group of tag libraries</para>
+ <para>The first step in work with the editor is creating a group of libraries.
+ It's very easy to do, right mouse button click on the <emphasis>
+ <property>Palette</property>
+ </emphasis> folder and select <emphasis>
+ <property>Create > Create Group…</property>
+ </emphasis></para>
+ <para>Set a name of a group in the <property>Create Group</property> window and
+ click <emphasis>
+ <property>OK</property>
+ </emphasis> button. A new element will appear at the end of the list.</para>
+ <figure>
+ <title>Creating a Group of Tag Libraries</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/palette/palette_19.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>You are allowed to edit or delete a group, as well. If you'd like
+ to change attributes of a group, use the right editing window of the palette
+ editor or the <emphasis>
+ <property>Edit...</property>
+ </emphasis> option, like it was mentioned before. In order to remove the
+ group, right click on the group that you wish to remove and chose the <emphasis>
+ <property>Delete</property>
+ </emphasis> option or click the <emphasis>
+ <property>Delete</property>
+ </emphasis> keyboard button.</para>
+ <important>
+ <title>Important:</title>
+ <para>The removal option is enabled only for custom folders.</para>
+ </important>
+ </listitem>
+ <listitem>
+ <para>to work with a tag library</para>
+ <para>The group maintains a list of tag libraries. If you'd like to
+ create your own library, click right mouse button on the group and choose <emphasis>
+ <property>Create Group…</property>
</emphasis> option.</para>
- <literallayout/>
- <para> For example, <property>JSF</property> group consists of
- <property>Core</property>, <property>Facelets</property>,
- <property>HTML</property> tag libraries and the attributes as
- <property>name</property>, <property>description</property> and
- <property>hidden</property> which are available for editing: </para>
<figure>
- <title>Tag Libraries of the JSF Group</title>
+ <title>Creating a tag library</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/palette/palette_24.png"/>
+ <imagedata fileref="images/palette/palette_20.png"/>
</imageobject>
</mediaobject>
</figure>
- <para>The Palette Editor provides the following possibilities when working with
- existing tags or icons:</para>
- <itemizedlist>
- <listitem>
- <para>to work with a set of icons</para>
- <para><emphasis>
- <property>Icons</property>
- </emphasis> is the root folder for the icon sets. The first step is
- creating the icon set. Right click on the <emphasis>
- <property>Icons</property>
- </emphasis> folder and select <emphasis>
- <property>Create > Create Set...</property>
- </emphasis></para>
- <para>Set the value of the name in the <emphasis>
- <property>Add Icons</property>
- </emphasis> window and click <emphasis>
- <property>Finish</property>
- </emphasis> button. A new element will appear in the list.</para>
- <figure>
- <title>Creating a Set of Icons</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/palette/palette_17.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>Also you can delete the set. Right click on the set of icons that you
- wish to remove and chose the <emphasis>
- <property>Delete Set</property>
- </emphasis> option from the pop-up menu or click the <emphasis>
- <property>Delete</property>
- </emphasis> keyboard button.</para>
- </listitem>
- <listitem>
- <para>to edit icons in the chosen set</para>
- <para>When the set of icons is created, new icons can be imported to it.
- Choose the required set and select the option <emphasis>
- <property>Create > Import Icon... </property>
- </emphasis> from the pop-up menu that appears after you right-click on a
- folder.</para>
- <figure>
- <title>Creating Icons</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/palette/palette_18.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>Set the name of the icon and the path and click <emphasis>
- <property>Finish</property>
- </emphasis> button.</para>
- </listitem>
- <listitem>
- <para>to work with a group of tag libraries</para>
- <para>The first step in work with the editor is creating a group of
- libraries. It's very easy to do, right mouse button click on
- the <emphasis>
- <property>Palette</property>
- </emphasis> folder and select <emphasis>
- <property>Create > Create Group…</property>
- </emphasis></para>
- <para>Set a name of a group in the <property>Create Group</property> window
- and click <emphasis>
- <property>OK</property>
- </emphasis> button. A new element will appear at the end of the list.</para>
- <figure>
- <title>Creating a Group of Tag Libraries</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/palette/palette_19.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>You are allowed to edit or delete a group, as well. If you'd
- like to change attributes of a group, use the right editing window of
- the palette editor or the <emphasis>
- <property>Edit...</property>
- </emphasis> option, like it was mentioned before. In order to remove the
- group, right click on the group that you wish to remove and chose the <emphasis>
- <property>Delete</property>
- </emphasis> option or click the <emphasis>
- <property>Delete</property>
- </emphasis> keyboard button.</para>
- <important>
- <title>Important:</title>
- <para>The removal option is enabled only for custom folders.</para>
- </important>
- </listitem>
- <listitem>
- <para>to work with a tag library</para>
- <para>The group maintains a list of tag libraries. If you'd like to
- create your own library, click right mouse button on the group and
- choose <emphasis>
- <property>Create Group…</property>
- </emphasis> option.</para>
- <figure>
- <title>Creating a tag library</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/palette/palette_20.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>After setting the attribute name and the path of the icon, click <emphasis>
- <property>Ok</property>
- </emphasis> button.</para>
- <note>
- <title>Note:</title>
- <para>If you do not choose an icon the default one will be
- assigned.</para>
- </note>
- <para>You are allowed to edit or delete the tag library, as well. If
- you'd like to change attributes of the library or choose
- another icon, use the right editing window of the palette editor or the <emphasis>
- <property>Edit...</property>
- </emphasis> option. In order to remove the tag library, right click on
- the library that you wish to remove and chose the <emphasis>
- <property>Delete</property>
- </emphasis> option or click the <emphasis>
- <property>Delete</property>
- </emphasis> keyboard button.</para>
- <important>
- <title>Important:</title>
- <para>The removal option is enabled only for custom tag
- libraries.</para>
- </important>
- </listitem>
- <listitem>
- <para>to work with a tag element</para>
- <para>When the library folder is created, new tags can be added to it.
- Choose the required library and select the option <emphasis>
- <property>Create > Create Macro…</property>
- </emphasis> from the pop-up menu that appears after you right-click on a
- folder.</para>
- <figure>
- <title>Creating a tag element</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/palette/palette_21.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>In the <property>Add Palette Macro</property> window, you can
- configure the tag element. Attribute <emphasis>
- <property>Name</property>
- </emphasis> is mandatory to fill and it will be the name of the tag
- element. Other settings are optional. You can choose the icon and set
- the <emphasis>
- <property>Start Text</property>
- </emphasis> and the <emphasis>
- <property>End Text</property>
- </emphasis> for your tag element. If your tag text is too long, use the <emphasis>
- <property>Change...</property>
- </emphasis> button to see it all. For <emphasis>
- <property>start text</property>
- </emphasis> and <emphasis>
- <property>end text</property>
- </emphasis> there is a possibility to control the cursor position by
- using "|" symbol.</para>
- <figure>
- <title>Parameters of the Palette element</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/palette/palette_23.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>After all the attributes are set, click <emphasis>
+ <para>After setting the attribute name and the path of the icon, click <emphasis>
+ <property>Ok</property>
+ </emphasis> button.</para>
+ <note>
+ <title>Note:</title>
+ <para>If you do not choose an icon the default one will be assigned.</para>
+ </note>
+ <para>You are allowed to edit or delete the tag library, as well. If
+ you'd like to change attributes of the library or choose another
+ icon, use the right editing window of the palette editor or the <emphasis>
+ <property>Edit...</property>
+ </emphasis> option. In order to remove the tag library, right click on the
+ library that you wish to remove and chose the <emphasis>
+ <property>Delete</property>
+ </emphasis> option or click the <emphasis>
+ <property>Delete</property>
+ </emphasis> keyboard button.</para>
+ <important>
+ <title>Important:</title>
+ <para>The removal option is enabled only for custom tag libraries.</para>
+ </important>
+ </listitem>
+ <listitem>
+ <para>to work with a tag element</para>
+ <para>When the library folder is created, new tags can be added to it. Choose
+ the required library and select the option <emphasis>
+ <property>Create > Create Macro…</property>
+ </emphasis> from the pop-up menu that appears after you right-click on a
+ folder.</para>
+ <figure>
+ <title>Creating a tag element</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/palette/palette_21.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>In the <property>Add Palette Macro</property> window, you can configure
+ the tag element. Attribute <emphasis>
+ <property>Name</property>
+ </emphasis> is mandatory to fill and it will be the name of the tag element.
+ Other settings are optional. You can choose the icon and set the <emphasis>
+ <property>Start Text</property>
+ </emphasis> and the <emphasis>
+ <property>End Text</property>
+ </emphasis> for your tag element. If your tag text is too long, use the <emphasis>
+ <property>Change...</property>
+ </emphasis> button to see it all. For <emphasis>
+ <property>start text</property>
+ </emphasis> and <emphasis>
+ <property>end text</property>
+ </emphasis> there is a possibility to control the cursor position by using
+ "|" symbol.</para>
+ <figure>
+ <title>Parameters of the Palette element</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/palette/palette_23.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>After all the attributes are set, click <emphasis>
<property>Finish</property>
</emphasis> button.</para>
- <note>
- <title>Note:</title>
- <para>If you do not choose an icon the default one will be assigned.</para>
- </note>
- <para>You are also allowed to edit or delete the tag. If you'd like to
- change the attributes of the tag or choose another icon for it, use the
- right editing window of the palette editor or the <emphasis>
- <property>Edit...</property>
- </emphasis> option from the pop-up menu. In order to remove the tag, right
- click on the tag that you wish to remove and chose the <emphasis>
- <property>Delete</property>
- </emphasis> option or click the <emphasis>
- <property>Delete</property>
- </emphasis> keyboard button.</para>
- <important>
- <title>Important:</title>
- <para>The removal option is enabled only for custom tags. JBoss Palette tags
- can not be removed but can be modified.</para>
- </important>
- </listitem>
-
- </itemizedlist>
+ <note>
+ <title>Note:</title>
+ <para>If you do not choose an icon the default one will be assigned.</para>
+ </note>
+ <para>You are also allowed to edit or delete the tag. If you'd like to
+ change the attributes of the tag or choose another icon for it, use the
+ right editing window of the palette editor or the <emphasis>
+ <property>Edit...</property>
+ </emphasis> option from the pop-up menu. In order to remove the tag, right
+ click on the tag that you wish to remove and chose the <emphasis>
+ <property>Delete</property>
+ </emphasis> option or click the <emphasis>
+ <property>Delete</property>
+ </emphasis> keyboard button.</para>
+ <important>
+ <title>Important:</title>
+ <para>The removal option is enabled only for custom tags. JBoss Palette tags
+ can not be removed but can be modified.</para>
+ </important>
+ </listitem>
+
+ </itemizedlist>
</section>
<section id="show_hide">
<?dbhtml filename="Show/Hide.html"?>
@@ -566,18 +559,11 @@
<section id="RichFacesSupport">
<?dbhtml filename="RichFacesSupport.html"?>
<title>RichFaces Support</title>
- <para>JBoss Developer Studio comes with a tight integration with <emphasis>
- <property>RichFaces</property>
- </emphasis> component framework. RichFaces and Ajax4jsf in JBoss Tools Palette always
- exist, this palette is not dynamic and is not changed from file to file.
- <tip>
- <title>Tip:</title>
- <para>If you'd like to know the last version of RichFaces component
- framework see <ulink url="http://labs.jboss.com/jbossrichfaces/">JBoss
- RichFaces</ulink> site.</para>
- </tip>RichFaces components, as well, as <emphasis>
- <property>Ajax4jsf</property>
- </emphasis> ones are already on the <property>JBoss Tools Palette</property>:</para>
+ <para><property>JBoss Developer Studio</property> comes with a tight integration with <ulink
+ url="http://labs.jboss.com/jbossrichfaces/">RichFaces component framework</ulink>.
+ RichFaces and Ajax4jsf tag libraries in <link linkend="palette">JBoss Tools
+ Palette</link> always exist.</para>
+
<figure>
<title>RichFaces Components</title>
<mediaobject>
@@ -586,6 +572,27 @@
</imageobject>
</mediaobject>
</figure>
- <!-- <para>Insert tag into JSP file </para>-->
+
+ <para>To start using <property>RichFaces</property> components as well as
+ <property>Ajax4jsf</property> ones in JBDS you should first put <emphasis>
+ <property>richfaces-*.jar</property>
+ </emphasis> files into the <emphasis>
+ <property>/lib</property>
+ </emphasis> folder of your project.</para>
+ <!-- this palette is not dynamic and is not changed from file to file. -->
+
+ <note>
+ <title>Note:</title>
+
+ <para>Currant version of <property>JBoss Developer Studio</property> (i. e. 1.1.0GA)
+ includes <ulink url="http://www.jboss.org/jbossrichfaces/downloads/">RichFaces
+ 3.1.3</ulink>. The JBoss Tools 3.0Alpha comes with <ulink
+ url="http://www.jboss.org/jbossrichfaces/downloads/">RichFaces 3.1.3</ulink> and
+ partly support 3.2 version of the component framework. If you need to use the latest
+ version of the component framework you should import it into the Palette like any
+ other <link linkend="AddingCustomJSFTagsToTheRedHatPalette7433">custom tag
+ library</link>.</para>
+ </note>
+
</section>
</chapter>
17 years, 8 months
JBoss Tools SVN: r9788 - in workspace/dart/plugins/org.jboss.tools.smooks.ui: schema and 3 other directories.
by jbosstools-commits@lists.jboss.org
Author: DartPeng
Date: 2008-08-18 23:07:26 -0400 (Mon, 18 Aug 2008)
New Revision: 9788
Added:
workspace/dart/plugins/org.jboss.tools.smooks.ui/schema/analyzer.exsd
workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/SmooksExtensionPointConstants.java
Modified:
workspace/dart/plugins/org.jboss.tools.smooks.ui/plugin.xml
workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/analyzer/AnalyzerFactory.java
workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/analyzer/SmooksFileBuilder.java
workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/BaseViewerInitor.java
workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/ViewerInitorStore.java
workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/UIUtils.java
Log:
Define a new extension point "Analyzer" for extend the config file generator
Modified: workspace/dart/plugins/org.jboss.tools.smooks.ui/plugin.xml
===================================================================
--- workspace/dart/plugins/org.jboss.tools.smooks.ui/plugin.xml 2008-08-18 22:37:05 UTC (rev 9787)
+++ workspace/dart/plugins/org.jboss.tools.smooks.ui/plugin.xml 2008-08-19 03:07:26 UTC (rev 9788)
@@ -2,6 +2,7 @@
<?eclipse version="3.2"?>
<plugin>
<extension-point id="viewerInitor" name="viewerInitor" schema="schema/viewerInitor.exsd"/>
+ <extension-point id="analyzer" name="analyzer" schema="schema/analyzer.exsd"/>
<extension
point="org.eclipse.ui.editors">
Added: workspace/dart/plugins/org.jboss.tools.smooks.ui/schema/analyzer.exsd
===================================================================
--- workspace/dart/plugins/org.jboss.tools.smooks.ui/schema/analyzer.exsd (rev 0)
+++ workspace/dart/plugins/org.jboss.tools.smooks.ui/schema/analyzer.exsd 2008-08-19 03:07:26 UTC (rev 9788)
@@ -0,0 +1,141 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!-- Schema file written by PDE -->
+<schema targetNamespace="org.jboss.tools.smooks.ui">
+<annotation>
+ <appInfo>
+ <meta.schema plugin="org.jboss.tools.smooks.ui" id="analyzer" name="analyzer"/>
+ </appInfo>
+ <documentation>
+ [Enter description of this extension point.]
+ </documentation>
+ </annotation>
+
+ <element name="extension">
+ <complexType>
+ <sequence minOccurs="0" maxOccurs="unbounded">
+ <element ref="analyzer"/>
+ </sequence>
+ <attribute name="point" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="id" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="name" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appInfo>
+ <meta.attribute translatable="true"/>
+ </appInfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <element name="analyzer">
+ <complexType>
+ <sequence minOccurs="0" maxOccurs="unbounded">
+ <element ref="targetSourceType"/>
+ </sequence>
+ <attribute name="name" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="typeID" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="class" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appInfo>
+ <meta.attribute kind="java" basedOn=":org.jboss.tools.smooks.analyzer.IAnalyzer"/>
+ </appInfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <element name="targetSourceType">
+ <complexType>
+ <attribute name="name" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="id" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="since"/>
+ </appInfo>
+ <documentation>
+ [Enter the first release in which this extension point appears.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="examples"/>
+ </appInfo>
+ <documentation>
+ [Enter extension point usage example here.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="apiInfo"/>
+ </appInfo>
+ <documentation>
+ [Enter API information here.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="implementation"/>
+ </appInfo>
+ <documentation>
+ [Enter information about supplied implementation of this extension point.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="copyright"/>
+ </appInfo>
+ <documentation>
+
+ </documentation>
+ </annotation>
+
+</schema>
Property changes on: workspace/dart/plugins/org.jboss.tools.smooks.ui/schema/analyzer.exsd
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/analyzer/AnalyzerFactory.java
===================================================================
--- workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/analyzer/AnalyzerFactory.java 2008-08-18 22:37:05 UTC (rev 9787)
+++ workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/analyzer/AnalyzerFactory.java 2008-08-19 03:07:26 UTC (rev 9788)
@@ -10,6 +10,19 @@
******************************************************************************/
package org.jboss.tools.smooks.analyzer;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IConfigurationElement;
+import org.eclipse.core.runtime.IExtensionPoint;
+import org.eclipse.core.runtime.IExtensionRegistry;
+import org.eclipse.core.runtime.Platform;
+import org.jboss.tools.smooks.utils.SmooksExtensionPointConstants;
+
/**
* @author Dart Peng
* @Date Aug 19, 2008
@@ -17,8 +30,58 @@
public class AnalyzerFactory {
protected static AnalyzerFactory instance = null;
+ private Map<String, AnalyzerMapper> analyzerMap = null;
+
protected AnalyzerFactory() {
+ initAnalyzerMap();
+ }
+ private void initAnalyzerMap() {
+ if (analyzerMap == null) {
+ analyzerMap = new HashMap<String, AnalyzerMapper>();
+ ;
+ IExtensionRegistry registry = Platform.getExtensionRegistry();
+ IExtensionPoint ep = registry
+ .getExtensionPoint(SmooksExtensionPointConstants.EXTENTION_POINT_ANALYZER);
+ if (ep == null)
+ return;
+ IConfigurationElement[] elements = ep.getConfigurationElements();
+ for (int i = 0; i < elements.length; i++) {
+ IConfigurationElement element = elements[i];
+ String aname = element
+ .getAttribute(SmooksExtensionPointConstants.EXTENTION_POINT_ATTRIBUTE_NAME);
+ String clazz = element
+ .getAttribute(SmooksExtensionPointConstants.EXTENTION_POINT_ATTRIBUTE_CLASS);
+ String typeID = element
+ .getAttribute(SmooksExtensionPointConstants.EXTENTION_POINT_ATTRIBUTE_TYPE_ID);
+ if (typeID == null || "".equals(typeID))
+ continue;
+ if (clazz == null || "".equals(clazz))
+ continue;
+
+ AnalyzerMapper mapper = new AnalyzerMapper();
+ mapper.setElement(element);
+ mapper.setAnalyzerName(aname);
+ mapper.setSourceDataTypeID(typeID);
+
+ IConfigurationElement[] childrenElements = element
+ .getChildren();
+ for (int j = 0; j < childrenElements.length; j++) {
+ IConfigurationElement childElement = childrenElements[j];
+ if (childElement
+ .getName()
+ .equals(
+ SmooksExtensionPointConstants.EXTENTION_POINT_ELEMENT_TARGETSOURCETYPE)) {
+ String tid = childElement
+ .getAttribute(SmooksExtensionPointConstants.EXTENTION_POINT_ATTRIBUTE_TYPE_ID);
+ if (tid == null || "".equals(tid))
+ continue;
+ mapper.addTargetDataTypeID(tid);
+ }
+ }
+ analyzerMap.put(typeID, mapper);
+ }
+ }
}
/**
@@ -30,8 +93,110 @@
}
return instance;
}
-
- public IAnalyzer getAnalyzer(String sourceDataTypeID,String targetDataTypeID){
+
+ public IAnalyzer getAnalyzer(String sourceDataTypeID,
+ String targetDataTypeID) throws CoreException {
+ if (this.analyzerMap != null) {
+ AnalyzerMapper mapper = (AnalyzerMapper) this.analyzerMap
+ .get(sourceDataTypeID);
+ if (mapper == null)
+ return null;
+ if (mapper.canTransformToTheTarget(targetDataTypeID)) {
+ return (IAnalyzer) createAnalyzer(mapper);
+ }
+ }
return null;
}
+
+ protected Object createAnalyzer(AnalyzerMapper mapper) throws CoreException {
+ return mapper.getElement().createExecutableExtension(
+ SmooksExtensionPointConstants.EXTENTION_POINT_ATTRIBUTE_CLASS);
+ }
+
+ private class AnalyzerMapper {
+ String sourceDataTypeID = null;
+ IConfigurationElement element;
+ String analyzerName = null;
+ List<String> targetDataTypeIDList = new ArrayList<String>();
+
+ public boolean canTransformToTheTarget(String targetTypeID) {
+ if (targetTypeID == null || "".equals(targetTypeID))
+ return false;
+ for (Iterator iterator = targetDataTypeIDList.iterator(); iterator
+ .hasNext();) {
+ String type = (String) iterator.next();
+ if (type.equals(targetTypeID))
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @return the element
+ */
+ public IConfigurationElement getElement() {
+ return element;
+ }
+
+ /**
+ * @param element
+ * the element to set
+ */
+ public void setElement(IConfigurationElement element) {
+ this.element = element;
+ }
+
+ /**
+ * @return the analyzerName
+ */
+ public String getAnalyzerName() {
+ return analyzerName;
+ }
+
+ /**
+ * @param analyzerName
+ * the analyzerName to set
+ */
+ public void setAnalyzerName(String analyzerName) {
+ this.analyzerName = analyzerName;
+ }
+
+ /**
+ * @return the targetDataTypeIDList
+ */
+ public List<String> getTargetDataTypeIDList() {
+ return targetDataTypeIDList;
+ }
+
+ /**
+ * @param targetDataTypeIDList
+ * the targetDataTypeIDList to set
+ */
+ public void setTargetDataTypeIDList(List<String> targetDataTypeIDList) {
+ this.targetDataTypeIDList = targetDataTypeIDList;
+ }
+
+ public void addTargetDataTypeID(String typeID) {
+ getTargetDataTypeIDList().add(typeID);
+ }
+
+ public void removeTargetDataTypeID(String typeID) {
+ getTargetDataTypeIDList().remove(typeID);
+ }
+
+ /**
+ * @return the sourceDataTypeID
+ */
+ public String getSourceDataTypeID() {
+ return sourceDataTypeID;
+ }
+
+ /**
+ * @param sourceDataTypeID
+ * the sourceDataTypeID to set
+ */
+ public void setSourceDataTypeID(String sourceDataTypeID) {
+ this.sourceDataTypeID = sourceDataTypeID;
+ }
+ }
}
Modified: workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/analyzer/SmooksFileBuilder.java
===================================================================
--- workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/analyzer/SmooksFileBuilder.java 2008-08-18 22:37:05 UTC (rev 9787)
+++ workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/analyzer/SmooksFileBuilder.java 2008-08-19 03:07:26 UTC (rev 9788)
@@ -6,6 +6,7 @@
import java.io.InputStream;
import java.util.Collections;
+import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.emf.ecore.resource.Resource;
import org.jboss.tools.smooks.ui.modelparser.SmooksConfigurationFileGenerateContext;
@@ -18,7 +19,8 @@
public InputStream generateSmooksFile(
SmooksConfigurationFileGenerateContext context,
- IProgressMonitor monitor) throws SmooksAnalyzerException, IOException {
+ IProgressMonitor monitor) throws SmooksAnalyzerException,
+ IOException, CoreException {
AnalyzerFactory factory = AnalyzerFactory.getInstance();
IAnalyzer analyzer = factory.getAnalyzer(context.getSourceDataTypeID(),
context.getTargetDataTypeID());
@@ -33,8 +35,11 @@
Resource resource = new SmooksResourceFactoryImpl()
.createResource(null);
DocumentRoot dr = SmooksFactory.eINSTANCE.createDocumentRoot();
+
+ // add all model of the config file
dr.setSmooksResourceList(listType);
resource.getContents().add(dr);
+
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
resource.save(outputStream, Collections.EMPTY_MAP);
return new ByteArrayInputStream(outputStream.toByteArray());
Modified: workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/BaseViewerInitor.java
===================================================================
--- workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/BaseViewerInitor.java 2008-08-18 22:37:05 UTC (rev 9787)
+++ workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/BaseViewerInitor.java 2008-08-19 03:07:26 UTC (rev 9788)
@@ -14,7 +14,7 @@
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.jface.viewers.ITreeContentProvider;
-import org.jboss.tools.smooks.utils.UIUtils;
+import org.jboss.tools.smooks.utils.SmooksExtensionPointConstants;
/**
* @author Dart Peng
@@ -47,7 +47,7 @@
public ITreeContentProvider getTreeContentProvider() {
try {
return (ITreeContentProvider) configurationElement
- .createExecutableExtension(UIUtils.EXTENTION_POINT_ATTRIBUTE_CONTENT_PROVIDER);
+ .createExecutableExtension(SmooksExtensionPointConstants.EXTENTION_POINT_ATTRIBUTE_CONTENT_PROVIDER);
} catch (CoreException e) {
e.printStackTrace();
return null;
@@ -65,7 +65,7 @@
public IStrucutredDataCreationWizard getStructuredDataLoadWizard() {
try {
return ((IStrucutredDataCreationWizard) configurationElement
- .createExecutableExtension(UIUtils.EXTENTION_POINT_ATTRIBUTE_CREATION_WIZARD));
+ .createExecutableExtension(SmooksExtensionPointConstants.EXTENTION_POINT_ATTRIBUTE_CREATION_WIZARD));
} catch (CoreException e) {
e.printStackTrace();
}
@@ -94,7 +94,7 @@
public ILabelProvider getLabelProvider() {
try {
return (ILabelProvider) configurationElement
- .createExecutableExtension(UIUtils.EXTENTION_POINT_ATTRIBUTE_LABEL_PROVIDER);
+ .createExecutableExtension(SmooksExtensionPointConstants.EXTENTION_POINT_ATTRIBUTE_LABEL_PROVIDER);
} catch (CoreException e) {
// TODO Auto-generated catch block
e.printStackTrace();
Modified: workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/ViewerInitorStore.java
===================================================================
--- workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/ViewerInitorStore.java 2008-08-18 22:37:05 UTC (rev 9787)
+++ workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/ViewerInitorStore.java 2008-08-19 03:07:26 UTC (rev 9788)
@@ -11,18 +11,16 @@
package org.jboss.tools.smooks.ui;
import java.util.Collection;
-import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
-import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.IExtensionPoint;
import org.eclipse.core.runtime.IExtensionRegistry;
import org.eclipse.core.runtime.Platform;
import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.jface.viewers.ITreeContentProvider;
-import org.jboss.tools.smooks.utils.UIUtils;
+import org.jboss.tools.smooks.utils.SmooksExtensionPointConstants;
/**
* @author Dart Peng
@@ -123,7 +121,7 @@
protected HashMap<String, IViewerInitor> createNewInitorMap() {
IExtensionRegistry registry = Platform.getExtensionRegistry();
IExtensionPoint ep = registry
- .getExtensionPoint(UIUtils.EXTENTION_POINT_VIEWER_INITOR);
+ .getExtensionPoint(SmooksExtensionPointConstants.EXTENTION_POINT_VIEWER_INITOR);
HashMap<String, IViewerInitor> map = new HashMap<String, IViewerInitor>();
if (ep == null)
return null;
@@ -132,13 +130,13 @@
IConfigurationElement element = elements[i];
String typeID = element
- .getAttribute(UIUtils.EXTENTION_POINT_ATTRIBUTE_TYPE_ID);
+ .getAttribute(SmooksExtensionPointConstants.EXTENTION_POINT_ATTRIBUTE_TYPE_ID);
if (typeID == null) {
continue;
}
- String name = element.getAttribute(UIUtils.EXTENTION_POINT_ATTRIBUTE_NAME);
+ String name = element.getAttribute(SmooksExtensionPointConstants.EXTENTION_POINT_ATTRIBUTE_NAME);
- String iconPath = element.getAttribute(UIUtils.EXTENTION_POINT_ATTRIBUTE_ICON);
+ String iconPath = element.getAttribute(SmooksExtensionPointConstants.EXTENTION_POINT_ATTRIBUTE_ICON);
BaseViewerInitor initor = new BaseViewerInitor();
Added: workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/SmooksExtensionPointConstants.java
===================================================================
--- workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/SmooksExtensionPointConstants.java (rev 0)
+++ workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/SmooksExtensionPointConstants.java 2008-08-19 03:07:26 UTC (rev 9788)
@@ -0,0 +1,50 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.smooks.utils;
+
+/**
+ * @author Dart Peng
+ * @Date Aug 19, 2008
+ */
+public class SmooksExtensionPointConstants {
+ /** @deprecated */
+ public static final String EXTENTION_POINT_TRANSFORM_DATATYPE_WIZARD = "org.jboss.tools.smooks.ui.transformDataWizards";
+
+ public static final String EXTENTION_POINT_VIEWER_INITOR = "org.jboss.tools.smooks.ui.viewerInitor";
+
+ public static final String EXTENTION_POINT_ANALYZER = "org.jboss.tools.smooks.ui.analyzer";
+
+ public static final String EXTENTION_POINT_ELEMENT_ANALYZER = "analyzer";
+
+ public static final String EXTENTION_POINT_ELEMENT_TARGETSOURCETYPE = "targetSourceType";
+
+ public static final String EXTENTION_POINT_ATTRIBUTE_CLASS = "class";
+
+ public static final String EXTENTION_POINT_ATTRIBUTE_TYPE_ID = "typeID";
+
+ public static final String EXTENTION_POINT_ATTRIBUTE_LABEL_PROVIDER = "labelProvider";
+
+ public static final String EXTENTION_POINT_ATTRIBUTE_CONTENT_PROVIDER = "contentProvider";
+
+ public static final String EXTENTION_POINT_ATTRIBUTE_CREATION_WIZARD = "creationWizard";
+
+ /** @deprecated */
+ public static final String EXTENTION_POINT_ATTRIBUTE_WIZAED_ID = "wizarID";
+
+ public static final String EXTENTION_POINT_ATTRIBUTE_NAME = "name";
+
+ public static final String EXTENTION_POINT_ATTRIBUTE_ID = "id";
+
+ public static final String EXTENTION_POINT_ATTRIBUTE_DESCRIPTION = "description";
+
+ public static final String EXTENTION_POINT_ATTRIBUTE_ICON = "icon";
+
+}
Property changes on: workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/SmooksExtensionPointConstants.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/UIUtils.java
===================================================================
--- workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/UIUtils.java 2008-08-18 22:37:05 UTC (rev 9787)
+++ workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/UIUtils.java 2008-08-19 03:07:26 UTC (rev 9788)
@@ -21,30 +21,7 @@
*
*/
public class UIUtils {
- /** @deprecated */
- public static final String EXTENTION_POINT_TRANSFORM_DATATYPE_WIZARD = "org.jboss.tools.smooks.ui.transformDataWizards";
-
- public static final String EXTENTION_POINT_VIEWER_INITOR = "org.jboss.tools.smooks.ui.viewerInitor";
-
- public static final String EXTENTION_POINT_ATTRIBUTE_CLASS = "class";
-
- public static final String EXTENTION_POINT_ATTRIBUTE_TYPE_ID = "typeID";
-
- public static final String EXTENTION_POINT_ATTRIBUTE_LABEL_PROVIDER = "labelProvider";
-
- public static final String EXTENTION_POINT_ATTRIBUTE_CONTENT_PROVIDER = "contentProvider";
-
- public static final String EXTENTION_POINT_ATTRIBUTE_CREATION_WIZARD = "creationWizard";
-
- /** @deprecated */
- public static final String EXTENTION_POINT_ATTRIBUTE_WIZAED_ID = "wizarID";
-
- public static final String EXTENTION_POINT_ATTRIBUTE_NAME = "name";
-
- public static final String EXTENTION_POINT_ATTRIBUTE_DESCRIPTION = "description";
-
- public static final String EXTENTION_POINT_ATTRIBUTE_ICON = "icon";
-
+
public static FillLayout createFillLayout(int marginW, int marginH) {
FillLayout fill = new FillLayout();
fill.marginHeight = marginH;
17 years, 8 months
JBoss Tools SVN: r9787 - tags/jbosstools-3.0.0.Alpha1.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2008-08-18 18:37:05 -0400 (Mon, 18 Aug 2008)
New Revision: 9787
Added:
tags/jbosstools-3.0.0.Alpha1/core/
Log:
retagging core
Copied: tags/jbosstools-3.0.0.Alpha1/core (from rev 9786, trunk/core)
17 years, 8 months
JBoss Tools SVN: r9786 - tags/jbosstools-3.0.0.Alpha1.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2008-08-18 18:36:51 -0400 (Mon, 18 Aug 2008)
New Revision: 9786
Removed:
tags/jbosstools-3.0.0.Alpha1/core/
Log:
forgot to commit archives.core
17 years, 8 months
JBoss Tools SVN: r9785 - in trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core: util and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2008-08-18 18:36:27 -0400 (Mon, 18 Aug 2008)
New Revision: 9785
Modified:
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/IArchiveModelRootNode.java
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/IVariableManager.java
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/util/PathUtils.java
Log:
JBIDE-2651 JBIDE-2652
UUGGH forgot to commit core.
Modified: trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/IArchiveModelRootNode.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/IArchiveModelRootNode.java 2008-08-18 21:22:14 UTC (rev 9784)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/IArchiveModelRootNode.java 2008-08-18 22:36:27 UTC (rev 9785)
@@ -35,6 +35,7 @@
public interface IArchiveModelRootNode extends IArchiveNode {
public static final double DESCRIPTOR_VERSION_1_0 = 1.0;
public static final double DESCRIPTOR_VERSION_1_2 = 1.2;
+ public static final double DESCRIPTOR_VERSION_LATEST = DESCRIPTOR_VERSION_1_2;
public void setModel(IArchiveModel model);
public IArchiveModel getModel();
Modified: trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/IVariableManager.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/IVariableManager.java 2008-08-18 21:22:14 UTC (rev 9784)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/IVariableManager.java 2008-08-18 22:36:27 UTC (rev 9785)
@@ -26,7 +26,7 @@
*
*/
public interface IVariableManager {
- public static final String CURRENT_PROJECT = "current.project";
+ public static final String CURRENT_PROJECT = "archives_current_project";
public boolean containsVariable(String variable);
public String getVariableValue(String variable);
public String[] getVariableNames();
Modified: trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/util/PathUtils.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/util/PathUtils.java 2008-08-18 21:22:14 UTC (rev 9784)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/util/PathUtils.java 2008-08-18 22:36:27 UTC (rev 9785)
@@ -56,7 +56,7 @@
public static String getAbsoluteLocation(String expression,
String projectName, boolean inWorkspace, double version) {
- if( "".equals(expression) || ".".equals(expression))
+ if( inWorkspace && ("".equals(expression) || ".".equals(expression)))
return new Path(projectName).makeAbsolute().toString();
try {
17 years, 8 months
JBoss Tools SVN: r9784 - tags/jbosstools-3.0.0.Alpha1.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2008-08-18 17:22:14 -0400 (Mon, 18 Aug 2008)
New Revision: 9784
Added:
tags/jbosstools-3.0.0.Alpha1/core/
Log:
retagging core
Copied: tags/jbosstools-3.0.0.Alpha1/core (from rev 9783, trunk/core)
17 years, 8 months
JBoss Tools SVN: r9783 - tags/jbosstools-3.0.0.Alpha1.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2008-08-18 17:21:59 -0400 (Mon, 18 Aug 2008)
New Revision: 9783
Added:
tags/jbosstools-3.0.0.Alpha1/as/
Log:
retagging as
Copied: tags/jbosstools-3.0.0.Alpha1/as (from rev 9782, trunk/as)
17 years, 8 months