JBoss Tools SVN: r30501 - trunk/documentation/guides/GettingStartedGuide/en-US.
by jbosstools-commits@lists.jboss.org
Author: irooskov(a)redhat.com
Date: 2011-04-11 19:32:02 -0400 (Mon, 11 Apr 2011)
New Revision: 30501
Modified:
trunk/documentation/guides/GettingStartedGuide/en-US/first_seam.xml
trunk/documentation/guides/GettingStartedGuide/en-US/getting_started.xml
trunk/documentation/guides/GettingStartedGuide/en-US/gsg_faq.xml
trunk/documentation/guides/GettingStartedGuide/en-US/installation.xml
trunk/documentation/guides/GettingStartedGuide/en-US/introduction.xml
trunk/documentation/guides/GettingStartedGuide/en-US/jsp_application.xml
trunk/documentation/guides/GettingStartedGuide/en-US/manage.xml
trunk/documentation/guides/GettingStartedGuide/en-US/rad_jsf_application.xml
trunk/documentation/guides/GettingStartedGuide/en-US/usage_reporting.xml
Log:
replaced JBDS with full name
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/first_seam.xml
===================================================================
--- trunk/documentation/guides/GettingStartedGuide/en-US/first_seam.xml 2011-04-11 23:14:29 UTC (rev 30500)
+++ trunk/documentation/guides/GettingStartedGuide/en-US/first_seam.xml 2011-04-11 23:32:02 UTC (rev 30501)
@@ -13,7 +13,7 @@
Developer Studio can be used during the development process.</para>
<section id="create_seam_application">
<title>Create a Seam Application</title>
- <para>In this section you will learn how to create a Seam project in JBDS, how to start the
+ <para>In this section you will learn how to create a Seam project in JBoss Developer Studio, how to start the
server and what structure your project has after it is created.</para>
<section id="start_dev_db">
<title>Start Development Database</title>
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/getting_started.xml
===================================================================
--- trunk/documentation/guides/GettingStartedGuide/en-US/getting_started.xml 2011-04-11 23:14:29 UTC (rev 30500)
+++ trunk/documentation/guides/GettingStartedGuide/en-US/getting_started.xml 2011-04-11 23:32:02 UTC (rev 30501)
@@ -43,7 +43,7 @@
<itemizedlist>
<listitem>
- <para>to create new Seam projects, jBPM Process, JSF or Struts projects using JBDS wizards</para>
+ <para>to create new Seam projects, jBPM Process, JSF or Struts projects using JBoss Developer Studio wizards</para>
</listitem>
</itemizedlist>
@@ -58,7 +58,7 @@
<itemizedlist>
<listitem>
- <para>to get short descriptions of the perspectives that JBDS provides</para>
+ <para>to get short descriptions of the perspectives that JBoss Developer Studio provides</para>
</listitem>
</itemizedlist>
@@ -95,10 +95,10 @@
<section id="Upgrading">
<?dbhtml filename="Upgrading.html"?>
<title>Upgrading</title>
- <para>Because JBDS 3.0x and 4.0 use different versions of Eclipse, it is not possible to directly upgrade from an older version to JBDS 4.0.</para>
+ <para>Because JBoss Developer Studio 3.0x and 4.0 use different versions of Eclipse, it is not possible to directly upgrade from an older version to JBoss Developer Studio 4.0.</para>
<note>
<title>Tip</title>
- <para>It is possible to run JBDS 3.0x and 4.0 side by side, as long as they have been installed into separate directories.</para>
+ <para>It is possible to run JBoss Developer Studio 3.0x and 4.0 side by side, as long as they have been installed into separate directories.</para>
</note>
</section>
@@ -138,7 +138,7 @@
</orderedlist>
<para>
- <property>JBDS</property> subscribers can get additional support on our <ulink url="https://network.jboss.com/jbossnetwork/login.html">Support Portal</ulink>.
+ <property>JBoss Developer Studio</property> subscribers can get additional support on our <ulink url="https://network.jboss.com/jbossnetwork/login.html">Support Portal</ulink>.
</para>
</section>
@@ -146,14 +146,15 @@
<section id="OtherRelevantResourcesOnTheTopic33">
<?dbhtml filename="OtherRelevantResourcesOnTheTopic33.html"?>
<title>Other relevant resources on the topic</title>
- <para>JBDS on RedHat: <ulink url="http://www.redhat.com/developer_studio">JBoss Developer Studio</ulink>
+ <para>JBoss Developer Studio on RedHat: <ulink url="http://www.redhat.com/developer_studio">JBoss Developer Studio</ulink>
</para>
<para>Forum: <ulink url="http://www.jboss.com/index.html?module=bb&op=viewforum&f=258">JBoss Forum</ulink></para>
<para>Wiki: <ulink url="http://www.jboss.org/community/wiki/JBossTools"> JBossToolsWiki </ulink></para>
- <para>Subscription: <ulink url="https://www.redhat.com/apps/store/developers/jboss_developer_studio.html">JBDS Subscription</ulink></para>
+ <para>Subscription: <ulink url="https://www.redhat.com/apps/store/developers/jboss_developer_studio.html">JBoss Developer Studio Subscription</ulink>
+ </para>
<para>The latest documentation builds are available <ulink url="http://download.jboss.org/jbosstools/nightly-docs/">here</ulink>.</para>
<para>
- <ulink url="http://www.jboss.org/community/wiki/Matrixofsupportedplatformsruntimesand...">Matrix of supported platforms, runtimes and technologies in JBossTools/JBDS</ulink>
+ <ulink url="http://www.jboss.org/community/wiki/Matrixofsupportedplatformsruntimesand...">Matrix of supported platforms, runtimes and technologies in JBossTools and JBoss Developer Studio</ulink>
</para>
</section>
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/gsg_faq.xml
===================================================================
--- trunk/documentation/guides/GettingStartedGuide/en-US/gsg_faq.xml 2011-04-11 23:14:29 UTC (rev 30500)
+++ trunk/documentation/guides/GettingStartedGuide/en-US/gsg_faq.xml 2011-04-11 23:32:02 UTC (rev 30501)
@@ -34,7 +34,7 @@
]]></programlisting>
</listitem>
<listitem>
- <para>Open the JBDS perspective. If you see the Help view open, close it and restart JBDS</para>
+ <para>Open the JBoss Developer Studio perspective. If you see the Help view open, close it and restart JBoss Developer Studio</para>
</listitem>
<listitem>
<para> If it doesn't help and you use Fedora with Eclipse Version: 3.4.1, the issue can be produced because the <filename>libswt-xulrunner-gtk-3449.so</filename> file doesn't present in <filename>eclipse-swt-3.4.1-5.fc10.x86_64.rpm/eclipse/plugins/org.eclipse.swt.gtk.linux.x86_64_3.4.1.v3449c.jar</filename>. To add this file to eclipse you should:
@@ -123,9 +123,9 @@
</section>
<section id="question_3">
- <title>I have an existing Seam 1.2.1 project. Can I migrate or import the project into a JBDS Seam project?</title>
+ <title>I have an existing Seam 1.2.1 project. Can I migrate or import the project into a JBoss Developer Studio Seam project?</title>
- <para>Use the following steps to manually transfer an existing Seam 1.2.1 project into a new JBDS Seam project:</para>
+ <para>Use the following steps to manually transfer an existing Seam 1.2.1 project into a new JBoss Developer Studio Seam project:</para>
<itemizedlist>
<listitem>
@@ -149,7 +149,7 @@
</section>
<section id="questio_4">
- <title>I have an existing Struts or JSF project. Can I open the project in JBDS?</title>
+ <title>I have an existing Struts or JSF project. Can I open the project in JBoss Developer Studio?</title>
<para>Yes. From main menu select <menuchoice><guimenuitem>File</guimenuitem><guimenuitem>File</guimenuitem><guimenuitem>Import</guimenuitem><guimenuitem>Other</guimenuitem><guimenuitem>JSF Project (or Struts Project)</guimenuitem></menuchoice> and follow wizards steps.</para>
@@ -209,7 +209,7 @@
</section>
<section id="question_10">
- <title>Is a cross-platform project import possible for JBDS?</title>
+ <title>Is a cross-platform project import possible for JBoss Developer Studio?</title>
<para>Yes. You can easily import created in Linux JSF, Struts or Seam project to Windows and vice versa.</para>
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/installation.xml
===================================================================
--- trunk/documentation/guides/GettingStartedGuide/en-US/installation.xml 2011-04-11 23:14:29 UTC (rev 30500)
+++ trunk/documentation/guides/GettingStartedGuide/en-US/installation.xml 2011-04-11 23:32:02 UTC (rev 30501)
@@ -231,7 +231,7 @@
</section>
</section>
- <section id="InstallingJBDS">
+ <section id="Installing_JBoss_Developer_Studio">
<?dbhtml filename="InstallingRHDS.html"?>
<title>JBoss Developer Studio Installation</title>
<para>
@@ -239,7 +239,7 @@
</para>
<para>
- JBoss Developer Studio comes with a simple installer, bundled with tested and preconfigured versions of Eclipse, WTP, JBossEAP, Seam, and SpringIDE. The following steps show you how to install JBDS:
+ JBoss Developer Studio comes with a simple installer, bundled with tested and preconfigured versions of Eclipse, WTP, JBossEAP, Seam, and SpringIDE. The following steps show you how to install JBoss Developer Studio:
</para>
<itemizedlist>
@@ -325,7 +325,7 @@
<note>
<title>Note:</title>
<para>
- Like in the previous version of JBDS, JBDS 4.0.0.GA comes integrated with JBoss EAP 5.1 that supports EAP 5 adapter and Seam 2.2.
+ Like in the previous version of JBoss Developer Studio, version 4.0.0.GA comes integrated with JBoss EAP 5.1 that supports EAP 5 adapter and Seam 2.2.
</para>
</note>
@@ -500,7 +500,7 @@
<guibutton>
Add...
</guibutton>
- button, and in the <guilabel>Add Repository</guilabel> dialog box enter <guilabel>JBDS Tech Preview</guilabel> in the <guilabel>Name</guilabel> field and <guilabel>http://devstudio.jboss.com/updates/4.0/techpreview</guilabel> in the <guilabel>Location</guilabel> field. Click the
+ button, and in the <guilabel>Add Repository</guilabel> dialog box enter <guilabel>JBoss Developer Studio Tech Preview</guilabel> in the <guilabel>Name</guilabel> field and <guilabel>http://devstudio.jboss.com/updates/4.0/techpreview</guilabel> in the <guilabel>Location</guilabel> field. Click the
<guibutton>
OK
</guibutton>
@@ -522,7 +522,7 @@
<section>
<title>Updating JBoss Developer Studio</title>
<para>
- Updates to JBDS can be installed by selecting <menuchoice><guimenuitem>Help</guimenuitem><guimenuitem>Check For Updates</guimenuitem></menuchoice> from within Eclipse. You may be prompted for a username and password. These are the same credentials that are required to access the Tech Preview update site (see <xref linkend="tech_previews"/>).
+ Updates to JBoss Developer Studio can be installed by selecting <menuchoice><guimenuitem>Help</guimenuitem><guimenuitem>Check For Updates</guimenuitem></menuchoice> from within Eclipse. You may be prompted for a username and password. These are the same credentials that are required to access the Tech Preview update site (see <xref linkend="tech_previews"/>).
</para>
</section>
<!--section id="jbds_jbosstools">
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/introduction.xml
===================================================================
--- trunk/documentation/guides/GettingStartedGuide/en-US/introduction.xml 2011-04-11 23:14:29 UTC (rev 30500)
+++ trunk/documentation/guides/GettingStartedGuide/en-US/introduction.xml 2011-04-11 23:32:02 UTC (rev 30501)
@@ -11,12 +11,12 @@
<title>Introduction to JBoss Developer Studio</title>
<section id="intro1">
- <title>What is JBDS?</title>
+ <title>What JBoss Developer Studio is</title>
<para>
<property>JBoss Developer Studio</property> is a set of Eclipse based development tools that have been pre-configured for JBoss Enterprise Middleware Platforms and Red Hat Enterprise Linux. Developers are not required to use <property>JBoss Developer Studio</property> to develop on JBoss Enterprise Middleware and/or Red Hat Linux. But, many find these preconfigured tools offer significant time-savings and value, making them more productive and reducing deployment times.
</para>
<para>
- This guide covers the first steps required to get started with <property>JBoss Developer Studio</property>. You will learn how to install and configure the software necessary for your OS (currently Linux, Microsoft Windows or Mac OSX), including detailed information on how to install, configure and use JDK, JBDS and JBoss Tools.
+ This guide covers the first steps required to get started with <property>JBoss Developer Studio</property>. You will learn how to install and configure the software necessary for your OS (currently Linux, Microsoft Windows or Mac OSX), including detailed information on how to install, configure and use JDK, JBoss Developer Studio and JBoss Tools.
</para>
</section>
@@ -181,11 +181,11 @@
</table>
<para>
- <property>JBDS</property> requires JDK 5+ (JDK 6 in case of EAP 5.0). Also it's important that the JVM's architecture matches the particular <property>JBDS</property> build, i.e. if you're on a 64-bit system and use the 64-bit JVM, you need the 64-bit JBDS.
+ <property>JBoss Developer Studio</property> requires JDK 5+ (JDK 6 in case of EAP 5.0). Also it's important that the JVM's architecture matches the particular <property>JBoss Developer Studio</property> build, i.e. if you're on a 64-bit system and use the 64-bit JVM, you need the 64-bit JBoss Developer Studio.
</para>
<para>
- For the 32-bit version of JBDS use the 32-bit JVM or just use <literal>-vm</literal> flag to tell JBDS to use 32-bit java if the 64-bit one is found as the default.
+ For the 32-bit version of JBoss Developer Studio use the 32-bit JVM or just use <literal>-vm</literal> flag to tell JBoss Developer Studio to use 32-bit java if the 64-bit one is found as the default.
</para>
<note>
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/jsp_application.xml
===================================================================
--- trunk/documentation/guides/GettingStartedGuide/en-US/jsp_application.xml 2011-04-11 23:14:29 UTC (rev 30500)
+++ trunk/documentation/guides/GettingStartedGuide/en-US/jsp_application.xml 2011-04-11 23:32:02 UTC (rev 30501)
@@ -1,459 +1,459 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<chapter id="jsp_application">
-<?dbhtml filename="jsp_application.html"?>
- <chapterinfo>
- <keywordset>
- <keyword>JBoss Developer Studio</keyword>
-
- <keyword>JSP</keyword>
-
- <keyword>JBoss</keyword>
- </keywordset>
- </chapterinfo>
- <title>Developing a simple JSP web application</title>
- <note>
- <title>Note:</title>
- <para>
- We highly recommend developing in <property>Seam</property>. This chapter is for users who for some reason cannot use Seam.
- </para>
- </note>
-
- <para>
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="jsp_application">
+<?dbhtml filename="jsp_application.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>JBoss Developer Studio</keyword>
+
+ <keyword>JSP</keyword>
+
+ <keyword>JBoss</keyword>
+ </keywordset>
+ </chapterinfo>
+ <title>Developing a simple JSP web application</title>
+ <note>
+ <title>Note:</title>
+ <para>
+ We highly recommend developing in <property>Seam</property>. This chapter is for users who for some reason cannot use Seam.
+ </para>
+ </note>
+
+ <para>
In this chapter you'll find out how to create a simple <ulink
- url="http://java.sun.com/products/jsp/">JSP</ulink> application using <property>JBoss Developer Studio</property>. The application will show a classic "Hello World!" on the page.
- </para>
-
- <para>
- We'll assume that you have already launched <property>JBoss Developer Studio</property> and also that the <property>Web Development</property> perspective is the current perspective. If not, make it active by selecting <menuchoice><guimenuitem>Window</guimenuitem><guimenuitem>Open Perspective</guimenuitem><guimenuitem>Web Development</guimenuitem></menuchoice> from the menu bar or by selecting <menuchoice><guimenuitem>Window</guimenuitem><guimenuitem>Open Perspective</guimenuitem><guimenuitem>Other...</guimenuitem></menuchoice> from the menu bar and then selecting Web Development from the Select Perspective dialog box.
- </para>
-
- <section id="SettingUpTheProject">
-<?dbhtml filename="SettingUpTheProject.html"?>
- <title>Setting Up the Project</title>
- <para>
- We are going to start by creating a Dynamic Web Project with a minimal structure, i.e. with just required facets. Thus this section will perform you all necessary steps on how to do this.
- </para>
-
- <itemizedlist>
- <listitem>
- <para>
- Go to the menu bar and select <menuchoice><guimenuitem>File</guimenuitem><guimenuitem>New</guimenuitem><guimenuitem>Other...</guimenuitem></menuchoice>
- </para>
- </listitem>
-
- <listitem>
- <para>
- Select <menuchoice><guimenuitem>Web</guimenuitem><guimenuitem>Dynamic Web Project</guimenuitem></menuchoice> in the New Project dialog box
- </para>
- </listitem>
-
- <listitem>
- <para>
- Click the
- <guibutton>
- Next
- </guibutton>
- button
- </para>
- </listitem>
-
- <listitem>
- <para>
- Enter "jspHello" as a project name
- </para>
- </listitem>
-
- <listitem>
- <para>
- Then select <emphasis> <property>Minimal Configuration</property> </emphasis> from the list of possible configurations and click the
- <guibutton>
- Finish
- </guibutton>
- button.
- </para>
- </listitem>
- </itemizedlist>
-
- <figure>
- <title>Create New Web Project</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/jsp_application/jsp_application_1.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>
- The <emphasis><property>jspHello</property></emphasis> node should appear in the upper-left <property>Package Explorer</property> view.
- </para>
-
- <figure>
- <title>New Web Project</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/jsp_application/jsp_application_2.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
-
- <section id="CreatingJSPPage">
-<?dbhtml filename="CreatingJSPPage.html"?>
- <title>Creating JSP Page</title>
- <para>
- This section covers all the points how to create, edit and then preview JSP page.
- </para>
-
- <para>
- In our simple application we need to create only one JSP page which displays a <emphasis>"Hello World!"</emphasis> message.
- </para>
-
- <itemizedlist>
- <listitem>
- <para>
- Right click the <filename>WebContent</filename> folder and select <menuchoice><guimenuitem>New</guimenuitem><guimenuitem>JSP</guimenuitem></menuchoice>.
- </para>
- </listitem>
-
- <listitem>
- <para>
- Type <filename>hello.jsp</filename> for a file name and click the
- <guibutton>
- Next
- </guibutton>
- button.
- </para>
- </listitem>
- </itemizedlist>
-
- <para>
- In the next window you can choose a template for your JSP page and see its preview.
- </para>
-
- <itemizedlist>
- <listitem>
- <para>
- Select <emphasis> <property>New JSP File (xhtml)</property> </emphasis> template and click the
- <guibutton>
- Finish
- </guibutton>
- button.
- </para>
- </listitem>
- </itemizedlist>
-
- <figure>
- <title>Create JSP Page</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/jsp_application/jsp_application_3.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>
- Our <filename>hello.jsp</filename> page will now appear in the <property>Project Explorer</property> view.
- </para>
-
- <section id="EditingJSPPage">
-<?dbhtml filename="EditingJSPPage.html"?>
- <title>Editing a JSP Page</title>
- <para>
- Let's now make a little change so that a JSP page displays <emphasis>"Hello World!"</emphasis> message.
- </para>
-
- <itemizedlist>
- <listitem>
+ url="http://java.sun.com/products/jsp/">JSP</ulink> application using <property>JBoss Developer Studio</property>. The application will show a classic "Hello World!" on the page.
+ </para>
+
+ <para>
+ We'll assume that you have already launched <property>JBoss Developer Studio</property> and also that the <property>Web Development</property> perspective is the current perspective. If not, make it active by selecting <menuchoice><guimenuitem>Window</guimenuitem><guimenuitem>Open Perspective</guimenuitem><guimenuitem>Web Development</guimenuitem></menuchoice> from the menu bar or by selecting <menuchoice><guimenuitem>Window</guimenuitem><guimenuitem>Open Perspective</guimenuitem><guimenuitem>Other...</guimenuitem></menuchoice> from the menu bar and then selecting Web Development from the Select Perspective dialog box.
+ </para>
+
+ <section id="SettingUpTheProject">
+<?dbhtml filename="SettingUpTheProject.html"?>
+ <title>Setting Up the Project</title>
+ <para>
+ We are going to start by creating a Dynamic Web Project with a minimal structure, i.e. with just required facets. Thus this section will perform you all necessary steps on how to do this.
+ </para>
+
+ <itemizedlist>
+ <listitem>
+ <para>
+ Go to the menu bar and select <menuchoice><guimenuitem>File</guimenuitem><guimenuitem>New</guimenuitem><guimenuitem>Other...</guimenuitem></menuchoice>
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Select <menuchoice><guimenuitem>Web</guimenuitem><guimenuitem>Dynamic Web Project</guimenuitem></menuchoice> in the New Project dialog box
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Click the
+ <guibutton>
+ Next
+ </guibutton>
+ button
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Enter "jspHello" as a project name
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Then select <emphasis> <property>Minimal Configuration</property> </emphasis> from the list of possible configurations and click the
+ <guibutton>
+ Finish
+ </guibutton>
+ button.
+ </para>
+ </listitem>
+ </itemizedlist>
+
+ <figure>
+ <title>Create New Web Project</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsp_application/jsp_application_1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>
+ The <emphasis><property>jspHello</property></emphasis> node should appear in the upper-left <property>Package Explorer</property> view.
+ </para>
+
+ <figure>
+ <title>New Web Project</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsp_application/jsp_application_2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+
+ <section id="CreatingJSPPage">
+<?dbhtml filename="CreatingJSPPage.html"?>
+ <title>Creating JSP Page</title>
+ <para>
+ This section covers all the points how to create, edit and then preview JSP page.
+ </para>
+
+ <para>
+ In our simple application we need to create only one JSP page which displays a <emphasis>"Hello World!"</emphasis> message.
+ </para>
+
+ <itemizedlist>
+ <listitem>
+ <para>
+ Right click the <filename>WebContent</filename> folder and select <menuchoice><guimenuitem>New</guimenuitem><guimenuitem>JSP</guimenuitem></menuchoice>.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Type <filename>hello.jsp</filename> for a file name and click the
+ <guibutton>
+ Next
+ </guibutton>
+ button.
+ </para>
+ </listitem>
+ </itemizedlist>
+
+ <para>
+ In the next window you can choose a template for your JSP page and see its preview.
+ </para>
+
+ <itemizedlist>
+ <listitem>
+ <para>
+ Select <emphasis> <property>New JSP File (xhtml)</property> </emphasis> template and click the
+ <guibutton>
+ Finish
+ </guibutton>
+ button.
+ </para>
+ </listitem>
+ </itemizedlist>
+
+ <figure>
+ <title>Create JSP Page</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsp_application/jsp_application_3.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>
+ Our <filename>hello.jsp</filename> page will now appear in the <property>Project Explorer</property> view.
+ </para>
+
+ <section id="EditingJSPPage">
+<?dbhtml filename="EditingJSPPage.html"?>
+ <title>Editing a JSP Page</title>
+ <para>
+ Let's now make a little change so that a JSP page displays <emphasis>"Hello World!"</emphasis> message.
+ </para>
+
+ <itemizedlist>
+ <listitem>
<!--<para>Insert this line inside the <emphasis role="bold">
<property><body></property>
</emphasis><emphasis role="bold">
<property></body></property>
- </emphasis> tag: </para>-->
- <para>
- Insert this line inside the <code><body> </body> </code> tag:
- </para>
- </listitem>
- </itemizedlist>
-
- <programlisting role="XML">
-<![CDATA[<% System.out.println("Hello World!"); %>]]>
- </programlisting>
-
- <para>
- Notice that content assist functionality is always available when you are typing:
- </para>
-
- <figure>
- <title>Content Assist in JSP Page</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/jsp_application/jsp_application_4.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>
- After changes made your <filename>hello.jsp</filename> page should look like this:
- </para>
-
- <figure>
- <title>Hello.jsp Page Source</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/jsp_application/jsp_application_5.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>
- This line will actually output <emphasis>"Hello World!"</emphasis> message in the <property>Console</property>. To make the message displayed in the Browser, just replace this line with the simple <emphasis>Hello World!</emphasis>.
- </para>
- </section>
-
- <section id="WebXML">
-<?dbhtml filename="WebXML.html"?>
- <title>web.xml file</title>
- <para>
- When you are creating web project the wizard creates the <filename>web.xml</filename> file for you automatically. The <property>web.xml file editor</property> provided by <property>JBoss Developer Studio</property> is available in two modes: <property>Tree</property> and <property>Source</property>.
- </para>
-
- <figure>
- <title>Web.xml in Design and Source Mode</title>
- <mediaobject>
- <imageobject>
+ </emphasis> tag: </para>-->
+ <para>
+ Insert this line inside the <code><body> </body> </code> tag:
+ </para>
+ </listitem>
+ </itemizedlist>
+
+ <programlisting role="XML">
+<![CDATA[<% System.out.println("Hello World!"); %>]]>
+ </programlisting>
+
+ <para>
+ Notice that content assist functionality is always available when you are typing:
+ </para>
+
+ <figure>
+ <title>Content Assist in JSP Page</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsp_application/jsp_application_4.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>
+ After changes made your <filename>hello.jsp</filename> page should look like this:
+ </para>
+
+ <figure>
+ <title>Hello.jsp Page Source</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsp_application/jsp_application_5.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>
+ This line will actually output <emphasis>"Hello World!"</emphasis> message in the <property>Console</property>. To make the message displayed in the Browser, just replace this line with the simple <emphasis>Hello World!</emphasis>.
+ </para>
+ </section>
+
+ <section id="WebXML">
+<?dbhtml filename="WebXML.html"?>
+ <title>web.xml file</title>
+ <para>
+ When you are creating web project the wizard creates the <filename>web.xml</filename> file for you automatically. The <property>web.xml file editor</property> provided by <property>JBoss Developer Studio</property> is available in two modes: <property>Tree</property> and <property>Source</property>.
+ </para>
+
+ <figure>
+ <title>Web.xml in Design and Source Mode</title>
+ <mediaobject>
+ <imageobject>
<imagedata fileref="images/jsp_application/jsp_application_6.png" scale="90"
- />
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>
- Both modes are fully synchronized. Let's add a mapping to our <filename>hello.jsp</filename> page in the <filename>web.xml</filename> file.
- </para>
-
- <itemizedlist>
- <listitem>
- <para>
- Switch to the <property>Source</property> tab.
- </para>
- </listitem>
-
- <listitem>
- <para>
- Add the next code into <code><welcome-file-list></code> :
- </para>
- </listitem>
- </itemizedlist>
-
- <programlisting role="XML">
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>
+ Both modes are fully synchronized. Let's add a mapping to our <filename>hello.jsp</filename> page in the <filename>web.xml</filename> file.
+ </para>
+
+ <itemizedlist>
+ <listitem>
+ <para>
+ Switch to the <property>Source</property> tab.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Add the next code into <code><welcome-file-list></code> :
+ </para>
+ </listitem>
+ </itemizedlist>
+
+ <programlisting role="XML">
<![CDATA[<welcome-file>hello.jsp</welcome-file>
-]]>
- </programlisting>
-
- <para>
- If you come back to <property>Tree</property> mode you will see that the changes made are automatically reflected in that mode.
- </para>
-
- <para>
- Actually you don't really need to do any configurations right now.
- </para>
- </section>
-
- <section id="DeployTheProject">
-<?dbhtml filename="DeployTheProject.html"?>
- <title>Deploying the project</title>
- <para>
- Writing ant scripts and managing the packaging process can be quite a complicated and time consuming task for even the most trivial web applications. However, <property>JBoss Developer Studio</property> relieves you of this burden. All you need is to start <property>JBoss Server</property> and launch your application in your favorite browser.
- </para>
-
- <para>
- You can also create a WAR archive with JBDS's Archive Tools and export it to any web server.
- </para>
-
- <section id="WarConfig">
-<?dbhtml filename="WarConfig.html"?>
- <title>WAR Config</title>
- <para>
- Project archives managing is available through Project Archives view.
- </para>
-
- <itemizedlist>
- <listitem>
- <para>
- Select <menuchoice><guimenuitem>Window</guimenuitem><guimenuitem>Show view</guimenuitem><guimenuitem>Other</guimenuitem><guimenuitem>JBoss Tools</guimenuitem><guimenuitem>Project archives</guimenuitem></menuchoice> from the menu bar
- </para>
- </listitem>
-
- <listitem>
- <para>
- Select a project in Package Explorer you want to be archived
- </para>
- </listitem>
- </itemizedlist>
-
- <para>
- In the <property>Project Archives</property> view you will see the that the project is now listed:
- </para>
-
- <figure>
- <title>Project Archives</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/jsp_application/jsp_application_8.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>
- Right click on the project and select the type of archive you want to create. In this case we will create a WAR archive.
- </para>
-
- <figure>
- <title>Project Archives</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/jsp_application/jsp_application_8a.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>
- In the <property>New WAR</property> dialog you can see automatically selected default values.
- </para>
-
- <figure>
- <title>New WAR Archive</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/jsp_application/jsp_application_9.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <itemizedlist>
- <listitem>
- <para>
- Click the
- <guibutton>
- Next
- </guibutton>
- button to see a stub archive configuration for your project:
- <figure>
- <title>Stub Archive Configuration</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/jsp_application/jsp_application_10.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </para>
- </listitem>
-
- <listitem>
- <para>
- Click the
- <guibutton>
- Finish
- </guibutton>
- button. The <emphasis>.WAR</emphasis> file will appear in <property>Package Explorer</property> and also in <property>Project Archives</property> view as structure tree:
- <figure>
- <title>Archive is Created</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/jsp_application/jsp_application_11.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <figure>
- <title>Archive in Project Archives View</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/jsp_application/jsp_application_12.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </para>
- </listitem>
- </itemizedlist>
-
- <para>
- Using the <property>Project Archives</property> view you can rebuild the archive:
- </para>
-
- <figure>
- <title>Configure Archive</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/jsp_application/jsp_application_13.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
-
- <section id="AutoRedeploy">
-<?dbhtml filename="AutoRedeploy.html"?>
- <title>Auto redeploy</title>
- <para>
- When you are creating a web application and register it on <property>JBoss Server</property> it is automatically deployed into the <filename>/deploy</filename> directory of the server. JBDS comes with the feature of auto-redeploy. It means that you don't need to restart <property>JBoss Server</property>. Any changes made in the application in exploded format will trigger a redeployment on the server.
- </para>
-
- <para>
- You can also use the "Finger touch" button for a quick restart of the project without restarting the server:
- </para>
-
- <figure>
- <title>Finger Touch button</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/jsp_application/jsp_application_19_finger_touch.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>
- The "Finger" touches descriptors dependent on project (i.e. web.xml for WAR, application.xml for EAR, jboss-esb.xml in ESB projects).
- </para>
- </section>
- </section>
-
- <section id="Previewtab">
-<?dbhtml filename="Previewtab.html"?>
- <title>JSP Page Preview</title>
- <para>
- <property>JBDS</property> comes with JSP design-time preview features. When designing JSP pages you can easily preview how they will look during runtime. You can even attach your stylesheet to the Preview.
- </para>
-
- <itemizedlist>
- <listitem>
- <para>
- Make a little change to <filename>hello.jsp</filename> page, e.g. put this code snippet:
- </para>
- </listitem>
- </itemizedlist>
-
- <programlisting role="XML">
+]]>
+ </programlisting>
+
+ <para>
+ If you come back to <property>Tree</property> mode you will see that the changes made are automatically reflected in that mode.
+ </para>
+
+ <para>
+ Actually you don't really need to do any configurations right now.
+ </para>
+ </section>
+
+ <section id="DeployTheProject">
+<?dbhtml filename="DeployTheProject.html"?>
+ <title>Deploying the project</title>
+ <para>
+ Writing ant scripts and managing the packaging process can be quite a complicated and time consuming task for even the most trivial web applications. However, <property>JBoss Developer Studio</property> relieves you of this burden. All you need is to start <property>JBoss Server</property> and launch your application in your favorite browser.
+ </para>
+
+ <para>
+ You can also create a WAR archive with JBoss Developer Studio's Archive Tools and export it to any web server.
+ </para>
+
+ <section id="WarConfig">
+<?dbhtml filename="WarConfig.html"?>
+ <title>WAR Config</title>
+ <para>
+ Project archives managing is available through Project Archives view.
+ </para>
+
+ <itemizedlist>
+ <listitem>
+ <para>
+ Select <menuchoice><guimenuitem>Window</guimenuitem><guimenuitem>Show view</guimenuitem><guimenuitem>Other</guimenuitem><guimenuitem>JBoss Tools</guimenuitem><guimenuitem>Project archives</guimenuitem></menuchoice> from the menu bar
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Select a project in Package Explorer you want to be archived
+ </para>
+ </listitem>
+ </itemizedlist>
+
+ <para>
+ In the <property>Project Archives</property> view you will see the that the project is now listed:
+ </para>
+
+ <figure>
+ <title>Project Archives</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsp_application/jsp_application_8.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>
+ Right click on the project and select the type of archive you want to create. In this case we will create a WAR archive.
+ </para>
+
+ <figure>
+ <title>Project Archives</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsp_application/jsp_application_8a.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>
+ In the <property>New WAR</property> dialog you can see automatically selected default values.
+ </para>
+
+ <figure>
+ <title>New WAR Archive</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsp_application/jsp_application_9.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem>
+ <para>
+ Click the
+ <guibutton>
+ Next
+ </guibutton>
+ button to see a stub archive configuration for your project:
+ <figure>
+ <title>Stub Archive Configuration</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsp_application/jsp_application_10.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Click the
+ <guibutton>
+ Finish
+ </guibutton>
+ button. The <emphasis>.WAR</emphasis> file will appear in <property>Package Explorer</property> and also in <property>Project Archives</property> view as structure tree:
+ <figure>
+ <title>Archive is Created</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsp_application/jsp_application_11.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <figure>
+ <title>Archive in Project Archives View</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsp_application/jsp_application_12.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </para>
+ </listitem>
+ </itemizedlist>
+
+ <para>
+ Using the <property>Project Archives</property> view you can rebuild the archive:
+ </para>
+
+ <figure>
+ <title>Configure Archive</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsp_application/jsp_application_13.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+
+ <section id="AutoRedeploy">
+<?dbhtml filename="AutoRedeploy.html"?>
+ <title>Auto redeploy</title>
+ <para>
+ When you are creating a web application and register it on <property>JBoss Server</property> it is automatically deployed into the <filename>/deploy</filename> directory of the server. JBoss Developer Studio comes with the feature of auto-redeploy. It means that you don't need to restart <property>JBoss Server</property>. Any changes made in the application in exploded format will trigger a redeployment on the server.
+ </para>
+
+ <para>
+ You can also use the "Finger touch" button for a quick restart of the project without restarting the server:
+ </para>
+
+ <figure>
+ <title>Finger Touch button</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsp_application/jsp_application_19_finger_touch.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>
+ The "Finger" touches descriptors dependent on project (i.e. web.xml for WAR, application.xml for EAR, jboss-esb.xml in ESB projects).
+ </para>
+ </section>
+ </section>
+
+ <section id="Previewtab">
+<?dbhtml filename="Previewtab.html"?>
+ <title>JSP Page Preview</title>
+ <para>
+ <property>JBoss Developer Studio</property> comes with JSP design-time preview features. When designing JSP pages you can easily preview how they will look during runtime. You can even attach your stylesheet to the Preview.
+ </para>
+
+ <itemizedlist>
+ <listitem>
+ <para>
+ Make a little change to <filename>hello.jsp</filename> page, e.g. put this code snippet:
+ </para>
+ </listitem>
+ </itemizedlist>
+
+ <programlisting role="XML">
<![CDATA[<%= new java.util.Date() %>
-]]>
- </programlisting>
-
- <itemizedlist>
- <listitem>
- <para>
- Click the
- <guibutton>
- Save
- </guibutton>
- button.
- </para>
- </listitem>
-
- <listitem>
- <para>
- Switch to Preview page by clicking the <property>Preview</property> tab at the bottom of the page. You will see how the page will look at runtime.
- </para>
- </listitem>
- </itemizedlist>
+]]>
+ </programlisting>
+
+ <itemizedlist>
+ <listitem>
+ <para>
+ Click the
+ <guibutton>
+ Save
+ </guibutton>
+ button.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Switch to Preview page by clicking the <property>Preview</property> tab at the bottom of the page. You will see how the page will look at runtime.
+ </para>
+ </listitem>
+ </itemizedlist>
<!-- <figure>
<title>Preview Page</title>
<mediaobject>
@@ -462,64 +462,64 @@
</imageobject>
</mediaobject>
</figure>
- -->
- </section>
-
- <section id="LaunchingTheProject">
-<?dbhtml filename="LaunchingTheProject.html"?>
- <title>Launch JSP Project</title>
- <para>
- Let's now launch our project on server. We'll use <property>JBoss Server</property> that is shipped with <property>JBoss Developer Studio</property>. You can do it by performing one of the following actions:
- </para>
-
- <itemizedlist>
- <listitem>
- <para>
- Start JBoss Server from Servers view by clicking the Start the server icon (
- <inlinemediaobject>
- <imageobject>
- <imagedata fileref="images/jsp_application/jsp_application_18.png"/>
- </imageobject>
- </inlinemediaobject>
- ) .
- </para>
- </listitem>
- </itemizedlist>
-
- <itemizedlist>
- <listitem>
- <para>
- Click the
- <guibutton>
- Run
- </guibutton>
- icon or right click your project folder and select <menuchoice><guimenuitem>Run As</guimenuitem><guimenuitem>Run on Server</guimenuitem></menuchoice>. If you haven't made any changes in the <filename>web.xml</filename> file or cleared it out you can launch the application by right clicking the <filename>hello.jsp</filename> page and selecting <guimenuitem>Run on the Server</guimenuitem>(
- <inlinemediaobject>
- <imageobject>
- <imagedata fileref="images/jsp_application/jsp_application_16.png"/>
- </imageobject>
- </inlinemediaobject>
- ).
- </para>
- </listitem>
- </itemizedlist>
-
- <para>
- You should see the next page in a Browser :
- </para>
-
- <figure>
- <title>Running Project</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/jsp_application/jsp_application_17.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>
- Thus with the help of this chapter you've learnt how to organize a Dynamic Web Project with a minimal configuration, add new elements to it (in our case it's just one JSP page) and deploy and run it on the <property>JBoss Server</property> shipped with <property>JBDS</property>.
- </para>
- </section>
- </section>
-</chapter>
+ -->
+ </section>
+
+ <section id="LaunchingTheProject">
+<?dbhtml filename="LaunchingTheProject.html"?>
+ <title>Launch JSP Project</title>
+ <para>
+ Let's now launch our project on server. We'll use <property>JBoss Server</property> that is shipped with <property>JBoss Developer Studio</property>. You can do it by performing one of the following actions:
+ </para>
+
+ <itemizedlist>
+ <listitem>
+ <para>
+ Start JBoss Server from Servers view by clicking the Start the server icon (
+ <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsp_application/jsp_application_18.png"/>
+ </imageobject>
+ </inlinemediaobject>
+ ) .
+ </para>
+ </listitem>
+ </itemizedlist>
+
+ <itemizedlist>
+ <listitem>
+ <para>
+ Click the
+ <guibutton>
+ Run
+ </guibutton>
+ icon or right click your project folder and select <menuchoice><guimenuitem>Run As</guimenuitem><guimenuitem>Run on Server</guimenuitem></menuchoice>. If you haven't made any changes in the <filename>web.xml</filename> file or cleared it out you can launch the application by right clicking the <filename>hello.jsp</filename> page and selecting <guimenuitem>Run on the Server</guimenuitem>(
+ <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsp_application/jsp_application_16.png"/>
+ </imageobject>
+ </inlinemediaobject>
+ ).
+ </para>
+ </listitem>
+ </itemizedlist>
+
+ <para>
+ You should see the next page in a Browser :
+ </para>
+
+ <figure>
+ <title>Running Project</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsp_application/jsp_application_17.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>
+ Thus with the help of this chapter you've learnt how to organize a Dynamic Web Project with a minimal configuration, add new elements to it (in our case it's just one JSP page) and deploy and run it on the <property>JBoss Server</property> shipped with <property>JBoss Developer Studio</property>.
+ </para>
+ </section>
+ </section>
+</chapter>
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/manage.xml
===================================================================
--- trunk/documentation/guides/GettingStartedGuide/en-US/manage.xml 2011-04-11 23:14:29 UTC (rev 30500)
+++ trunk/documentation/guides/GettingStartedGuide/en-US/manage.xml 2011-04-11 23:32:02 UTC (rev 30501)
@@ -18,7 +18,7 @@
In this chapter we'll focus more on how to operate the <property>JBoss AS</property> from <property condition="jbds">JBoss Developer Studio</property><property condition="jbt">JBoss Tools</property>.
</para>
<para condition="jbds">
- <property>JBoss Developer Studio 4.0.0.GA</property> ships with <property>JBoss EAP 5.1</property>. When you followed the default installation of <property>JBoss Developer Studio</property>, you should already have a JBoss EAP 5.1 Server installed and defined. To run JBoss AS you need you will need to have JDK 6 installed.
+ <property>JBoss Developer Studio: Portfolio Edition</property> ships with <property>JBoss EAP</property>. When you followed the default installation of <property>JBoss Developer Studio</property>, you should already have a JBoss EAP Server installed and defined. To run JBoss AS you need you will need to have JDK 6 installed.
</para>
<para condition="jbt">
@@ -27,19 +27,25 @@
<!--<note>
<title>Note:</title>
- <para>You can leave <property>JDK 1.5</property> configuration for <property>JBDS</property> and set <property>JDK 6</property> as <property>JRE</property> only for <property>JBoss EAP Server</property>. For this you need to select <menuchoice><guimenuitem>Windows</guimenuitem><guimenuitem>Preferences</guimenuitem></menuchoice>, and then click <menuchoice><guimenuitem>Server</guimenuitem><guimenuitem>Runtime Environments</guimenuitem></menuchoice>. On the opened preference page you should select <property>JBoss EAP Runtime</property> and clicking the <guibutton>Edit</guibutton> button. In <property>Edit Server Runtime Environment</property> dialog you can configure <property>Jave Runtime Environment</property> by clicking the <guibutton>JRE</guibutton> button. </para>
+ <para>You can leave <property>JDK 1.5</property> configuration for <property>JBoss Developer Studio</property> and set <property>JDK 6</property> as <property>JRE</property> only for <property>JBoss EAP Server</property>. For this you need to select <menuchoice>
+ <guimenuitem>Windows</guimenuitem>
+ <guimenuitem>Preferences</guimenuitem>
+ </menuchoice>, and then click <menuchoice>
+ <guimenuitem>Server</guimenuitem>
+ <guimenuitem>Runtime Environments</guimenuitem>
+ </menuchoice>. On the opened preference page you should select <property>JBoss EAP Runtime</property> and clicking the <guibutton>Edit</guibutton> button. In <property>Edit Server Runtime Environment</property> dialog you can configure <property>Jave Runtime Environment</property> by clicking the <guibutton>JRE</guibutton> button. </para>
</note>-->
<section id="JBossbundled">
<?dbhtml filename="JBossbundled.html"?>
- <title condition="jbds">How to Manage the JBoss AS Bundled in JBDS</title>
+ <title condition="jbds">How to Manage the JBoss AS Bundled in JBoss Developer Studio</title>
<title condition="jbt">How to Manage JBoss AS with JBoss Tools</title>
<para>This section covers the basics of working with the <property>JBoss Server</property>
- supported directly by <property>JBDS</property> via bundled AS plug-in. The server points to
- the JBoss Enterprise Application Platform 5.1 Runtime shipped with <property>JBDS</property>.</para>
+ supported directly by <property>JBoss Developer Studio</property> via bundled AS plug-in. The server points to
+ the JBoss Enterprise Application Platform Runtime shipped with <property>JBoss Developer Studio</property>.</para>
<figure>
- <title>JBoss EAP 5.1 Runtime</title>
+ <title>JBoss Enterprise Application Platform Runtime</title>
<mediaobject>
<imageobject>
<imagedata fileref="images/manage/eap5runtime.png"/>
@@ -146,7 +152,7 @@
<section id="JBossInstances">
<?dbhtml filename="JBossInstances.html"?>
- <title>How to Use Your Own JBoss AS Instance with JBDS</title>
+ <title>How to Use Your Own JBoss AS Instance with JBoss Developer Studio</title>
<para>Although <property>JBoss Developer Studio</property> works closely with
<property>JBoss EAP 5</property> we do not ultimately tie you to any particular
server for deployment. There are some servers that Studio supports directly (via the
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/rad_jsf_application.xml
===================================================================
--- trunk/documentation/guides/GettingStartedGuide/en-US/rad_jsf_application.xml 2011-04-11 23:14:29 UTC (rev 30500)
+++ trunk/documentation/guides/GettingStartedGuide/en-US/rad_jsf_application.xml 2011-04-11 23:32:02 UTC (rev 30501)
@@ -31,7 +31,7 @@
<section id="SettingUpTheProject12">
<?dbhtml filename="SettingUpTheProject12.html"?>
<title>Setting up the project</title>
- <para>First, you should create a JSF 1.2 project using an integrated JBDS's new
+ <para>First, you should create a JSF 1.2 project using an integrated JBoss Developer Studio's new
project wizard and predefined templates. Follow the next steps:</para>
<itemizedlist>
<listitem>
@@ -314,7 +314,7 @@
</itemizedlist>
<programlisting role="JAVA"><![CDATA[Integer userNumber;
]]></programlisting>
- <para>JBDS allows to quickly generate getters and setters for java bean.</para>
+<para>JBoss Developer Studio allows to quickly generate getters and setters for java bean.</para>
<itemizedlist>
<listitem>
<para>Right click the <filename>NumberBean.java</filename> file in the Package Explorer view</para>
@@ -586,7 +586,7 @@
</itemizedlist>
<programlisting role="XML"><![CDATA[<f:loadBundle basename="game.messages" var="msg"/>
]]></programlisting>
- <para>As always JBDS provides code assist:</para>
+<para>As always JBoss Developer Studio provides code assist:</para>
<figure>
<title>Code Assist</title>
<mediaobject>
@@ -610,7 +610,7 @@
<para>Click the <guibutton>...</guibutton> button next to the value field</para>
</listitem>
</itemizedlist>
- <para>JBDS will display a list of possible values:</para>
+ <para>JBoss Developer Studio will display a list of possible values:</para>
<figure>
<title>Choose Value</title>
<mediaobject>
@@ -818,7 +818,7 @@
</html>
]]></programlisting>
- <para>Again you can use code assist provided by JBDS when editing jsp page:</para>
+<para>Again you can use code assist provided by JBoss Developer Studio when editing jsp page:</para>
<figure>
<title>Code Assist for <f:param></title>
<mediaobject>
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/usage_reporting.xml
===================================================================
--- trunk/documentation/guides/GettingStartedGuide/en-US/usage_reporting.xml 2011-04-11 23:14:29 UTC (rev 30500)
+++ trunk/documentation/guides/GettingStartedGuide/en-US/usage_reporting.xml 2011-04-11 23:32:02 UTC (rev 30501)
@@ -18,7 +18,7 @@
</mediaobject>
</figure>
- <!-- JBDS Intro -->
+ <!-- JBoss Developer Studio Intro -->
<para condition="jbds">
The JBoss Developer Studio now includes a usage plug-in that anonymously reports information back to JBoss. The plug-in is not enabled by default. To enable, click the <guibutton>Yes</guibutton> button.
13 years, 7 months
JBoss Tools SVN: r30500 - trunk/cdi/plugins/org.jboss.tools.cdi.seam.solder.core/src/org/jboss/tools/cdi/seam/solder/core.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2011-04-11 19:14:29 -0400 (Mon, 11 Apr 2011)
New Revision: 30500
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.seam.solder.core/src/org/jboss/tools/cdi/seam/solder/core/CDISeamSolderLoggerExtension.java
Log:
JBIDE-8713
https://issues.jboss.org/browse/JBIDE-8713
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.seam.solder.core/src/org/jboss/tools/cdi/seam/solder/core/CDISeamSolderLoggerExtension.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.seam.solder.core/src/org/jboss/tools/cdi/seam/solder/core/CDISeamSolderLoggerExtension.java 2011-04-11 22:39:46 UTC (rev 30499)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.seam.solder.core/src/org/jboss/tools/cdi/seam/solder/core/CDISeamSolderLoggerExtension.java 2011-04-11 23:14:29 UTC (rev 30500)
@@ -8,11 +8,15 @@
import org.eclipse.core.runtime.IPath;
import org.eclipse.jdt.core.IPackageFragmentRoot;
import org.eclipse.jdt.core.IType;
+import org.eclipse.jdt.core.SourceRange;
import org.jboss.tools.cdi.core.CDICoreNature;
+import org.jboss.tools.cdi.core.IAnnotationDeclaration;
import org.jboss.tools.cdi.core.IRootDefinitionContext;
import org.jboss.tools.cdi.core.extension.ICDIExtension;
import org.jboss.tools.cdi.core.extension.IDefinitionContextExtension;
import org.jboss.tools.cdi.core.extension.feature.IBuildParticipantFeature;
+import org.jboss.tools.cdi.internal.core.impl.AnnotationDeclaration;
+import org.jboss.tools.cdi.internal.core.impl.AnnotationLiteral;
import org.jboss.tools.cdi.internal.core.impl.CDIProject;
import org.jboss.tools.cdi.internal.core.impl.ClassBean;
import org.jboss.tools.cdi.internal.core.impl.definition.AbstractMemberDefinition;
@@ -49,6 +53,8 @@
}
public void buildDefinitions(FileSet fileSet) {
+ LoggerDefinitionContext workingCopy = context.getWorkingCopy();
+
Map<IPath, Set<IType>> is = fileSet.getInterfaces();
for (IPath path: is.keySet()) {
Set<IType> ts = is.get(path);
@@ -56,12 +62,23 @@
InterfaceDefinition i = new InterfaceDefinition(t);
if(i.isAnnotationPresent(CDISeamSolderConstants.MESSAGE_LOGGER_ANNOTATION_TYPE_NAME)) {
TypeDefinition d = new TypeDefinition();
- d.setType(t, context.getRootContext());
- ((LoggerDefinitionContext)context.getWorkingCopy()).addMessageLogger(path, d);
+ d.setType(t, workingCopy.getRootContext());
+ workingCopy.addMessageLogger(path, d);
} else if(i.isAnnotationPresent(CDISeamSolderConstants.MESSAGE_BUNDLE_ANNOTATION_TYPE_NAME)) {
TypeDefinition d = new TypeDefinition();
- d.setType(t, context.getRootContext());
- ((LoggerDefinitionContext)context.getWorkingCopy()).addMessageBundle(path, d);
+ d.setType(t, workingCopy.getRootContext());
+ workingCopy.addMessageBundle(path, d);
+ AnnotationDeclaration ad = d.getAnnotation(CDISeamSolderConstants.MESSAGE_BUNDLE_ANNOTATION_TYPE_NAME);
+ if(ad.getMemberValue("projectCode") != null && ad.getMemberValue("projectCode").toString().length() > 0) {
+ String text = d.getContent();
+ int st = ad.getStartPosition();
+ int le = ad.getLength();
+ String source = text.substring(st, st + le);
+ AnnotationLiteral l = new AnnotationLiteral(d.getResource(), source, new SourceRange(st, le), null, ad.getType());
+ d.removeAnnotation(ad);
+ d.addAnnotation(l, workingCopy.getRootContext());
+ }
+
}
}
}
@@ -145,7 +162,7 @@
return root;
}
- public IDefinitionContextExtension getWorkingCopy() {
+ public LoggerDefinitionContext getWorkingCopy() {
if(original != null) {
return this;
}
13 years, 7 months
JBoss Tools SVN: r30499 - in trunk/cdi/tests/org.jboss.tools.cdi.seam.solder.core.test: projects/CDISolderTest/src/org/jboss/logger and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2011-04-11 18:39:46 -0400 (Mon, 11 Apr 2011)
New Revision: 30499
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam.solder.core.test/projects/CDISolderTest/src/org/jboss/logger/
trunk/cdi/tests/org.jboss.tools.cdi.seam.solder.core.test/projects/CDISolderTest/src/org/jboss/logger/LogAccess.java
trunk/cdi/tests/org.jboss.tools.cdi.seam.solder.core.test/projects/CDISolderTest/src/org/jboss/logger/MyBundle.java
trunk/cdi/tests/org.jboss.tools.cdi.seam.solder.core.test/projects/CDISolderTest/src/org/jboss/logger/MyLogger.java
trunk/cdi/tests/org.jboss.tools.cdi.seam.solder.core.test/src/org/jboss/tools/cdi/seam/solder/core/test/MessageLoggerTest.java
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.seam.solder.core.test/src/org/jboss/tools/cdi/seam/solder/core/test/BeanNamingTest.java
trunk/cdi/tests/org.jboss.tools.cdi.seam.solder.core.test/src/org/jboss/tools/cdi/seam/solder/core/test/CDISeamSolderCoreAllTests.java
Log:
JBIDE-8712
https://issues.jboss.org/browse/JBIDE-8712
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam.solder.core.test/projects/CDISolderTest/src/org/jboss/logger/LogAccess.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam.solder.core.test/projects/CDISolderTest/src/org/jboss/logger/LogAccess.java (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam.solder.core.test/projects/CDISolderTest/src/org/jboss/logger/LogAccess.java 2011-04-11 22:39:46 UTC (rev 30499)
@@ -0,0 +1,13 @@
+package org.jboss.logger;
+
+import javax.inject.Inject;
+
+import org.jboss.seam.solder.messages.MessageBundle;
+
+public class LogAccess {
+ @Inject MyLogger logger;
+
+ @Inject @MessageBundle MyBundle bundle;
+
+ String s = "#{logger1.message}";
+}
Property changes on: trunk/cdi/tests/org.jboss.tools.cdi.seam.solder.core.test/projects/CDISolderTest/src/org/jboss/logger/LogAccess.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam.solder.core.test/projects/CDISolderTest/src/org/jboss/logger/MyBundle.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam.solder.core.test/projects/CDISolderTest/src/org/jboss/logger/MyBundle.java (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam.solder.core.test/projects/CDISolderTest/src/org/jboss/logger/MyBundle.java 2011-04-11 22:39:46 UTC (rev 30499)
@@ -0,0 +1,8 @@
+package org.jboss.logger;
+
+import org.jboss.seam.solder.messages.MessageBundle;
+
+@MessageBundle
+public interface MyBundle {
+
+}
Property changes on: trunk/cdi/tests/org.jboss.tools.cdi.seam.solder.core.test/projects/CDISolderTest/src/org/jboss/logger/MyBundle.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam.solder.core.test/projects/CDISolderTest/src/org/jboss/logger/MyLogger.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam.solder.core.test/projects/CDISolderTest/src/org/jboss/logger/MyLogger.java (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam.solder.core.test/projects/CDISolderTest/src/org/jboss/logger/MyLogger.java 2011-04-11 22:39:46 UTC (rev 30499)
@@ -0,0 +1,11 @@
+package org.jboss.logger;
+
+import javax.inject.Named;
+
+import org.jboss.seam.solder.logging.MessageLogger;
+
+@MessageLogger
+@Named("logger1")
+public interface MyLogger {
+ public String getMessage();
+}
Property changes on: trunk/cdi/tests/org.jboss.tools.cdi.seam.solder.core.test/projects/CDISolderTest/src/org/jboss/logger/MyLogger.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Modified: trunk/cdi/tests/org.jboss.tools.cdi.seam.solder.core.test/src/org/jboss/tools/cdi/seam/solder/core/test/BeanNamingTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam.solder.core.test/src/org/jboss/tools/cdi/seam/solder/core/test/BeanNamingTest.java 2011-04-11 22:38:34 UTC (rev 30498)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam.solder.core.test/src/org/jboss/tools/cdi/seam/solder/core/test/BeanNamingTest.java 2011-04-11 22:39:46 UTC (rev 30499)
@@ -1,3 +1,13 @@
+/*******************************************************************************
+ * Copyright (c) 2011 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.cdi.seam.solder.core.test;
import java.io.IOException;
Modified: trunk/cdi/tests/org.jboss.tools.cdi.seam.solder.core.test/src/org/jboss/tools/cdi/seam/solder/core/test/CDISeamSolderCoreAllTests.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam.solder.core.test/src/org/jboss/tools/cdi/seam/solder/core/test/CDISeamSolderCoreAllTests.java 2011-04-11 22:38:34 UTC (rev 30498)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam.solder.core.test/src/org/jboss/tools/cdi/seam/solder/core/test/CDISeamSolderCoreAllTests.java 2011-04-11 22:39:46 UTC (rev 30499)
@@ -28,6 +28,7 @@
suiteAll.addTestSuite(BeanNamingTest.class);
suiteAll.addTestSuite(VetoTest.class);
suiteAll.addTestSuite(ExactTest.class);
+ suiteAll.addTestSuite(MessageLoggerTest.class);
return suiteAll;
}
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam.solder.core.test/src/org/jboss/tools/cdi/seam/solder/core/test/MessageLoggerTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam.solder.core.test/src/org/jboss/tools/cdi/seam/solder/core/test/MessageLoggerTest.java (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam.solder.core.test/src/org/jboss/tools/cdi/seam/solder/core/test/MessageLoggerTest.java 2011-04-11 22:39:46 UTC (rev 30499)
@@ -0,0 +1,110 @@
+/*******************************************************************************
+ * Copyright (c) 2011 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.cdi.seam.solder.core.test;
+
+import java.io.IOException;
+import java.util.Set;
+
+import junit.framework.TestCase;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.jdt.core.IType;
+import org.jboss.tools.cdi.core.CDICorePlugin;
+import org.jboss.tools.cdi.core.IBean;
+import org.jboss.tools.cdi.core.ICDIProject;
+import org.jboss.tools.cdi.core.IInjectionPoint;
+import org.jboss.tools.cdi.core.IInjectionPointField;
+import org.jboss.tools.test.util.JobUtils;
+import org.jboss.tools.test.util.ResourcesUtils;
+
+/**
+ *
+ * @author Viacheslav Kabanovich
+ *
+ */
+public class MessageLoggerTest extends TestCase {
+ protected static String PLUGIN_ID = "org.jboss.tools.cdi.seam.solder.core.test";
+ IProject project = null;
+
+ public MessageLoggerTest() {}
+
+ public void setUp() throws Exception {
+ project = ResourcesUtils.importProject(PLUGIN_ID, "/projects/CDISolderTest");
+ JobUtils.waitForIdle();
+ project.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
+ JobUtils.waitForIdle();
+ }
+
+ public void testMessageLogger() throws CoreException, IOException {
+ ICDIProject cdi = CDICorePlugin.getCDIProject(project, true);
+
+ IInjectionPointField logger = getInjectionPointField(cdi, "src/org/jboss/logger/LogAccess.java", "logger");
+
+ Set<IBean> bs = cdi.getBeans(false, logger);
+ assertEquals(1, bs.size());
+
+ IBean b = bs.iterator().next();
+
+ IType t = b.getBeanClass();
+ assertNotNull(t);
+ assertTrue(t.isInterface());
+ assertEquals("org.jboss.logger.MyLogger", t.getFullyQualifiedName());
+
+ }
+
+ public void testMessageBundle() throws CoreException, IOException {
+ ICDIProject cdi = CDICorePlugin.getCDIProject(project, true);
+
+ IInjectionPointField bundle = getInjectionPointField(cdi, "src/org/jboss/logger/LogAccess.java", "bundle");
+
+ Set<IBean> bs = cdi.getBeans(false, bundle);
+ assertEquals(1, bs.size());
+
+ IBean b = bs.iterator().next();
+
+ IType t = b.getBeanClass();
+ assertNotNull(t);
+ assertTrue(t.isInterface());
+ assertEquals("org.jboss.logger.MyBundle", t.getFullyQualifiedName());
+
+ }
+
+ public void tearDown() throws Exception {
+ boolean saveAutoBuild = ResourcesUtils.setBuildAutomatically(false);
+ JobUtils.waitForIdle();
+ project.delete(true, true, null);
+ JobUtils.waitForIdle();
+ ResourcesUtils.setBuildAutomatically(saveAutoBuild);
+ JobUtils.waitForIdle();
+ }
+
+ protected IInjectionPointField getInjectionPointField(ICDIProject cdi, String beanClassFilePath, String fieldName) {
+ IFile file = cdi.getNature().getProject().getFile(beanClassFilePath);
+ Set<IBean> beans = cdi.getBeans(file.getFullPath());
+ assertEquals("Wrong number of the beans", 1, beans.size());
+ Set<IInjectionPoint> injections = beans.iterator().next().getInjectionPoints();
+ for (IInjectionPoint injectionPoint : injections) {
+ if(injectionPoint instanceof IInjectionPointField) {
+ IInjectionPointField field = (IInjectionPointField)injectionPoint;
+ if(fieldName.equals(field.getField().getElementName())) {
+ return field;
+ }
+ }
+ }
+ fail("Can't find \"" + fieldName + "\" injection point filed in " + beanClassFilePath);
+ return null;
+ }
+
+}
Property changes on: trunk/cdi/tests/org.jboss.tools.cdi.seam.solder.core.test/src/org/jboss/tools/cdi/seam/solder/core/test/MessageLoggerTest.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
13 years, 7 months
JBoss Tools SVN: r30498 - workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui.
by jbosstools-commits@lists.jboss.org
Author: bfitzpat
Date: 2011-04-11 18:38:34 -0400 (Mon, 11 Apr 2011)
New Revision: 30498
Added:
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/readme.txt
Log:
JBIDE-8714 - added readme.txt
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/readme.txt
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/readme.txt (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/readme.txt 2011-04-11 22:38:34 UTC (rev 30498)
@@ -0,0 +1,27 @@
+****************************
+Using the SwitchYard Editor
+v.0.4
+****************************
+The SwitchYard Editor relies on new technology available from Eclipse - the Sapphire UI framework and the Graphiti UI framework.
+
+Graphiti has been at use at Eclipse for a couple of releases now (Helios and now Indigo). Sapphire is a maturing framework new
+to the Indigo release that is stable, but still early in its lifecycle. As such, it is not part of the Eclipse release train
+this go around and is in Incubation status.
+
+You will need to install Indigo for this tool to work. An early milestone (M6a) of it is available here:
+ http://www.eclipse.org/downloads/packages/release/indigo/m6
+
+I recommend grabbing the Eclipse IDE for Java EE Developers.
+
+Once you have that up and running, install the latest Graphiti build from this update site:
+ http://download.eclipse.org/graphiti/updates/milestones/
+
+And the latest Sapphire 0.3.x build from this nightly update site:
+ https://hudson.eclipse.org/hudson/job/sapphire-0.3.x/
+
+Then you should be able to build the SwitchYard Editor plug-in and run it in a new Eclipse Runtime Configuration instance.
+
+At this point you need to change the name of the SwitchYard configuration file to "switchyard.xml" but it opens and can
+edit the switchyard.xml file in the "sample2" directory in the editor project.
+
+The graphical diagram at this point is mostly useless, but will gain functionality over time as Sapphire matures.
Property changes on: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/readme.txt
___________________________________________________________________
Added: svn:mime-type
+ text/plain
13 years, 7 months
JBoss Tools SVN: r30497 - in workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui: .apt_generated and 21 other directories.
by jbosstools-commits@lists.jboss.org
Author: bfitzpat
Date: 2011-04-11 18:26:41 -0400 (Mon, 11 Apr 2011)
New Revision: 30497
Added:
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/Component.java
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/ComponentService.java
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/ComponentServiceReference.java
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/Composite.java
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/ImplementationBean.java
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/InterfaceJava.java
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/SOAPBinding.java
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/Service.java
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/Switchyard.java
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/TransformJava.java
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/TransformSmooks.java
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/Transforms.java
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/sapphire/
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/sapphire/internal/
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.classpath
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.project
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.settings/
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.settings/diagrams/
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.settings/diagrams/map.np
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.settings/diagrams/map.xmi
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.settings/org.eclipse.jdt.apt.core.prefs
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.settings/org.eclipse.jdt.core.prefs
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/META-INF/
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/META-INF/MANIFEST.MF
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/blogpost.xml
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/build.properties
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/plugin.xml
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/sample/
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/sample/switchyard.xml
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/sample2/
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/sample2/switchyard.xml
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/schemas/
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/schemas/switchyard-v1.xsd
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/sdefs/
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/sdefs/switchyard-0.2.sdef
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/sdefs/switchyard-0.3.sdef
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/sdefs/switchyard-0.4.sdef
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/sdefs/switchyard.sdef
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/IComponent.java
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/IComponentService.java
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/IComponentServiceReference.java
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/IComposite.java
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/IImplementationBean.java
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/IInterfaceJava.java
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/ISOAPBinding.java
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/IService.java
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/ISwitchyard.java
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/ITransformJava.java
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/ITransformSmooks.java
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/ITransforms.java
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/ui/
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/ui/SwitchyardEditor.java
workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/ui/SwitchyardGraphicalEditor.java
Log:
JBIDE-8714 - Share project "org.jboss.tools.esb.switchyard.ui" into "https://svn.jboss.org/repos/jbosstools"
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/Component.java
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/Component.java (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/Component.java 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,252 @@
+package org.jboss.tools.esb.switchyard.internal;
+
+import org.eclipse.sapphire.modeling.IModelParticle;
+import org.eclipse.sapphire.modeling.ListBindingImpl;
+import org.eclipse.sapphire.modeling.ModelElement;
+import org.eclipse.sapphire.modeling.ModelElementList;
+import org.eclipse.sapphire.modeling.ModelProperty;
+import org.eclipse.sapphire.modeling.Resource;
+import org.eclipse.sapphire.modeling.Value;
+import org.eclipse.sapphire.modeling.ValueProperty;
+import org.jboss.tools.esb.switchyard.IComponent;
+import org.jboss.tools.esb.switchyard.IComponentService;
+import org.jboss.tools.esb.switchyard.IComponentServiceReference;
+import org.jboss.tools.esb.switchyard.IImplementationBean;
+
+public final class Component
+
+ extends ModelElement
+ implements IComponent
+
+{
+ private ModelElementList<IComponentServiceReference> componentServiceReferences;
+ private ModelElementList<IComponentService> componentServices;
+ private ModelElementList<IImplementationBean> implementationBeans;
+ private Value<String> name;
+
+ public Component( final IModelParticle parent, final ModelProperty parentProperty, final Resource resource )
+ {
+ super( TYPE, parent, parentProperty, resource );
+ }
+
+ public Component( final Resource resource )
+ {
+ super( TYPE, null, null, resource );
+ }
+
+ public ModelElementList<IComponentService> getComponentServices()
+ {
+ synchronized( root() )
+ {
+ if( this.componentServices == null )
+ {
+ refresh( PROP_COMPONENT_SERVICES, true );
+ }
+
+ return this.componentServices;
+ }
+ }
+
+ public ModelElementList<IComponentServiceReference> getComponentServiceReferences()
+ {
+ synchronized( root() )
+ {
+ if( this.componentServiceReferences == null )
+ {
+ refresh( PROP_COMPONENT_SERVICE_REFERENCES, true );
+ }
+
+ return this.componentServiceReferences;
+ }
+ }
+
+ public ModelElementList<IImplementationBean> getImplementationBeans()
+ {
+ synchronized( root() )
+ {
+ if( this.implementationBeans == null )
+ {
+ refresh( PROP_IMPLEMENTATION_BEANS, true );
+ }
+
+ return this.implementationBeans;
+ }
+ }
+
+ public Value<String> getName()
+ {
+ synchronized( root() )
+ {
+ if( this.name == null )
+ {
+ refresh( PROP_NAME, true );
+ }
+
+ return this.name;
+ }
+ }
+
+ public void setName( String value )
+ {
+ synchronized( root() )
+ {
+ if( value != null && value.equals( "" ) )
+ {
+ value = null;
+ }
+
+ value = PROP_NAME.decodeKeywords( value );
+
+ refresh( PROP_NAME, true );
+
+ if( ! equal( this.name.getText( false ), value ) )
+ {
+ resource().binding( PROP_NAME ).write( value );
+ refresh( PROP_NAME, false );
+ }
+ }
+ }
+
+ protected void refreshProperty( ModelProperty property, final boolean force )
+ {
+ synchronized( root() )
+ {
+ property = property.refine( this );
+
+ if( property == PROP_COMPONENT_SERVICES )
+ {
+ if( this.componentServices == null )
+ {
+ if( force == true )
+ {
+ this.componentServices = new ModelElementList<IComponentService>( this, PROP_COMPONENT_SERVICES );
+ final ListBindingImpl binding = resource().binding( PROP_COMPONENT_SERVICES );
+ this.componentServices.init( binding );
+ refreshPropertyEnabledStatus( PROP_COMPONENT_SERVICES );
+ }
+ }
+ else
+ {
+ final boolean propertyEnabledStatusChanged = refreshPropertyEnabledStatus( PROP_COMPONENT_SERVICES );
+ final boolean notified = this.componentServices.refresh();
+
+ if( ! notified && propertyEnabledStatusChanged )
+ {
+ notifyPropertyChangeListeners( PROP_COMPONENT_SERVICES );
+ }
+ }
+ }
+ else if( property == PROP_COMPONENT_SERVICE_REFERENCES )
+ {
+ if( this.componentServiceReferences == null )
+ {
+ if( force == true )
+ {
+ this.componentServiceReferences = new ModelElementList<IComponentServiceReference>( this, PROP_COMPONENT_SERVICE_REFERENCES );
+ final ListBindingImpl binding = resource().binding( PROP_COMPONENT_SERVICE_REFERENCES );
+ this.componentServiceReferences.init( binding );
+ refreshPropertyEnabledStatus( PROP_COMPONENT_SERVICE_REFERENCES );
+ }
+ }
+ else
+ {
+ final boolean propertyEnabledStatusChanged = refreshPropertyEnabledStatus( PROP_COMPONENT_SERVICE_REFERENCES );
+ final boolean notified = this.componentServiceReferences.refresh();
+
+ if( ! notified && propertyEnabledStatusChanged )
+ {
+ notifyPropertyChangeListeners( PROP_COMPONENT_SERVICE_REFERENCES );
+ }
+ }
+ }
+ else if( property == PROP_IMPLEMENTATION_BEANS )
+ {
+ if( this.implementationBeans == null )
+ {
+ if( force == true )
+ {
+ this.implementationBeans = new ModelElementList<IImplementationBean>( this, PROP_IMPLEMENTATION_BEANS );
+ final ListBindingImpl binding = resource().binding( PROP_IMPLEMENTATION_BEANS );
+ this.implementationBeans.init( binding );
+ refreshPropertyEnabledStatus( PROP_IMPLEMENTATION_BEANS );
+ }
+ }
+ else
+ {
+ final boolean propertyEnabledStatusChanged = refreshPropertyEnabledStatus( PROP_IMPLEMENTATION_BEANS );
+ final boolean notified = this.implementationBeans.refresh();
+
+ if( ! notified && propertyEnabledStatusChanged )
+ {
+ notifyPropertyChangeListeners( PROP_IMPLEMENTATION_BEANS );
+ }
+ }
+ }
+ else if( property == PROP_NAME )
+ {
+ if( this.name != null || force == true )
+ {
+ final Value<String> oldValue = this.name;
+
+ final String val = resource().binding( PROP_NAME ).read();
+
+ this.name = new Value<String>( this, PROP_NAME, PROP_NAME.encodeKeywords( val ) );
+ this.name.init();
+
+ final boolean propertyEnabledStatusChanged = refreshPropertyEnabledStatus( PROP_NAME );
+
+ if( oldValue != null )
+ {
+ if( this.name.equals( oldValue ) )
+ {
+ this.name = oldValue;
+ }
+
+ if( this.name != oldValue || propertyEnabledStatusChanged )
+ {
+ notifyPropertyChangeListeners( PROP_NAME );
+ }
+ }
+ }
+ }
+ }
+ }
+
+ public Object read( ModelProperty property )
+ {
+ property = property.refine( this );
+
+ if( property == PROP_COMPONENT_SERVICES )
+ {
+ return getComponentServices();
+ }
+ else if( property == PROP_COMPONENT_SERVICE_REFERENCES )
+ {
+ return getComponentServiceReferences();
+ }
+ else if( property == PROP_IMPLEMENTATION_BEANS )
+ {
+ return getImplementationBeans();
+ }
+ else if( property == PROP_NAME )
+ {
+ return getName();
+ }
+
+ return super.read( property );
+ }
+
+ public void write( ValueProperty property, final Object value )
+ {
+ property = (ValueProperty) property.refine( this );
+
+ if( property == PROP_NAME )
+ {
+ setName( (String) value );
+ return;
+ }
+
+ super.write( property, value );
+ }
+
+}
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/ComponentService.java
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/ComponentService.java (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/ComponentService.java 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,168 @@
+package org.jboss.tools.esb.switchyard.internal;
+
+import org.eclipse.sapphire.modeling.IModelParticle;
+import org.eclipse.sapphire.modeling.ListBindingImpl;
+import org.eclipse.sapphire.modeling.ModelElement;
+import org.eclipse.sapphire.modeling.ModelElementList;
+import org.eclipse.sapphire.modeling.ModelProperty;
+import org.eclipse.sapphire.modeling.Resource;
+import org.eclipse.sapphire.modeling.Value;
+import org.eclipse.sapphire.modeling.ValueProperty;
+import org.jboss.tools.esb.switchyard.IComponentService;
+import org.jboss.tools.esb.switchyard.IInterfaceJava;
+
+public final class ComponentService
+
+ extends ModelElement
+ implements IComponentService
+
+{
+ private ModelElementList<IInterfaceJava> javaInterfaces;
+ private Value<String> name;
+
+ public ComponentService( final IModelParticle parent, final ModelProperty parentProperty, final Resource resource )
+ {
+ super( TYPE, parent, parentProperty, resource );
+ }
+
+ public ComponentService( final Resource resource )
+ {
+ super( TYPE, null, null, resource );
+ }
+
+ public ModelElementList<IInterfaceJava> getJavaInterfaces()
+ {
+ synchronized( root() )
+ {
+ if( this.javaInterfaces == null )
+ {
+ refresh( PROP_JAVA_INTERFACES, true );
+ }
+
+ return this.javaInterfaces;
+ }
+ }
+
+ public Value<String> getName()
+ {
+ synchronized( root() )
+ {
+ if( this.name == null )
+ {
+ refresh( PROP_NAME, true );
+ }
+
+ return this.name;
+ }
+ }
+
+ public void setName( String value )
+ {
+ synchronized( root() )
+ {
+ if( value != null && value.equals( "" ) )
+ {
+ value = null;
+ }
+
+ value = PROP_NAME.decodeKeywords( value );
+
+ refresh( PROP_NAME, true );
+
+ if( ! equal( this.name.getText( false ), value ) )
+ {
+ resource().binding( PROP_NAME ).write( value );
+ refresh( PROP_NAME, false );
+ }
+ }
+ }
+
+ protected void refreshProperty( ModelProperty property, final boolean force )
+ {
+ synchronized( root() )
+ {
+ property = property.refine( this );
+
+ if( property == PROP_JAVA_INTERFACES )
+ {
+ if( this.javaInterfaces == null )
+ {
+ if( force == true )
+ {
+ this.javaInterfaces = new ModelElementList<IInterfaceJava>( this, PROP_JAVA_INTERFACES );
+ final ListBindingImpl binding = resource().binding( PROP_JAVA_INTERFACES );
+ this.javaInterfaces.init( binding );
+ refreshPropertyEnabledStatus( PROP_JAVA_INTERFACES );
+ }
+ }
+ else
+ {
+ final boolean propertyEnabledStatusChanged = refreshPropertyEnabledStatus( PROP_JAVA_INTERFACES );
+ final boolean notified = this.javaInterfaces.refresh();
+
+ if( ! notified && propertyEnabledStatusChanged )
+ {
+ notifyPropertyChangeListeners( PROP_JAVA_INTERFACES );
+ }
+ }
+ }
+ else if( property == PROP_NAME )
+ {
+ if( this.name != null || force == true )
+ {
+ final Value<String> oldValue = this.name;
+
+ final String val = resource().binding( PROP_NAME ).read();
+
+ this.name = new Value<String>( this, PROP_NAME, PROP_NAME.encodeKeywords( val ) );
+ this.name.init();
+
+ final boolean propertyEnabledStatusChanged = refreshPropertyEnabledStatus( PROP_NAME );
+
+ if( oldValue != null )
+ {
+ if( this.name.equals( oldValue ) )
+ {
+ this.name = oldValue;
+ }
+
+ if( this.name != oldValue || propertyEnabledStatusChanged )
+ {
+ notifyPropertyChangeListeners( PROP_NAME );
+ }
+ }
+ }
+ }
+ }
+ }
+
+ public Object read( ModelProperty property )
+ {
+ property = property.refine( this );
+
+ if( property == PROP_JAVA_INTERFACES )
+ {
+ return getJavaInterfaces();
+ }
+ else if( property == PROP_NAME )
+ {
+ return getName();
+ }
+
+ return super.read( property );
+ }
+
+ public void write( ValueProperty property, final Object value )
+ {
+ property = (ValueProperty) property.refine( this );
+
+ if( property == PROP_NAME )
+ {
+ setName( (String) value );
+ return;
+ }
+
+ super.write( property, value );
+ }
+
+}
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/ComponentServiceReference.java
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/ComponentServiceReference.java (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/ComponentServiceReference.java 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,168 @@
+package org.jboss.tools.esb.switchyard.internal;
+
+import org.eclipse.sapphire.modeling.IModelParticle;
+import org.eclipse.sapphire.modeling.ListBindingImpl;
+import org.eclipse.sapphire.modeling.ModelElement;
+import org.eclipse.sapphire.modeling.ModelElementList;
+import org.eclipse.sapphire.modeling.ModelProperty;
+import org.eclipse.sapphire.modeling.Resource;
+import org.eclipse.sapphire.modeling.Value;
+import org.eclipse.sapphire.modeling.ValueProperty;
+import org.jboss.tools.esb.switchyard.IComponentServiceReference;
+import org.jboss.tools.esb.switchyard.IInterfaceJava;
+
+public final class ComponentServiceReference
+
+ extends ModelElement
+ implements IComponentServiceReference
+
+{
+ private ModelElementList<IInterfaceJava> javaInterfaces;
+ private Value<String> name;
+
+ public ComponentServiceReference( final IModelParticle parent, final ModelProperty parentProperty, final Resource resource )
+ {
+ super( TYPE, parent, parentProperty, resource );
+ }
+
+ public ComponentServiceReference( final Resource resource )
+ {
+ super( TYPE, null, null, resource );
+ }
+
+ public ModelElementList<IInterfaceJava> getJavaInterfaces()
+ {
+ synchronized( root() )
+ {
+ if( this.javaInterfaces == null )
+ {
+ refresh( PROP_JAVA_INTERFACES, true );
+ }
+
+ return this.javaInterfaces;
+ }
+ }
+
+ public Value<String> getName()
+ {
+ synchronized( root() )
+ {
+ if( this.name == null )
+ {
+ refresh( PROP_NAME, true );
+ }
+
+ return this.name;
+ }
+ }
+
+ public void setName( String value )
+ {
+ synchronized( root() )
+ {
+ if( value != null && value.equals( "" ) )
+ {
+ value = null;
+ }
+
+ value = PROP_NAME.decodeKeywords( value );
+
+ refresh( PROP_NAME, true );
+
+ if( ! equal( this.name.getText( false ), value ) )
+ {
+ resource().binding( PROP_NAME ).write( value );
+ refresh( PROP_NAME, false );
+ }
+ }
+ }
+
+ protected void refreshProperty( ModelProperty property, final boolean force )
+ {
+ synchronized( root() )
+ {
+ property = property.refine( this );
+
+ if( property == PROP_JAVA_INTERFACES )
+ {
+ if( this.javaInterfaces == null )
+ {
+ if( force == true )
+ {
+ this.javaInterfaces = new ModelElementList<IInterfaceJava>( this, PROP_JAVA_INTERFACES );
+ final ListBindingImpl binding = resource().binding( PROP_JAVA_INTERFACES );
+ this.javaInterfaces.init( binding );
+ refreshPropertyEnabledStatus( PROP_JAVA_INTERFACES );
+ }
+ }
+ else
+ {
+ final boolean propertyEnabledStatusChanged = refreshPropertyEnabledStatus( PROP_JAVA_INTERFACES );
+ final boolean notified = this.javaInterfaces.refresh();
+
+ if( ! notified && propertyEnabledStatusChanged )
+ {
+ notifyPropertyChangeListeners( PROP_JAVA_INTERFACES );
+ }
+ }
+ }
+ else if( property == PROP_NAME )
+ {
+ if( this.name != null || force == true )
+ {
+ final Value<String> oldValue = this.name;
+
+ final String val = resource().binding( PROP_NAME ).read();
+
+ this.name = new Value<String>( this, PROP_NAME, PROP_NAME.encodeKeywords( val ) );
+ this.name.init();
+
+ final boolean propertyEnabledStatusChanged = refreshPropertyEnabledStatus( PROP_NAME );
+
+ if( oldValue != null )
+ {
+ if( this.name.equals( oldValue ) )
+ {
+ this.name = oldValue;
+ }
+
+ if( this.name != oldValue || propertyEnabledStatusChanged )
+ {
+ notifyPropertyChangeListeners( PROP_NAME );
+ }
+ }
+ }
+ }
+ }
+ }
+
+ public Object read( ModelProperty property )
+ {
+ property = property.refine( this );
+
+ if( property == PROP_JAVA_INTERFACES )
+ {
+ return getJavaInterfaces();
+ }
+ else if( property == PROP_NAME )
+ {
+ return getName();
+ }
+
+ return super.read( property );
+ }
+
+ public void write( ValueProperty property, final Object value )
+ {
+ property = (ValueProperty) property.refine( this );
+
+ if( property == PROP_NAME )
+ {
+ setName( (String) value );
+ return;
+ }
+
+ super.write( property, value );
+ }
+
+}
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/Composite.java
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/Composite.java (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/Composite.java 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,281 @@
+package org.jboss.tools.esb.switchyard.internal;
+
+import org.eclipse.sapphire.modeling.IModelParticle;
+import org.eclipse.sapphire.modeling.ListBindingImpl;
+import org.eclipse.sapphire.modeling.ModelElement;
+import org.eclipse.sapphire.modeling.ModelElementList;
+import org.eclipse.sapphire.modeling.ModelProperty;
+import org.eclipse.sapphire.modeling.Resource;
+import org.eclipse.sapphire.modeling.Value;
+import org.eclipse.sapphire.modeling.ValueProperty;
+import org.jboss.tools.esb.switchyard.IComponent;
+import org.jboss.tools.esb.switchyard.IComposite;
+import org.jboss.tools.esb.switchyard.IService;
+
+public final class Composite
+
+ extends ModelElement
+ implements IComposite
+
+{
+ private ModelElementList<IComponent> components;
+ private Value<String> name;
+ private ModelElementList<IService> services;
+ private Value<String> targetNamespace;
+
+ public Composite( final IModelParticle parent, final ModelProperty parentProperty, final Resource resource )
+ {
+ super( TYPE, parent, parentProperty, resource );
+ }
+
+ public Composite( final Resource resource )
+ {
+ super( TYPE, null, null, resource );
+ }
+
+ public ModelElementList<IComponent> getComponents()
+ {
+ synchronized( root() )
+ {
+ if( this.components == null )
+ {
+ refresh( PROP_COMPONENTS, true );
+ }
+
+ return this.components;
+ }
+ }
+
+ public Value<String> getName()
+ {
+ synchronized( root() )
+ {
+ if( this.name == null )
+ {
+ refresh( PROP_NAME, true );
+ }
+
+ return this.name;
+ }
+ }
+
+ public void setName( String value )
+ {
+ synchronized( root() )
+ {
+ if( value != null && value.equals( "" ) )
+ {
+ value = null;
+ }
+
+ value = PROP_NAME.decodeKeywords( value );
+
+ refresh( PROP_NAME, true );
+
+ if( ! equal( this.name.getText( false ), value ) )
+ {
+ resource().binding( PROP_NAME ).write( value );
+ refresh( PROP_NAME, false );
+ }
+ }
+ }
+
+ public ModelElementList<IService> getServices()
+ {
+ synchronized( root() )
+ {
+ if( this.services == null )
+ {
+ refresh( PROP_SERVICES, true );
+ }
+
+ return this.services;
+ }
+ }
+
+ public Value<String> getTargetNamespace()
+ {
+ synchronized( root() )
+ {
+ if( this.targetNamespace == null )
+ {
+ refresh( PROP_TARGET_NAMESPACE, true );
+ }
+
+ return this.targetNamespace;
+ }
+ }
+
+ public void setTargetNamespace( String value )
+ {
+ synchronized( root() )
+ {
+ if( value != null && value.equals( "" ) )
+ {
+ value = null;
+ }
+
+ value = PROP_TARGET_NAMESPACE.decodeKeywords( value );
+
+ refresh( PROP_TARGET_NAMESPACE, true );
+
+ if( ! equal( this.targetNamespace.getText( false ), value ) )
+ {
+ resource().binding( PROP_TARGET_NAMESPACE ).write( value );
+ refresh( PROP_TARGET_NAMESPACE, false );
+ }
+ }
+ }
+
+ protected void refreshProperty( ModelProperty property, final boolean force )
+ {
+ synchronized( root() )
+ {
+ property = property.refine( this );
+
+ if( property == PROP_COMPONENTS )
+ {
+ if( this.components == null )
+ {
+ if( force == true )
+ {
+ this.components = new ModelElementList<IComponent>( this, PROP_COMPONENTS );
+ final ListBindingImpl binding = resource().binding( PROP_COMPONENTS );
+ this.components.init( binding );
+ refreshPropertyEnabledStatus( PROP_COMPONENTS );
+ }
+ }
+ else
+ {
+ final boolean propertyEnabledStatusChanged = refreshPropertyEnabledStatus( PROP_COMPONENTS );
+ final boolean notified = this.components.refresh();
+
+ if( ! notified && propertyEnabledStatusChanged )
+ {
+ notifyPropertyChangeListeners( PROP_COMPONENTS );
+ }
+ }
+ }
+ else if( property == PROP_NAME )
+ {
+ if( this.name != null || force == true )
+ {
+ final Value<String> oldValue = this.name;
+
+ final String val = resource().binding( PROP_NAME ).read();
+
+ this.name = new Value<String>( this, PROP_NAME, PROP_NAME.encodeKeywords( val ) );
+ this.name.init();
+
+ final boolean propertyEnabledStatusChanged = refreshPropertyEnabledStatus( PROP_NAME );
+
+ if( oldValue != null )
+ {
+ if( this.name.equals( oldValue ) )
+ {
+ this.name = oldValue;
+ }
+
+ if( this.name != oldValue || propertyEnabledStatusChanged )
+ {
+ notifyPropertyChangeListeners( PROP_NAME );
+ }
+ }
+ }
+ }
+ else if( property == PROP_SERVICES )
+ {
+ if( this.services == null )
+ {
+ if( force == true )
+ {
+ this.services = new ModelElementList<IService>( this, PROP_SERVICES );
+ final ListBindingImpl binding = resource().binding( PROP_SERVICES );
+ this.services.init( binding );
+ refreshPropertyEnabledStatus( PROP_SERVICES );
+ }
+ }
+ else
+ {
+ final boolean propertyEnabledStatusChanged = refreshPropertyEnabledStatus( PROP_SERVICES );
+ final boolean notified = this.services.refresh();
+
+ if( ! notified && propertyEnabledStatusChanged )
+ {
+ notifyPropertyChangeListeners( PROP_SERVICES );
+ }
+ }
+ }
+ else if( property == PROP_TARGET_NAMESPACE )
+ {
+ if( this.targetNamespace != null || force == true )
+ {
+ final Value<String> oldValue = this.targetNamespace;
+
+ final String val = resource().binding( PROP_TARGET_NAMESPACE ).read();
+
+ this.targetNamespace = new Value<String>( this, PROP_TARGET_NAMESPACE, PROP_TARGET_NAMESPACE.encodeKeywords( val ) );
+ this.targetNamespace.init();
+
+ final boolean propertyEnabledStatusChanged = refreshPropertyEnabledStatus( PROP_TARGET_NAMESPACE );
+
+ if( oldValue != null )
+ {
+ if( this.targetNamespace.equals( oldValue ) )
+ {
+ this.targetNamespace = oldValue;
+ }
+
+ if( this.targetNamespace != oldValue || propertyEnabledStatusChanged )
+ {
+ notifyPropertyChangeListeners( PROP_TARGET_NAMESPACE );
+ }
+ }
+ }
+ }
+ }
+ }
+
+ public Object read( ModelProperty property )
+ {
+ property = property.refine( this );
+
+ if( property == PROP_COMPONENTS )
+ {
+ return getComponents();
+ }
+ else if( property == PROP_NAME )
+ {
+ return getName();
+ }
+ else if( property == PROP_SERVICES )
+ {
+ return getServices();
+ }
+ else if( property == PROP_TARGET_NAMESPACE )
+ {
+ return getTargetNamespace();
+ }
+
+ return super.read( property );
+ }
+
+ public void write( ValueProperty property, final Object value )
+ {
+ property = (ValueProperty) property.refine( this );
+
+ if( property == PROP_NAME )
+ {
+ setName( (String) value );
+ return;
+ }
+ else if( property == PROP_TARGET_NAMESPACE )
+ {
+ setTargetNamespace( (String) value );
+ return;
+ }
+
+ super.write( property, value );
+ }
+
+}
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/ImplementationBean.java
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/ImplementationBean.java (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/ImplementationBean.java 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,139 @@
+package org.jboss.tools.esb.switchyard.internal;
+
+import org.eclipse.sapphire.java.JavaTypeName;
+import org.eclipse.sapphire.modeling.IModelParticle;
+import org.eclipse.sapphire.modeling.ModelElement;
+import org.eclipse.sapphire.modeling.ModelProperty;
+import org.eclipse.sapphire.modeling.Resource;
+import org.eclipse.sapphire.modeling.Value;
+import org.eclipse.sapphire.modeling.ValueProperty;
+import org.eclipse.sapphire.modeling.serialization.ValueSerializationService;
+import org.jboss.tools.esb.switchyard.IImplementationBean;
+
+public final class ImplementationBean
+
+ extends ModelElement
+ implements IImplementationBean
+
+{
+ private Value<JavaTypeName> implBeanClass;
+
+ public ImplementationBean( final IModelParticle parent, final ModelProperty parentProperty, final Resource resource )
+ {
+ super( TYPE, parent, parentProperty, resource );
+ }
+
+ public ImplementationBean( final Resource resource )
+ {
+ super( TYPE, null, null, resource );
+ }
+
+ public Value<JavaTypeName> getImplBeanClass()
+ {
+ synchronized( root() )
+ {
+ if( this.implBeanClass == null )
+ {
+ refresh( PROP_IMPL_BEAN_CLASS, true );
+ }
+
+ return this.implBeanClass;
+ }
+ }
+
+ public void setImplBeanClass( String value )
+ {
+ synchronized( root() )
+ {
+ if( value != null && value.equals( "" ) )
+ {
+ value = null;
+ }
+
+ value = PROP_IMPL_BEAN_CLASS.decodeKeywords( value );
+
+ refresh( PROP_IMPL_BEAN_CLASS, true );
+
+ if( ! equal( this.implBeanClass.getText( false ), value ) )
+ {
+ resource().binding( PROP_IMPL_BEAN_CLASS ).write( value );
+ refresh( PROP_IMPL_BEAN_CLASS, false );
+ }
+ }
+ }
+
+ public void setImplBeanClass( final JavaTypeName value )
+ {
+ setImplBeanClass( value != null ? service( PROP_IMPL_BEAN_CLASS, ValueSerializationService.class ).encode( value ) : null );
+ }
+
+ protected void refreshProperty( ModelProperty property, final boolean force )
+ {
+ synchronized( root() )
+ {
+ property = property.refine( this );
+
+ if( property == PROP_IMPL_BEAN_CLASS )
+ {
+ if( this.implBeanClass != null || force == true )
+ {
+ final Value<JavaTypeName> oldValue = this.implBeanClass;
+
+ final String val = resource().binding( PROP_IMPL_BEAN_CLASS ).read();
+
+ this.implBeanClass = new Value<JavaTypeName>( this, PROP_IMPL_BEAN_CLASS, PROP_IMPL_BEAN_CLASS.encodeKeywords( val ) );
+ this.implBeanClass.init();
+
+ final boolean propertyEnabledStatusChanged = refreshPropertyEnabledStatus( PROP_IMPL_BEAN_CLASS );
+
+ if( oldValue != null )
+ {
+ if( this.implBeanClass.equals( oldValue ) )
+ {
+ this.implBeanClass = oldValue;
+ }
+
+ if( this.implBeanClass != oldValue || propertyEnabledStatusChanged )
+ {
+ notifyPropertyChangeListeners( PROP_IMPL_BEAN_CLASS );
+ }
+ }
+ }
+ }
+ }
+ }
+
+ public Object read( ModelProperty property )
+ {
+ property = property.refine( this );
+
+ if( property == PROP_IMPL_BEAN_CLASS )
+ {
+ return getImplBeanClass();
+ }
+
+ return super.read( property );
+ }
+
+ public void write( ValueProperty property, final Object value )
+ {
+ property = (ValueProperty) property.refine( this );
+
+ if( property == PROP_IMPL_BEAN_CLASS )
+ {
+ if( ! ( value instanceof String ) )
+ {
+ setImplBeanClass( (JavaTypeName) value );
+ }
+ else
+ {
+ setImplBeanClass( (String) value );
+ }
+
+ return;
+ }
+
+ super.write( property, value );
+ }
+
+}
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/InterfaceJava.java
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/InterfaceJava.java (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/InterfaceJava.java 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,139 @@
+package org.jboss.tools.esb.switchyard.internal;
+
+import org.eclipse.sapphire.java.JavaTypeName;
+import org.eclipse.sapphire.modeling.IModelParticle;
+import org.eclipse.sapphire.modeling.ModelElement;
+import org.eclipse.sapphire.modeling.ModelProperty;
+import org.eclipse.sapphire.modeling.Resource;
+import org.eclipse.sapphire.modeling.Value;
+import org.eclipse.sapphire.modeling.ValueProperty;
+import org.eclipse.sapphire.modeling.serialization.ValueSerializationService;
+import org.jboss.tools.esb.switchyard.IInterfaceJava;
+
+public final class InterfaceJava
+
+ extends ModelElement
+ implements IInterfaceJava
+
+{
+ private Value<JavaTypeName> javaInterface;
+
+ public InterfaceJava( final IModelParticle parent, final ModelProperty parentProperty, final Resource resource )
+ {
+ super( TYPE, parent, parentProperty, resource );
+ }
+
+ public InterfaceJava( final Resource resource )
+ {
+ super( TYPE, null, null, resource );
+ }
+
+ public Value<JavaTypeName> getJavaInterface()
+ {
+ synchronized( root() )
+ {
+ if( this.javaInterface == null )
+ {
+ refresh( PROP_JAVA_INTERFACE, true );
+ }
+
+ return this.javaInterface;
+ }
+ }
+
+ public void setJavaInterface( String value )
+ {
+ synchronized( root() )
+ {
+ if( value != null && value.equals( "" ) )
+ {
+ value = null;
+ }
+
+ value = PROP_JAVA_INTERFACE.decodeKeywords( value );
+
+ refresh( PROP_JAVA_INTERFACE, true );
+
+ if( ! equal( this.javaInterface.getText( false ), value ) )
+ {
+ resource().binding( PROP_JAVA_INTERFACE ).write( value );
+ refresh( PROP_JAVA_INTERFACE, false );
+ }
+ }
+ }
+
+ public void setJavaInterface( final JavaTypeName value )
+ {
+ setJavaInterface( value != null ? service( PROP_JAVA_INTERFACE, ValueSerializationService.class ).encode( value ) : null );
+ }
+
+ protected void refreshProperty( ModelProperty property, final boolean force )
+ {
+ synchronized( root() )
+ {
+ property = property.refine( this );
+
+ if( property == PROP_JAVA_INTERFACE )
+ {
+ if( this.javaInterface != null || force == true )
+ {
+ final Value<JavaTypeName> oldValue = this.javaInterface;
+
+ final String val = resource().binding( PROP_JAVA_INTERFACE ).read();
+
+ this.javaInterface = new Value<JavaTypeName>( this, PROP_JAVA_INTERFACE, PROP_JAVA_INTERFACE.encodeKeywords( val ) );
+ this.javaInterface.init();
+
+ final boolean propertyEnabledStatusChanged = refreshPropertyEnabledStatus( PROP_JAVA_INTERFACE );
+
+ if( oldValue != null )
+ {
+ if( this.javaInterface.equals( oldValue ) )
+ {
+ this.javaInterface = oldValue;
+ }
+
+ if( this.javaInterface != oldValue || propertyEnabledStatusChanged )
+ {
+ notifyPropertyChangeListeners( PROP_JAVA_INTERFACE );
+ }
+ }
+ }
+ }
+ }
+ }
+
+ public Object read( ModelProperty property )
+ {
+ property = property.refine( this );
+
+ if( property == PROP_JAVA_INTERFACE )
+ {
+ return getJavaInterface();
+ }
+
+ return super.read( property );
+ }
+
+ public void write( ValueProperty property, final Object value )
+ {
+ property = (ValueProperty) property.refine( this );
+
+ if( property == PROP_JAVA_INTERFACE )
+ {
+ if( ! ( value instanceof String ) )
+ {
+ setJavaInterface( (JavaTypeName) value );
+ }
+ else
+ {
+ setJavaInterface( (String) value );
+ }
+
+ return;
+ }
+
+ super.write( property, value );
+ }
+
+}
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/SOAPBinding.java
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/SOAPBinding.java (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/SOAPBinding.java 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,365 @@
+package org.jboss.tools.esb.switchyard.internal;
+
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.sapphire.modeling.IModelParticle;
+import org.eclipse.sapphire.modeling.ModelElement;
+import org.eclipse.sapphire.modeling.ModelProperty;
+import org.eclipse.sapphire.modeling.Resource;
+import org.eclipse.sapphire.modeling.Value;
+import org.eclipse.sapphire.modeling.ValueProperty;
+import org.eclipse.sapphire.modeling.serialization.ValueSerializationService;
+import org.jboss.tools.esb.switchyard.ISOAPBinding;
+
+public final class SOAPBinding
+
+ extends ModelElement
+ implements ISOAPBinding
+
+{
+ private Value<String> port;
+ private Value<Boolean> secure;
+ private Value<IPath> wsdl;
+ private Value<String> wsdlDescription;
+
+ public SOAPBinding( final IModelParticle parent, final ModelProperty parentProperty, final Resource resource )
+ {
+ super( TYPE, parent, parentProperty, resource );
+ }
+
+ public SOAPBinding( final Resource resource )
+ {
+ super( TYPE, null, null, resource );
+ }
+
+ public Value<String> getPort()
+ {
+ synchronized( root() )
+ {
+ if( this.port == null )
+ {
+ refresh( PROP_PORT, true );
+ }
+
+ return this.port;
+ }
+ }
+
+ public void setPort( String value )
+ {
+ synchronized( root() )
+ {
+ if( value != null && value.equals( "" ) )
+ {
+ value = null;
+ }
+
+ value = PROP_PORT.decodeKeywords( value );
+
+ refresh( PROP_PORT, true );
+
+ if( ! equal( this.port.getText( false ), value ) )
+ {
+ resource().binding( PROP_PORT ).write( value );
+ refresh( PROP_PORT, false );
+ }
+ }
+ }
+
+ public Value<Boolean> getSecure()
+ {
+ synchronized( root() )
+ {
+ if( this.secure == null )
+ {
+ refresh( PROP_SECURE, true );
+ }
+
+ return this.secure;
+ }
+ }
+
+ public void setSecure( String value )
+ {
+ synchronized( root() )
+ {
+ if( value != null && value.equals( "" ) )
+ {
+ value = null;
+ }
+
+ value = PROP_SECURE.decodeKeywords( value );
+
+ refresh( PROP_SECURE, true );
+
+ if( ! equal( this.secure.getText( false ), value ) )
+ {
+ resource().binding( PROP_SECURE ).write( value );
+ refresh( PROP_SECURE, false );
+ }
+ }
+ }
+
+ public void setSecure( final Boolean value )
+ {
+ setSecure( value != null ? service( PROP_SECURE, ValueSerializationService.class ).encode( value ) : null );
+ }
+
+ public Value<IPath> getWsdl()
+ {
+ synchronized( root() )
+ {
+ if( this.wsdl == null )
+ {
+ refresh( PROP_WSDL, true );
+ }
+
+ return this.wsdl;
+ }
+ }
+
+ public void setWsdl( String value )
+ {
+ synchronized( root() )
+ {
+ if( value != null && value.equals( "" ) )
+ {
+ value = null;
+ }
+
+ value = PROP_WSDL.decodeKeywords( value );
+
+ refresh( PROP_WSDL, true );
+
+ if( ! equal( this.wsdl.getText( false ), value ) )
+ {
+ resource().binding( PROP_WSDL ).write( value );
+ refresh( PROP_WSDL, false );
+ }
+ }
+ }
+
+ public void setWsdl( final IPath value )
+ {
+ setWsdl( value != null ? service( PROP_WSDL, ValueSerializationService.class ).encode( value ) : null );
+ }
+
+ public Value<String> getWsdlDescription()
+ {
+ synchronized( root() )
+ {
+ if( this.wsdlDescription == null )
+ {
+ refresh( PROP_WSDL_DESCRIPTION, true );
+ }
+
+ return this.wsdlDescription;
+ }
+ }
+
+ public void setWsdlDescription( String value )
+ {
+ synchronized( root() )
+ {
+ if( value != null && value.equals( "" ) )
+ {
+ value = null;
+ }
+
+ value = PROP_WSDL_DESCRIPTION.decodeKeywords( value );
+
+ refresh( PROP_WSDL_DESCRIPTION, true );
+
+ if( ! equal( this.wsdlDescription.getText( false ), value ) )
+ {
+ resource().binding( PROP_WSDL_DESCRIPTION ).write( value );
+ refresh( PROP_WSDL_DESCRIPTION, false );
+ }
+ }
+ }
+
+ protected void refreshProperty( ModelProperty property, final boolean force )
+ {
+ synchronized( root() )
+ {
+ property = property.refine( this );
+
+ if( property == PROP_PORT )
+ {
+ if( this.port != null || force == true )
+ {
+ final Value<String> oldValue = this.port;
+
+ final String val = resource().binding( PROP_PORT ).read();
+
+ this.port = new Value<String>( this, PROP_PORT, PROP_PORT.encodeKeywords( val ) );
+ this.port.init();
+
+ final boolean propertyEnabledStatusChanged = refreshPropertyEnabledStatus( PROP_PORT );
+
+ if( oldValue != null )
+ {
+ if( this.port.equals( oldValue ) )
+ {
+ this.port = oldValue;
+ }
+
+ if( this.port != oldValue || propertyEnabledStatusChanged )
+ {
+ notifyPropertyChangeListeners( PROP_PORT );
+ }
+ }
+ }
+ }
+ else if( property == PROP_SECURE )
+ {
+ if( this.secure != null || force == true )
+ {
+ final Value<Boolean> oldValue = this.secure;
+
+ final String val = resource().binding( PROP_SECURE ).read();
+
+ this.secure = new Value<Boolean>( this, PROP_SECURE, PROP_SECURE.encodeKeywords( val ) );
+ this.secure.init();
+
+ final boolean propertyEnabledStatusChanged = refreshPropertyEnabledStatus( PROP_SECURE );
+
+ if( oldValue != null )
+ {
+ if( this.secure.equals( oldValue ) )
+ {
+ this.secure = oldValue;
+ }
+
+ if( this.secure != oldValue || propertyEnabledStatusChanged )
+ {
+ notifyPropertyChangeListeners( PROP_SECURE );
+ }
+ }
+ }
+ }
+ else if( property == PROP_WSDL )
+ {
+ if( this.wsdl != null || force == true )
+ {
+ final Value<IPath> oldValue = this.wsdl;
+
+ final String val = resource().binding( PROP_WSDL ).read();
+
+ this.wsdl = new Value<IPath>( this, PROP_WSDL, PROP_WSDL.encodeKeywords( val ) );
+ this.wsdl.init();
+
+ final boolean propertyEnabledStatusChanged = refreshPropertyEnabledStatus( PROP_WSDL );
+
+ if( oldValue != null )
+ {
+ if( this.wsdl.equals( oldValue ) )
+ {
+ this.wsdl = oldValue;
+ }
+
+ if( this.wsdl != oldValue || propertyEnabledStatusChanged )
+ {
+ notifyPropertyChangeListeners( PROP_WSDL );
+ }
+ }
+ }
+ }
+ else if( property == PROP_WSDL_DESCRIPTION )
+ {
+ if( this.wsdlDescription != null || force == true )
+ {
+ final Value<String> oldValue = this.wsdlDescription;
+
+ final String val = resource().binding( PROP_WSDL_DESCRIPTION ).read();
+
+ this.wsdlDescription = new Value<String>( this, PROP_WSDL_DESCRIPTION, PROP_WSDL_DESCRIPTION.encodeKeywords( val ) );
+ this.wsdlDescription.init();
+
+ final boolean propertyEnabledStatusChanged = refreshPropertyEnabledStatus( PROP_WSDL_DESCRIPTION );
+
+ if( oldValue != null )
+ {
+ if( this.wsdlDescription.equals( oldValue ) )
+ {
+ this.wsdlDescription = oldValue;
+ }
+
+ if( this.wsdlDescription != oldValue || propertyEnabledStatusChanged )
+ {
+ notifyPropertyChangeListeners( PROP_WSDL_DESCRIPTION );
+ }
+ }
+ }
+ }
+ }
+ }
+
+ public Object read( ModelProperty property )
+ {
+ property = property.refine( this );
+
+ if( property == PROP_PORT )
+ {
+ return getPort();
+ }
+ else if( property == PROP_SECURE )
+ {
+ return getSecure();
+ }
+ else if( property == PROP_WSDL )
+ {
+ return getWsdl();
+ }
+ else if( property == PROP_WSDL_DESCRIPTION )
+ {
+ return getWsdlDescription();
+ }
+
+ return super.read( property );
+ }
+
+ public void write( ValueProperty property, final Object value )
+ {
+ property = (ValueProperty) property.refine( this );
+
+ if( property == PROP_PORT )
+ {
+ setPort( (String) value );
+ return;
+ }
+ else if( property == PROP_SECURE )
+ {
+ if( ! ( value instanceof String ) )
+ {
+ setSecure( (Boolean) value );
+ }
+ else
+ {
+ setSecure( (String) value );
+ }
+
+ return;
+ }
+ else if( property == PROP_WSDL )
+ {
+ if( ! ( value instanceof String ) )
+ {
+ setWsdl( (IPath) value );
+ }
+ else
+ {
+ setWsdl( (String) value );
+ }
+
+ return;
+ }
+ else if( property == PROP_WSDL_DESCRIPTION )
+ {
+ setWsdlDescription( (String) value );
+ return;
+ }
+
+ super.write( property, value );
+ }
+
+}
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/Service.java
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/Service.java (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/Service.java 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,239 @@
+package org.jboss.tools.esb.switchyard.internal;
+
+import org.eclipse.sapphire.modeling.IModelParticle;
+import org.eclipse.sapphire.modeling.ListBindingImpl;
+import org.eclipse.sapphire.modeling.ModelElement;
+import org.eclipse.sapphire.modeling.ModelElementList;
+import org.eclipse.sapphire.modeling.ModelProperty;
+import org.eclipse.sapphire.modeling.Resource;
+import org.eclipse.sapphire.modeling.Value;
+import org.eclipse.sapphire.modeling.ValueProperty;
+import org.jboss.tools.esb.switchyard.ISOAPBinding;
+import org.jboss.tools.esb.switchyard.IService;
+
+public final class Service
+
+ extends ModelElement
+ implements IService
+
+{
+ private Value<String> name;
+ private Value<String> promote;
+ private ModelElementList<ISOAPBinding> soapbindings;
+
+ public Service( final IModelParticle parent, final ModelProperty parentProperty, final Resource resource )
+ {
+ super( TYPE, parent, parentProperty, resource );
+ }
+
+ public Service( final Resource resource )
+ {
+ super( TYPE, null, null, resource );
+ }
+
+ public Value<String> getName()
+ {
+ synchronized( root() )
+ {
+ if( this.name == null )
+ {
+ refresh( PROP_NAME, true );
+ }
+
+ return this.name;
+ }
+ }
+
+ public void setName( String value )
+ {
+ synchronized( root() )
+ {
+ if( value != null && value.equals( "" ) )
+ {
+ value = null;
+ }
+
+ value = PROP_NAME.decodeKeywords( value );
+
+ refresh( PROP_NAME, true );
+
+ if( ! equal( this.name.getText( false ), value ) )
+ {
+ resource().binding( PROP_NAME ).write( value );
+ refresh( PROP_NAME, false );
+ }
+ }
+ }
+
+ public Value<String> getPromote()
+ {
+ synchronized( root() )
+ {
+ if( this.promote == null )
+ {
+ refresh( PROP_PROMOTE, true );
+ }
+
+ return this.promote;
+ }
+ }
+
+ public void setPromote( String value )
+ {
+ synchronized( root() )
+ {
+ if( value != null && value.equals( "" ) )
+ {
+ value = null;
+ }
+
+ value = PROP_PROMOTE.decodeKeywords( value );
+
+ refresh( PROP_PROMOTE, true );
+
+ if( ! equal( this.promote.getText( false ), value ) )
+ {
+ resource().binding( PROP_PROMOTE ).write( value );
+ refresh( PROP_PROMOTE, false );
+ }
+ }
+ }
+
+ public ModelElementList<ISOAPBinding> getSoapbindings()
+ {
+ synchronized( root() )
+ {
+ if( this.soapbindings == null )
+ {
+ refresh( PROP_SOAPBINDINGS, true );
+ }
+
+ return this.soapbindings;
+ }
+ }
+
+ protected void refreshProperty( ModelProperty property, final boolean force )
+ {
+ synchronized( root() )
+ {
+ property = property.refine( this );
+
+ if( property == PROP_NAME )
+ {
+ if( this.name != null || force == true )
+ {
+ final Value<String> oldValue = this.name;
+
+ final String val = resource().binding( PROP_NAME ).read();
+
+ this.name = new Value<String>( this, PROP_NAME, PROP_NAME.encodeKeywords( val ) );
+ this.name.init();
+
+ final boolean propertyEnabledStatusChanged = refreshPropertyEnabledStatus( PROP_NAME );
+
+ if( oldValue != null )
+ {
+ if( this.name.equals( oldValue ) )
+ {
+ this.name = oldValue;
+ }
+
+ if( this.name != oldValue || propertyEnabledStatusChanged )
+ {
+ notifyPropertyChangeListeners( PROP_NAME );
+ }
+ }
+ }
+ }
+ else if( property == PROP_PROMOTE )
+ {
+ if( this.promote != null || force == true )
+ {
+ final Value<String> oldValue = this.promote;
+
+ final String val = resource().binding( PROP_PROMOTE ).read();
+
+ this.promote = new Value<String>( this, PROP_PROMOTE, PROP_PROMOTE.encodeKeywords( val ) );
+ this.promote.init();
+
+ final boolean propertyEnabledStatusChanged = refreshPropertyEnabledStatus( PROP_PROMOTE );
+
+ if( oldValue != null )
+ {
+ if( this.promote.equals( oldValue ) )
+ {
+ this.promote = oldValue;
+ }
+
+ if( this.promote != oldValue || propertyEnabledStatusChanged )
+ {
+ notifyPropertyChangeListeners( PROP_PROMOTE );
+ }
+ }
+ }
+ }
+ else if( property == PROP_SOAPBINDINGS )
+ {
+ if( this.soapbindings == null )
+ {
+ if( force == true )
+ {
+ this.soapbindings = new ModelElementList<ISOAPBinding>( this, PROP_SOAPBINDINGS );
+ final ListBindingImpl binding = resource().binding( PROP_SOAPBINDINGS );
+ this.soapbindings.init( binding );
+ refreshPropertyEnabledStatus( PROP_SOAPBINDINGS );
+ }
+ }
+ else
+ {
+ final boolean propertyEnabledStatusChanged = refreshPropertyEnabledStatus( PROP_SOAPBINDINGS );
+ final boolean notified = this.soapbindings.refresh();
+
+ if( ! notified && propertyEnabledStatusChanged )
+ {
+ notifyPropertyChangeListeners( PROP_SOAPBINDINGS );
+ }
+ }
+ }
+ }
+ }
+
+ public Object read( ModelProperty property )
+ {
+ property = property.refine( this );
+
+ if( property == PROP_NAME )
+ {
+ return getName();
+ }
+ else if( property == PROP_PROMOTE )
+ {
+ return getPromote();
+ }
+ else if( property == PROP_SOAPBINDINGS )
+ {
+ return getSoapbindings();
+ }
+
+ return super.read( property );
+ }
+
+ public void write( ValueProperty property, final Object value )
+ {
+ property = (ValueProperty) property.refine( this );
+
+ if( property == PROP_NAME )
+ {
+ setName( (String) value );
+ return;
+ }
+ else if( property == PROP_PROMOTE )
+ {
+ setPromote( (String) value );
+ return;
+ }
+
+ super.write( property, value );
+ }
+
+}
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/Switchyard.java
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/Switchyard.java (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/Switchyard.java 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,129 @@
+package org.jboss.tools.esb.switchyard.internal;
+
+import org.eclipse.sapphire.modeling.IModelParticle;
+import org.eclipse.sapphire.modeling.ListBindingImpl;
+import org.eclipse.sapphire.modeling.ModelElement;
+import org.eclipse.sapphire.modeling.ModelElementList;
+import org.eclipse.sapphire.modeling.ModelProperty;
+import org.eclipse.sapphire.modeling.Resource;
+import org.jboss.tools.esb.switchyard.IComposite;
+import org.jboss.tools.esb.switchyard.ISwitchyard;
+import org.jboss.tools.esb.switchyard.ITransforms;
+
+public final class Switchyard
+
+ extends ModelElement
+ implements ISwitchyard
+
+{
+ private ModelElementList<IComposite> composites;
+ private ModelElementList<ITransforms> transforms;
+
+ public Switchyard( final IModelParticle parent, final ModelProperty parentProperty, final Resource resource )
+ {
+ super( TYPE, parent, parentProperty, resource );
+ }
+
+ public Switchyard( final Resource resource )
+ {
+ super( TYPE, null, null, resource );
+ }
+
+ public ModelElementList<IComposite> getComposites()
+ {
+ synchronized( root() )
+ {
+ if( this.composites == null )
+ {
+ refresh( PROP_COMPOSITES, true );
+ }
+
+ return this.composites;
+ }
+ }
+
+ public ModelElementList<ITransforms> getTransforms()
+ {
+ synchronized( root() )
+ {
+ if( this.transforms == null )
+ {
+ refresh( PROP_TRANSFORMS, true );
+ }
+
+ return this.transforms;
+ }
+ }
+
+ protected void refreshProperty( ModelProperty property, final boolean force )
+ {
+ synchronized( root() )
+ {
+ property = property.refine( this );
+
+ if( property == PROP_COMPOSITES )
+ {
+ if( this.composites == null )
+ {
+ if( force == true )
+ {
+ this.composites = new ModelElementList<IComposite>( this, PROP_COMPOSITES );
+ final ListBindingImpl binding = resource().binding( PROP_COMPOSITES );
+ this.composites.init( binding );
+ refreshPropertyEnabledStatus( PROP_COMPOSITES );
+ }
+ }
+ else
+ {
+ final boolean propertyEnabledStatusChanged = refreshPropertyEnabledStatus( PROP_COMPOSITES );
+ final boolean notified = this.composites.refresh();
+
+ if( ! notified && propertyEnabledStatusChanged )
+ {
+ notifyPropertyChangeListeners( PROP_COMPOSITES );
+ }
+ }
+ }
+ else if( property == PROP_TRANSFORMS )
+ {
+ if( this.transforms == null )
+ {
+ if( force == true )
+ {
+ this.transforms = new ModelElementList<ITransforms>( this, PROP_TRANSFORMS );
+ final ListBindingImpl binding = resource().binding( PROP_TRANSFORMS );
+ this.transforms.init( binding );
+ refreshPropertyEnabledStatus( PROP_TRANSFORMS );
+ }
+ }
+ else
+ {
+ final boolean propertyEnabledStatusChanged = refreshPropertyEnabledStatus( PROP_TRANSFORMS );
+ final boolean notified = this.transforms.refresh();
+
+ if( ! notified && propertyEnabledStatusChanged )
+ {
+ notifyPropertyChangeListeners( PROP_TRANSFORMS );
+ }
+ }
+ }
+ }
+ }
+
+ public Object read( ModelProperty property )
+ {
+ property = property.refine( this );
+
+ if( property == PROP_COMPOSITES )
+ {
+ return getComposites();
+ }
+ else if( property == PROP_TRANSFORMS )
+ {
+ return getTransforms();
+ }
+
+ return super.read( property );
+ }
+
+}
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/TransformJava.java
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/TransformJava.java (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/TransformJava.java 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,281 @@
+package org.jboss.tools.esb.switchyard.internal;
+
+import org.eclipse.sapphire.java.JavaTypeName;
+import org.eclipse.sapphire.modeling.IModelParticle;
+import org.eclipse.sapphire.modeling.ModelElement;
+import org.eclipse.sapphire.modeling.ModelProperty;
+import org.eclipse.sapphire.modeling.Resource;
+import org.eclipse.sapphire.modeling.Value;
+import org.eclipse.sapphire.modeling.ValueProperty;
+import org.eclipse.sapphire.modeling.serialization.ValueSerializationService;
+import org.jboss.tools.esb.switchyard.ITransformJava;
+
+public final class TransformJava
+
+ extends ModelElement
+ implements ITransformJava
+
+{
+ private Value<JavaTypeName> transformJavaClass;
+ private Value<String> transformJavaFrom;
+ private Value<String> transformJavaTo;
+
+ public TransformJava( final IModelParticle parent, final ModelProperty parentProperty, final Resource resource )
+ {
+ super( TYPE, parent, parentProperty, resource );
+ }
+
+ public TransformJava( final Resource resource )
+ {
+ super( TYPE, null, null, resource );
+ }
+
+ public Value<JavaTypeName> getTransformJavaClass()
+ {
+ synchronized( root() )
+ {
+ if( this.transformJavaClass == null )
+ {
+ refresh( PROP_TRANSFORM_JAVA_CLASS, true );
+ }
+
+ return this.transformJavaClass;
+ }
+ }
+
+ public void setTransformJavaClass( String value )
+ {
+ synchronized( root() )
+ {
+ if( value != null && value.equals( "" ) )
+ {
+ value = null;
+ }
+
+ value = PROP_TRANSFORM_JAVA_CLASS.decodeKeywords( value );
+
+ refresh( PROP_TRANSFORM_JAVA_CLASS, true );
+
+ if( ! equal( this.transformJavaClass.getText( false ), value ) )
+ {
+ resource().binding( PROP_TRANSFORM_JAVA_CLASS ).write( value );
+ refresh( PROP_TRANSFORM_JAVA_CLASS, false );
+ }
+ }
+ }
+
+ public void setTransformJavaClass( final JavaTypeName value )
+ {
+ setTransformJavaClass( value != null ? service( PROP_TRANSFORM_JAVA_CLASS, ValueSerializationService.class ).encode( value ) : null );
+ }
+
+ public Value<String> getTransformJavaFrom()
+ {
+ synchronized( root() )
+ {
+ if( this.transformJavaFrom == null )
+ {
+ refresh( PROP_TRANSFORM_JAVA_FROM, true );
+ }
+
+ return this.transformJavaFrom;
+ }
+ }
+
+ public void setTransformJavaFrom( String value )
+ {
+ synchronized( root() )
+ {
+ if( value != null && value.equals( "" ) )
+ {
+ value = null;
+ }
+
+ value = PROP_TRANSFORM_JAVA_FROM.decodeKeywords( value );
+
+ refresh( PROP_TRANSFORM_JAVA_FROM, true );
+
+ if( ! equal( this.transformJavaFrom.getText( false ), value ) )
+ {
+ resource().binding( PROP_TRANSFORM_JAVA_FROM ).write( value );
+ refresh( PROP_TRANSFORM_JAVA_FROM, false );
+ }
+ }
+ }
+
+ public Value<String> getTransformJavaTo()
+ {
+ synchronized( root() )
+ {
+ if( this.transformJavaTo == null )
+ {
+ refresh( PROP_TRANSFORM_JAVA_TO, true );
+ }
+
+ return this.transformJavaTo;
+ }
+ }
+
+ public void setTransformJavaTo( String value )
+ {
+ synchronized( root() )
+ {
+ if( value != null && value.equals( "" ) )
+ {
+ value = null;
+ }
+
+ value = PROP_TRANSFORM_JAVA_TO.decodeKeywords( value );
+
+ refresh( PROP_TRANSFORM_JAVA_TO, true );
+
+ if( ! equal( this.transformJavaTo.getText( false ), value ) )
+ {
+ resource().binding( PROP_TRANSFORM_JAVA_TO ).write( value );
+ refresh( PROP_TRANSFORM_JAVA_TO, false );
+ }
+ }
+ }
+
+ protected void refreshProperty( ModelProperty property, final boolean force )
+ {
+ synchronized( root() )
+ {
+ property = property.refine( this );
+
+ if( property == PROP_TRANSFORM_JAVA_CLASS )
+ {
+ if( this.transformJavaClass != null || force == true )
+ {
+ final Value<JavaTypeName> oldValue = this.transformJavaClass;
+
+ final String val = resource().binding( PROP_TRANSFORM_JAVA_CLASS ).read();
+
+ this.transformJavaClass = new Value<JavaTypeName>( this, PROP_TRANSFORM_JAVA_CLASS, PROP_TRANSFORM_JAVA_CLASS.encodeKeywords( val ) );
+ this.transformJavaClass.init();
+
+ final boolean propertyEnabledStatusChanged = refreshPropertyEnabledStatus( PROP_TRANSFORM_JAVA_CLASS );
+
+ if( oldValue != null )
+ {
+ if( this.transformJavaClass.equals( oldValue ) )
+ {
+ this.transformJavaClass = oldValue;
+ }
+
+ if( this.transformJavaClass != oldValue || propertyEnabledStatusChanged )
+ {
+ notifyPropertyChangeListeners( PROP_TRANSFORM_JAVA_CLASS );
+ }
+ }
+ }
+ }
+ else if( property == PROP_TRANSFORM_JAVA_FROM )
+ {
+ if( this.transformJavaFrom != null || force == true )
+ {
+ final Value<String> oldValue = this.transformJavaFrom;
+
+ final String val = resource().binding( PROP_TRANSFORM_JAVA_FROM ).read();
+
+ this.transformJavaFrom = new Value<String>( this, PROP_TRANSFORM_JAVA_FROM, PROP_TRANSFORM_JAVA_FROM.encodeKeywords( val ) );
+ this.transformJavaFrom.init();
+
+ final boolean propertyEnabledStatusChanged = refreshPropertyEnabledStatus( PROP_TRANSFORM_JAVA_FROM );
+
+ if( oldValue != null )
+ {
+ if( this.transformJavaFrom.equals( oldValue ) )
+ {
+ this.transformJavaFrom = oldValue;
+ }
+
+ if( this.transformJavaFrom != oldValue || propertyEnabledStatusChanged )
+ {
+ notifyPropertyChangeListeners( PROP_TRANSFORM_JAVA_FROM );
+ }
+ }
+ }
+ }
+ else if( property == PROP_TRANSFORM_JAVA_TO )
+ {
+ if( this.transformJavaTo != null || force == true )
+ {
+ final Value<String> oldValue = this.transformJavaTo;
+
+ final String val = resource().binding( PROP_TRANSFORM_JAVA_TO ).read();
+
+ this.transformJavaTo = new Value<String>( this, PROP_TRANSFORM_JAVA_TO, PROP_TRANSFORM_JAVA_TO.encodeKeywords( val ) );
+ this.transformJavaTo.init();
+
+ final boolean propertyEnabledStatusChanged = refreshPropertyEnabledStatus( PROP_TRANSFORM_JAVA_TO );
+
+ if( oldValue != null )
+ {
+ if( this.transformJavaTo.equals( oldValue ) )
+ {
+ this.transformJavaTo = oldValue;
+ }
+
+ if( this.transformJavaTo != oldValue || propertyEnabledStatusChanged )
+ {
+ notifyPropertyChangeListeners( PROP_TRANSFORM_JAVA_TO );
+ }
+ }
+ }
+ }
+ }
+ }
+
+ public Object read( ModelProperty property )
+ {
+ property = property.refine( this );
+
+ if( property == PROP_TRANSFORM_JAVA_CLASS )
+ {
+ return getTransformJavaClass();
+ }
+ else if( property == PROP_TRANSFORM_JAVA_FROM )
+ {
+ return getTransformJavaFrom();
+ }
+ else if( property == PROP_TRANSFORM_JAVA_TO )
+ {
+ return getTransformJavaTo();
+ }
+
+ return super.read( property );
+ }
+
+ public void write( ValueProperty property, final Object value )
+ {
+ property = (ValueProperty) property.refine( this );
+
+ if( property == PROP_TRANSFORM_JAVA_CLASS )
+ {
+ if( ! ( value instanceof String ) )
+ {
+ setTransformJavaClass( (JavaTypeName) value );
+ }
+ else
+ {
+ setTransformJavaClass( (String) value );
+ }
+
+ return;
+ }
+ else if( property == PROP_TRANSFORM_JAVA_FROM )
+ {
+ setTransformJavaFrom( (String) value );
+ return;
+ }
+ else if( property == PROP_TRANSFORM_JAVA_TO )
+ {
+ setTransformJavaTo( (String) value );
+ return;
+ }
+
+ super.write( property, value );
+ }
+
+}
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/TransformSmooks.java
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/TransformSmooks.java (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/TransformSmooks.java 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,281 @@
+package org.jboss.tools.esb.switchyard.internal;
+
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.sapphire.modeling.IModelParticle;
+import org.eclipse.sapphire.modeling.ModelElement;
+import org.eclipse.sapphire.modeling.ModelProperty;
+import org.eclipse.sapphire.modeling.Resource;
+import org.eclipse.sapphire.modeling.Value;
+import org.eclipse.sapphire.modeling.ValueProperty;
+import org.eclipse.sapphire.modeling.serialization.ValueSerializationService;
+import org.jboss.tools.esb.switchyard.ITransformSmooks;
+
+public final class TransformSmooks
+
+ extends ModelElement
+ implements ITransformSmooks
+
+{
+ private Value<IPath> transformSmooksConfig;
+ private Value<String> transformSmooksFrom;
+ private Value<String> transformSmooksTo;
+
+ public TransformSmooks( final IModelParticle parent, final ModelProperty parentProperty, final Resource resource )
+ {
+ super( TYPE, parent, parentProperty, resource );
+ }
+
+ public TransformSmooks( final Resource resource )
+ {
+ super( TYPE, null, null, resource );
+ }
+
+ public Value<IPath> getTransformSmooksConfig()
+ {
+ synchronized( root() )
+ {
+ if( this.transformSmooksConfig == null )
+ {
+ refresh( PROP_TRANSFORM_SMOOKS_CONFIG, true );
+ }
+
+ return this.transformSmooksConfig;
+ }
+ }
+
+ public void setTransformSmooksConfig( String value )
+ {
+ synchronized( root() )
+ {
+ if( value != null && value.equals( "" ) )
+ {
+ value = null;
+ }
+
+ value = PROP_TRANSFORM_SMOOKS_CONFIG.decodeKeywords( value );
+
+ refresh( PROP_TRANSFORM_SMOOKS_CONFIG, true );
+
+ if( ! equal( this.transformSmooksConfig.getText( false ), value ) )
+ {
+ resource().binding( PROP_TRANSFORM_SMOOKS_CONFIG ).write( value );
+ refresh( PROP_TRANSFORM_SMOOKS_CONFIG, false );
+ }
+ }
+ }
+
+ public void setTransformSmooksConfig( final IPath value )
+ {
+ setTransformSmooksConfig( value != null ? service( PROP_TRANSFORM_SMOOKS_CONFIG, ValueSerializationService.class ).encode( value ) : null );
+ }
+
+ public Value<String> getTransformSmooksFrom()
+ {
+ synchronized( root() )
+ {
+ if( this.transformSmooksFrom == null )
+ {
+ refresh( PROP_TRANSFORM_SMOOKS_FROM, true );
+ }
+
+ return this.transformSmooksFrom;
+ }
+ }
+
+ public void setTransformSmooksFrom( String value )
+ {
+ synchronized( root() )
+ {
+ if( value != null && value.equals( "" ) )
+ {
+ value = null;
+ }
+
+ value = PROP_TRANSFORM_SMOOKS_FROM.decodeKeywords( value );
+
+ refresh( PROP_TRANSFORM_SMOOKS_FROM, true );
+
+ if( ! equal( this.transformSmooksFrom.getText( false ), value ) )
+ {
+ resource().binding( PROP_TRANSFORM_SMOOKS_FROM ).write( value );
+ refresh( PROP_TRANSFORM_SMOOKS_FROM, false );
+ }
+ }
+ }
+
+ public Value<String> getTransformSmooksTo()
+ {
+ synchronized( root() )
+ {
+ if( this.transformSmooksTo == null )
+ {
+ refresh( PROP_TRANSFORM_SMOOKS_TO, true );
+ }
+
+ return this.transformSmooksTo;
+ }
+ }
+
+ public void setTransformSmooksTo( String value )
+ {
+ synchronized( root() )
+ {
+ if( value != null && value.equals( "" ) )
+ {
+ value = null;
+ }
+
+ value = PROP_TRANSFORM_SMOOKS_TO.decodeKeywords( value );
+
+ refresh( PROP_TRANSFORM_SMOOKS_TO, true );
+
+ if( ! equal( this.transformSmooksTo.getText( false ), value ) )
+ {
+ resource().binding( PROP_TRANSFORM_SMOOKS_TO ).write( value );
+ refresh( PROP_TRANSFORM_SMOOKS_TO, false );
+ }
+ }
+ }
+
+ protected void refreshProperty( ModelProperty property, final boolean force )
+ {
+ synchronized( root() )
+ {
+ property = property.refine( this );
+
+ if( property == PROP_TRANSFORM_SMOOKS_CONFIG )
+ {
+ if( this.transformSmooksConfig != null || force == true )
+ {
+ final Value<IPath> oldValue = this.transformSmooksConfig;
+
+ final String val = resource().binding( PROP_TRANSFORM_SMOOKS_CONFIG ).read();
+
+ this.transformSmooksConfig = new Value<IPath>( this, PROP_TRANSFORM_SMOOKS_CONFIG, PROP_TRANSFORM_SMOOKS_CONFIG.encodeKeywords( val ) );
+ this.transformSmooksConfig.init();
+
+ final boolean propertyEnabledStatusChanged = refreshPropertyEnabledStatus( PROP_TRANSFORM_SMOOKS_CONFIG );
+
+ if( oldValue != null )
+ {
+ if( this.transformSmooksConfig.equals( oldValue ) )
+ {
+ this.transformSmooksConfig = oldValue;
+ }
+
+ if( this.transformSmooksConfig != oldValue || propertyEnabledStatusChanged )
+ {
+ notifyPropertyChangeListeners( PROP_TRANSFORM_SMOOKS_CONFIG );
+ }
+ }
+ }
+ }
+ else if( property == PROP_TRANSFORM_SMOOKS_FROM )
+ {
+ if( this.transformSmooksFrom != null || force == true )
+ {
+ final Value<String> oldValue = this.transformSmooksFrom;
+
+ final String val = resource().binding( PROP_TRANSFORM_SMOOKS_FROM ).read();
+
+ this.transformSmooksFrom = new Value<String>( this, PROP_TRANSFORM_SMOOKS_FROM, PROP_TRANSFORM_SMOOKS_FROM.encodeKeywords( val ) );
+ this.transformSmooksFrom.init();
+
+ final boolean propertyEnabledStatusChanged = refreshPropertyEnabledStatus( PROP_TRANSFORM_SMOOKS_FROM );
+
+ if( oldValue != null )
+ {
+ if( this.transformSmooksFrom.equals( oldValue ) )
+ {
+ this.transformSmooksFrom = oldValue;
+ }
+
+ if( this.transformSmooksFrom != oldValue || propertyEnabledStatusChanged )
+ {
+ notifyPropertyChangeListeners( PROP_TRANSFORM_SMOOKS_FROM );
+ }
+ }
+ }
+ }
+ else if( property == PROP_TRANSFORM_SMOOKS_TO )
+ {
+ if( this.transformSmooksTo != null || force == true )
+ {
+ final Value<String> oldValue = this.transformSmooksTo;
+
+ final String val = resource().binding( PROP_TRANSFORM_SMOOKS_TO ).read();
+
+ this.transformSmooksTo = new Value<String>( this, PROP_TRANSFORM_SMOOKS_TO, PROP_TRANSFORM_SMOOKS_TO.encodeKeywords( val ) );
+ this.transformSmooksTo.init();
+
+ final boolean propertyEnabledStatusChanged = refreshPropertyEnabledStatus( PROP_TRANSFORM_SMOOKS_TO );
+
+ if( oldValue != null )
+ {
+ if( this.transformSmooksTo.equals( oldValue ) )
+ {
+ this.transformSmooksTo = oldValue;
+ }
+
+ if( this.transformSmooksTo != oldValue || propertyEnabledStatusChanged )
+ {
+ notifyPropertyChangeListeners( PROP_TRANSFORM_SMOOKS_TO );
+ }
+ }
+ }
+ }
+ }
+ }
+
+ public Object read( ModelProperty property )
+ {
+ property = property.refine( this );
+
+ if( property == PROP_TRANSFORM_SMOOKS_CONFIG )
+ {
+ return getTransformSmooksConfig();
+ }
+ else if( property == PROP_TRANSFORM_SMOOKS_FROM )
+ {
+ return getTransformSmooksFrom();
+ }
+ else if( property == PROP_TRANSFORM_SMOOKS_TO )
+ {
+ return getTransformSmooksTo();
+ }
+
+ return super.read( property );
+ }
+
+ public void write( ValueProperty property, final Object value )
+ {
+ property = (ValueProperty) property.refine( this );
+
+ if( property == PROP_TRANSFORM_SMOOKS_CONFIG )
+ {
+ if( ! ( value instanceof String ) )
+ {
+ setTransformSmooksConfig( (IPath) value );
+ }
+ else
+ {
+ setTransformSmooksConfig( (String) value );
+ }
+
+ return;
+ }
+ else if( property == PROP_TRANSFORM_SMOOKS_FROM )
+ {
+ setTransformSmooksFrom( (String) value );
+ return;
+ }
+ else if( property == PROP_TRANSFORM_SMOOKS_TO )
+ {
+ setTransformSmooksTo( (String) value );
+ return;
+ }
+
+ super.write( property, value );
+ }
+
+}
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/Transforms.java
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/Transforms.java (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.apt_generated/org/jboss/tools/esb/switchyard/internal/Transforms.java 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,129 @@
+package org.jboss.tools.esb.switchyard.internal;
+
+import org.eclipse.sapphire.modeling.IModelParticle;
+import org.eclipse.sapphire.modeling.ListBindingImpl;
+import org.eclipse.sapphire.modeling.ModelElement;
+import org.eclipse.sapphire.modeling.ModelElementList;
+import org.eclipse.sapphire.modeling.ModelProperty;
+import org.eclipse.sapphire.modeling.Resource;
+import org.jboss.tools.esb.switchyard.ITransformJava;
+import org.jboss.tools.esb.switchyard.ITransformSmooks;
+import org.jboss.tools.esb.switchyard.ITransforms;
+
+public final class Transforms
+
+ extends ModelElement
+ implements ITransforms
+
+{
+ private ModelElementList<ITransformJava> javaTransforms;
+ private ModelElementList<ITransformSmooks> smooksTransforms;
+
+ public Transforms( final IModelParticle parent, final ModelProperty parentProperty, final Resource resource )
+ {
+ super( TYPE, parent, parentProperty, resource );
+ }
+
+ public Transforms( final Resource resource )
+ {
+ super( TYPE, null, null, resource );
+ }
+
+ public ModelElementList<ITransformJava> getJavaTransforms()
+ {
+ synchronized( root() )
+ {
+ if( this.javaTransforms == null )
+ {
+ refresh( PROP_JAVA_TRANSFORMS, true );
+ }
+
+ return this.javaTransforms;
+ }
+ }
+
+ public ModelElementList<ITransformSmooks> getSmooksTransforms()
+ {
+ synchronized( root() )
+ {
+ if( this.smooksTransforms == null )
+ {
+ refresh( PROP_SMOOKS_TRANSFORMS, true );
+ }
+
+ return this.smooksTransforms;
+ }
+ }
+
+ protected void refreshProperty( ModelProperty property, final boolean force )
+ {
+ synchronized( root() )
+ {
+ property = property.refine( this );
+
+ if( property == PROP_JAVA_TRANSFORMS )
+ {
+ if( this.javaTransforms == null )
+ {
+ if( force == true )
+ {
+ this.javaTransforms = new ModelElementList<ITransformJava>( this, PROP_JAVA_TRANSFORMS );
+ final ListBindingImpl binding = resource().binding( PROP_JAVA_TRANSFORMS );
+ this.javaTransforms.init( binding );
+ refreshPropertyEnabledStatus( PROP_JAVA_TRANSFORMS );
+ }
+ }
+ else
+ {
+ final boolean propertyEnabledStatusChanged = refreshPropertyEnabledStatus( PROP_JAVA_TRANSFORMS );
+ final boolean notified = this.javaTransforms.refresh();
+
+ if( ! notified && propertyEnabledStatusChanged )
+ {
+ notifyPropertyChangeListeners( PROP_JAVA_TRANSFORMS );
+ }
+ }
+ }
+ else if( property == PROP_SMOOKS_TRANSFORMS )
+ {
+ if( this.smooksTransforms == null )
+ {
+ if( force == true )
+ {
+ this.smooksTransforms = new ModelElementList<ITransformSmooks>( this, PROP_SMOOKS_TRANSFORMS );
+ final ListBindingImpl binding = resource().binding( PROP_SMOOKS_TRANSFORMS );
+ this.smooksTransforms.init( binding );
+ refreshPropertyEnabledStatus( PROP_SMOOKS_TRANSFORMS );
+ }
+ }
+ else
+ {
+ final boolean propertyEnabledStatusChanged = refreshPropertyEnabledStatus( PROP_SMOOKS_TRANSFORMS );
+ final boolean notified = this.smooksTransforms.refresh();
+
+ if( ! notified && propertyEnabledStatusChanged )
+ {
+ notifyPropertyChangeListeners( PROP_SMOOKS_TRANSFORMS );
+ }
+ }
+ }
+ }
+ }
+
+ public Object read( ModelProperty property )
+ {
+ property = property.refine( this );
+
+ if( property == PROP_JAVA_TRANSFORMS )
+ {
+ return getJavaTransforms();
+ }
+ else if( property == PROP_SMOOKS_TRANSFORMS )
+ {
+ return getSmooksTransforms();
+ }
+
+ return super.read( property );
+ }
+
+}
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.classpath
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.classpath (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.classpath 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="src" path=".apt_generated"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Property changes on: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.classpath
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.project
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.project (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.project 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.esb.switchyard.ui</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.jdt.core.javanature</nature>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ </natures>
+</projectDescription>
Property changes on: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.project
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.settings/diagrams/map.np
===================================================================
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.settings/diagrams/map.xmi
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.settings/diagrams/map.xmi (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.settings/diagrams/map.xmi 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="ASCII"?>
+<pi:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:al="http://eclipse.org/graphiti/mm/algorithms" xmlns:pi="http://eclipse.org/graphiti/mm/pictograms" visible="true" gridUnit="10" diagramTypeId="sapphireDiagram" name="map" showGuides="true">
+ <graphicsAlgorithm xsi:type="al:Rectangle" background="//(a)colors.1" foreground="//(a)colors.0" lineWidth="1" transparency="0.0" width="1000" height="1000"/>
+ <colors red="227" green="238" blue="249"/>
+ <colors red="255" green="255" blue="255"/>
+</pi:Diagram>
Property changes on: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.settings/diagrams/map.xmi
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.settings/org.eclipse.jdt.apt.core.prefs
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.settings/org.eclipse.jdt.apt.core.prefs (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.settings/org.eclipse.jdt.apt.core.prefs 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,5 @@
+#Wed Mar 30 14:35:03 MDT 2011
+eclipse.preferences.version=1
+org.eclipse.jdt.apt.aptEnabled=true
+org.eclipse.jdt.apt.genSrcDir=.apt_generated
+org.eclipse.jdt.apt.reconcileEnabled=false
Property changes on: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.settings/org.eclipse.jdt.apt.core.prefs
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.settings/org.eclipse.jdt.core.prefs 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,13 @@
+#Wed Mar 30 07:37:17 MDT 2011
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.processAnnotations=enabled
+org.eclipse.jdt.core.compiler.source=1.6
Property changes on: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/.settings/org.eclipse.jdt.core.prefs
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/META-INF/MANIFEST.MF
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/META-INF/MANIFEST.MF (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/META-INF/MANIFEST.MF 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,24 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: SwitchYard Editor
+Bundle-SymbolicName: org.jboss.tools.esb.switchyard.ui;singleton:=true
+Bundle-Version: 1.0.0.qualifier
+Export-Package: org.jboss.tools.esb.switchyard
+Require-Bundle: org.eclipse.sapphire.modeling,
+ org.eclipse.sapphire.modeling.xml,
+ org.eclipse.sapphire.java,
+ org.eclipse.sapphire.ui,
+ org.eclipse.sapphire.ui.swt.graphiti,
+ org.eclipse.sapphire.ui.swt.xml.editor,
+ org.eclipse.core.runtime,
+ org.eclipse.core.resources,
+ org.eclipse.wst.sse.ui,
+ org.eclipse.wst.xml.ui,
+ org.eclipse.ui,
+ org.eclipse.ui.views,
+ org.eclipse.help,
+ org.eclipse.ui.views.properties.tabbed,
+ org.eclipse.ui.ide
+Bundle-ActivationPolicy: lazy
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Bundle-Vendor: JBoss.org
Property changes on: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/META-INF/MANIFEST.MF
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/blogpost.xml
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/blogpost.xml (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/blogpost.xml 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,25 @@
+<body><p>While at EclipseCon a few weeks ago, I heard about a new framework at Eclipse for quickly developing Eclipse editors for XML files, especially XML configuration files. As Konstantin Komissarchik, one of the lead developers on Sapphire, pointed out in the summary for his EclipseCon talk - "[Sapphire] is a UI building framework that allows developers to specify UI in terms of higher level constructs like property editors instead of widgets and layouts. This paradigm results in several orders of magnitude improvement in developer productivity while simultaneously delivering better quality UI that is easier to maintain."</p>
+<p>Though I missed his talk, I had a chance to sit down with Konstantin afterwards and he showed off what his framework can do. To say the least, I was excited. One of the things we do a lot of in JBoss tools is editing XML configuration files. We have them everywhere. And we don't really have a consistent look and feel to any of them. The other thing I was excited to see was the potential integration with Graphiti, a framework for graphical editors. Perhaps they've hit upon the "Holy Grail" of UI development? </p>
+<p>I wanted to find out. So when I got back from my trip, I started playing with Sapphire locally. You have to keep in mind that this is very early in the process for Sapphire. The version I'm working with is 0.3 and they're providing bug fixes nearly every day, which means things may break or change between updates. Honestly that's fine - Konstantin said they're using the framework at Oracle and have commercial editors out in the wild based on this technology, so it has to be pretty good, right? </p>
+<p>We have a runtime project at JBoss that's rolling along at a pretty good clip now. It's the next generation of our ESB called SwitchYard. You can check out the <a href="<a href="http://www.jboss.org/switchyard">http://www.jboss.org/switchyard</a>">SwitchYard Community Page</a> for more details. But they've been working on the format of an XML configuration file that we'll need to develop an editor for. It seemed like the perfect opportunity to put Sapphire to the test.</p>
+<p>Over the course of the last 5 or 6 business days, I've probably put in 20-30 hours on this editor. I've run into a few issues here and there, most because I didn't grok the framework fully at the start. But I've ended up with a good first cut that is able to edit the initial sample of the configuration file. And that's amazing to have something that even sort of works in that short a timeframe.</p>
+<p>Ultimately developing an editor in Sapphire boils down to two main things:</p>
+<p>* A set of Java interface files that map to different parts of your XML configuration.</p>
+<p>* And a Sapphire Definition (sdef) file, which defines how different parts of the UI are rendered. </p>
+<p>Think of the Java interface files as a quick and easy Java bean representation of your XML. So various element structures and properties are reduced to getters and setters in the interfaces. All you do from there is take the Switchyard annotations and indicate how to tie those properties back to the XML you're editing. The Sapphire framework then takes those annotations to define a model (using EMF of course) on the fly representing your XML. This is the "Model" part of your typical Model-Viewer-Controller approach. </p>
+<p>Then the SDEF file describes how to present that generated model to the user in UI form. Want to generate a view? Cool. Wizard or dialog? Cool. Editor? Cool. And you can define reusable components of the UI so you don't have to redefine everything if you decide to go, for example, from a dialog to an editor later on. </p>
+<p>What's awesome is that the Sapphire UI Definition Editor is itself written in Sapphire. Talk about eating your own dog food. <img class="jive_macro jive_emote" src="http://community.jboss.org/4.5.5/images/emoticons/happy.gif" jivemacro="emoticon" ___jive_emoticon_name="happy" /></p>
+<p>There are some gotchas:</p>
+<p>* Annotation processing is not turned on by default for projects. To do that, go to Project Properties -> Java Compiler -> Annotation Processing -> Enable annotation processing.</p>
+<p>* To see the classes generated by the Sapphire framework for your interfaces, you have to turn off the filter that hides files & folders starting with "." Those generated classes appear in the ".apt_generated" folder.</p>
+<p>* It's taken me several days to grok how to get XML namespace declarations just right with the XmlNamespace and XmlNamespaces and XmlRootBinding annotations. But it boils down to declaring them when you use them. Easier said than done, but it makes sense once you've played with it a bit.</p>
+<p>* You have to make sure that you name things consistently. This is one of the areas I have run into again and again. The name of the property field, property name, getter and setter must be consistent or the framework complains loudly at runtime. So if you have a property named "SOAPBindings", you need to make sure the property is PROP_SOAPBINDINGS, the property name is "SOAPBindings" and the getter is "getSoapbindings()". </p>
+<p>Why? Seems to be something with how the processor is looking at the capitalization of various bits in the model and if one is out of whack, they're all out of whack. You can make it a bit more consistent by adding underscores to the PROP_ declaration - such as PROP_SOAP_BINDINGS would need the property name "SoapBindings" and the getter would be "getSoapBindings()" - the underscore hints that there's a uppercase letter coming up. </p>
+<p>That's about it at this point. Now that I have the structure working and can define/modify/delete things via the editor, I want to go in and add some polish. Things like boolean options - true/false, combo boxes, validation, etc. </p>
+<p>After that's done, I'll start playing some with the Graphiti integration - but I'm not quite ready to tackle that yet. </p>
+<p>Interested in playing with Sapphire yourself? Here are a few links to get you started:</p>
+<p>* Main Sapphire page: http://www.eclipse.org/sapphire/</p>
+<p>* Konstantin's Sapphire-related blog articles: <a href="http://lt-rider.blogspot.com/search/label/eclipse-sapphire">http://lt-rider.blogspot.com/search/label/eclipse-sapphire</a></p>
+<p>* Until Indigo & Sapphire 0.3.0 is released, the latest milestone update site: http://download.eclipse.org/graphiti/updates/milestones/</p>
+<p>* But you can also download latest built packages from Eclipse Hudson server: https://hudson.eclipse.org/hudson/job/sapphire-0.3.x/</p>
+<p>A big thanks to Konstantin for helping me out on the Sapphire mailing list and forum. He's been very patient dealing with me over the last week!</p></body>
\ No newline at end of file
Property changes on: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/blogpost.xml
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/build.properties
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/build.properties (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/build.properties 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,4 @@
+source.. = src/
+bin.includes = META-INF/,\
+ .,\
+ plugin.xml
Property changes on: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/build.properties
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/plugin.xml
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/plugin.xml (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/plugin.xml 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+ <extension
+ point="org.eclipse.ui.editors">
+ <editor
+ class="org.jboss.tools.esb.switchyard.ui.SwitchyardEditor"
+ default="true"
+ filenames="switchyard.xml"
+ id="org.jboss.tools.esb.switchyard.editor"
+ name="Switchyard Editor">
+ </editor>
+ <editor
+ class="org.jboss.tools.esb.switchyard.ui.SwitchyardGraphicalEditor"
+ default="true"
+ filenames="switchyard.xml"
+ id="org.jboss.tools.esb.switchyard.editor.graphical"
+ name="SwitchYard Graphical Editor">
+ </editor>
+ </extension>
+
+</plugin>
Property changes on: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/plugin.xml
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/sample/switchyard.xml
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/sample/switchyard.xml (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/sample/switchyard.xml 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,19 @@
+<switchyard xmlns="urn:switchyard-config:switchyard:1.0">
+ <composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912">
+ <service name="MyPublicService">
+ <binding.soap xmlns="urn:switchyard-component-soap:config:1.0">
+ <serverPort>18001</serverPort>
+ <wsdl>service.wsdl</wsdl>
+ </binding.soap>
+ </service>
+ <component name="MyService">
+ <implementation.bean xmlns="urn:switchyard-component-bean:config:1.0" class="org.example.MyServiceBean"/>
+ <service name="MyService">
+ <interface.java xmlns="urn:switchyard-component-bean:config:1.0" interface="org.example.MyService"/>
+ </service>
+ <reference name="anotherService">
+ <interface.java xmlns="urn:switchyard-component-bean:config:1.0" interface="org.example.YourService"/>
+ </reference>
+ </component>
+ </composite>
+</switchyard>
Property changes on: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/sample/switchyard.xml
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/sample2/switchyard.xml
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/sample2/switchyard.xml (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/sample2/switchyard.xml 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+JBoss, Home of Professional Open Source
+Copyright 2011 Red Hat Inc. and/or its affiliates and other contributors
+as indicated by the @authors tag. All rights reserved.
+See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+This copyrighted material is made available to anyone wishing to use,
+modify, copy, or redistribute it subject to the terms and conditions
+of the GNU Lesser General Public License, v. 2.1.
+This program is distributed in the hope that it will be useful, but WITHOUT A
+WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+You should have received a copy of the GNU Lesser General Public License,
+v.2.1 along with this distribution; if not, write to the Free Software
+Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+MA 02110-1301, USA.
+-->
+<switchyard xmlns="urn:switchyard-config:switchyard:1.0"
+ xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200912"
+ xmlns:soap="urn:switchyard-config:test-soap:1.0"
+ xmlns:bean="urn:switchyard-config:test-bean:1.0"
+ xmlns:java="urn:switchyard-config:test-java:1.0"
+ xmlns:smooks="urn:switchyard-config:test-smooks:1.0">
+ <sca:composite name="m1app" targetNamespace="urn:m1app:example:1.0">
+ <sca:service name="M1AppService" promote="SimpleService">
+ <soap:binding.soap>
+ <soap:port secure="true">MyWebService/SOAPPort</soap:port>
+ <soap:wsdl description="foobar">service.wsdl</soap:wsdl>
+ </soap:binding.soap>
+ </sca:service>
+ <sca:component name="SimpleService">
+ <bean:implementation.bean class="org.switchyard.example.m1app.SimpleBean"/>
+ <sca:service name="SimpleService">
+ <sca:interface.java interface="org.switchyard.example.m1app.SimpleService"/>
+ </sca:service>
+ <sca:reference name="anotherService">
+ <sca:interface.java interface="org.switchyard.example.m1app.AnotherService"/>
+ </sca:reference>
+ </sca:component>
+ <sca:component name="AnotherService">
+ <bean:implementation.bean class="org.switchyard.example.m1app.AnotherBean"/>
+ <sca:service name="AnotherService">
+ <sca:interface.java interface="org.switchyard.example.m1app.AnotherService"/>
+ </sca:service>
+ </sca:component>
+ </sca:composite>
+ <transforms>
+ <java:transform.java from="msgA" to="msgB" class="org.examples.transform.AtoBTransform"/>
+ <smooks:transform.smooks from="msgC" to="msgD">
+ <smooks:config>stuff</smooks:config>
+ </smooks:transform.smooks>
+ </transforms>
+</switchyard>
\ No newline at end of file
Property changes on: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/sample2/switchyard.xml
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/schemas/switchyard-v1.xsd
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/schemas/switchyard-v1.xsd (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/schemas/switchyard-v1.xsd 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+JBoss, Home of Professional Open Source
+Copyright 2011 Red Hat Inc. and/or its affiliates and other contributors
+as indicated by the @authors tag. All rights reserved.
+See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+This copyrighted material is made available to anyone wishing to use,
+modify, copy, or redistribute it subject to the terms and conditions
+of the GNU Lesser General Public License, v. 2.1.
+This program is distributed in the hope that it will be useful, but WITHOUT A
+WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+You should have received a copy of the GNU Lesser General Public License,
+v.2.1 along with this distribution; if not, write to the Free Software
+Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+MA 02110-1301, USA.
+-->
+<schema xmlns="http://www.w3.org/2001/XMLSchema"
+ targetNamespace="urn:switchyard-config:switchyard:1.0"
+ xmlns:swyd="urn:switchyard-config:switchyard:1.0"
+ xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200912"
+ elementFormDefault="qualified">
+
+ <import namespace="http://docs.oasis-open.org/ns/opencsa/sca/200912"
+ schemaLocation="sca-1.1-cd06.xsd"/>
+
+ <element name="switchyard" type="swyd:SwitchYardType"/>
+ <complexType name="SwitchYardType">
+ <sequence>
+ <element ref="sca:composite" minOccurs="0" maxOccurs="1"/>
+ <element name="transforms" minOccurs="0" maxOccurs="1"/>
+ </sequence>
+ <attribute name="name" type="string" use="optional"/>
+ <attribute name="targetNamespace" type="string" use="optional"/>
+ </complexType>
+
+ <element name="transforms" type="swyd:TransformsType"/>
+ <complexType name="TransformsType">
+ <sequence>
+ <element name="transform" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <element name="transform" type="swyd:TransformType" abstract="true"/>
+ <complexType name="TransformType" abstract="true">
+ <attribute name="from" type="string" use="required"/>
+ <attribute name="to" type="string" use="required"/>
+ </complexType>
+
+</schema>
Property changes on: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/schemas/switchyard-v1.xsd
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/sdefs/switchyard-0.2.sdef
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/sdefs/switchyard-0.2.sdef (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/sdefs/switchyard-0.2.sdef 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,315 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definition>
+ <import>
+ <bundle>org.jboss.tools.sapphire</bundle>
+ <package>org.jboss.tools.sapphire</package>
+ <package>org.jboss.tools.sapphire.ui</package>
+ </import>
+ <editor-page>
+ <id>main</id>
+ <page-name>switchyard</page-name>
+ <page-header-text>switchyard</page-header-text>
+ <initial-selection>composites</initial-selection>
+ <root-node>
+ <node-ref>composites.node.root</node-ref>
+ <node-ref>transforms.node.root</node-ref>
+ </root-node>
+ </editor-page>
+ <node>
+ <id>composites.node.root</id>
+ <label>Composites</label>
+ <node-list-ref>composites.node-list</node-list-ref>
+ <section>
+ <label>Composites</label>
+ <content>
+ <action-link>
+ <label>Add a Composite</label>
+ <action-id>Sapphire.Add</action-id>
+ </action-link>
+ </content>
+ </section>
+ </node>
+ <node>
+ <id>transforms.node.root</id>
+ <label>Transforms</label>
+ <node-list-ref>transforms.node-list</node-list-ref>
+ <section>
+ <label>Transforms</label>
+ <content>
+ <action-link>
+ <label>Add a Transforms node</label>
+ <action-id>Sapphire.Add</action-id>
+ </action-link>
+ </content>
+ </section>
+ </node>
+ <node-list>
+ <id>composites.node-list</id>
+ <property>composites</property>
+ <node-template>
+ <label><composite></label>
+ <node>
+ <label>services</label>
+ <section>
+ <content>
+ <property-editor>
+ <property>Services</property>
+ </property-editor>
+ </content>
+ </section>
+ <node-list-ref>services.node-list</node-list-ref>
+ </node>
+ <node>
+ <label>components</label>
+ <section>
+ <content>
+ <property-editor>
+ <property>Components</property>
+ </property-editor>
+ </content>
+ </section>
+ <node-list-ref>components.node-list</node-list-ref>
+ </node>
+ <section>
+ <label>Composite</label>
+ <content>
+ <property-editor>Name</property-editor>
+ <property-editor>TargetNamespace</property-editor>
+ <node-list-ref>services.node-list</node-list-ref>
+ <property-editor>
+ <property>Services</property>
+ </property-editor>
+ <property-editor>
+ <property>Components</property>
+ </property-editor>
+ </content>
+ </section>
+ </node-template>
+ </node-list>
+ <node-list>
+ <id>services.node-list</id>
+ <property>services</property>
+ <node-template>
+ <label>${ Name == null ? "<service>" : Name }</label>
+ <node>
+ <label>SOAP Bindings</label>
+ <section>
+ <content>
+ <property-editor>
+ <property>SOAPBindings</property>
+ <hint>
+ <name>show.label</name>
+ <value>false</value>
+ </hint>
+ </property-editor>
+ </content>
+ </section>
+ <node-list-ref>soap.bindings.node-list</node-list-ref>
+ </node>
+ <section>
+ <label>Service</label>
+ <content>
+ <property-editor>Name</property-editor>
+ <property-editor>Promote</property-editor>
+ <property-editor>
+ <property>SOAPBindings</property>
+ </property-editor>
+ </content>
+ </section>
+ </node-template>
+ </node-list>
+ <node-list>
+ <id>soap.bindings.node-list</id>
+ <property>SOAPBindings</property>
+ <node-template>
+ <label><binding.soap></label>
+ <section>
+ <label>SOAP Binding</label>
+ <content>
+ <property-editor>Port</property-editor>
+ <property-editor>Secure</property-editor>
+ <property-editor>WSDL</property-editor>
+ <property-editor>WSDLDescription</property-editor>
+ </content>
+ </section>
+ </node-template>
+ <section>
+ <content></content>
+ </section>
+ </node-list>
+ <node-list>
+ <id>components.node-list</id>
+ <property>components</property>
+ <node-template>
+ <label>${ Name == null ? "<component>" : Name }</label>
+ <section>
+ <label>Component</label>
+ <content>
+ <property-editor>Name</property-editor>
+ <property-editor>ImplementationBeans</property-editor>
+ <property-editor>ComponentServices</property-editor>
+ <property-editor>ComponentServiceReferences</property-editor>
+ </content>
+ </section>
+ <node>
+ <label>Implementation Beans</label>
+ <section>
+ <content>
+ <property-editor>ImplementationBeans</property-editor>
+ </content>
+ </section>
+ <node-list-ref>implementation.beans.node-list</node-list-ref>
+ </node>
+ <node>
+ <label>Component Services</label>
+ <section>
+ <content>
+ <property-editor>ComponentServices</property-editor>
+ </content>
+ </section>
+ <node-list-ref>component.services.node-list</node-list-ref>
+ </node>
+ <node>
+ <label>Component Service References</label>
+ <section>
+ <content>
+ <property-editor>ComponentServiceReferences</property-editor>
+ </content>
+ </section>
+ <node-list-ref>component.service.references.node-list</node-list-ref>
+ </node>
+ </node-template>
+ </node-list>
+ <node-list>
+ <id>implementation.beans.node-list</id>
+ <property>ImplementationBeans</property>
+ <node-template>
+ <label><implementation.bean></label>
+ <section>
+ <label>Implementation Bean</label>
+ <content>
+ <property-editor>ImplBeanClass</property-editor>
+ </content>
+ </section>
+ </node-template>
+ <section>
+ <content></content>
+ </section>
+ </node-list>
+ <node-list>
+ <id>component.services.node-list</id>
+ <property>ComponentServices</property>
+ <node-template>
+ <label>${ Name == null ? "<service>" : Name }</label>
+ <section>
+ <label>Service</label>
+ <content>
+ <property-editor>Name</property-editor>
+ <property-editor>JavaInterfaces</property-editor>
+ </content>
+ </section>
+ <node>
+ <label>Java Interfaces</label>
+ <section>
+ <content>
+ <property-editor>JavaInterfaces</property-editor>
+ </content>
+ </section>
+ <node-list-ref>java.interfaces.node-list</node-list-ref>
+ </node>
+ </node-template>
+ </node-list>
+ <node-list>
+ <id>java.interfaces.node-list</id>
+ <property>JavaInterfaces</property>
+ <node-template>
+ <label><interface.java></label>
+ <section>
+ <label>Java Interface</label>
+ <content>
+ <property-editor>JavaInterface</property-editor>
+ </content>
+ </section>
+ </node-template>
+ <section>
+ <content></content>
+ </section>
+ </node-list>
+ <node-list>
+ <id>component.service.references.node-list</id>
+ <property>ComponentServiceReferences</property>
+ <node-template>
+ <label>${ Name == null ? "<reference>" : Name }</label>
+ <section>
+ <label>Reference</label>
+ <content>
+ <property-editor>Name</property-editor>
+ <property-editor>JavaInterfaces</property-editor>
+ </content>
+ </section>
+ <node>
+ <label>Java Interfaces</label>
+ <section>
+ <content>
+ <property-editor>JavaInterfaces</property-editor>
+ </content>
+ </section>
+ <node-list-ref>java.interfaces.node-list</node-list-ref>
+ </node>
+ </node-template>
+ </node-list>
+ <node-list>
+ <id>transforms.node-list</id>
+ <property>Transforms</property>
+ <node-template>
+ <label><transforms></label>
+ <section>
+ <label>Transforms</label>
+ <content>
+ <property-editor>JavaTransforms</property-editor>
+ <property-editor>SmooksTransforms</property-editor>
+ </content>
+ </section>
+ <node>
+ <label>Java Transforms</label>
+ <node-list-ref>transforms.java.transforms.node-list</node-list-ref>
+ </node>
+ <node>
+ <label>Smooks Transforms</label>
+ <node-list-ref>transforms.smooks.transforms.node-list</node-list-ref>
+ </node>
+ </node-template>
+ </node-list>
+ <node-list>
+ <id>transforms.smooks.transforms.node-list</id>
+ <property>SmooksTransforms</property>
+ <node-template>
+ <label><from: ${ TransformSmooksFrom == null ? "undefined" : TransformSmooksFrom }><to: ${ TransformSmooksTo == null ? "undefined" : TransformSmooksTo }></label>
+<!-- <label>${ TransformSmooksFrom == null ? "<transform.smooks>" : TransformSmooksFrom }</label> -->
+ <section>
+ <label>Smooks Transformations</label>
+ <content>
+ <property-editor>TransformSmooksFrom</property-editor>
+ <property-editor>TransformSmooksTo</property-editor>
+ <property-editor>TransformSmooksConfig</property-editor>
+ </content>
+ </section>
+ </node-template>
+ </node-list>
+ <node-list>
+ <id>transforms.java.transforms.node-list</id>
+ <property>JavaTransforms</property>
+ <node-template>
+ <label><class: ${ TransformJavaClass == null ? "undefined" : TransformJavaClass }></label>
+<!-- <label>${ TransformJavaFrom == null ? "<transform.java>" : TransformJavaFrom }</label> -->
+ <section>
+ <label>Java Transformations</label>
+ <content>
+ <property-editor>TransformJavaFrom</property-editor>
+ <property-editor>TransformJavaTo</property-editor>
+ <property-editor>TransformJavaClass</property-editor>
+ </content>
+ </section>
+ </node-template>
+ </node-list>
+</definition>
\ No newline at end of file
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/sdefs/switchyard-0.3.sdef
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/sdefs/switchyard-0.3.sdef (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/sdefs/switchyard-0.3.sdef 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,501 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definition>
+ <import>
+ <bundle>org.jboss.tools.sapphire</bundle>
+ <package>org.jboss.tools.sapphire</package>
+ <package>org.jboss.tools.sapphire.ui</package>
+ </import>
+ <editor-page>
+ <id>main</id>
+ <page-name>switchyard</page-name>
+ <page-header-text>switchyard</page-header-text>
+ <initial-selection>composites</initial-selection>
+ <root-node>
+ <node-ref>composites.node.root</node-ref>
+ <node-ref>transforms.node.root</node-ref>
+ </root-node>
+ <documentation>
+ <title>switchyard configuration editor</title>
+ <content>This would be the help content for the Switchyard Configuration Editor.</content>
+ </documentation>
+ </editor-page>
+ <node>
+ <id>composites.node.root</id>
+ <label>Composites</label>
+ <node-list-ref>composites.node-list</node-list-ref>
+ <section>
+ <label>Composites</label>
+ <content>
+ <property-editor>
+ <property>composites</property>
+ <hint>
+ <name>show.label</name>
+ <value>false</value>
+ </hint>
+ </property-editor>
+ </content>
+ <documentation>
+ <title>Composites</title>
+ <content>Here you can add a composite. Right now it's just a single composite that you can create and manage.</content>
+ </documentation>
+ </section>
+ </node>
+ <node>
+ <id>transforms.node.root</id>
+ <label>Transforms</label>
+ <node-list-ref>transforms.node-list</node-list-ref>
+ <section>
+ <label>Transforms</label>
+ <content>
+ <action-link>
+ <label>Add a Transforms node</label>
+ <action-id>Sapphire.Add</action-id>
+ </action-link>
+ </content>
+ <documentation>
+ <title>Transforms</title>
+ <content>Here you can add and manage a single <transforms> node. Beneath the Transforms node you define individual transformations to be used.</content>
+ </documentation>
+ </section>
+ </node>
+ <node-list>
+ <id>composites.node-list</id>
+ <property>composites</property>
+ <node-template>
+ <label><composite></label>
+ <node>
+ <label>services</label>
+ <section>
+ <content>
+ <property-editor>
+ <property>Services</property>
+ <hint>
+ <name>show.label</name>
+ <value>false</value>
+ </hint>
+ </property-editor>
+ </content>
+ </section>
+ <node-list-ref>services.node-list</node-list-ref>
+ </node>
+ <node>
+ <label>components</label>
+ <section>
+ <content>
+ <property-editor>
+ <property>Components</property>
+ <hint>
+ <name>show.label</name>
+ <value>false</value>
+ </hint>
+ </property-editor>
+ </content>
+ </section>
+ <node-list-ref>components.node-list</node-list-ref>
+ </node>
+ <section>
+ <label>Composite</label>
+ <content>
+ <property-editor>Name</property-editor>
+ <property-editor>TargetNamespace</property-editor>
+ <node-list-ref>services.node-list</node-list-ref>
+ <spacer></spacer>
+ <separator></separator>
+ <property-editor>
+ <property>Services</property>
+ <hint>
+ <name>show.label.above</name>
+ <value>true</value>
+ </hint>
+ </property-editor>
+ <property-editor>
+ <property>Components</property>
+ <hint>
+ <name>show.label.above</name>
+ <value>true</value>
+ </hint>
+ </property-editor>
+ </content>
+ </section>
+ </node-template>
+ </node-list>
+ <node-list>
+ <id>services.node-list</id>
+ <property>services</property>
+ <node-template>
+ <label>${ Name == null ? "<service>" : Name }</label>
+ <node>
+ <label>SOAP Bindings</label>
+ <section>
+ <content>
+ <property-editor>
+ <property>SOAPBindings</property>
+ <hint>
+ <name>show.label</name>
+ <value>false</value>
+ </hint>
+ </property-editor>
+ </content>
+ </section>
+ <node-list-ref>soap.bindings.node-list</node-list-ref>
+ </node>
+ <section>
+ <label>Service</label>
+ <content>
+ <property-editor>Name</property-editor>
+ <property-editor>Promote</property-editor>
+ <spacer></spacer>
+ <separator></separator>
+ <property-editor>
+ <property>SOAPBindings</property>
+ <hint>
+ <name>show.label.above</name>
+ <value>true</value>
+ </hint>
+ </property-editor>
+ </content>
+ </section>
+ </node-template>
+ </node-list>
+ <node-list>
+ <id>soap.bindings.node-list</id>
+ <property>SOAPBindings</property>
+ <node-template>
+ <label><binding.soap></label>
+ <section>
+ <label>SOAP Binding</label>
+ <content>
+ <group>
+ <label>Port Details</label>
+ <content>
+ <property-editor>Port</property-editor>
+ <property-editor>
+ <property>Secure</property>
+ </property-editor>
+ </content>
+ </group>
+ <spacer></spacer>
+ <group>
+ <label>WSDL Details</label>
+ <content>
+ <property-editor>WSDL</property-editor>
+ <property-editor>
+ <property>WSDLDescription</property>
+ <hint>
+ <name>show.label.above</name>
+ <value>true</value>
+ </hint>
+ <hint>
+ <name>height</name>
+ <value>4</value>
+ </hint>
+ </property-editor>
+ </content>
+ </group>
+ </content>
+ </section>
+ </node-template>
+ <section>
+ <content></content>
+ </section>
+ </node-list>
+ <node-list>
+ <id>components.node-list</id>
+ <property>components</property>
+ <node-template>
+ <label>${ Name == null ? "<component>" : Name }</label>
+ <section>
+ <label>Component</label>
+ <content>
+ <property-editor>Name</property-editor>
+ <property-editor>
+ <property>ImplementationBeans</property>
+ <hint>
+ <name>show.label.above</name>
+ <value>true</value>
+ </hint>
+ </property-editor>
+ <property-editor>
+ <property>ComponentServices</property>
+ <hint>
+ <name>show.label.above</name>
+ <value>true</value>
+ </hint>
+ </property-editor>
+ <property-editor>
+ <property>ComponentServiceReferences</property>
+ <hint>
+ <name>show.label.above</name>
+ <value>true</value>
+ </hint>
+ </property-editor>
+ </content>
+ </section>
+ <node>
+ <label>Implementation Beans</label>
+ <section>
+ <content>
+ <property-editor>
+ <property>ImplementationBeans</property>
+ <hint>
+ <name>show.label</name>
+ <value>false</value>
+ </hint>
+ </property-editor>
+ </content>
+ </section>
+ <node-list-ref>implementation.beans.node-list</node-list-ref>
+ </node>
+ <node>
+ <label>Component Services</label>
+ <section>
+ <content>
+ <property-editor>
+ <property>ComponentServices</property>
+ <hint>
+ <name>show.label</name>
+ <value>false</value>
+ </hint>
+ </property-editor>
+ </content>
+ </section>
+ <node-list-ref>component.services.node-list</node-list-ref>
+ </node>
+ <node>
+ <label>Component Service References</label>
+ <section>
+ <content>
+ <property-editor>
+ <property>ComponentServiceReferences</property>
+ <hint>
+ <name>show.label</name>
+ <value>false</value>
+ </hint>
+ </property-editor>
+ </content>
+ </section>
+ <node-list-ref>component.service.references.node-list</node-list-ref>
+ </node>
+ </node-template>
+ </node-list>
+ <node-list>
+ <id>implementation.beans.node-list</id>
+ <property>ImplementationBeans</property>
+ <node-template>
+ <label><implementation.bean></label>
+ <section>
+ <label>Implementation Bean</label>
+ <content>
+ <property-editor>ImplBeanClass</property-editor>
+ </content>
+ </section>
+ </node-template>
+ <section>
+ <content></content>
+ </section>
+ </node-list>
+ <node-list>
+ <id>component.services.node-list</id>
+ <property>ComponentServices</property>
+ <node-template>
+ <label>${ Name == null ? "<service>" : Name }</label>
+ <section>
+ <label>Service</label>
+ <content>
+ <property-editor>Name</property-editor>
+ <property-editor>
+ <property>JavaInterfaces</property>
+ <hint>
+ <name>show.label.above</name>
+ <value>true</value>
+ </hint>
+ </property-editor>
+ </content>
+ </section>
+ <node>
+ <label>Java Interfaces</label>
+ <section>
+ <content>
+ <property-editor>
+ <property>JavaInterfaces</property>
+ <hint>
+ <name>show.label</name>
+ <value>false</value>
+ </hint>
+ </property-editor>
+ </content>
+ </section>
+ <node-list-ref>java.interfaces.node-list</node-list-ref>
+ </node>
+ </node-template>
+ </node-list>
+ <node-list>
+ <id>java.interfaces.node-list</id>
+ <property>JavaInterfaces</property>
+ <node-template>
+ <label><interface.java></label>
+ <section>
+ <label>Java Interface</label>
+ <content>
+ <property-editor>JavaInterface</property-editor>
+ </content>
+ </section>
+ </node-template>
+ <section>
+ <content></content>
+ </section>
+ </node-list>
+ <node-list>
+ <id>component.service.references.node-list</id>
+ <property>ComponentServiceReferences</property>
+ <node-template>
+ <label>${ Name == null ? "<reference>" : Name }</label>
+ <section>
+ <label>Reference</label>
+ <content>
+ <property-editor>Name</property-editor>
+ <property-editor>
+ <property>JavaInterfaces</property>
+ <hint>
+ <name>show.label.above</name>
+ <value>true</value>
+ </hint>
+ </property-editor>
+ </content>
+ </section>
+ <node>
+ <label>Java Interfaces</label>
+ <section>
+ <content>
+ <property-editor>
+ <property>JavaInterfaces</property>
+ <hint>
+ <name>show.label</name>
+ <value>false</value>
+ </hint>
+ </property-editor>
+ </content>
+ </section>
+ <node-list-ref>java.interfaces.node-list</node-list-ref>
+ </node>
+ </node-template>
+ </node-list>
+ <node-list>
+ <id>transforms.node-list</id>
+ <property>Transforms</property>
+ <node-template>
+ <label><transforms></label>
+ <section>
+ <label>Transforms</label>
+ <content>
+ <property-editor>
+ <property>JavaTransforms</property>
+ <hint>
+ <name>show.label.above</name>
+ <value>true</value>
+ </hint>
+ </property-editor>
+ <property-editor>
+ <property>SmooksTransforms</property>
+ <hint>
+ <name>show.label.above</name>
+ <value>true</value>
+ </hint>
+ </property-editor>
+ </content>
+ </section>
+ <node>
+ <label>Java Transforms</label>
+ <node-list-ref>transforms.java.transforms.node-list</node-list-ref>
+ <section>
+ <label>Java Transformations</label>
+ <content>
+ <property-editor>
+ <property>JavaTransforms</property>
+ <hint>
+ <name>show.label</name>
+ <value>false</value>
+ </hint>
+ </property-editor>
+ </content>
+ </section>
+ </node>
+ <node>
+ <label>Smooks Transforms</label>
+ <node-list-ref>transforms.smooks.transforms.node-list</node-list-ref>
+ <section>
+ <label>Smooks Transformations</label>
+ <content>
+ <property-editor>
+ <property>SmooksTransforms</property>
+ <hint>
+ <name>show.label</name>
+ <value>false</value>
+ </hint>
+ </property-editor>
+ </content>
+ </section>
+ </node>
+ </node-template>
+ </node-list>
+ <node-list>
+ <id>transforms.smooks.transforms.node-list</id>
+ <property>SmooksTransforms</property>
+ <node-template>
+ <label><from: ${ TransformSmooksFrom == null ? "undefined" : TransformSmooksFrom }><to: ${ TransformSmooksTo == null ? "undefined" : TransformSmooksTo }></label>
+ <section>
+ <label>Smooks Transformations</label>
+ <content>
+ <property-editor>TransformSmooksFrom</property-editor>
+ <property-editor>TransformSmooksTo</property-editor>
+ <property-editor>TransformSmooksConfig</property-editor>
+ </content>
+ </section>
+ </node-template>
+ </node-list>
+ <node-list>
+ <id>transforms.java.transforms.node-list</id>
+ <property>JavaTransforms</property>
+ <node-template>
+ <label><class: ${ TransformJavaClass == null ? "undefined" : TransformJavaClass }></label>
+ <section>
+ <label>Java Transformations</label>
+ <content>
+ <property-editor>TransformJavaFrom</property-editor>
+ <property-editor>TransformJavaTo</property-editor>
+ <property-editor>TransformJavaClass</property-editor>
+ </content>
+ </section>
+ </node-template>
+ </node-list>
+
+ <diagram-page>
+ <id>diagram</id>
+ <page-name>SwitchyardDiagram</page-name>
+ <page-header-text>SwitchYard Diagram</page-header-text>
+ <node>
+ <id>composites</id>
+ <tool-palette-label>composite</tool-palette-label>
+ <tool-palette-desc>service composite</tool-palette-desc>
+ <property>composites</property>
+ <label>${Name == null ? "<composite>" : Name}</label>
+ <instance-id>${Name}</instance-id>
+ </node>
+ <node>
+ <id>transforms</id>
+ <tool-palette-label>transform</tool-palette-label>
+ <tool-palette-desc>service transformation</tool-palette-desc>
+ <property>Transforms</property>
+ <label><transforms></label>
+ <instance-id>transforms</instance-id>
+ </node>
+<!-- <node>
+ <id>services</id>
+ <tool-palette-label>service</tool-palette-label>
+ <tool-palette-desc>service</tool-palette-desc>
+ <property>composites/services</property>
+ <label>${Name == null ? "<service>" : Name}</label>
+ <instance-id>${Name}</instance-id>
+ </node>
+ --> </diagram-page>
+</definition>
\ No newline at end of file
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/sdefs/switchyard-0.4.sdef
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/sdefs/switchyard-0.4.sdef (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/sdefs/switchyard-0.4.sdef 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,501 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definition>
+ <import>
+ <bundle>org.jboss.tools.sapphire</bundle>
+ <package>org.jboss.tools.esb.switchyard</package>
+ <package>org.jboss.tools.esb.switchyard.ui</package>
+ </import>
+ <editor-page>
+ <id>main</id>
+ <page-name>switchyard</page-name>
+ <page-header-text>switchyard</page-header-text>
+ <initial-selection>composites</initial-selection>
+ <root-node>
+ <node-ref>composites.node.root</node-ref>
+ <node-ref>transforms.node.root</node-ref>
+ </root-node>
+ <documentation>
+ <title>switchyard configuration editor</title>
+ <content>This would be the help content for the Switchyard Configuration Editor.</content>
+ </documentation>
+ </editor-page>
+ <node>
+ <id>composites.node.root</id>
+ <label>Composites</label>
+ <node-list-ref>composites.node-list</node-list-ref>
+ <section>
+ <label>Composites</label>
+ <content>
+ <property-editor>
+ <property>composites</property>
+ <hint>
+ <name>show.label</name>
+ <value>false</value>
+ </hint>
+ </property-editor>
+ </content>
+ <documentation>
+ <title>Composites</title>
+ <content>Here you can add a composite. Right now it's just a single composite that you can create and manage.</content>
+ </documentation>
+ </section>
+ </node>
+ <node>
+ <id>transforms.node.root</id>
+ <label>Transforms</label>
+ <node-list-ref>transforms.node-list</node-list-ref>
+ <section>
+ <label>Transforms</label>
+ <content>
+ <action-link>
+ <label>Add a Transforms node</label>
+ <action-id>Sapphire.Add</action-id>
+ </action-link>
+ </content>
+ <documentation>
+ <title>Transforms</title>
+ <content>Here you can add and manage a single <transforms> node. Beneath the Transforms node you define individual transformations to be used.</content>
+ </documentation>
+ </section>
+ </node>
+ <node-list>
+ <id>composites.node-list</id>
+ <property>composites</property>
+ <node-template>
+ <label><composite></label>
+ <node>
+ <label>services</label>
+ <section>
+ <content>
+ <property-editor>
+ <property>Services</property>
+ <hint>
+ <name>show.label</name>
+ <value>false</value>
+ </hint>
+ </property-editor>
+ </content>
+ </section>
+ <node-list-ref>services.node-list</node-list-ref>
+ </node>
+ <node>
+ <label>components</label>
+ <section>
+ <content>
+ <property-editor>
+ <property>Components</property>
+ <hint>
+ <name>show.label</name>
+ <value>false</value>
+ </hint>
+ </property-editor>
+ </content>
+ </section>
+ <node-list-ref>components.node-list</node-list-ref>
+ </node>
+ <section>
+ <label>Composite</label>
+ <content>
+ <property-editor>Name</property-editor>
+ <property-editor>TargetNamespace</property-editor>
+ <node-list-ref>services.node-list</node-list-ref>
+ <spacer></spacer>
+ <separator></separator>
+ <property-editor>
+ <property>Services</property>
+ <hint>
+ <name>show.label.above</name>
+ <value>true</value>
+ </hint>
+ </property-editor>
+ <property-editor>
+ <property>Components</property>
+ <hint>
+ <name>show.label.above</name>
+ <value>true</value>
+ </hint>
+ </property-editor>
+ </content>
+ </section>
+ </node-template>
+ </node-list>
+ <node-list>
+ <id>services.node-list</id>
+ <property>services</property>
+ <node-template>
+ <label>${ Name == null ? "<service>" : Name }</label>
+ <node>
+ <label>SOAP Bindings</label>
+ <section>
+ <content>
+ <property-editor>
+ <property>SOAPBindings</property>
+ <hint>
+ <name>show.label</name>
+ <value>false</value>
+ </hint>
+ </property-editor>
+ </content>
+ </section>
+ <node-list-ref>soap.bindings.node-list</node-list-ref>
+ </node>
+ <section>
+ <label>Service</label>
+ <content>
+ <property-editor>Name</property-editor>
+ <property-editor>Promote</property-editor>
+ <spacer></spacer>
+ <separator></separator>
+ <property-editor>
+ <property>SOAPBindings</property>
+ <hint>
+ <name>show.label.above</name>
+ <value>true</value>
+ </hint>
+ </property-editor>
+ </content>
+ </section>
+ </node-template>
+ </node-list>
+ <node-list>
+ <id>soap.bindings.node-list</id>
+ <property>SOAPBindings</property>
+ <node-template>
+ <label><binding.soap></label>
+ <section>
+ <label>SOAP Binding</label>
+ <content>
+ <group>
+ <label>Port Details</label>
+ <content>
+ <property-editor>Port</property-editor>
+ <property-editor>
+ <property>Secure</property>
+ </property-editor>
+ </content>
+ </group>
+ <spacer></spacer>
+ <group>
+ <label>WSDL Details</label>
+ <content>
+ <property-editor>WSDL</property-editor>
+ <property-editor>
+ <property>WSDLDescription</property>
+ <hint>
+ <name>show.label.above</name>
+ <value>true</value>
+ </hint>
+ <hint>
+ <name>height</name>
+ <value>4</value>
+ </hint>
+ </property-editor>
+ </content>
+ </group>
+ </content>
+ </section>
+ </node-template>
+ <section>
+ <content></content>
+ </section>
+ </node-list>
+ <node-list>
+ <id>components.node-list</id>
+ <property>components</property>
+ <node-template>
+ <label>${ Name == null ? "<component>" : Name }</label>
+ <section>
+ <label>Component</label>
+ <content>
+ <property-editor>Name</property-editor>
+ <property-editor>
+ <property>ImplementationBeans</property>
+ <hint>
+ <name>show.label.above</name>
+ <value>true</value>
+ </hint>
+ </property-editor>
+ <property-editor>
+ <property>ComponentServices</property>
+ <hint>
+ <name>show.label.above</name>
+ <value>true</value>
+ </hint>
+ </property-editor>
+ <property-editor>
+ <property>ComponentServiceReferences</property>
+ <hint>
+ <name>show.label.above</name>
+ <value>true</value>
+ </hint>
+ </property-editor>
+ </content>
+ </section>
+ <node>
+ <label>Implementation Beans</label>
+ <section>
+ <content>
+ <property-editor>
+ <property>ImplementationBeans</property>
+ <hint>
+ <name>show.label</name>
+ <value>false</value>
+ </hint>
+ </property-editor>
+ </content>
+ </section>
+ <node-list-ref>implementation.beans.node-list</node-list-ref>
+ </node>
+ <node>
+ <label>Component Services</label>
+ <section>
+ <content>
+ <property-editor>
+ <property>ComponentServices</property>
+ <hint>
+ <name>show.label</name>
+ <value>false</value>
+ </hint>
+ </property-editor>
+ </content>
+ </section>
+ <node-list-ref>component.services.node-list</node-list-ref>
+ </node>
+ <node>
+ <label>Component Service References</label>
+ <section>
+ <content>
+ <property-editor>
+ <property>ComponentServiceReferences</property>
+ <hint>
+ <name>show.label</name>
+ <value>false</value>
+ </hint>
+ </property-editor>
+ </content>
+ </section>
+ <node-list-ref>component.service.references.node-list</node-list-ref>
+ </node>
+ </node-template>
+ </node-list>
+ <node-list>
+ <id>implementation.beans.node-list</id>
+ <property>ImplementationBeans</property>
+ <node-template>
+ <label><implementation.bean></label>
+ <section>
+ <label>Implementation Bean</label>
+ <content>
+ <property-editor>ImplBeanClass</property-editor>
+ </content>
+ </section>
+ </node-template>
+ <section>
+ <content></content>
+ </section>
+ </node-list>
+ <node-list>
+ <id>component.services.node-list</id>
+ <property>ComponentServices</property>
+ <node-template>
+ <label>${ Name == null ? "<service>" : Name }</label>
+ <section>
+ <label>Service</label>
+ <content>
+ <property-editor>Name</property-editor>
+ <property-editor>
+ <property>JavaInterfaces</property>
+ <hint>
+ <name>show.label.above</name>
+ <value>true</value>
+ </hint>
+ </property-editor>
+ </content>
+ </section>
+ <node>
+ <label>Java Interfaces</label>
+ <section>
+ <content>
+ <property-editor>
+ <property>JavaInterfaces</property>
+ <hint>
+ <name>show.label</name>
+ <value>false</value>
+ </hint>
+ </property-editor>
+ </content>
+ </section>
+ <node-list-ref>java.interfaces.node-list</node-list-ref>
+ </node>
+ </node-template>
+ </node-list>
+ <node-list>
+ <id>java.interfaces.node-list</id>
+ <property>JavaInterfaces</property>
+ <node-template>
+ <label><interface.java></label>
+ <section>
+ <label>Java Interface</label>
+ <content>
+ <property-editor>JavaInterface</property-editor>
+ </content>
+ </section>
+ </node-template>
+ <section>
+ <content></content>
+ </section>
+ </node-list>
+ <node-list>
+ <id>component.service.references.node-list</id>
+ <property>ComponentServiceReferences</property>
+ <node-template>
+ <label>${ Name == null ? "<reference>" : Name }</label>
+ <section>
+ <label>Reference</label>
+ <content>
+ <property-editor>Name</property-editor>
+ <property-editor>
+ <property>JavaInterfaces</property>
+ <hint>
+ <name>show.label.above</name>
+ <value>true</value>
+ </hint>
+ </property-editor>
+ </content>
+ </section>
+ <node>
+ <label>Java Interfaces</label>
+ <section>
+ <content>
+ <property-editor>
+ <property>JavaInterfaces</property>
+ <hint>
+ <name>show.label</name>
+ <value>false</value>
+ </hint>
+ </property-editor>
+ </content>
+ </section>
+ <node-list-ref>java.interfaces.node-list</node-list-ref>
+ </node>
+ </node-template>
+ </node-list>
+ <node-list>
+ <id>transforms.node-list</id>
+ <property>Transforms</property>
+ <node-template>
+ <label><transforms></label>
+ <section>
+ <label>Transforms</label>
+ <content>
+ <property-editor>
+ <property>JavaTransforms</property>
+ <hint>
+ <name>show.label.above</name>
+ <value>true</value>
+ </hint>
+ </property-editor>
+ <property-editor>
+ <property>SmooksTransforms</property>
+ <hint>
+ <name>show.label.above</name>
+ <value>true</value>
+ </hint>
+ </property-editor>
+ </content>
+ </section>
+ <node>
+ <label>Java Transforms</label>
+ <node-list-ref>transforms.java.transforms.node-list</node-list-ref>
+ <section>
+ <label>Java Transformations</label>
+ <content>
+ <property-editor>
+ <property>JavaTransforms</property>
+ <hint>
+ <name>show.label</name>
+ <value>false</value>
+ </hint>
+ </property-editor>
+ </content>
+ </section>
+ </node>
+ <node>
+ <label>Smooks Transforms</label>
+ <node-list-ref>transforms.smooks.transforms.node-list</node-list-ref>
+ <section>
+ <label>Smooks Transformations</label>
+ <content>
+ <property-editor>
+ <property>SmooksTransforms</property>
+ <hint>
+ <name>show.label</name>
+ <value>false</value>
+ </hint>
+ </property-editor>
+ </content>
+ </section>
+ </node>
+ </node-template>
+ </node-list>
+ <node-list>
+ <id>transforms.smooks.transforms.node-list</id>
+ <property>SmooksTransforms</property>
+ <node-template>
+ <label><from: ${ TransformSmooksFrom == null ? "undefined" : TransformSmooksFrom }><to: ${ TransformSmooksTo == null ? "undefined" : TransformSmooksTo }></label>
+ <section>
+ <label>Smooks Transformations</label>
+ <content>
+ <property-editor>TransformSmooksFrom</property-editor>
+ <property-editor>TransformSmooksTo</property-editor>
+ <property-editor>TransformSmooksConfig</property-editor>
+ </content>
+ </section>
+ </node-template>
+ </node-list>
+ <node-list>
+ <id>transforms.java.transforms.node-list</id>
+ <property>JavaTransforms</property>
+ <node-template>
+ <label><class: ${ TransformJavaClass == null ? "undefined" : TransformJavaClass }></label>
+ <section>
+ <label>Java Transformations</label>
+ <content>
+ <property-editor>TransformJavaFrom</property-editor>
+ <property-editor>TransformJavaTo</property-editor>
+ <property-editor>TransformJavaClass</property-editor>
+ </content>
+ </section>
+ </node-template>
+ </node-list>
+
+ <diagram-page>
+ <id>diagram</id>
+ <page-name>SwitchyardDiagram</page-name>
+ <page-header-text>SwitchYard Diagram</page-header-text>
+ <node>
+ <id>composites</id>
+ <tool-palette-label>composite</tool-palette-label>
+ <tool-palette-desc>service composite</tool-palette-desc>
+ <property>composites</property>
+ <label>${Name == null ? "<composite>" : Name}</label>
+ <instance-id>${Name}</instance-id>
+ </node>
+ <node>
+ <id>transforms</id>
+ <tool-palette-label>transform</tool-palette-label>
+ <tool-palette-desc>service transformation</tool-palette-desc>
+ <property>Transforms</property>
+ <label><transforms></label>
+ <instance-id>transforms</instance-id>
+ </node>
+<!-- <node>
+ <id>services</id>
+ <tool-palette-label>service</tool-palette-label>
+ <tool-palette-desc>service</tool-palette-desc>
+ <property>composites/services</property>
+ <label>${Name == null ? "<service>" : Name}</label>
+ <instance-id>${Name}</instance-id>
+ </node>
+ --> </diagram-page>
+</definition>
\ No newline at end of file
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/sdefs/switchyard.sdef
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/sdefs/switchyard.sdef (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/sdefs/switchyard.sdef 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,146 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definition>
+ <import>
+ <bundle>org.jboss.tools.sapphire</bundle>
+ <package>org.jboss.tools.sapphire</package>
+ <package>org.jboss.tools.sapphire.ui</package>
+ </import>
+ <editor-page>
+ <id>main</id>
+ <page-name>switchyard</page-name>
+ <page-header-text>switchyard</page-header-text>
+ <initial-selection>composites</initial-selection>
+ <root-node>
+ <node>
+ <label>composites</label>
+ <section>
+ <description>Use this editor to manage your SwitchYard Configuration.</description>
+ <content>
+ <action-link>
+ <action-id>Sapphire.Add</action-id>
+ <label>Add a Composite</label>
+ </action-link>
+<!-- <property-editor>
+ <property>composites</property>
+ <hint>
+ <name>show.label</name>
+ <value>false</value>
+ </hint>
+ </property-editor>
+-->
+ </content>
+ </section>
+ <node-list>
+ <property>composites</property>
+ <node-template>
+ <label><composite></label>
+ <node>
+ <label>services</label>
+ <section>
+ <content>
+ <action-link>
+ <action-id>Sapphire.Add</action-id>
+ <label>Add a Service</label>
+ </action-link>
+ <property-editor>
+ <property>Services</property>
+ </property-editor>
+ </content>
+ </section>
+ <node-list>
+ <property>services</property>
+ <node-template>
+ <label>${ Name == null ? "<service>" : Name }</label>
+ <node>
+ <label>SOAP Bindings</label>
+ <section>
+ <content>
+ <action-link>
+ <action-id>Sapphire.Add</action-id>
+ <label>Add a SOAP Binding</label>
+ </action-link>
+ <property-editor>
+ <property>SOAPBindings</property>
+ <hint>
+ <name>show.label</name>
+ <value>false</value>
+ </hint>
+ </property-editor>
+ </content>
+ </section>
+ <node-list>
+ <property>SOAPBindings</property>
+ <node-template>
+ <label><binding.soap></label>
+ <section>
+ <label>SOAP Binding</label>
+ <content>
+ <property-editor>ServerPort</property-editor>
+ <property-editor>WSDL</property-editor>
+ </content>
+ </section>
+ </node-template>
+ <section>
+ <content></content>
+ </section>
+ </node-list>
+ </node>
+ <section>
+ <label>Service</label>
+ <content>
+ <property-editor>Name</property-editor>
+ <property-editor>
+ <property>SOAPBindings</property>
+ </property-editor>
+ </content>
+ </section>
+ </node-template>
+ </node-list>
+ </node>
+ <section>
+ <label>Composite</label>
+ <content>
+ <action-link>
+ <action-id>Sapphire.Add</action-id>
+ <label>Add a Service</label>
+ </action-link>
+ <property-editor>
+ <property>Services</property>
+ </property-editor>
+ <action-link>
+ <action-id>Sapphire.Add</action-id>
+ <label>Add a Component</label>
+ </action-link>
+ <property-editor>
+ <property>Components</property>
+ </property-editor>
+ <node-list>
+ <property>services</property>
+ <node-template>
+ <label>${ Name == null ? "<service>" : Name }</label>
+ <section>
+ <label>Service</label>
+ <content>
+ <property-editor>Name</property-editor>
+ </content>
+ </section>
+ </node-template>
+ <property>Components</property>
+ <node-template>
+ <label>${ Name == null ? "<component>" : Name }</label>
+ <section>
+ <label>Component</label>
+ <content>
+ <property-editor>Name</property-editor>
+ </content>
+ </section>
+ </node-template>
+ </node-list>
+ </content>
+ </section>
+ </node-template>
+ </node-list>
+ </node>
+ </root-node>
+ </editor-page>
+</definition>
\ No newline at end of file
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/IComponent.java
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/IComponent.java (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/IComponent.java 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,65 @@
+package org.jboss.tools.esb.switchyard;
+
+import org.eclipse.sapphire.modeling.IModelElement;
+import org.eclipse.sapphire.modeling.ListProperty;
+import org.eclipse.sapphire.modeling.ModelElementList;
+import org.eclipse.sapphire.modeling.ModelElementType;
+import org.eclipse.sapphire.modeling.Value;
+import org.eclipse.sapphire.modeling.ValueProperty;
+import org.eclipse.sapphire.modeling.annotations.GenerateImpl;
+import org.eclipse.sapphire.modeling.annotations.Label;
+import org.eclipse.sapphire.modeling.annotations.NonNullValue;
+import org.eclipse.sapphire.modeling.annotations.Type;
+import org.eclipse.sapphire.modeling.xml.annotations.XmlBinding;
+import org.eclipse.sapphire.modeling.xml.annotations.XmlListBinding;
+import org.eclipse.sapphire.modeling.xml.annotations.XmlNamespace;
+import org.eclipse.sapphire.modeling.xml.annotations.XmlNamespaces;
+
+@GenerateImpl
+
+@XmlNamespaces( value = {@XmlNamespace( uri = "http://docs.oasis-open.org/ns/opencsa/sca/200912", prefix = "sca" ),
+ @XmlNamespace( uri = "urn:switchyard-config:test-bean:1.0", prefix = "bean" )})
+
+public interface IComponent extends IModelElement {
+
+ ModelElementType TYPE = new ModelElementType( IComponent.class );
+
+ // *** Name ***
+
+ @XmlBinding( path = "@name" )
+ @Label( standard = "&Name" )
+ @NonNullValue
+
+ ValueProperty PROP_NAME = new ValueProperty( TYPE, "Name" );
+
+ Value<String> getName();
+ void setName( String value );
+
+ // *** ImplementationBeans ***
+
+ @Label( standard = "&Implementation Beans" )
+ @Type( base = IImplementationBean.class )
+ @XmlListBinding( mappings = @XmlListBinding.Mapping( element = "bean:implementation.bean", type = IImplementationBean.class ) )
+
+ ListProperty PROP_IMPLEMENTATION_BEANS = new ListProperty( TYPE, "ImplementationBeans" );
+
+ ModelElementList<IImplementationBean> getImplementationBeans();
+
+ // *** Services ***
+
+ @Type( base = IComponentService.class )
+ @XmlListBinding( mappings = @XmlListBinding.Mapping( element = "sca:service", type = IComponentService.class ) )
+
+ ListProperty PROP_COMPONENT_SERVICES = new ListProperty( TYPE, "ComponentServices" );
+
+ ModelElementList<IComponentService> getComponentServices();
+
+ // *** Services ***
+
+ @Type( base = IComponentServiceReference.class )
+ @XmlListBinding( mappings = @XmlListBinding.Mapping( element = "reference", type = IComponentServiceReference.class ) )
+
+ ListProperty PROP_COMPONENT_SERVICE_REFERENCES = new ListProperty( TYPE, "ComponentServiceReferences" );
+
+ ModelElementList<IComponentServiceReference> getComponentServiceReferences();
+}
Property changes on: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/IComponent.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/IComponentService.java
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/IComponentService.java (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/IComponentService.java 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,45 @@
+package org.jboss.tools.esb.switchyard;
+
+import org.eclipse.sapphire.modeling.IModelElement;
+import org.eclipse.sapphire.modeling.ListProperty;
+import org.eclipse.sapphire.modeling.ModelElementList;
+import org.eclipse.sapphire.modeling.ModelElementType;
+import org.eclipse.sapphire.modeling.Value;
+import org.eclipse.sapphire.modeling.ValueProperty;
+import org.eclipse.sapphire.modeling.annotations.GenerateImpl;
+import org.eclipse.sapphire.modeling.annotations.Label;
+import org.eclipse.sapphire.modeling.annotations.NonNullValue;
+import org.eclipse.sapphire.modeling.annotations.Type;
+import org.eclipse.sapphire.modeling.xml.annotations.XmlBinding;
+import org.eclipse.sapphire.modeling.xml.annotations.XmlListBinding;
+import org.eclipse.sapphire.modeling.xml.annotations.XmlNamespace;
+
+@GenerateImpl
+@XmlNamespace( uri = "http://docs.oasis-open.org/ns/opencsa/sca/200912", prefix = "sca" )
+
+public interface IComponentService extends IModelElement {
+
+ ModelElementType TYPE = new ModelElementType( IComponentService.class );
+
+ // *** Name ***
+
+ @XmlBinding( path = "@name" )
+ @Label( standard = "&Name" )
+ @NonNullValue
+
+ ValueProperty PROP_NAME = new ValueProperty( TYPE, "Name" );
+
+ Value<String> getName();
+ void setName( String value );
+
+ // *** Java Interfaces ***
+
+ @Label( standard = "&Java Interfaces" )
+ @Type( base = IInterfaceJava.class )
+ @XmlListBinding( mappings = @XmlListBinding.Mapping( element = "sca:interface.java", type = IInterfaceJava.class ) )
+
+ ListProperty PROP_JAVA_INTERFACES = new ListProperty( TYPE, "JavaInterfaces" );
+
+ ModelElementList<IInterfaceJava> getJavaInterfaces();
+
+}
Property changes on: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/IComponentService.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/IComponentServiceReference.java
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/IComponentServiceReference.java (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/IComponentServiceReference.java 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,45 @@
+package org.jboss.tools.esb.switchyard;
+
+import org.eclipse.sapphire.modeling.IModelElement;
+import org.eclipse.sapphire.modeling.ListProperty;
+import org.eclipse.sapphire.modeling.ModelElementList;
+import org.eclipse.sapphire.modeling.ModelElementType;
+import org.eclipse.sapphire.modeling.Value;
+import org.eclipse.sapphire.modeling.ValueProperty;
+import org.eclipse.sapphire.modeling.annotations.GenerateImpl;
+import org.eclipse.sapphire.modeling.annotations.Label;
+import org.eclipse.sapphire.modeling.annotations.NonNullValue;
+import org.eclipse.sapphire.modeling.annotations.Type;
+import org.eclipse.sapphire.modeling.xml.annotations.XmlBinding;
+import org.eclipse.sapphire.modeling.xml.annotations.XmlListBinding;
+import org.eclipse.sapphire.modeling.xml.annotations.XmlNamespace;
+
+@GenerateImpl
+@XmlNamespace( uri = "http://docs.oasis-open.org/ns/opencsa/sca/200912", prefix = "sca" )
+
+public interface IComponentServiceReference extends IModelElement {
+
+ ModelElementType TYPE = new ModelElementType( IComponentServiceReference.class );
+
+ // *** Name ***
+
+ @XmlBinding( path = "@name" )
+ @Label( standard = "&Name" )
+ @NonNullValue
+
+ ValueProperty PROP_NAME = new ValueProperty( TYPE, "Name" );
+
+ Value<String> getName();
+ void setName( String value );
+
+ // *** Java Interfaces ***
+
+ @Label( standard = "&Java Interfaces" )
+ @Type( base = IInterfaceJava.class )
+ @XmlListBinding( mappings = @XmlListBinding.Mapping( element = "sca:interface.java", type = IInterfaceJava.class ) )
+
+ ListProperty PROP_JAVA_INTERFACES = new ListProperty( TYPE, "JavaInterfaces" );
+
+ ModelElementList<IInterfaceJava> getJavaInterfaces();
+
+}
Property changes on: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/IComponentServiceReference.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/IComposite.java
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/IComposite.java (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/IComposite.java 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,62 @@
+package org.jboss.tools.esb.switchyard;
+
+import org.eclipse.sapphire.modeling.IModelElement;
+import org.eclipse.sapphire.modeling.ListProperty;
+import org.eclipse.sapphire.modeling.ModelElementList;
+import org.eclipse.sapphire.modeling.ModelElementType;
+import org.eclipse.sapphire.modeling.Value;
+import org.eclipse.sapphire.modeling.ValueProperty;
+import org.eclipse.sapphire.modeling.annotations.GenerateImpl;
+import org.eclipse.sapphire.modeling.annotations.Label;
+import org.eclipse.sapphire.modeling.annotations.NonNullValue;
+import org.eclipse.sapphire.modeling.annotations.Type;
+import org.eclipse.sapphire.modeling.xml.annotations.XmlBinding;
+import org.eclipse.sapphire.modeling.xml.annotations.XmlListBinding;
+
+@GenerateImpl
+
+public interface IComposite extends IModelElement {
+
+ ModelElementType TYPE = new ModelElementType( IComposite.class );
+
+ // *** Name ***
+
+ @XmlBinding( path = "@name" )
+ @Label( standard = "&Name" )
+ @NonNullValue
+
+ ValueProperty PROP_NAME = new ValueProperty( TYPE, "Name" );
+
+ Value<String> getName();
+ void setName( String value );
+
+ // *** targetNamespace ***
+
+ @XmlBinding( path = "@targetNamespace" )
+ @Label( standard = "&Target Namespace" )
+ @NonNullValue
+
+ ValueProperty PROP_TARGET_NAMESPACE = new ValueProperty( TYPE, "TargetNamespace" );
+
+ Value<String> getTargetNamespace();
+ void setTargetNamespace( String value );
+
+ // *** Services ***
+
+ @Type( base = IService.class )
+ @XmlListBinding( mappings = @XmlListBinding.Mapping( element = "service", type = IService.class ) )
+
+ ListProperty PROP_SERVICES = new ListProperty( TYPE, "Services" );
+
+ ModelElementList<IService> getServices();
+
+ // *** Components ***
+
+ @Type( base = IComponent.class )
+ @XmlListBinding( mappings = @XmlListBinding.Mapping( element = "component", type = IComponent.class ) )
+
+ ListProperty PROP_COMPONENTS = new ListProperty( TYPE, "Components" );
+
+ ModelElementList<IComponent> getComponents();
+
+}
Property changes on: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/IComposite.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/IImplementationBean.java
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/IImplementationBean.java (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/IImplementationBean.java 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,44 @@
+package org.jboss.tools.esb.switchyard;
+
+import org.eclipse.sapphire.modeling.IModelElement;
+import org.eclipse.sapphire.modeling.ModelElementType;
+import org.eclipse.sapphire.modeling.Value;
+import org.eclipse.sapphire.modeling.ValueProperty;
+import org.eclipse.sapphire.modeling.annotations.GenerateImpl;
+import org.eclipse.sapphire.modeling.annotations.Label;
+import org.eclipse.sapphire.modeling.annotations.MustExist;
+import org.eclipse.sapphire.modeling.annotations.NonNullValue;
+import org.eclipse.sapphire.modeling.annotations.Type;
+import org.eclipse.sapphire.java.JavaTypeConstraint;
+import org.eclipse.sapphire.java.JavaTypeKind;
+import org.eclipse.sapphire.java.JavaTypeName;
+import org.eclipse.sapphire.modeling.xml.annotations.XmlBinding;
+
+@GenerateImpl
+
+public interface IImplementationBean extends IModelElement {
+
+ ModelElementType TYPE = new ModelElementType( IImplementationBean.class );
+
+ // *** class ***
+
+ @XmlBinding( path = "@class" )
+ @Label( standard = "&class" )
+ @NonNullValue
+
+// ValueProperty PROP_IMPL_BEAN_CLASS = new ValueProperty( TYPE, "ImplBeanClass" );
+//
+// Value<String> getImplBeanClass();
+// void setImplBeanClass ( String value );
+
+ @Type( base = JavaTypeName.class )
+ @JavaTypeConstraint( kind = JavaTypeKind.CLASS, type = { "java.lang.Object"} )
+ @MustExist
+
+ ValueProperty PROP_IMPL_BEAN_CLASS = new ValueProperty( TYPE, "ImplBeanClass" );
+
+ Value<JavaTypeName> getImplBeanClass();
+ void setImplBeanClass( String value );
+ void setImplBeanClass( JavaTypeName value );
+
+}
Property changes on: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/IImplementationBean.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/IInterfaceJava.java
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/IInterfaceJava.java (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/IInterfaceJava.java 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,43 @@
+package org.jboss.tools.esb.switchyard;
+
+import org.eclipse.sapphire.modeling.IModelElement;
+import org.eclipse.sapphire.modeling.ModelElementType;
+import org.eclipse.sapphire.modeling.Value;
+import org.eclipse.sapphire.modeling.ValueProperty;
+import org.eclipse.sapphire.modeling.annotations.GenerateImpl;
+import org.eclipse.sapphire.modeling.annotations.Label;
+import org.eclipse.sapphire.modeling.annotations.MustExist;
+import org.eclipse.sapphire.modeling.annotations.NonNullValue;
+import org.eclipse.sapphire.modeling.annotations.Type;
+import org.eclipse.sapphire.java.JavaTypeConstraint;
+import org.eclipse.sapphire.java.JavaTypeKind;
+import org.eclipse.sapphire.java.JavaTypeName;
+import org.eclipse.sapphire.modeling.xml.annotations.XmlBinding;
+
+@GenerateImpl
+
+public interface IInterfaceJava extends IModelElement {
+
+ ModelElementType TYPE = new ModelElementType( IInterfaceJava.class );
+
+ // *** java interface ***
+
+ @XmlBinding( path = "@interface" )
+ @Label( standard = "&Interface" )
+ @NonNullValue
+
+// ValueProperty PROP_JAVA_INTERFACE = new ValueProperty( TYPE, "JavaInterface" );
+//
+// Value<String> getJavaInterface();
+// void setJavaInterface ( String value );
+
+ @Type( base = JavaTypeName.class )
+ @JavaTypeConstraint( kind = JavaTypeKind.INTERFACE, type = {} )
+ @MustExist
+
+ ValueProperty PROP_JAVA_INTERFACE = new ValueProperty( TYPE, "JavaInterface" );
+
+ Value<JavaTypeName> getJavaInterface();
+ void setJavaInterface( String value );
+ void setJavaInterface( JavaTypeName value );
+}
Property changes on: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/IInterfaceJava.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/ISOAPBinding.java
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/ISOAPBinding.java (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/ISOAPBinding.java 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,84 @@
+package org.jboss.tools.esb.switchyard;
+
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.sapphire.modeling.IModelElement;
+import org.eclipse.sapphire.modeling.ModelElementType;
+import org.eclipse.sapphire.modeling.Value;
+import org.eclipse.sapphire.modeling.ValueProperty;
+import org.eclipse.sapphire.modeling.annotations.BasePathsProvider;
+import org.eclipse.sapphire.modeling.annotations.DefaultValue;
+import org.eclipse.sapphire.modeling.annotations.FileSystemResourceType;
+import org.eclipse.sapphire.modeling.annotations.GenerateImpl;
+import org.eclipse.sapphire.modeling.annotations.Label;
+import org.eclipse.sapphire.modeling.annotations.LongString;
+import org.eclipse.sapphire.modeling.annotations.MustExist;
+import org.eclipse.sapphire.modeling.annotations.NonNullValue;
+import org.eclipse.sapphire.modeling.annotations.Type;
+import org.eclipse.sapphire.modeling.annotations.ValidFileExtensions;
+import org.eclipse.sapphire.modeling.annotations.ValidFileSystemResourceType;
+import org.eclipse.sapphire.modeling.xml.annotations.XmlBinding;
+import org.eclipse.sapphire.ui.def.internal.ProjectRootBasePathsProvider;
+
+@GenerateImpl
+
+public interface ISOAPBinding extends IModelElement{
+
+ ModelElementType TYPE = new ModelElementType( ISOAPBinding.class );
+
+ // *** serverPort ***
+ @XmlBinding( path = "port" )
+ @Label( standard = "&Port" )
+ @NonNullValue
+
+ ValueProperty PROP_PORT = new ValueProperty( TYPE, "Port" );
+
+ Value<String> getPort();
+ void setPort( String value );
+
+ // *** WSDL ***
+
+ @XmlBinding( path = "wsdl" )
+ @Label( standard = "&WSDL" )
+ @NonNullValue
+
+ @Type( base = IPath.class )
+ @BasePathsProvider( ProjectRootBasePathsProvider.class )
+ @ValidFileSystemResourceType( FileSystemResourceType.FILE )
+ @ValidFileExtensions( "wsdl" )
+ @MustExist
+
+ ValueProperty PROP_WSDL = new ValueProperty( TYPE, "WSDL" );
+
+ Value<IPath> getWsdl();
+ void setWsdl( String value );
+ void setWsdl( IPath value );
+
+// ValueProperty PROP_WSDL = new ValueProperty( TYPE, "WSDL" );
+//
+// Value<String> getWsdl();
+// void setWsdl( String value );
+
+ // *** secure ***
+
+ @Type( base = Boolean.class)
+ @XmlBinding( path = "port/@secure" )
+ @Label( standard = "&Secure Port" )
+ @DefaultValue(text = "false")
+
+ ValueProperty PROP_SECURE = new ValueProperty( TYPE, "Secure" );
+
+ Value<Boolean> getSecure();
+ void setSecure ( String value );
+ void setSecure ( Boolean value );
+
+ // *** description ***
+
+ @XmlBinding( path = "wsdl/@description" )
+ @Label( standard = "&WSDL Description" )
+ @LongString
+
+ ValueProperty PROP_WSDL_DESCRIPTION = new ValueProperty( TYPE, "WsdlDescription" );
+
+ Value<String> getWsdlDescription();
+ void setWsdlDescription ( String value );
+}
Property changes on: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/ISOAPBinding.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/IService.java
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/IService.java (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/IService.java 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,56 @@
+package org.jboss.tools.esb.switchyard;
+
+import org.eclipse.sapphire.modeling.IModelElement;
+import org.eclipse.sapphire.modeling.ListProperty;
+import org.eclipse.sapphire.modeling.ModelElementList;
+import org.eclipse.sapphire.modeling.ModelElementType;
+import org.eclipse.sapphire.modeling.Value;
+import org.eclipse.sapphire.modeling.ValueProperty;
+import org.eclipse.sapphire.modeling.annotations.GenerateImpl;
+import org.eclipse.sapphire.modeling.annotations.Label;
+import org.eclipse.sapphire.modeling.annotations.NonNullValue;
+import org.eclipse.sapphire.modeling.annotations.Type;
+import org.eclipse.sapphire.modeling.xml.annotations.XmlBinding;
+import org.eclipse.sapphire.modeling.xml.annotations.XmlListBinding;
+import org.eclipse.sapphire.modeling.xml.annotations.XmlNamespace;
+
+@XmlNamespace( uri = "urn:switchyard-config:test-soap:1.0", prefix = "soap" )
+@GenerateImpl
+
+public interface IService extends IModelElement {
+
+ ModelElementType TYPE = new ModelElementType( IService.class );
+
+ // *** Name ***
+
+ @XmlBinding( path = "@name" )
+ @Label( standard = "&Name" )
+ @NonNullValue
+
+ ValueProperty PROP_NAME = new ValueProperty( TYPE, "Name" );
+
+ Value<String> getName();
+ void setName( String value );
+
+ // *** Promote ***
+
+ @XmlBinding( path = "@promote" )
+ @Label( standard = "&Promote" )
+ @NonNullValue
+
+ ValueProperty PROP_PROMOTE = new ValueProperty( TYPE, "Promote" );
+
+ Value<String> getPromote();
+ void setPromote( String value );
+
+ // *** SOAPBindings ***
+
+ @Label( standard = "&SOAP Bindings" )
+ @Type( base = ISOAPBinding.class )
+ @XmlListBinding( mappings = @XmlListBinding.Mapping( element = "soap:binding.soap", type = ISOAPBinding.class ) )
+
+ ListProperty PROP_SOAPBINDINGS = new ListProperty( TYPE, "SOAPBindings" );
+
+ ModelElementList<ISOAPBinding> getSoapbindings();
+
+}
Property changes on: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/IService.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/ISwitchyard.java
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/ISwitchyard.java (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/ISwitchyard.java 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,48 @@
+package org.jboss.tools.esb.switchyard;
+
+import org.eclipse.sapphire.modeling.IModelElement;
+import org.eclipse.sapphire.modeling.ListProperty;
+import org.eclipse.sapphire.modeling.ModelElementList;
+import org.eclipse.sapphire.modeling.ModelElementType;
+import org.eclipse.sapphire.modeling.annotations.CountConstraint;
+import org.eclipse.sapphire.modeling.annotations.GenerateImpl;
+import org.eclipse.sapphire.modeling.annotations.Type;
+import org.eclipse.sapphire.modeling.xml.annotations.XmlListBinding;
+import org.eclipse.sapphire.modeling.xml.annotations.XmlNamespace;
+import org.eclipse.sapphire.modeling.xml.annotations.XmlRootBinding;
+
+@XmlNamespace( uri = "http://docs.oasis-open.org/ns/opencsa/sca/200912", prefix = "sca" )
+
+@GenerateImpl
+
+@XmlRootBinding( namespace = "urn:switchyard-config:switchyard:1.0",
+ elementName = "switchyard" )
+
+
+public interface ISwitchyard extends IModelElement {
+
+ ModelElementType TYPE = new ModelElementType( ISwitchyard.class );
+
+ // *** Composites ***
+
+ @Type( base = IComposite.class )
+ @XmlListBinding( mappings = @XmlListBinding.Mapping( element = "sca:composite", type = IComposite.class ) )
+ @CountConstraint( min = 1, max = 1 )
+
+ ListProperty PROP_COMPOSITES = new ListProperty( TYPE, "Composites" );
+
+ ModelElementList<IComposite> getComposites();
+
+ // *** Transforms ***
+
+ @Type( base = ITransforms.class )
+ @XmlListBinding( mappings = @XmlListBinding.Mapping( element = "transforms", type = ITransforms.class ) )
+// @XmlBinding( path = "transforms" )
+ @CountConstraint( max = 1 )
+
+ ListProperty PROP_TRANSFORMS = new ListProperty( TYPE, "Transforms" );
+// ElementProperty PROP_TRANSFORMS = new ElementProperty( TYPE, "Transforms" );
+
+ ModelElementList<ITransforms> getTransforms();
+// ModelElementHandle<ITransforms> getTransforms();
+}
Property changes on: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/ISwitchyard.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/ITransformJava.java
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/ITransformJava.java (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/ITransformJava.java 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,65 @@
+package org.jboss.tools.esb.switchyard;
+
+import org.eclipse.sapphire.modeling.IModelElement;
+import org.eclipse.sapphire.modeling.ModelElementType;
+import org.eclipse.sapphire.modeling.Value;
+import org.eclipse.sapphire.modeling.ValueProperty;
+import org.eclipse.sapphire.modeling.annotations.GenerateImpl;
+import org.eclipse.sapphire.modeling.annotations.Label;
+import org.eclipse.sapphire.modeling.annotations.MustExist;
+import org.eclipse.sapphire.modeling.annotations.NonNullValue;
+import org.eclipse.sapphire.modeling.annotations.Type;
+import org.eclipse.sapphire.java.JavaTypeConstraint;
+import org.eclipse.sapphire.java.JavaTypeKind;
+import org.eclipse.sapphire.java.JavaTypeName;
+import org.eclipse.sapphire.modeling.xml.annotations.XmlBinding;
+
+@GenerateImpl
+
+public interface ITransformJava extends IModelElement {
+
+ ModelElementType TYPE = new ModelElementType( ITransformJava.class );
+
+ // *** from ***
+
+ @XmlBinding( path = "@from" )
+ @Label( standard = "&from" )
+ @NonNullValue
+
+ ValueProperty PROP_TRANSFORM_JAVA_FROM = new ValueProperty( TYPE, "TransformJavaFrom" );
+
+ Value<String> getTransformJavaFrom();
+ void setTransformJavaFrom ( String value );
+
+ // *** to ***
+
+ @XmlBinding( path = "@to" )
+ @Label( standard = "&To" )
+ @NonNullValue
+
+ ValueProperty PROP_TRANSFORM_JAVA_TO = new ValueProperty( TYPE, "TransformJavaTo" );
+
+ Value<String> getTransformJavaTo();
+ void setTransformJavaTo ( String value );
+
+ // *** class ***
+
+ @XmlBinding( path = "@class" )
+ @Label( standard = "&class" )
+ @NonNullValue
+
+// ValueProperty PROP_TRANSFORM_JAVA_CLASS = new ValueProperty( TYPE, "TransformJavaClass" );
+//
+// Value<String> getTransformJavaClass();
+// void setTransformJavaClass ( String value );
+
+ @Type( base = JavaTypeName.class )
+ @JavaTypeConstraint( kind = JavaTypeKind.CLASS, type = { "java.lang.Object"} )
+ @MustExist
+
+ ValueProperty PROP_TRANSFORM_JAVA_CLASS = new ValueProperty( TYPE, "TransformJavaClass" );
+
+ Value<JavaTypeName> getTransformJavaClass();
+ void setTransformJavaClass( String value );
+ void setTransformJavaClass( JavaTypeName value );
+}
Property changes on: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/ITransformJava.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/ITransformSmooks.java
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/ITransformSmooks.java (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/ITransformSmooks.java 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,67 @@
+package org.jboss.tools.esb.switchyard;
+
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.sapphire.modeling.IModelElement;
+import org.eclipse.sapphire.modeling.ModelElementType;
+import org.eclipse.sapphire.modeling.Value;
+import org.eclipse.sapphire.modeling.ValueProperty;
+import org.eclipse.sapphire.modeling.annotations.BasePathsProvider;
+import org.eclipse.sapphire.modeling.annotations.FileSystemResourceType;
+import org.eclipse.sapphire.modeling.annotations.GenerateImpl;
+import org.eclipse.sapphire.modeling.annotations.Label;
+import org.eclipse.sapphire.modeling.annotations.MustExist;
+import org.eclipse.sapphire.modeling.annotations.NonNullValue;
+import org.eclipse.sapphire.modeling.annotations.Type;
+import org.eclipse.sapphire.modeling.annotations.ValidFileExtensions;
+import org.eclipse.sapphire.modeling.annotations.ValidFileSystemResourceType;
+import org.eclipse.sapphire.modeling.xml.annotations.XmlBinding;
+import org.eclipse.sapphire.modeling.xml.annotations.XmlNamespace;
+import org.eclipse.sapphire.ui.def.internal.ProjectRootBasePathsProvider;
+
+@GenerateImpl
+@XmlNamespace( uri = "urn:switchyard-config:test-smooks:1.0", prefix = "smooks" )
+
+public interface ITransformSmooks extends IModelElement {
+
+ ModelElementType TYPE = new ModelElementType( ITransformSmooks.class );
+
+ // *** from ***
+
+ @XmlBinding( path = "@from" )
+ @Label( standard = "&From" )
+ @NonNullValue
+
+ ValueProperty PROP_TRANSFORM_SMOOKS_FROM = new ValueProperty( TYPE, "TransformSmooksFrom" );
+
+ Value<String> getTransformSmooksFrom();
+ void setTransformSmooksFrom ( String value );
+
+ // *** to ***
+
+ @XmlBinding( path = "@to" )
+ @Label( standard = "&To" )
+ @NonNullValue
+
+ ValueProperty PROP_TRANSFORM_SMOOKS_TO = new ValueProperty( TYPE, "TransformSmooksTo" );
+
+ Value<String> getTransformSmooksTo();
+ void setTransformSmooksTo ( String value );
+
+ // *** smooks:config ***
+
+ @XmlBinding( path = "smooks:config" )
+ @Label( standard = "&Smooks Config" )
+ @NonNullValue
+ @Type( base = IPath.class )
+ @BasePathsProvider( ProjectRootBasePathsProvider.class )
+ @ValidFileSystemResourceType( FileSystemResourceType.FILE )
+ @ValidFileExtensions( "xml" )
+ @MustExist
+
+ ValueProperty PROP_TRANSFORM_SMOOKS_CONFIG = new ValueProperty( TYPE, "TransformSmooksConfig" );
+
+ Value<IPath> getTransformSmooksConfig();
+ void setTransformSmooksConfig( String value );
+ void setTransformSmooksConfig( IPath value );
+
+}
Property changes on: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/ITransformSmooks.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/ITransforms.java
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/ITransforms.java (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/ITransforms.java 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,42 @@
+package org.jboss.tools.esb.switchyard;
+
+import org.eclipse.sapphire.modeling.IModelElement;
+import org.eclipse.sapphire.modeling.ListProperty;
+import org.eclipse.sapphire.modeling.ModelElementList;
+import org.eclipse.sapphire.modeling.ModelElementType;
+import org.eclipse.sapphire.modeling.annotations.GenerateImpl;
+import org.eclipse.sapphire.modeling.annotations.Label;
+import org.eclipse.sapphire.modeling.annotations.Type;
+import org.eclipse.sapphire.modeling.xml.annotations.XmlListBinding;
+import org.eclipse.sapphire.modeling.xml.annotations.XmlNamespace;
+import org.eclipse.sapphire.modeling.xml.annotations.XmlNamespaces;
+
+@GenerateImpl
+@XmlNamespaces( value = {@XmlNamespace( uri = "urn:switchyard-config:test-java:1.0", prefix = "java" ),
+ @XmlNamespace( uri = "urn:switchyard-config:test-smooks:1.0", prefix = "smooks" )})
+
+
+public interface ITransforms extends IModelElement {
+
+ ModelElementType TYPE = new ModelElementType( ITransforms.class );
+
+ // *** transform.java ***
+
+ @Label( standard = "&Java Transformations" )
+ @Type( base = ITransformJava.class )
+ @XmlListBinding( mappings = @XmlListBinding.Mapping( element = "java:transform.java", type = ITransformJava.class ) )
+
+ ListProperty PROP_JAVA_TRANSFORMS = new ListProperty( TYPE, "JavaTransforms" );
+
+ ModelElementList<ITransformJava> getJavaTransforms();
+
+ // *** transform.smooks ***
+
+ @Label( standard = "&Smooks Transformations" )
+ @Type( base = ITransformSmooks.class )
+ @XmlListBinding( mappings = @XmlListBinding.Mapping( element = "smooks:transform.smooks", type = ITransformSmooks.class ) )
+
+ ListProperty PROP_SMOOKS_TRANSFORMS = new ListProperty( TYPE, "SmooksTransforms" );
+
+ ModelElementList<ITransformSmooks> getSmooksTransforms();
+}
Property changes on: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/ITransforms.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/ui/SwitchyardEditor.java
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/ui/SwitchyardEditor.java (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/ui/SwitchyardEditor.java 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,19 @@
+package org.jboss.tools.esb.switchyard.ui;
+
+import org.eclipse.sapphire.ui.swt.xml.editor.SapphireEditorForXml;
+import org.jboss.tools.esb.switchyard.ISwitchyard;
+
+public final class SwitchyardEditor
+
+ extends SapphireEditorForXml
+
+{
+ public SwitchyardEditor()
+ {
+ super( "org.jboss.tools.esb.switchyard.ui" );
+
+ setRootModelElementType( ISwitchyard.TYPE );
+ setEditorDefinitionPath( "org.jboss.tools.esb.switchyard.ui/sdefs/switchyard-0.4.sdef/main" );
+ }
+
+}
Property changes on: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/ui/SwitchyardEditor.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/ui/SwitchyardGraphicalEditor.java
===================================================================
--- workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/ui/SwitchyardGraphicalEditor.java (rev 0)
+++ workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/ui/SwitchyardGraphicalEditor.java 2011-04-11 22:26:41 UTC (rev 30497)
@@ -0,0 +1,94 @@
+package org.jboss.tools.esb.switchyard.ui;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.sapphire.modeling.IModelElement;
+import org.eclipse.sapphire.modeling.xml.RootXmlResource;
+import org.eclipse.sapphire.ui.SapphireEditor;
+import org.eclipse.sapphire.ui.editor.views.masterdetails.MasterDetailsPage;
+import org.eclipse.sapphire.ui.internal.SapphireUiFrameworkPlugin;
+import org.eclipse.sapphire.ui.swt.graphiti.editor.SapphireDiagramEditor;
+import org.eclipse.sapphire.ui.swt.graphiti.editor.SapphireDiagramEditorFactory;
+import org.eclipse.sapphire.ui.swt.graphiti.editor.SapphireDiagramEditorInput;
+import org.eclipse.sapphire.ui.swt.xml.editor.XmlEditorResourceStore;
+import org.eclipse.ui.PartInitException;
+import org.eclipse.ui.part.FileEditorInput;
+import org.eclipse.wst.sse.ui.StructuredTextEditor;
+import org.jboss.tools.esb.switchyard.ISwitchyard;
+
+public class SwitchyardGraphicalEditor extends SapphireEditor
+{
+ private ISwitchyard modelSwitchyard;
+ private StructuredTextEditor switchyardSourceEditor;
+ private SapphireDiagramEditor switchyardDiagramEditor;
+ private MasterDetailsPage switchyardFormPage;
+
+ private final static int FORM_PAGE = 0;
+ private final static int DIAGRAM_PAGE = 1;
+
+ public SwitchyardGraphicalEditor()
+ {
+ super( "org.jboss.tools.esb.switchyard.ui" );
+ }
+
+ @Override
+ protected void createSourcePages() throws PartInitException
+ {
+ this.switchyardSourceEditor = new StructuredTextEditor();
+ this.switchyardSourceEditor.setEditorPart(this);
+ final FileEditorInput rootEditorInput = (FileEditorInput) getEditorInput();
+
+ int index = addPage( this.switchyardSourceEditor, rootEditorInput );
+ setPageText( index, "Source" );
+ }
+
+ @Override
+ protected IModelElement createModel()
+ {
+ this.modelSwitchyard = ISwitchyard.TYPE.instantiate(new RootXmlResource(new XmlEditorResourceStore(this, this.switchyardSourceEditor)));
+ return this.modelSwitchyard;
+ }
+
+ @Override
+ protected void createDiagramPages() throws PartInitException
+ {
+ IPath path = new Path( "org.jboss.tools.esb.switchyard.ui/sdefs/switchyard-0.4.sdef/diagram" );
+ this.switchyardDiagramEditor = new SapphireDiagramEditor(this.modelSwitchyard, path);
+ SapphireDiagramEditorInput diagramEditorInput = null;
+ try
+ {
+ diagramEditorInput = SapphireDiagramEditorFactory.createEditorInput(this.modelSwitchyard.adapt(IFile.class));
+ }
+ catch (Exception e)
+ {
+ SapphireUiFrameworkPlugin.log( e );
+ }
+
+ if (diagramEditorInput != null)
+ {
+ addPage(DIAGRAM_PAGE, switchyardDiagramEditor, diagramEditorInput);
+ setPageText( DIAGRAM_PAGE, "Diagram" );
+ setPageId(this.pages.get(DIAGRAM_PAGE), "Diagram");
+ }
+ }
+
+ @Override
+ protected void createFormPages() throws PartInitException
+ {
+ IPath path = new Path( "org.jboss.tools.esb.switchyard.ui/sdefs/switchyard-0.4.sdef/main" );
+ this.switchyardFormPage = new MasterDetailsPage(this, this.modelSwitchyard, path);
+ addPage(FORM_PAGE, this.switchyardFormPage);
+ setPageText(FORM_PAGE, "Overview");
+ setPageId(this.pages.get(FORM_PAGE), "Overview");
+ }
+
+ @Override
+ public void doSave( final IProgressMonitor monitor )
+ {
+ super.doSave(monitor);
+ this.switchyardDiagramEditor.doSave(monitor);
+ }
+
+}
Property changes on: workspace/bfitzpat/org.jboss.tools.esb.switchyard.ui/src/org/jboss/tools/esb/switchyard/ui/SwitchyardGraphicalEditor.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
13 years, 7 months
JBoss Tools SVN: r30495 - in trunk: bot.tests and 4 other directories.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2011-04-11 18:19:42 -0400 (Mon, 11 Apr 2011)
New Revision: 30495
Added:
trunk/bot.tests/
trunk/bot.tests/.gitignore
trunk/bot.tests/features/
trunk/bot.tests/features/.gitignore
trunk/bot.tests/features/org.jboss.tools.bot.test.feature/
trunk/bot.tests/features/org.jboss.tools.bot.test.feature/.gitignore
trunk/bot.tests/features/org.jboss.tools.bot.test.feature/build.properties
trunk/bot.tests/features/org.jboss.tools.bot.test.feature/epl-v10.html
trunk/bot.tests/features/org.jboss.tools.bot.test.feature/feature.xml
trunk/bot.tests/features/org.jboss.tools.bot.test.feature/pom.xml
trunk/bot.tests/features/pom.xml
trunk/bot.tests/plugins/
trunk/bot.tests/plugins/.gitignore
trunk/bot.tests/plugins/pom.xml
trunk/bot.tests/pom.xml
trunk/bot.tests/site/
trunk/bot.tests/site/.gitignore
trunk/bot.tests/site/pom.xml
trunk/bot.tests/site/site.xml
Log:
move bot tests from tests/ module as they're all downstream from there; collect them all into a single update site here
Added: trunk/bot.tests/.gitignore
===================================================================
--- trunk/bot.tests/.gitignore (rev 0)
+++ trunk/bot.tests/.gitignore 2011-04-11 22:19:42 UTC (rev 30495)
@@ -0,0 +1,2 @@
+.project
+.settings/
Added: trunk/bot.tests/features/.gitignore
===================================================================
--- trunk/bot.tests/features/.gitignore (rev 0)
+++ trunk/bot.tests/features/.gitignore 2011-04-11 22:19:42 UTC (rev 30495)
@@ -0,0 +1,2 @@
+.settings/
+.project
Added: trunk/bot.tests/features/org.jboss.tools.bot.test.feature/.gitignore
===================================================================
--- trunk/bot.tests/features/org.jboss.tools.bot.test.feature/.gitignore (rev 0)
+++ trunk/bot.tests/features/org.jboss.tools.bot.test.feature/.gitignore 2011-04-11 22:19:42 UTC (rev 30495)
@@ -0,0 +1 @@
+target/
Added: trunk/bot.tests/features/org.jboss.tools.bot.test.feature/build.properties
===================================================================
--- trunk/bot.tests/features/org.jboss.tools.bot.test.feature/build.properties (rev 0)
+++ trunk/bot.tests/features/org.jboss.tools.bot.test.feature/build.properties 2011-04-11 22:19:42 UTC (rev 30495)
@@ -0,0 +1,3 @@
+bin.includes = feature.xml
+src.includes = feature.xml,\
+ build.properties
Added: trunk/bot.tests/features/org.jboss.tools.bot.test.feature/epl-v10.html
===================================================================
--- trunk/bot.tests/features/org.jboss.tools.bot.test.feature/epl-v10.html (rev 0)
+++ trunk/bot.tests/features/org.jboss.tools.bot.test.feature/epl-v10.html 2011-04-11 22:19:42 UTC (rev 30495)
@@ -0,0 +1,261 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+<title>Eclipse Public License - Version 1.0</title>
+<style type="text/css">
+ body {
+ size: 8.5in 11.0in;
+ margin: 0.25in 0.5in 0.25in 0.5in;
+ tab-interval: 0.5in;
+ }
+ p {
+ margin-left: auto;
+ margin-top: 0.5em;
+ margin-bottom: 0.5em;
+ }
+ p.list {
+ margin-left: 0.5in;
+ margin-top: 0.05em;
+ margin-bottom: 0.05em;
+ }
+ </style>
+
+</head>
+
+<body lang="EN-US">
+
+<p align=center><b>Eclipse Public License - v 1.0</b></p>
+
+<p>THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE
+PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR
+DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS
+AGREEMENT.</p>
+
+<p><b>1. DEFINITIONS</b></p>
+
+<p>"Contribution" means:</p>
+
+<p class="list">a) in the case of the initial Contributor, the initial
+code and documentation distributed under this Agreement, and</p>
+<p class="list">b) in the case of each subsequent Contributor:</p>
+<p class="list">i) changes to the Program, and</p>
+<p class="list">ii) additions to the Program;</p>
+<p class="list">where such changes and/or additions to the Program
+originate from and are distributed by that particular Contributor. A
+Contribution 'originates' from a Contributor if it was added to the
+Program by such Contributor itself or anyone acting on such
+Contributor's behalf. Contributions do not include additions to the
+Program which: (i) are separate modules of software distributed in
+conjunction with the Program under their own license agreement, and (ii)
+are not derivative works of the Program.</p>
+
+<p>"Contributor" means any person or entity that distributes
+the Program.</p>
+
+<p>"Licensed Patents" mean patent claims licensable by a
+Contributor which are necessarily infringed by the use or sale of its
+Contribution alone or when combined with the Program.</p>
+
+<p>"Program" means the Contributions distributed in accordance
+with this Agreement.</p>
+
+<p>"Recipient" means anyone who receives the Program under
+this Agreement, including all Contributors.</p>
+
+<p><b>2. GRANT OF RIGHTS</b></p>
+
+<p class="list">a) Subject to the terms of this Agreement, each
+Contributor hereby grants Recipient a non-exclusive, worldwide,
+royalty-free copyright license to reproduce, prepare derivative works
+of, publicly display, publicly perform, distribute and sublicense the
+Contribution of such Contributor, if any, and such derivative works, in
+source code and object code form.</p>
+
+<p class="list">b) Subject to the terms of this Agreement, each
+Contributor hereby grants Recipient a non-exclusive, worldwide,
+royalty-free patent license under Licensed Patents to make, use, sell,
+offer to sell, import and otherwise transfer the Contribution of such
+Contributor, if any, in source code and object code form. This patent
+license shall apply to the combination of the Contribution and the
+Program if, at the time the Contribution is added by the Contributor,
+such addition of the Contribution causes such combination to be covered
+by the Licensed Patents. The patent license shall not apply to any other
+combinations which include the Contribution. No hardware per se is
+licensed hereunder.</p>
+
+<p class="list">c) Recipient understands that although each Contributor
+grants the licenses to its Contributions set forth herein, no assurances
+are provided by any Contributor that the Program does not infringe the
+patent or other intellectual property rights of any other entity. Each
+Contributor disclaims any liability to Recipient for claims brought by
+any other entity based on infringement of intellectual property rights
+or otherwise. As a condition to exercising the rights and licenses
+granted hereunder, each Recipient hereby assumes sole responsibility to
+secure any other intellectual property rights needed, if any. For
+example, if a third party patent license is required to allow Recipient
+to distribute the Program, it is Recipient's responsibility to acquire
+that license before distributing the Program.</p>
+
+<p class="list">d) Each Contributor represents that to its knowledge it
+has sufficient copyright rights in its Contribution, if any, to grant
+the copyright license set forth in this Agreement.</p>
+
+<p><b>3. REQUIREMENTS</b></p>
+
+<p>A Contributor may choose to distribute the Program in object code
+form under its own license agreement, provided that:</p>
+
+<p class="list">a) it complies with the terms and conditions of this
+Agreement; and</p>
+
+<p class="list">b) its license agreement:</p>
+
+<p class="list">i) effectively disclaims on behalf of all Contributors
+all warranties and conditions, express and implied, including warranties
+or conditions of title and non-infringement, and implied warranties or
+conditions of merchantability and fitness for a particular purpose;</p>
+
+<p class="list">ii) effectively excludes on behalf of all Contributors
+all liability for damages, including direct, indirect, special,
+incidental and consequential damages, such as lost profits;</p>
+
+<p class="list">iii) states that any provisions which differ from this
+Agreement are offered by that Contributor alone and not by any other
+party; and</p>
+
+<p class="list">iv) states that source code for the Program is available
+from such Contributor, and informs licensees how to obtain it in a
+reasonable manner on or through a medium customarily used for software
+exchange.</p>
+
+<p>When the Program is made available in source code form:</p>
+
+<p class="list">a) it must be made available under this Agreement; and</p>
+
+<p class="list">b) a copy of this Agreement must be included with each
+copy of the Program.</p>
+
+<p>Contributors may not remove or alter any copyright notices contained
+within the Program.</p>
+
+<p>Each Contributor must identify itself as the originator of its
+Contribution, if any, in a manner that reasonably allows subsequent
+Recipients to identify the originator of the Contribution.</p>
+
+<p><b>4. COMMERCIAL DISTRIBUTION</b></p>
+
+<p>Commercial distributors of software may accept certain
+responsibilities with respect to end users, business partners and the
+like. While this license is intended to facilitate the commercial use of
+the Program, the Contributor who includes the Program in a commercial
+product offering should do so in a manner which does not create
+potential liability for other Contributors. Therefore, if a Contributor
+includes the Program in a commercial product offering, such Contributor
+("Commercial Contributor") hereby agrees to defend and
+indemnify every other Contributor ("Indemnified Contributor")
+against any losses, damages and costs (collectively "Losses")
+arising from claims, lawsuits and other legal actions brought by a third
+party against the Indemnified Contributor to the extent caused by the
+acts or omissions of such Commercial Contributor in connection with its
+distribution of the Program in a commercial product offering. The
+obligations in this section do not apply to any claims or Losses
+relating to any actual or alleged intellectual property infringement. In
+order to qualify, an Indemnified Contributor must: a) promptly notify
+the Commercial Contributor in writing of such claim, and b) allow the
+Commercial Contributor to control, and cooperate with the Commercial
+Contributor in, the defense and any related settlement negotiations. The
+Indemnified Contributor may participate in any such claim at its own
+expense.</p>
+
+<p>For example, a Contributor might include the Program in a commercial
+product offering, Product X. That Contributor is then a Commercial
+Contributor. If that Commercial Contributor then makes performance
+claims, or offers warranties related to Product X, those performance
+claims and warranties are such Commercial Contributor's responsibility
+alone. Under this section, the Commercial Contributor would have to
+defend claims against the other Contributors related to those
+performance claims and warranties, and if a court requires any other
+Contributor to pay any damages as a result, the Commercial Contributor
+must pay those damages.</p>
+
+<p><b>5. NO WARRANTY</b></p>
+
+<p>EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS
+PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
+OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION,
+ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY
+OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely
+responsible for determining the appropriateness of using and
+distributing the Program and assumes all risks associated with its
+exercise of rights under this Agreement , including but not limited to
+the risks and costs of program errors, compliance with applicable laws,
+damage to or loss of data, programs or equipment, and unavailability or
+interruption of operations.</p>
+
+<p><b>6. DISCLAIMER OF LIABILITY</b></p>
+
+<p>EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT
+NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT,
+INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING
+WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF
+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR
+DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED
+HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.</p>
+
+<p><b>7. GENERAL</b></p>
+
+<p>If any provision of this Agreement is invalid or unenforceable under
+applicable law, it shall not affect the validity or enforceability of
+the remainder of the terms of this Agreement, and without further action
+by the parties hereto, such provision shall be reformed to the minimum
+extent necessary to make such provision valid and enforceable.</p>
+
+<p>If Recipient institutes patent litigation against any entity
+(including a cross-claim or counterclaim in a lawsuit) alleging that the
+Program itself (excluding combinations of the Program with other
+software or hardware) infringes such Recipient's patent(s), then such
+Recipient's rights granted under Section 2(b) shall terminate as of the
+date such litigation is filed.</p>
+
+<p>All Recipient's rights under this Agreement shall terminate if it
+fails to comply with any of the material terms or conditions of this
+Agreement and does not cure such failure in a reasonable period of time
+after becoming aware of such noncompliance. If all Recipient's rights
+under this Agreement terminate, Recipient agrees to cease use and
+distribution of the Program as soon as reasonably practicable. However,
+Recipient's obligations under this Agreement and any licenses granted by
+Recipient relating to the Program shall continue and survive.</p>
+
+<p>Everyone is permitted to copy and distribute copies of this
+Agreement, but in order to avoid inconsistency the Agreement is
+copyrighted and may only be modified in the following manner. The
+Agreement Steward reserves the right to publish new versions (including
+revisions) of this Agreement from time to time. No one other than the
+Agreement Steward has the right to modify this Agreement. The Eclipse
+Foundation is the initial Agreement Steward. The Eclipse Foundation may
+assign the responsibility to serve as the Agreement Steward to a
+suitable separate entity. Each new version of the Agreement will be
+given a distinguishing version number. The Program (including
+Contributions) may always be distributed subject to the version of the
+Agreement under which it was received. In addition, after a new version
+of the Agreement is published, Contributor may elect to distribute the
+Program (including its Contributions) under the new version. Except as
+expressly stated in Sections 2(a) and 2(b) above, Recipient receives no
+rights or licenses to the intellectual property of any Contributor under
+this Agreement, whether expressly, by implication, estoppel or
+otherwise. All rights in the Program not expressly granted under this
+Agreement are reserved.</p>
+
+<p>This Agreement is governed by the laws of the State of New York and
+the intellectual property laws of the United States of America. No party
+to this Agreement will bring a legal action under this Agreement more
+than one year after the cause of action arose. Each party waives its
+rights to a jury trial in any resulting litigation.</p>
+
+</body>
+
+</html>
Added: trunk/bot.tests/features/org.jboss.tools.bot.test.feature/feature.xml
===================================================================
--- trunk/bot.tests/features/org.jboss.tools.bot.test.feature/feature.xml (rev 0)
+++ trunk/bot.tests/features/org.jboss.tools.bot.test.feature/feature.xml 2011-04-11 22:19:42 UTC (rev 30495)
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feature id="org.jboss.tools.bot.test.feature" label="Tools Bot Tests" version="3.1.0.qualifier">
+
+ <description url="http://www.jboss.org/tools">
+ JBossTools unit tests feature
+ </description>
+
+ <copyright>
+ Copyright (c) 2011 JBoss by Red Hat and Exadel, Inc.
+Distributed under license by JBoss by Red Hat. 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:
+JBoss by Red Hat and Exadel, Inc. - initial API and implementation
+ </copyright>
+
+ <license>
+ JBoss by Red Hat licenses these features and plugins to you under
+certain open source licenses (or aggregations of such licenses), which
+in a particular case may include the Eclipse Public License, the GNU
+Lesser General Public License, and/or certain other open source
+licenses. For precise licensing details, consult the corresponding
+source code, or contact Red Hat Legal Affairs, 1801 Varsity Drive,
+Raleigh NC 27606 USA.
+ </license>
+
+ <!-- depends on upstream components being built,
+ including tests, common, bpel, cdi, deltacloud, etc. -->
+ <requires>
+ <import plugin="org.jboss.tools.tests" />
+ <import plugin="org.jboss.tools.ui.bot.ext" />
+ <import plugin="org.jboss.tools.ui.bot.ext.test" />
+ </requires>
+
+ <!-- bpmn is not yet being built so this can't be available upstream -->
+ <plugin id="org.jboss.tools.bpmn.ui.bot.test" download-size="0" install-size="0" version="0.0.0" />
+
+ <plugin id="org.jboss.tools.bpel.ui.bot.test" download-size="0" install-size="0" version="0.0.0" />
+ <plugin id="org.jboss.tools.cdi.bot.test" download-size="0" install-size="0" version="0.0.0" />
+ <plugin id="org.jboss.tools.deltacloud.ui.bot.test" download-size="0" install-size="0" version="0.0.0" />
+ <plugin id="org.jboss.tools.drools.ui.bot.test" download-size="0" install-size="0" version="0.0.0" />
+ <plugin id="org.jboss.tools.esb.ui.bot.test" download-size="0" install-size="0" version="0.0.0" />
+ <plugin id="org.jboss.tools.hibernate.ui.bot.test" download-size="0" install-size="0" version="0.0.0" />
+ <plugin id="org.jboss.tools.jbpm.ui.bot.test" download-size="0" install-size="0" version="0.0.0" />
+ <plugin id="org.jboss.tools.jsf.ui.bot.test" download-size="0" install-size="0" version="0.0.0" />
+ <plugin id="org.jboss.tools.jst.ui.bot.test" download-size="0" install-size="0" version="0.0.0" />
+ <plugin id="org.jboss.tools.maven.ui.bot.test" download-size="0" install-size="0" version="0.0.0" />
+ <plugin id="org.jboss.tools.modeshape.rest.ui.bot.test" download-size="0" install-size="0" version="0.0.0" />
+ <plugin id="org.jboss.tools.seam.ui.bot.test" download-size="0" install-size="0" version="0.0.0" />
+ <plugin id="org.jboss.tools.smooks.ui.bot.test" download-size="0" install-size="0" version="0.0.0" />
+ <plugin id="org.jboss.tools.struts.ui.bot.test" download-size="0" install-size="0" version="0.0.0" />
+ <plugin id="org.jboss.tools.vpe.ui.bot.test" download-size="0" install-size="0" version="0.0.0" />
+ <plugin id="org.jboss.tools.ws.ui.bot.test" download-size="0" install-size="0" version="0.0.0" />
+
+</feature>
Added: trunk/bot.tests/features/org.jboss.tools.bot.test.feature/pom.xml
===================================================================
--- trunk/bot.tests/features/org.jboss.tools.bot.test.feature/pom.xml (rev 0)
+++ trunk/bot.tests/features/org.jboss.tools.bot.test.feature/pom.xml 2011-04-11 22:19:42 UTC (rev 30495)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>org.jboss.tools.parent.pom</artifactId>
+ <version>0.0.2-SNAPSHOT</version>
+ </parent>
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>org.jboss.tools.bot.test.feature</artifactId>
+ <version>3.1.0-SNAPSHOT</version>
+ <packaging>eclipse-feature</packaging>
+</project>
\ No newline at end of file
Added: trunk/bot.tests/features/pom.xml
===================================================================
--- trunk/bot.tests/features/pom.xml (rev 0)
+++ trunk/bot.tests/features/pom.xml 2011-04-11 22:19:42 UTC (rev 30495)
@@ -0,0 +1,12 @@
+<project
+ xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>org.jboss.tools.tests.features</artifactId>
+ <name>org.jboss.tools.tests.features</name>
+ <version>0.0.1-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <modules>
+ <module>org.jboss.tools.bot.test.feature</module>
+ </modules>
+</project>
Added: trunk/bot.tests/plugins/.gitignore
===================================================================
--- trunk/bot.tests/plugins/.gitignore (rev 0)
+++ trunk/bot.tests/plugins/.gitignore 2011-04-11 22:19:42 UTC (rev 30495)
@@ -0,0 +1,2 @@
+.project
+.settings/
Added: trunk/bot.tests/plugins/pom.xml
===================================================================
--- trunk/bot.tests/plugins/pom.xml (rev 0)
+++ trunk/bot.tests/plugins/pom.xml 2011-04-11 22:19:42 UTC (rev 30495)
@@ -0,0 +1,12 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>org.jboss.tools.tests.plugins</artifactId>
+ <name>org.jboss.tools.tests.plugins</name>
+ <version>0.0.1-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <modules>
+ <!-- no plugins yet -->
+ </modules>
+</project>
Added: trunk/bot.tests/pom.xml
===================================================================
--- trunk/bot.tests/pom.xml (rev 0)
+++ trunk/bot.tests/pom.xml 2011-04-11 22:19:42 UTC (rev 30495)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>org.jboss.tools.parent.pom</artifactId>
+ <version>0.0.2-SNAPSHOT</version>
+ </parent>
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>org.jboss.tools.bot.tests.all</artifactId>
+ <name>org.jboss.tools.bot.tests.all</name>
+ <version>0.0.1-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <modules>
+ <module>plugins</module>
+ <module>features</module>
+ <module>site</module>
+ </modules>
+</project>
\ No newline at end of file
Added: trunk/bot.tests/site/.gitignore
===================================================================
--- trunk/bot.tests/site/.gitignore (rev 0)
+++ trunk/bot.tests/site/.gitignore 2011-04-11 22:19:42 UTC (rev 30495)
@@ -0,0 +1,4 @@
+.settings/
+.project
+target/
+.classpath
Added: trunk/bot.tests/site/pom.xml
===================================================================
--- trunk/bot.tests/site/pom.xml (rev 0)
+++ trunk/bot.tests/site/pom.xml 2011-04-11 22:19:42 UTC (rev 30495)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>org.jboss.tools.parent.pom</artifactId>
+ <version>0.0.2-SNAPSHOT</version>
+ </parent>
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>org.jboss.tools.bot.tests.site</artifactId>
+ <name>org.jboss.tools.bot.tests.site</name>
+ <version>0.0.1-SNAPSHOT</version>
+ <packaging>eclipse-update-site</packaging>
+</project>
\ No newline at end of file
Added: trunk/bot.tests/site/site.xml
===================================================================
--- trunk/bot.tests/site/site.xml (rev 0)
+++ trunk/bot.tests/site/site.xml 2011-04-11 22:19:42 UTC (rev 30495)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<site>
+ <description>To install these features, point Eclipse at this site.</description>
+ <!-- JBoss Tools bot.tests Nightly Build Update Site -->
+ <category-def label="JBoss Tools bot.tests Nightly Build Update Site" name="JBoss Tools tests Nightly Build Update Site">
+ <description>JBoss Tools bot.tests Nightly Build Update Site: contains all features in this build.</description>
+ </category-def>
+ <feature url="features/org.jboss.tools.bot.test.feature_0.0.0.jar" id="org.jboss.tools.bot.test.feature" version="0.0.0">
+ <category name="JBoss Tools bot.tests Nightly Build Update Site"/>
+ </feature>
+
+</site>
13 years, 7 months
JBoss Tools SVN: r30494 - in trunk/tests: plugins and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2011-04-11 18:19:15 -0400 (Mon, 11 Apr 2011)
New Revision: 30494
Modified:
trunk/tests/features/org.jboss.tools.test.feature/feature.xml
trunk/tests/plugins/pom.xml
Log:
remove bot tests from tests/ module as they're all downstream from here and cannot be built here
Modified: trunk/tests/features/org.jboss.tools.test.feature/feature.xml
===================================================================
--- trunk/tests/features/org.jboss.tools.test.feature/feature.xml 2011-04-11 21:57:01 UTC (rev 30493)
+++ trunk/tests/features/org.jboss.tools.test.feature/feature.xml 2011-04-11 22:19:15 UTC (rev 30494)
@@ -46,110 +46,4 @@
install-size="0"
version="0.0.0"/>
-
- <!-- SWTBot Tests -->
-
- <plugin
- id="org.jboss.tools.bpel.ui.bot.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.bpmn.ui.bot.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.cdi.bot.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.deltacloud.ui.bot.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.drools.ui.bot.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.esb.ui.bot.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.hibernate.ui.bot.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.jbpm.ui.bot.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.jsf.ui.bot.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.jst.ui.bot.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.maven.ui.bot.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.modeshape.rest.ui.bot.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.seam.ui.bot.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.smooks.ui.bot.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.struts.ui.bot.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.vpe.ui.bot.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.ws.ui.bot.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
-
</feature>
Modified: trunk/tests/plugins/pom.xml
===================================================================
--- trunk/tests/plugins/pom.xml 2011-04-11 21:57:01 UTC (rev 30493)
+++ trunk/tests/plugins/pom.xml 2011-04-11 22:19:15 UTC (rev 30494)
@@ -1,5 +1,5 @@
-<project
- xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.tools</groupId>
<artifactId>org.jboss.tools.tests.plugins</artifactId>
@@ -7,5 +7,8 @@
<version>0.0.1-SNAPSHOT</version>
<packaging>pom</packaging>
<modules>
- <module>org.jboss.tools.tests</module><module>org.jboss.tools.ui.bot.ext</module><module>org.jboss.tools.ui.bot.ext.test</module></modules>
+ <module>org.jboss.tools.tests</module>
+ <module>org.jboss.tools.ui.bot.ext</module>
+ <module>org.jboss.tools.ui.bot.ext.test</module>
+ </modules>
</project>
13 years, 7 months
JBoss Tools SVN: r30493 - in trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi: core/extension/feature and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2011-04-11 17:57:01 -0400 (Mon, 11 Apr 2011)
New Revision: 30493
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreBuilder.java
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/extension/feature/IBuildParticipantFeature.java
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/ClassBean.java
Log:
JBIDE-8712
https://issues.jboss.org/browse/JBIDE-8712
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreBuilder.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreBuilder.java 2011-04-11 21:55:54 UTC (rev 30492)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreBuilder.java 2011-04-11 21:57:01 UTC (rev 30493)
@@ -219,7 +219,7 @@
rv.incremental = false;
getProject().accept(rv);
FileSet fs = rv.fileSet;
- builderDelegate.build(fs, getCDICoreNature());
+ invokeBuilderDelegates(fs, getCDICoreNature());
} catch (CoreException e) {
CDICorePlugin.getDefault().logError(e);
@@ -233,7 +233,7 @@
delta.accept(new SampleDeltaVisitor());
FileSet fs = rv.fileSet;
// fs.getPackages().
- builderDelegate.build(fs, getCDICoreNature());
+ invokeBuilderDelegates(fs, getCDICoreNature());
}
protected void buildJars(Map<String, XModelObject> newJars) throws CoreException {
@@ -274,9 +274,14 @@
for (IBuildParticipantFeature p: buildParticipants) p.visitJar(path, root, beansXML);
}
addBasicTypes(fileSet);
- builderDelegate.build(fileSet, getCDICoreNature());
+ invokeBuilderDelegates(fileSet, getCDICoreNature());
}
+ void invokeBuilderDelegates(FileSet fileSet, CDICoreNature n) {
+ builderDelegate.build(fileSet, n);
+ for (IBuildParticipantFeature p: buildParticipants) p.buildDefinitions(fileSet);
+ }
+
void addBasicTypes(FileSet fs) throws CoreException {
IJavaProject jp = EclipseResourceUtil.getJavaProject(getProject());
if(jp == null) return;
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/extension/feature/IBuildParticipantFeature.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/extension/feature/IBuildParticipantFeature.java 2011-04-11 21:55:54 UTC (rev 30492)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/extension/feature/IBuildParticipantFeature.java 2011-04-11 21:57:01 UTC (rev 30493)
@@ -15,6 +15,7 @@
import org.eclipse.jdt.core.IPackageFragmentRoot;
import org.jboss.tools.cdi.core.CDICoreNature;
import org.jboss.tools.cdi.core.extension.IDefinitionContextExtension;
+import org.jboss.tools.cdi.internal.core.scanner.FileSet;
import org.jboss.tools.common.model.XModelObject;
/**
@@ -72,6 +73,14 @@
public void buildDefinitions();
/**
+ * Build specific models for default bean sources.
+ * That may allow to go without implementing visitor methods
+ *
+ * @param fileSet
+ */
+ public void buildDefinitions(FileSet fileSet);
+
+ /**
* Builds CDI artifacts by definitions and already existing CDI model.
*
* This method corresponds to AfterBeanDiscovery event.
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/ClassBean.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/ClassBean.java 2011-04-11 21:55:54 UTC (rev 30492)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/ClassBean.java 2011-04-11 21:57:01 UTC (rev 30493)
@@ -39,6 +39,7 @@
import org.jboss.tools.cdi.core.IStereotypeDeclaration;
import org.jboss.tools.cdi.core.ITypeDeclaration;
import org.jboss.tools.cdi.internal.core.impl.definition.AbstractMemberDefinition;
+import org.jboss.tools.cdi.internal.core.impl.definition.AbstractTypeDefinition;
import org.jboss.tools.cdi.internal.core.impl.definition.FieldDefinition;
import org.jboss.tools.cdi.internal.core.impl.definition.MethodDefinition;
import org.jboss.tools.cdi.internal.core.impl.definition.TypeDefinition;
@@ -315,7 +316,7 @@
AnnotationDeclaration named = findNamedAnnotation();
if(named == null) return null;
- String name = ((TypeDefinition)definition).getType().getElementName();
+ String name = ((AbstractTypeDefinition)definition).getType().getElementName();
if(name.length() > 0) {
name = name.substring(0, 1).toLowerCase() + name.substring(1);
}
13 years, 7 months
JBoss Tools SVN: r30492 - trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2011-04-11 17:55:54 -0400 (Mon, 11 Apr 2011)
New Revision: 30492
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/CDISeamConfigExtension.java
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/ConfigDefinitionContext.java
Log:
JBIDE-8712
https://issues.jboss.org/browse/JBIDE-8712
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/CDISeamConfigExtension.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/CDISeamConfigExtension.java 2011-04-11 21:54:00 UTC (rev 30491)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/CDISeamConfigExtension.java 2011-04-11 21:55:54 UTC (rev 30492)
@@ -22,6 +22,7 @@
import org.jboss.tools.cdi.core.extension.ICDIExtension;
import org.jboss.tools.cdi.core.extension.IDefinitionContextExtension;
import org.jboss.tools.cdi.core.extension.feature.IBuildParticipantFeature;
+import org.jboss.tools.cdi.internal.core.scanner.FileSet;
import org.jboss.tools.cdi.seam.config.core.definition.SeamBeansDefinition;
import org.jboss.tools.cdi.seam.config.core.scanner.ConfigFileSet;
import org.jboss.tools.cdi.seam.config.core.scanner.SeamDefinitionBuilder;
@@ -92,15 +93,19 @@
document.set(text);
SeamBeansDefinition def = builder.createDefinition(document, project);
if(isSeamBeans) {
- context.addSeamBeanXML(p, def);
+ context.getWorkingCopy().addSeamBeanXML(p, def);
} else {
- context.addBeanXML(p, def);
+ context.getWorkingCopy().addBeanXML(p, def);
}
}
}
//TODO
}
+ public void buildDefinitions(FileSet fileSet) {
+ //nothing to do
+ }
+
public void buildBeans() {
//TODO
}
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/ConfigDefinitionContext.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/ConfigDefinitionContext.java 2011-04-11 21:54:00 UTC (rev 30491)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/ConfigDefinitionContext.java 2011-04-11 21:55:54 UTC (rev 30492)
@@ -64,6 +64,7 @@
beanXMLs = workingCopy.beanXMLs;
seambeanXMLs = workingCopy.seambeanXMLs;
+ workingCopy = null;
}
public void clean() {
@@ -92,7 +93,7 @@
return root;
}
- public IDefinitionContextExtension getWorkingCopy() {
+ public ConfigDefinitionContext getWorkingCopy() {
if(original != null) {
return this;
}
13 years, 7 months