JBoss Tools SVN: r9145 - in trunk/documentation/movies: index and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: smukhina
Date: 2008-07-15 09:51:27 -0400 (Tue, 15 Jul 2008)
New Revision: 9145
Added:
trunk/documentation/movies/index/
trunk/documentation/movies/index/en/
trunk/documentation/movies/index/en/images/
trunk/documentation/movies/index/en/images/favicon.ico
trunk/documentation/movies/index/en/master.xml
trunk/documentation/movies/index/pom.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-348
index page for movies
Added: trunk/documentation/movies/index/en/images/favicon.ico
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/movies/index/en/images/favicon.ico
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/movies/index/en/master.xml
===================================================================
--- trunk/documentation/movies/index/en/master.xml (rev 0)
+++ trunk/documentation/movies/index/en/master.xml 2008-07-15 13:51:27 UTC (rev 9145)
@@ -0,0 +1,114 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3CR3//EN"
+"http://www.oasis-open.org/docbook/xml/4.3CR3/docbookx.dtd">
+<book>
+ <bookinfo>
+ <title>JBoss Tools Movies</title>
+ <copyright>
+ <year>2007</year>
+ <year>2008</year>
+ <holder>JBoss, a division of Red Hat Inc.</holder>
+ </copyright>
+ </bookinfo>
+ <index>
+ <title/>
+ <indexentry>
+ <primaryie>
+ <ulink url="../../../../../../create_console_config/create_console_config.htm">Creating Console Configuration</ulink>
+ </primaryie>
+ </indexentry>
+
+ <indexentry>
+ <primaryie>
+ <ulink url="../../../../../../cust_tag_lib_to_pallete/cust_tag_lib_to_pallete.htm">Importing Custom Tag Library to Pallete</ulink>
+ </primaryie>
+ </indexentry>
+
+ <!--indexentry>
+ <primaryie>Visual Web Tools Reference Guide <ulink url="en/jsf/html/index.html"
+ >(html)</ulink>
+ <ulink url="en/jsf/html_single/index.html">(html single)</ulink>
+ <ulink url="en/jsf/pdf/Visual_Web_Tools_Reference_Guide.pdf">(pdf)</ulink>
+ </primaryie>
+ </indexentry>
+
+ <indexentry>
+ <primaryie>JBoss Server Manager Reference Guide <ulink url="en/as/html/index.html"
+ >(html)</ulink>
+ <ulink url="en/as/html_single/index.html">(html single)</ulink>
+ <ulink url="en/as/pdf/AS_Reference_Guide.pdf">(pdf)</ulink>
+ </primaryie>
+ </indexentry>
+
+ <indexentry>
+ <primaryie>jBPM Tools Reference Guide <ulink url="en/jbpm/html/index.html">(html)</ulink>
+ <ulink url="en/jbpm/html_single/index.html">(html single)</ulink>
+ <ulink url="en/jbpm/pdf/JBPM_Reference_Guide.pdf">(pdf)</ulink>
+ </primaryie>
+ </indexentry>
+
+ <indexentry>
+ <primaryie>Hibernate Tools Reference Guide
+ <ulink url="en/hibernatetools/html/index.html">(html)</ulink>
+ <ulink url="en/hibernatetools/html_single/index.html">(html single)</ulink>
+ <ulink url="en/hibernatetools/pdf/Hibernatetools_Reference_Guide.pdf"
+ >(pdf)</ulink>
+ </primaryie>
+ </indexentry>
+
+ <indexentry>
+ <primaryie>ESB Editor Reference Guide <ulink
+ url="en/esb_ref_guide/html/index.html">(html)</ulink>
+ <ulink url="en/esb_ref_guide/html_single/index.html">(html single)</ulink>
+ <ulink url="en/esb_ref_guide/pdf/Hibernatetools_Reference_Guide.pdf"
+ >(pdf)</ulink>
+ </primaryie>
+ </indexentry>
+
+ <indexentry>
+ <primaryie>JSF Tools Reference Guide <ulink
+ url="en/jsf_tools_ref_Guide/html/index.html">(html)</ulink>
+ <ulink url="en/jsf_tools_ref_guide/html_single/index.html">(html single)</ulink>
+ <ulink url="en/jsf_tools_ref_guide/pdf/JSF_Tools_Reference_Guide.pdf"
+ >(pdf)</ulink>
+ </primaryie>
+ </indexentry>
+
+ <indexentry>
+ <primaryie>JSF Tools Tutorial <ulink url="en/jsf_tools_tutorial/html/index.html"
+ >(html)</ulink>
+ <ulink url="en/jsf_tools_tutorial/html_single/index.html">(html single)</ulink>
+ <ulink url="en/jsf_tools_tutorial/pdf/JSF_Tools_Tutorial.pdf">(pdf)</ulink>
+ </primaryie>
+ </indexentry>
+
+ <indexentry>
+ <primaryie>Struts Tools Reference Guide <ulink
+ url="en/struts_tools_ref_guide/html/index.html">(html)</ulink>
+ <ulink url="en/struts_tools_ref_guide/html_single/index.html">(html single)</ulink>
+ <ulink url="en/struts_tools_ref_guide/pdf/Struts_Tools_Reference_Guide.pdf"
+ >(pdf)</ulink>
+ </primaryie>
+ </indexentry>
+
+ <indexentry>
+ <primaryie>Struts Tools Tutorial <ulink
+ url="en/struts_tools_tutorial/html/index.html">(html)</ulink>
+ <ulink url="en/struts_tools_tutorial/html_single/index.html">(html single)</ulink>
+ <ulink url="en/struts_tools_tutorial/pdf/Struts_Tools_Tutorial.pdf"
+ >(pdf)</ulink>
+ </primaryie>
+ </indexentry>
+
+
+ <indexentry>
+ <primaryie>Exadel Studio Migration Guide <ulink
+ url="en/Exadel-migration/html/index.html">(html)</ulink>
+ <ulink url="en/Exadel-migration/html_single/index.html">(html single)</ulink>
+ <ulink url="en/Exadel-migration/pdf/Exadel_Studio_Migration_Guide.pdf"
+ >(pdf)</ulink>
+ </primaryie>
+ </indexentry-->
+
+ </index>
+</book>
Added: trunk/documentation/movies/index/pom.xml
===================================================================
--- trunk/documentation/movies/index/pom.xml (rev 0)
+++ trunk/documentation/movies/index/pom.xml 2008-07-15 13:51:27 UTC (rev 9145)
@@ -0,0 +1,90 @@
+<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>all-guides-index</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>jdocbook</packaging>
+ <name>All_Userguides_index</name>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <version>2.1.0-200803311251UTC-MPJDOCBOOK-8</version>
+
+ <extensions>true</extensions>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jbossorg-docbook-xslt</artifactId>
+ <version>1.1.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jbossorg-jdocbook-style</artifactId>
+ <version>1.1.0</version>
+ <type>jdocbook-style</type>
+ </dependency>
+ </dependencies>
+
+ <configuration>
+ <sourceDocumentName>master.xml</sourceDocumentName>
+ <sourceDirectory>${pom.basedir}/en</sourceDirectory>
+ <imageResource>
+ <directory>${pom.basedir}/en</directory>
+ <includes>
+ <include>images/**/*</include>
+ </includes>
+ </imageResource>
+ <cssResource>
+ <directory>${pom.basedir}/${cssdir}</directory>
+ </cssResource>
+
+ <formats>
+ <format>
+ <formatName>html_single</formatName>
+ <stylesheetResource>file:${pom.basedir}/${stylesdir}/xslt/org/jboss/tools/xhtml-single.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ </formats>
+ <options>
+ <xincludeSupported>true</xincludeSupported>
+ <xmlTransformerType>saxon</xmlTransformerType>
+ <!-- needed for uri-resolvers; can be ommitted if using 'current' uri scheme -->
+ <!-- could also locate the docbook dependency and inspect its version... -->
+ <docbookVersion>1.72.0</docbookVersion>
+ </options>
+
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <distributionManagement>
+ <repository>
+ <!-- Copy the dist to the local checkout of the JBoss maven2 repo ${maven.repository.root} -->
+ <!-- It is anticipated that ${maven.repository.root} be set in user's settings.xml -->
+ <!-- todo : replace this with direct svn access once the svnkit providers are available -->
+ <id>repository.jboss.org</id>
+ <url>file://${maven.repository.root}</url>
+ </repository>
+ <snapshotRepository>
+ <id>snapshots.jboss.org</id>
+ <name>JBoss Snapshot Repository</name>
+ <url>dav:https://snapshots.jboss.org/maven2</url>
+ </snapshotRepository>
+ </distributionManagement>
+
+ <properties>
+ <stylesdir>../../jbosstools-docbook-xslt/src/main/resources/</stylesdir>
+ <cssdir>../../jbosstools-jdocbook-style/src/main/org/css/</cssdir>
+ <translation>en-US</translation>
+ </properties>
+
+</project>
16 years, 6 months
JBoss Tools SVN: r9144 - in trunk/documentation/guides: GettingStartedGuide/en/images and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: smukhina
Date: 2008-07-15 09:34:49 -0400 (Tue, 15 Jul 2008)
New Revision: 9144
Added:
trunk/documentation/guides/Exadel-migration/en/images/new.png
trunk/documentation/guides/Exadel-migration/en/images/updated.png
trunk/documentation/guides/GettingStartedGuide/en/images/new.png
trunk/documentation/guides/GettingStartedGuide/en/images/updated.png
Log:
http://jira.jboss.com/jira/browse/JBDS-320
markers for TOC area added
Added: trunk/documentation/guides/Exadel-migration/en/images/new.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/guides/Exadel-migration/en/images/new.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/guides/Exadel-migration/en/images/updated.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/guides/Exadel-migration/en/images/updated.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/guides/GettingStartedGuide/en/images/new.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/guides/GettingStartedGuide/en/images/new.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/guides/GettingStartedGuide/en/images/updated.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/guides/GettingStartedGuide/en/images/updated.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
16 years, 6 months
JBoss Tools SVN: r9143 - trunk/documentation/movies/create_console_config.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2008-07-15 09:08:06 -0400 (Tue, 15 Jul 2008)
New Revision: 9143
Added:
trunk/documentation/movies/create_console_config/create_console_config.htm
trunk/documentation/movies/create_console_config/create_console_config.js
trunk/documentation/movies/create_console_config/create_console_config.swf
trunk/documentation/movies/create_console_config/create_console_config.wnk
Removed:
trunk/documentation/movies/create_console_config/1.htm
trunk/documentation/movies/create_console_config/1.js
trunk/documentation/movies/create_console_config/1.swf
trunk/documentation/movies/create_console_config/1.wnk
Log:
http://jira.jboss.com/jira/browse/JBDS-348 - renaming demo files
Deleted: trunk/documentation/movies/create_console_config/1.htm
===================================================================
--- trunk/documentation/movies/create_console_config/1.htm 2008-07-15 12:45:29 UTC (rev 9142)
+++ trunk/documentation/movies/create_console_config/1.htm 2008-07-15 13:08:06 UTC (rev 9143)
@@ -1,26 +0,0 @@
-<HTML>
-<head>
-<link rel="stylesheet" href="../resources/tools.css" type="text/css"/>
-<link xmlns="" rel="shortcut icon" type="image/vnd.microsoft.icon" href="../resources/images/favicon.ico"/>
-</head>
-
-<BODY>
-<div class="book">
-<p id="title"><a href="http://www.jboss.org" class="site_href">
-<strong>JBoss.org</strong></a><a href="http://docs.jboss.org/" class="doc_href">
-<strong >Community Demos</strong></a></p>
-
-<center><OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="825" HEIGHT="633" CODEBASE="http://active.macromedia.com/flash5/cabs/swflash.cab#version=7,0,0,0">
-<PARAM NAME=movie VALUE="1.swf">
-<PARAM NAME=play VALUE=true>
-<PARAM NAME=loop VALUE=false>
-<PARAM NAME=wmode VALUE=transparent>
-<PARAM NAME=quality VALUE=low>
-<EMBED SRC="1.swf" WIDTH=825 HEIGHT=633 quality=low loop=false wmode=transparent TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=Sh...">
-</EMBED>
-</OBJECT></center>
-
-</div>
-<SCRIPT src='1.js'></script>
-</BODY>
-</HTML>
Deleted: trunk/documentation/movies/create_console_config/1.js
===================================================================
--- trunk/documentation/movies/create_console_config/1.js 2008-07-15 12:45:29 UTC (rev 9142)
+++ trunk/documentation/movies/create_console_config/1.js 2008-07-15 13:08:06 UTC (rev 9143)
@@ -1,3 +0,0 @@
-obj=document.getElementsByTagName('object');
-for (var i=0; i<obj.length; ++i)
- obj[i].outerHTML=obj[i].outerHTML;
Deleted: trunk/documentation/movies/create_console_config/1.swf
===================================================================
(Binary files differ)
Deleted: trunk/documentation/movies/create_console_config/1.wnk
===================================================================
(Binary files differ)
Added: trunk/documentation/movies/create_console_config/create_console_config.htm
===================================================================
--- trunk/documentation/movies/create_console_config/create_console_config.htm (rev 0)
+++ trunk/documentation/movies/create_console_config/create_console_config.htm 2008-07-15 13:08:06 UTC (rev 9143)
@@ -0,0 +1,26 @@
+<HTML>
+<head>
+<link rel="stylesheet" href="../resources/tools.css" type="text/css"/>
+<link xmlns="" rel="shortcut icon" type="image/vnd.microsoft.icon" href="../resources/images/favicon.ico"/>
+</head>
+
+<BODY>
+<div class="book">
+<p id="title"><a href="http://www.jboss.org" class="site_href">
+<strong>JBoss.org</strong></a><a href="http://docs.jboss.org/" class="doc_href">
+<strong >Community Demos</strong></a></p>
+
+<center><OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="825" HEIGHT="633" CODEBASE="http://active.macromedia.com/flash5/cabs/swflash.cab#version=7,0,0,0">
+<PARAM NAME=movie VALUE="create_console_config.swf">
+<PARAM NAME=play VALUE=true>
+<PARAM NAME=loop VALUE=false>
+<PARAM NAME=wmode VALUE=transparent>
+<PARAM NAME=quality VALUE=low>
+<EMBED SRC="create_console_config.swf" WIDTH=825 HEIGHT=633 quality=low loop=false wmode=transparent TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=Sh...">
+</EMBED>
+</OBJECT></center>
+
+</div>
+<SCRIPT src='create_console_config.js'></script>
+</BODY>
+</HTML>
Added: trunk/documentation/movies/create_console_config/create_console_config.js
===================================================================
--- trunk/documentation/movies/create_console_config/create_console_config.js (rev 0)
+++ trunk/documentation/movies/create_console_config/create_console_config.js 2008-07-15 13:08:06 UTC (rev 9143)
@@ -0,0 +1,3 @@
+obj=document.getElementsByTagName('object');
+for (var i=0; i<obj.length; ++i)
+ obj[i].outerHTML=obj[i].outerHTML;
Added: trunk/documentation/movies/create_console_config/create_console_config.swf
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/movies/create_console_config/create_console_config.swf
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/movies/create_console_config/create_console_config.wnk
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/movies/create_console_config/create_console_config.wnk
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
16 years, 6 months
JBoss Tools SVN: r9142 - in trunk/documentation/movies: create_console_config and 4 other directories.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2008-07-15 08:45:29 -0400 (Tue, 15 Jul 2008)
New Revision: 9142
Added:
trunk/documentation/movies/create_console_config/
trunk/documentation/movies/create_console_config/1.htm
trunk/documentation/movies/create_console_config/1.js
trunk/documentation/movies/create_console_config/1.swf
trunk/documentation/movies/create_console_config/1.wnk
trunk/documentation/movies/cust_tag_lib_to_pallete/
trunk/documentation/movies/cust_tag_lib_to_pallete/cust_tag_lib_to_pallete.htm
trunk/documentation/movies/cust_tag_lib_to_pallete/cust_tag_lib_to_pallete.js
trunk/documentation/movies/cust_tag_lib_to_pallete/cust_tag_lib_to_pallete.swf
trunk/documentation/movies/cust_tag_lib_to_pallete/cust_tag_lib_to_pallete.wnk
trunk/documentation/movies/resources/
trunk/documentation/movies/resources/images/
trunk/documentation/movies/resources/images/community/
trunk/documentation/movies/resources/images/community/bkg_gradient.gif
trunk/documentation/movies/resources/images/community/community_demos.png
trunk/documentation/movies/resources/images/community/jbossorglogo.png
trunk/documentation/movies/resources/images/community/watermark-alpha1.png
trunk/documentation/movies/resources/images/community/watermark-alpha2.png
trunk/documentation/movies/resources/images/community/watermark-beta1.png
trunk/documentation/movies/resources/images/community/watermark-beta2.png
trunk/documentation/movies/resources/images/community/watermark-pre-release-candidate.png
trunk/documentation/movies/resources/images/community/watermark-release-candidate.png
trunk/documentation/movies/resources/images/favicon.ico
trunk/documentation/movies/resources/tools.css
Log:
http://jira.jboss.com/jira/browse/JBDS-348 - adding the folder 'resources' with styles for demos; adding 'create_console_config' and 'cust_tag_lib_to_pallete' demos
Added: trunk/documentation/movies/create_console_config/1.htm
===================================================================
--- trunk/documentation/movies/create_console_config/1.htm (rev 0)
+++ trunk/documentation/movies/create_console_config/1.htm 2008-07-15 12:45:29 UTC (rev 9142)
@@ -0,0 +1,26 @@
+<HTML>
+<head>
+<link rel="stylesheet" href="../resources/tools.css" type="text/css"/>
+<link xmlns="" rel="shortcut icon" type="image/vnd.microsoft.icon" href="../resources/images/favicon.ico"/>
+</head>
+
+<BODY>
+<div class="book">
+<p id="title"><a href="http://www.jboss.org" class="site_href">
+<strong>JBoss.org</strong></a><a href="http://docs.jboss.org/" class="doc_href">
+<strong >Community Demos</strong></a></p>
+
+<center><OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="825" HEIGHT="633" CODEBASE="http://active.macromedia.com/flash5/cabs/swflash.cab#version=7,0,0,0">
+<PARAM NAME=movie VALUE="1.swf">
+<PARAM NAME=play VALUE=true>
+<PARAM NAME=loop VALUE=false>
+<PARAM NAME=wmode VALUE=transparent>
+<PARAM NAME=quality VALUE=low>
+<EMBED SRC="1.swf" WIDTH=825 HEIGHT=633 quality=low loop=false wmode=transparent TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=Sh...">
+</EMBED>
+</OBJECT></center>
+
+</div>
+<SCRIPT src='1.js'></script>
+</BODY>
+</HTML>
Added: trunk/documentation/movies/create_console_config/1.js
===================================================================
--- trunk/documentation/movies/create_console_config/1.js (rev 0)
+++ trunk/documentation/movies/create_console_config/1.js 2008-07-15 12:45:29 UTC (rev 9142)
@@ -0,0 +1,3 @@
+obj=document.getElementsByTagName('object');
+for (var i=0; i<obj.length; ++i)
+ obj[i].outerHTML=obj[i].outerHTML;
Added: trunk/documentation/movies/create_console_config/1.swf
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/movies/create_console_config/1.swf
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/movies/create_console_config/1.wnk
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/movies/create_console_config/1.wnk
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/movies/cust_tag_lib_to_pallete/cust_tag_lib_to_pallete.htm
===================================================================
--- trunk/documentation/movies/cust_tag_lib_to_pallete/cust_tag_lib_to_pallete.htm (rev 0)
+++ trunk/documentation/movies/cust_tag_lib_to_pallete/cust_tag_lib_to_pallete.htm 2008-07-15 12:45:29 UTC (rev 9142)
@@ -0,0 +1,26 @@
+<HTML>
+
+<head>
+<link rel="stylesheet" href="../resources/tools.css" type="text/css"/>
+<link xmlns="" rel="shortcut icon" type="image/vnd.microsoft.icon" href="../resources/images/favicon.ico"/>
+</head>
+
+<BODY>
+<div class="book">
+<p id="title"><a href="http://www.jboss.org" class="site_href">
+<strong>JBoss.org</strong></a><a href="http://docs.jboss.org/" class="doc_href">
+<strong >Community Demos</strong></a></p>
+
+<center><OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="898" HEIGHT="618" CODEBASE="http://active.macromedia.com/flash5/cabs/swflash.cab#version=7,0,0,0">
+<PARAM NAME=movie VALUE="cust_tag_lib_to_pallete.swf">
+<PARAM NAME=play VALUE=true>
+<PARAM NAME=loop VALUE=false>
+<PARAM NAME=wmode VALUE=transparent>
+<PARAM NAME=quality VALUE=low>
+<EMBED SRC="cust_tag_lib_to_pallete.swf" WIDTH=898 HEIGHT=618 quality=low loop=false wmode=transparent TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=Sh...">
+</EMBED>
+</OBJECT></center>
+</div>
+<SCRIPT src='cust_tag_lib_to_pallete.js'></script>
+</BODY>
+</HTML>
Added: trunk/documentation/movies/cust_tag_lib_to_pallete/cust_tag_lib_to_pallete.js
===================================================================
--- trunk/documentation/movies/cust_tag_lib_to_pallete/cust_tag_lib_to_pallete.js (rev 0)
+++ trunk/documentation/movies/cust_tag_lib_to_pallete/cust_tag_lib_to_pallete.js 2008-07-15 12:45:29 UTC (rev 9142)
@@ -0,0 +1,3 @@
+obj=document.getElementsByTagName('object');
+for (var i=0; i<obj.length; ++i)
+ obj[i].outerHTML=obj[i].outerHTML;
Added: trunk/documentation/movies/cust_tag_lib_to_pallete/cust_tag_lib_to_pallete.swf
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/movies/cust_tag_lib_to_pallete/cust_tag_lib_to_pallete.swf
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/movies/cust_tag_lib_to_pallete/cust_tag_lib_to_pallete.wnk
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/movies/cust_tag_lib_to_pallete/cust_tag_lib_to_pallete.wnk
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/movies/resources/images/community/bkg_gradient.gif
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/movies/resources/images/community/bkg_gradient.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/movies/resources/images/community/community_demos.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/movies/resources/images/community/community_demos.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/movies/resources/images/community/jbossorglogo.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/movies/resources/images/community/jbossorglogo.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/movies/resources/images/community/watermark-alpha1.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/movies/resources/images/community/watermark-alpha1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/movies/resources/images/community/watermark-alpha2.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/movies/resources/images/community/watermark-alpha2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/movies/resources/images/community/watermark-beta1.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/movies/resources/images/community/watermark-beta1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/movies/resources/images/community/watermark-beta2.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/movies/resources/images/community/watermark-beta2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/movies/resources/images/community/watermark-pre-release-candidate.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/movies/resources/images/community/watermark-pre-release-candidate.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/movies/resources/images/community/watermark-release-candidate.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/movies/resources/images/community/watermark-release-candidate.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/movies/resources/images/favicon.ico
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/movies/resources/images/favicon.ico
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/movies/resources/tools.css
===================================================================
--- trunk/documentation/movies/resources/tools.css (rev 0)
+++ trunk/documentation/movies/resources/tools.css 2008-07-15 12:45:29 UTC (rev 9142)
@@ -0,0 +1,42 @@
+
+/* -----Override jbossorg.css----- */
+
+body {
+ background-image:url(images/community/bkg_gradient.gif);
+ background-repeat:repeat-x;
+ text-align:center;
+ padding:0;
+ margin:0;
+ }
+
+div.book{
+ margin:0 auto;
+ padding:0em 2em;
+ line-height:150%;
+ text-align:justify;
+ width: 55em;
+ }
+
+#title {
+ text-align:justify;
+ width: 55em;
+ height:130px;
+ padding:0px;
+ margin:0px;
+}
+
+#title strong {display:none;}
+
+#title a.site_href {
+ display:block;
+ height:89px;
+ width:310px;
+ float:left;
+ background:url(images/community/jbossorglogo.png) top left no-repeat;
+}
+
+#title a.doc_href {
+ display:block;
+ height:89px;
+ background:transparent url(images/community/community_demos.png) top right no-repeat;
+}
\ No newline at end of file
16 years, 6 months
JBoss Tools SVN: r9141 - trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test.
by jbosstools-commits@lists.jboss.org
Author: estherbin
Date: 2008-07-15 05:18:36 -0400 (Tue, 15 Jul 2008)
New Revision: 9141
Modified:
trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/ElPreferencesTestCase.java
Log:
Write service for EL substitution for http://jira.jboss.com/jira/browse/JBIDE-2010 issue.
Modified: trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/ElPreferencesTestCase.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/ElPreferencesTestCase.java 2008-07-15 09:14:12 UTC (rev 9140)
+++ trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/ElPreferencesTestCase.java 2008-07-15 09:18:36 UTC (rev 9141)
@@ -7,20 +7,19 @@
import java.util.Map;
import java.util.Map.Entry;
-import org.eclipse.core.internal.resources.File;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.Path;
import org.jboss.tools.vpe.editor.css.ELReferenceList;
import org.jboss.tools.vpe.editor.css.ResourceReference;
import org.jboss.tools.vpe.editor.util.ElService;
import org.jboss.tools.vpe.ui.test.TestUtil;
import org.jboss.tools.vpe.ui.test.VpeTest;
-
-// TODO: Auto-generated Javadoc
/**
- * The Class ElPreferencesTestCase.
+ * <p>
+ * Test case for testing service {@link ElService}
+ * <p>
+ * See <a href="http://jira.jboss.com/jira/browse/JBIDE-2010">JBIDE-2010</a> issue
*/
public class ElPreferencesTestCase extends VpeTest {
@@ -78,7 +77,7 @@
ResourceReference[] entries = new ResourceReference[elValuesMap.size()];
int i = 0;
for (Entry<String, String> string : elValuesMap.entrySet()) {
-
+
entries[i] = new ResourceReference(string.getValue(), ResourceReference.PROJECT_SCOPE);
entries[i].setProperties(string.getKey());
i++;
@@ -93,9 +92,10 @@
* @param key the key
* @param value the value
* @param scope the scope
+ * @param entries the entries
*/
protected void setValues(ResourceReference[] entries) {
-
+
ELReferenceList.getInstance().setAllResources(file, entries);
}
@@ -138,4 +138,13 @@
assertEquals("Should be equals " + check, check, replacedValue);
}
+
+ /**
+ * Test replace not in set.
+ */
+ public void testReplaceNotInSet() {
+ String string1 = "#{requestScope}/smalle.gif";
+
+ assertEquals("Should be equals", string1, ElService.getInstance().replaceEl(file, string1));
+ }
}
16 years, 6 months
JBoss Tools SVN: r9140 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util.
by jbosstools-commits@lists.jboss.org
Author: estherbin
Date: 2008-07-15 05:14:12 -0400 (Tue, 15 Jul 2008)
New Revision: 9140
Added:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/ElService.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/IELService.java
Log:
Write service for EL substitution for http://jira.jboss.com/jira/browse/JBIDE-2010 issue.
Added: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/ElService.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/ElService.java (rev 0)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/ElService.java 2008-07-15 09:14:12 UTC (rev 9140)
@@ -0,0 +1,66 @@
+package org.jboss.tools.vpe.editor.util;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.runtime.Assert;
+import org.jboss.tools.vpe.editor.css.ELReferenceList;
+import org.jboss.tools.vpe.editor.css.ResourceReference;
+
+/**
+ * The {@link IELService} implementation.
+ *
+ * @author Eugeny Stherbin
+ */
+public final class ElService implements IELService {
+
+ /** The Constant INSTANCE. */
+ private static final ElService INSTANCE = new ElService();
+
+ /**
+ * Gets the singleton instance.
+ *
+ * @return the singleton instance
+ */
+ public static IELService getInstance(){
+ return INSTANCE;
+ }
+
+ /**
+ *
+ * @see IELService#getReplacedElValue(IFile, String)
+ */
+ public String replaceEl(IFile resourceFile, String resourceString) {
+ Assert.isNotNull(resourceString);
+ Assert.isNotNull(resourceFile);
+ String rst = resourceString;
+
+ final ResourceReference[] references = ELReferenceList.getInstance().getAllResources(resourceFile);
+
+ if((references!=null) && (references.length > 0)){
+ rst = replace(resourceString,references);
+ }
+ return rst;
+ }
+
+ /**
+ * Replace.
+ *
+ * @param resourceString the resource string
+ * @param references the references
+ *
+ * @return the string
+ */
+ private String replace(String resourceString, ResourceReference[] references) {
+ String result = resourceString;
+
+ for (ResourceReference rf : references) {
+ if (resourceString.contains(rf.getProperties())) {
+ result = result.replace(rf.getProperties(), rf.getLocation());
+ }
+ }
+ return result;
+ }
+
+
+
+
+}
Property changes on: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/ElService.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Added: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/IELService.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/IELService.java (rev 0)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/IELService.java 2008-07-15 09:14:12 UTC (rev 9140)
@@ -0,0 +1,30 @@
+
+
+package org.jboss.tools.vpe.editor.util;
+
+
+import org.eclipse.core.resources.IFile;
+
+
+/**
+ * The service that substitute El values in vpe source editor.
+ * For more details see issues
+ * http://jira.jboss.com/jira/browse/JBIDE-2010
+ * and
+ * http://jira.jboss.com/jira/browse/JBIDE-1410
+ *
+ * @author Eugeny Stherbin
+ */
+public interface IELService {
+
+ /**
+ * Return the {@link String} with substitued el values for given resource.
+ *
+ * @param resourceFile the resource file where resource
+ * @param resourceString the source string that will be substitute
+ *
+ * @return string where el values was substituted.
+ */
+ String replaceEl(IFile resourceFile, String resourceString);
+
+}
Property changes on: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/IELService.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
16 years, 6 months
JBoss Tools SVN: r9139 - in trunk/vpe/tests/org.jboss.tools.vpe.test: src/org/jboss/tools/vpe/test and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: estherbin
Date: 2008-07-15 05:14:06 -0400 (Tue, 15 Jul 2008)
New Revision: 9139
Added:
trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/ElPreferencesTestCase.java
Modified:
trunk/vpe/tests/org.jboss.tools.vpe.test/META-INF/MANIFEST.MF
trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/VpeAllTests.java
Log:
Write service for EL substitution for http://jira.jboss.com/jira/browse/JBIDE-2010 issue.
Modified: trunk/vpe/tests/org.jboss.tools.vpe.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.test/META-INF/MANIFEST.MF 2008-07-15 09:13:37 UTC (rev 9138)
+++ trunk/vpe/tests/org.jboss.tools.vpe.test/META-INF/MANIFEST.MF 2008-07-15 09:14:06 UTC (rev 9139)
@@ -10,6 +10,8 @@
org.junit,
org.jboss.tools.common,
org.jboss.tools.vpe,
+ org.jboss.tools.vpe.ui.test,
+ org.jboss.tools.jsf.vpe.jsf.test,
org.jboss.tools.tests;bundle-version="2.0.0",
org.jboss.tools.common.model.ui;bundle-version="2.0.0"
Eclipse-LazyStart: true
Added: trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/ElPreferencesTestCase.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/ElPreferencesTestCase.java (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/ElPreferencesTestCase.java 2008-07-15 09:14:06 UTC (rev 9139)
@@ -0,0 +1,141 @@
+
+
+package org.jboss.tools.vpe.test;
+
+
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Map.Entry;
+
+import org.eclipse.core.internal.resources.File;
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.Path;
+import org.jboss.tools.vpe.editor.css.ELReferenceList;
+import org.jboss.tools.vpe.editor.css.ResourceReference;
+import org.jboss.tools.vpe.editor.util.ElService;
+import org.jboss.tools.vpe.ui.test.TestUtil;
+import org.jboss.tools.vpe.ui.test.VpeTest;
+
+
+// TODO: Auto-generated Javadoc
+/**
+ * The Class ElPreferencesTestCase.
+ */
+public class ElPreferencesTestCase extends VpeTest {
+
+ /** The Constant KEY_3. */
+ private static final String KEY_3 = "#{facesContext.requestPath}";
+
+ /** The Constant KEY_2. */
+ private static final String KEY_2 = "#{beanA.property2}";
+
+ /** The Constant IMPORT_PROJECT_NAME. */
+ public static final String IMPORT_PROJECT_NAME = "jsfTest";
+
+ /** The Constant DIR_TEST_PAGE_NAME. */
+ private static final String DIR_TEST_PAGE_NAME = "JBIDE/2010/page.xhtml";
+
+ /**
+ * The Constructor.
+ *
+ * @param name the name
+ */
+ public ElPreferencesTestCase(String name) {
+ super(name);
+
+ }
+
+ /**
+ * The Constructor.
+ */
+ public ElPreferencesTestCase() {
+ super(ElPreferencesTestCase.class.getName());
+
+ }
+
+ /** The Constant KEY_1. */
+ private static final String KEY_1 = "#{beanA.property1}";
+
+ /** The Constant elValuesMap. */
+ protected static final Map<String, String> elValuesMap = new HashMap<String, String>();
+
+ /** The file. */
+ private IFile file;
+
+ /**
+ * Sets the up.
+ *
+ * @throws Exception the exception
+ */
+ @Override
+ protected void setUp() throws Exception {
+ super.setUp();
+ elValuesMap.put(KEY_1, "/path/image/path/to/image/");
+ elValuesMap.put(KEY_2, "/path2/");
+ elValuesMap.put(KEY_3, "/facesContext/");
+ file = (IFile) TestUtil.getComponentPath(DIR_TEST_PAGE_NAME, IMPORT_PROJECT_NAME);
+ ResourceReference[] entries = new ResourceReference[elValuesMap.size()];
+ int i = 0;
+ for (Entry<String, String> string : elValuesMap.entrySet()) {
+
+ entries[i] = new ResourceReference(string.getValue(), ResourceReference.PROJECT_SCOPE);
+ entries[i].setProperties(string.getKey());
+ i++;
+
+ setValues(entries);
+ }
+ }
+
+ /**
+ * Sets the values.
+ *
+ * @param key the key
+ * @param value the value
+ * @param scope the scope
+ */
+ protected void setValues(ResourceReference[] entries) {
+
+ ELReferenceList.getInstance().setAllResources(file, entries);
+ }
+
+ /**
+ * Tear down.
+ *
+ * @throws Exception the exception
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ super.tearDown();
+
+ }
+
+ /**
+ * Test replace attribute value.
+ *
+ * @throws CoreException the core exception
+ */
+ public void testReplaceAttributeValue() throws CoreException {
+ String string1 = "#{beanA.property1}/images/smalle.gif";
+ String replacedValue = ElService.getInstance().replaceEl(file, string1);
+
+ assertEquals("Should be equals " + elValuesMap.get(KEY_1) + "/images/smalle.gif", replacedValue, elValuesMap.get(KEY_1)
+ + "/images/smalle.gif");
+
+ }
+
+ /**
+ * Test replace attribute value2.
+ *
+ * @throws CoreException the core exception
+ */
+ public void testReplaceAttributeValue2() throws CoreException {
+ String string1 = "#{beanA.property1}/images/#{beanA.property2}/path2/#{facesContext.requestPath}/smalle.gif";
+
+ final String replacedValue = ElService.getInstance().replaceEl(file, string1);
+ final String check = elValuesMap.get(KEY_1) + "/images/" + elValuesMap.get(KEY_2) + "/path2/" + elValuesMap.get(KEY_3)
+ + "/smalle.gif";
+ assertEquals("Should be equals " + check, check, replacedValue);
+
+ }
+}
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/ElPreferencesTestCase.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Modified: trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/VpeAllTests.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/VpeAllTests.java 2008-07-15 09:13:37 UTC (rev 9138)
+++ trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/VpeAllTests.java 2008-07-15 09:14:06 UTC (rev 9139)
@@ -10,13 +10,20 @@
******************************************************************************/
package org.jboss.tools.vpe.test;
-import org.jboss.tools.vpe.editor.preferences.VpeEditorPreferencesPageTest;
-import org.jboss.tools.vpe.editor.template.VpeTemplateManagerTest;
+import java.util.ArrayList;
+import java.util.List;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
+import org.jboss.tools.jsf.vpe.jsf.test.JsfComponentTest;
+import org.jboss.tools.jsf.vpe.jsf.test.JsfTestPlugin;
+import org.jboss.tools.vpe.editor.preferences.VpeEditorPreferencesPageTest;
+import org.jboss.tools.vpe.editor.template.VpeTemplateManagerTest;
+import org.jboss.tools.vpe.ui.test.VpeTestSetup;
+import org.jboss.tools.vpe.ui.test.beans.ImportBean;
+
/**
* Class created for run tests for org.jboss.tools.vpe plugin.
*
@@ -33,7 +40,15 @@
suite.addTestSuite(TemplatesExpressionParsingTest.class);
suite.addTestSuite(VpeEditorPreferencesPageTest.class);
suite.addTestSuite(VpeTemplateManagerTest.class);
- // $JUnit-END$
- return suite;
+ suite.addTestSuite(ElPreferencesTestCase.class);
+
+
+ List<ImportBean> projectToImport = new ArrayList<ImportBean>();
+ ImportBean importBean = new ImportBean();
+ importBean.setImportProjectName(JsfComponentTest.IMPORT_PROJECT_NAME);
+ importBean.setImportProjectPath(JsfTestPlugin.getPluginResourcePath());
+ projectToImport.add(importBean);
+
+ return new VpeTestSetup(suite, projectToImport);
}
}
16 years, 6 months
JBoss Tools SVN: r9138 - in trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test: resources/jsfTest/WebContent/pages/JBIDE and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: estherbin
Date: 2008-07-15 05:13:37 -0400 (Tue, 15 Jul 2008)
New Revision: 9138
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/2010/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/2010/page.xhtml
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/META-INF/MANIFEST.MF
Log:
Write service for EL substitution for http://jira.jboss.com/jira/browse/JBIDE-2010 issue.
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/META-INF/MANIFEST.MF 2008-07-15 05:25:31 UTC (rev 9137)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/META-INF/MANIFEST.MF 2008-07-15 09:13:37 UTC (rev 9138)
@@ -20,3 +20,5 @@
org.eclipse.jface.text
Eclipse-LazyStart: true
Bundle-ClassPath: jsf-test.jar
+Export-Package: org.jboss.tools.jsf.vpe.jsf.test,
+ org.jboss.tools.jsf.vpe.jsf.test.perfomance
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/2010/page.xhtml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/2010/page.xhtml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/2010/page.xhtml 2008-07-15 09:13:37 UTC (rev 9138)
@@ -0,0 +1,11 @@
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<html>
+<head>
+</head>
+<body>
+<f:view>
+ <h:outputText value="Hello world"
+</f:view>
+</body>
+</html>
\ No newline at end of file
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/2010/page.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/html
Name: svn:eol-style
+ native
16 years, 6 months
JBoss Tools SVN: r9137 - in trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui: preferences and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2008-07-15 01:25:31 -0400 (Tue, 15 Jul 2008)
New Revision: 9137
Added:
trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/dialogs/SelectVariableDialog.java
trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/providers/VariablesContentProvider.java
trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/providers/VariablesLabelProvider.java
Modified:
trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/preferences/VariablesPreferencePage.java
trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/util/composites/ArchiveSourceDestinationComposite.java
Log:
JBIDE-1406
Changes to variables UI dialog
Added: trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/dialogs/SelectVariableDialog.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/dialogs/SelectVariableDialog.java (rev 0)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/dialogs/SelectVariableDialog.java 2008-07-15 05:25:31 UTC (rev 9137)
@@ -0,0 +1,91 @@
+package org.jboss.ide.eclipse.archives.ui.dialogs;
+
+import java.util.Comparator;
+
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.dialogs.IDialogConstants;
+import org.eclipse.jface.viewers.ISelectionChangedListener;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.jface.viewers.SelectionChangedEvent;
+import org.eclipse.jface.viewers.TreeViewer;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.FormAttachment;
+import org.eclipse.swt.layout.FormData;
+import org.eclipse.swt.layout.FormLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Shell;
+import org.jboss.ide.eclipse.archives.core.model.IVariableProvider;
+import org.jboss.ide.eclipse.archives.ui.preferences.VariablesPreferencePage.Wrapped;
+import org.jboss.ide.eclipse.archives.ui.providers.VariablesContentProvider;
+import org.jboss.ide.eclipse.archives.ui.providers.VariablesLabelProvider;
+
+public class SelectVariableDialog extends Dialog {
+ private TreeViewer viewer;
+ private Comparator<IVariableProvider> comparator;
+ private VariablesContentProvider cProvider;
+ private VariablesLabelProvider lProvider;
+ private Object selected;
+ public SelectVariableDialog(Shell parentShell) {
+ super(parentShell);
+ }
+
+ protected void configureShell(Shell shell) {
+ super.configureShell(shell);
+ shell.setText("Title");
+ }
+ protected Control createButtonBar(Composite parent) {
+ Control bar = super.createButtonBar(parent);
+ validateFields();
+ return bar;
+ }
+ protected Control createDialogArea(Composite parent) {
+ Composite master = new Composite(parent, SWT.NONE);
+ master.setLayout(new FormLayout());
+ viewer = new TreeViewer(master, SWT.SINGLE | SWT.BORDER);
+ comparator = new Comparator<IVariableProvider>() {
+ public int compare(IVariableProvider o1, IVariableProvider o2) {
+ if( o1.getEnabled() != o2.getEnabled())
+ return o1.getEnabled() ? -1 : 1;
+
+ // now weights
+ if( o1.getWeight() != o2.getWeight() )
+ return o1.getWeight() > o2.getWeight() ? 1 : -1;
+ return 0;
+ }
+ };
+ cProvider = new VariablesContentProvider(comparator);
+ lProvider = new VariablesLabelProvider(null);
+ viewer.setContentProvider(cProvider);
+ viewer.setLabelProvider(lProvider);
+ viewer.setInput("");
+ FormData viewerData = new FormData();
+ viewerData.left = new FormAttachment(0,0);
+ viewerData.right = new FormAttachment(0,250);
+ viewerData.top = new FormAttachment(0,0);
+ viewerData.bottom = new FormAttachment(0,400);
+ viewer.getTree().setLayoutData(viewerData);
+ viewer.addSelectionChangedListener(new ISelectionChangedListener(){
+ public void selectionChanged(SelectionChangedEvent event) {
+ selectionChanged2();
+ validateFields();
+ }});
+ return viewer.getTree();
+ }
+
+ protected void selectionChanged2() {
+ IStructuredSelection sel = (IStructuredSelection)viewer.getSelection();
+ selected = sel.getFirstElement();
+ }
+ public void validateFields() {
+ boolean valid = false;
+ if( selected != null && selected instanceof Wrapped && ((Wrapped)selected).getName() != null)
+ valid = true;
+ getButton(IDialogConstants.OK_ID).setEnabled(valid);
+ }
+ public String getSelectedVarName() {
+ if( selected != null && selected instanceof Wrapped && ((Wrapped)selected).getName() != null)
+ return ((Wrapped)selected).getName();
+ return null;
+ }
+}
Modified: trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/preferences/VariablesPreferencePage.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/preferences/VariablesPreferencePage.java 2008-07-14 22:50:33 UTC (rev 9136)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/preferences/VariablesPreferencePage.java 2008-07-15 05:25:31 UTC (rev 9137)
@@ -1,29 +1,17 @@
package org.jboss.ide.eclipse.archives.ui.preferences;
-import java.util.Arrays;
-import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
-import java.util.Iterator;
import java.util.List;
-import org.eclipse.jdt.internal.ui.JavaPlugin;
-import org.eclipse.jdt.internal.ui.JavaPluginImages;
-import org.eclipse.jface.viewers.BaseLabelProvider;
-import org.eclipse.jface.viewers.DecorationOverlayIcon;
-import org.eclipse.jface.viewers.IDecoration;
-import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.jface.viewers.ISelectionChangedListener;
import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.ITreeContentProvider;
import org.eclipse.jface.viewers.SelectionChangedEvent;
import org.eclipse.jface.viewers.TreeViewer;
-import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jface.window.Window;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
-import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.layout.FormAttachment;
import org.eclipse.swt.layout.FormData;
import org.eclipse.swt.layout.FormLayout;
@@ -33,10 +21,8 @@
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Group;
-import org.eclipse.ui.ISharedImages;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;
-import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.dialogs.PropertyPage;
import org.jboss.ide.eclipse.archives.core.ArchivesCore;
import org.jboss.ide.eclipse.archives.core.model.IPreferenceManager;
@@ -47,6 +33,9 @@
import org.jboss.ide.eclipse.archives.ui.ArchivesSharedImages;
import org.jboss.ide.eclipse.archives.ui.ArchivesUIMessages;
import org.jboss.ide.eclipse.archives.ui.dialogs.ArchivesVariableDialog;
+import org.jboss.ide.eclipse.archives.ui.providers.VariablesContentProvider;
+import org.jboss.ide.eclipse.archives.ui.providers.VariablesLabelProvider;
+import org.jboss.ide.eclipse.archives.ui.providers.VariablesLabelProvider.IVariableEnablementChecker;
public class VariablesPreferencePage extends PropertyPage implements
IWorkbenchPreferencePage {
@@ -56,15 +45,33 @@
private Button add,edit,remove,moveUp,moveDown,enable,disable;
private HashMap<IVariableProvider, Integer> newWeights;
private HashMap<IVariableProvider, Boolean> newEnablement;
-
+ private Comparator<IVariableProvider> pageComparator;
+ private VariablesContentProvider cProvider;
+ private VariablesLabelProvider lProvider;
public VariablesPreferencePage() {
super();
setTitle(ArchivesUIMessages.ArchivesVariables);
setImageDescriptor(ArchivesSharedImages.getImageDescriptor(ArchivesSharedImages.IMG_PACKAGE));
newWeights = new HashMap<IVariableProvider, Integer>();
newEnablement = new HashMap<IVariableProvider, Boolean>();
+ pageComparator = createComparator();
}
+ protected Comparator<IVariableProvider> createComparator() {
+ Comparator<IVariableProvider> x = new Comparator<IVariableProvider>() {
+ public int compare(IVariableProvider o1, IVariableProvider o2) {
+ if( nowEnabled(o1) != nowEnabled(o2))
+ return nowEnabled(o1) ? -1 : 1;
+
+ // now weights
+ if( nowWeight(o1) != nowWeight(o2) )
+ return nowWeight(o1) > nowWeight(o2) ? 1 : -1;
+ return 0;
+ }
+ };
+ return x;
+ }
+
protected Control createContents(Composite parent) {
Composite main = new Composite(parent, SWT.NONE);
main.setLayout(new GridLayout(1, false));
@@ -90,8 +97,14 @@
fd.right = new FormAttachment(0,300);
fd.bottom = new FormAttachment(80,0);
variablesViewer.getTree().setLayoutData(fd);
- variablesViewer.setContentProvider(new VariablesContentProvider());
- variablesViewer.setLabelProvider(new VariablesLabelProvider());
+ cProvider = new VariablesContentProvider(pageComparator);
+ lProvider = new VariablesLabelProvider(new IVariableEnablementChecker() {
+ public boolean isEnabled(IVariableProvider element) {
+ return nowEnabled((IVariableProvider)element);
+ }
+ });
+ variablesViewer.setContentProvider(cProvider);
+ variablesViewer.setLabelProvider(lProvider);
variablesViewer.setInput("");
variablesViewer.addSelectionChangedListener(new ISelectionChangedListener() {
@@ -147,7 +160,7 @@
}
public void widgetSelected(SelectionEvent e) {
Object sel = getSelection();
- List<IVariableProvider> sorted = getSortedDelegates();
+ List<IVariableProvider> sorted = cProvider.getSortedDelegates();
int current = sorted.indexOf(sel);
if( current > 0 ) {
newWeights.put(sorted.get(current-1), new Integer(current));
@@ -161,7 +174,7 @@
}
public void widgetSelected(SelectionEvent e) {
Object sel = getSelection();
- List<IVariableProvider> sorted = getSortedDelegates();
+ List<IVariableProvider> sorted = cProvider.getSortedDelegates();
int current = sorted.indexOf(sel);
if( current < sorted.size()-1 ) {
newWeights.put(sorted.get(current+1), new Integer(current));
@@ -242,7 +255,7 @@
return fd;
}
- protected class Wrapped {
+ public static class Wrapped {
protected IVariableProvider p;
protected String name;
public Wrapped(IVariableProvider p, String name) {
@@ -255,62 +268,7 @@
return name + ": " + p.getVariableValue(name);
}
}
-
- protected class VariablesContentProvider implements ITreeContentProvider {
- public Object[] getChildren(Object parentElement) {
- if( parentElement instanceof IVariableProvider ) {
- String[] props = ((IVariableProvider)parentElement).getVariableNames();
- Wrapped[] items = new Wrapped[props.length];
- for( int i = 0; i < props.length; i++ )
- items[i] = new Wrapped((IVariableProvider)parentElement, props[i]);
- return items;
- }
- return null;
- }
-
- public Object getParent(Object element) {
- return null;
- }
-
- public boolean hasChildren(Object element) {
- return element instanceof IVariableProvider && ((IVariableProvider)element).getVariableNames().length > 0;
- }
-
- public Object[] getElements(Object inputElement) {
- List<IVariableProvider> elements = getSortedDelegates();
- return (IVariableProvider[]) elements
- .toArray(new IVariableProvider[elements.size()]);
- }
-
- public void dispose() {
- }
-
- public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
- }
- }
-
- protected List<IVariableProvider> getSortedDelegates() {
- WorkspaceVFS vfs = (WorkspaceVFS)ArchivesCore.getInstance().getVFS();
- WorkspaceVariableManager mgr = vfs.getVariableManager();
- IVariableProvider[] delegates = mgr.getDelegates();
-
- // sort with changed data
- List<IVariableProvider> l = Arrays.asList(delegates);
- Comparator<IVariableProvider> x = new Comparator<IVariableProvider>() {
- public int compare(IVariableProvider o1, IVariableProvider o2) {
- if( nowEnabled(o1) != nowEnabled(o2))
- return nowEnabled(o1) ? -1 : 1;
-
- // now weights
- if( nowWeight(o1) != nowWeight(o2) )
- return nowWeight(o1) > nowWeight(o2) ? 1 : -1;
- return 0;
- }
- };
- Collections.sort(l, x);
- return l;
- }
protected boolean nowEnabled(IVariableProvider o) {
boolean enabled = o.getEnabled();
if( newEnablement.get(o) != null)
@@ -324,53 +282,6 @@
return weight;
}
- protected class VariablesLabelProvider extends BaseLabelProvider implements ILabelProvider {
-
- private HashMap<Image, Image> disabledImages;
- public VariablesLabelProvider() {
- disabledImages = new HashMap<Image, Image>();
- }
- public Image getImage(Object element) {
- if( element instanceof IVariableProvider ) {
- String id = ((IVariableProvider)element).getId();
- boolean enabled = nowEnabled((IVariableProvider)element);
- if(id.equals("org.jboss.ide.eclipse.archives.core.resourceVariableProvider"))
- return getImage2(PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_OBJ_FOLDER), enabled);
- if( id.equals("org.jboss.ide.eclipse.archives.core.classpathVariableProvider"))
- return getImage2(JavaPlugin.getDefault().getImageRegistry().get(JavaPluginImages.IMG_OBJS_EXTJAR), enabled);
- if( id.equals("org.jboss.ide.eclipse.archives.core.stringReplacementValueVariables"))
- return getImage2(PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_TOOL_PASTE), enabled);
- }
- if( element instanceof Wrapped ) {
- return getImage(((Wrapped)element).getProvider());
- }
- return null;
- }
- protected Image getImage2(Image original, boolean enabled) {
- if( enabled )
- return original;
- if( disabledImages.get(original) == null ) {
- Image i2 = new DecorationOverlayIcon(original, JavaPluginImages.DESC_OVR_DEPRECATED, IDecoration.TOP_LEFT).createImage();
- disabledImages.put(original, i2);
- }
- return disabledImages.get(original);
- }
- public String getText(Object element) {
- if( element instanceof IVariableProvider ) {
- return ((IVariableProvider)element).getName();
- }
- if( element instanceof Wrapped )
- return ((Wrapped)element).toString();
- return "";
- }
- public void dispose() {
- super.dispose();
- Iterator<Image> i = disabledImages.values().iterator();
- while(i.hasNext())
- i.next().dispose();
- }
- }
-
protected Object getSelection() {
IStructuredSelection sel = (IStructuredSelection)variablesViewer.getSelection();
return sel.getFirstElement();
@@ -378,7 +289,7 @@
protected void viewerSelectionChanged() {
Object selected = getSelection();
- List<IVariableProvider> dels = getSortedDelegates();
+ List<IVariableProvider> dels = cProvider.getSortedDelegates();
boolean variableProvider = selected != null && selected instanceof IVariableProvider;
boolean defaultProvider = selected != null &&
(variableProvider ? (IVariableProvider)selected : ((Wrapped)selected).getProvider())
@@ -404,7 +315,7 @@
}
public void performDefaults() {
- List<IVariableProvider> dels = getSortedDelegates();
+ List<IVariableProvider> dels = cProvider.getSortedDelegates();
IVariableProvider provider;
for( int i = 0; i < dels.size(); i++ ) {
provider = dels.get(i);
@@ -415,7 +326,7 @@
}
public boolean performOk() {
- List<IVariableProvider> dels = getSortedDelegates();
+ List<IVariableProvider> dels = cProvider.getSortedDelegates();
IVariableProvider provider;
for( int i = 0; i < dels.size(); i++ ) {
provider = dels.get(i);
Added: trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/providers/VariablesContentProvider.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/providers/VariablesContentProvider.java (rev 0)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/providers/VariablesContentProvider.java 2008-07-15 05:25:31 UTC (rev 9137)
@@ -0,0 +1,61 @@
+package org.jboss.ide.eclipse.archives.ui.providers;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.Comparator;
+import java.util.List;
+
+import org.eclipse.jface.viewers.ITreeContentProvider;
+import org.eclipse.jface.viewers.Viewer;
+import org.jboss.ide.eclipse.archives.core.ArchivesCore;
+import org.jboss.ide.eclipse.archives.core.model.IVariableProvider;
+import org.jboss.ide.eclipse.archives.core.model.other.internal.WorkspaceVFS;
+import org.jboss.ide.eclipse.archives.core.model.other.internal.WorkspaceVariableManager;
+import org.jboss.ide.eclipse.archives.ui.preferences.VariablesPreferencePage.Wrapped;
+
+public class VariablesContentProvider implements ITreeContentProvider {
+ private Comparator<IVariableProvider> comparator;
+ public VariablesContentProvider(Comparator<IVariableProvider> c) {
+ this.comparator = c;
+ }
+ public Object[] getChildren(Object parentElement) {
+ if( parentElement instanceof IVariableProvider ) {
+ String[] props = ((IVariableProvider)parentElement).getVariableNames();
+ Wrapped[] items = new Wrapped[props.length];
+ for( int i = 0; i < props.length; i++ )
+ items[i] = new Wrapped((IVariableProvider)parentElement, props[i]);
+ return items;
+ }
+ return null;
+ }
+
+ public Object getParent(Object element) {
+ return null;
+ }
+
+ public boolean hasChildren(Object element) {
+ return element instanceof IVariableProvider && ((IVariableProvider)element).getVariableNames().length > 0;
+ }
+
+ public Object[] getElements(Object inputElement) {
+ List<IVariableProvider> elements = getSortedDelegates();
+ return (IVariableProvider[]) elements
+ .toArray(new IVariableProvider[elements.size()]);
+ }
+
+ public void dispose() {
+ }
+
+ public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
+ }
+ public List<IVariableProvider> getSortedDelegates() {
+ WorkspaceVFS vfs = (WorkspaceVFS)ArchivesCore.getInstance().getVFS();
+ WorkspaceVariableManager mgr = vfs.getVariableManager();
+ IVariableProvider[] delegates = mgr.getDelegates();
+
+ // sort with changed data
+ List<IVariableProvider> l = Arrays.asList(delegates);
+ Collections.sort(l, this.comparator);
+ return l;
+ }
+}
Added: trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/providers/VariablesLabelProvider.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/providers/VariablesLabelProvider.java (rev 0)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/providers/VariablesLabelProvider.java 2008-07-15 05:25:31 UTC (rev 9137)
@@ -0,0 +1,69 @@
+package org.jboss.ide.eclipse.archives.ui.providers;
+
+import java.util.HashMap;
+import java.util.Iterator;
+
+import org.eclipse.jdt.internal.ui.JavaPlugin;
+import org.eclipse.jdt.internal.ui.JavaPluginImages;
+import org.eclipse.jface.viewers.BaseLabelProvider;
+import org.eclipse.jface.viewers.DecorationOverlayIcon;
+import org.eclipse.jface.viewers.IDecoration;
+import org.eclipse.jface.viewers.ILabelProvider;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.ISharedImages;
+import org.eclipse.ui.PlatformUI;
+import org.jboss.ide.eclipse.archives.core.model.IVariableProvider;
+import org.jboss.ide.eclipse.archives.ui.preferences.VariablesPreferencePage.Wrapped;
+
+public class VariablesLabelProvider extends BaseLabelProvider implements ILabelProvider {
+ private HashMap<Image, Image> disabledImages;
+ private IVariableEnablementChecker checker;
+
+ public interface IVariableEnablementChecker {
+ public boolean isEnabled(IVariableProvider element);
+ }
+
+ public VariablesLabelProvider(IVariableEnablementChecker checker) {
+ disabledImages = new HashMap<Image, Image>();
+ }
+ public Image getImage(Object element) {
+ if( element instanceof IVariableProvider ) {
+ String id = ((IVariableProvider)element).getId();
+
+ boolean enabled = checker != null ? checker.isEnabled((IVariableProvider)element) : ((IVariableProvider)element).getEnabled();
+ if(id.equals("org.jboss.ide.eclipse.archives.core.resourceVariableProvider"))
+ return getImage2(PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_OBJ_FOLDER), enabled);
+ if( id.equals("org.jboss.ide.eclipse.archives.core.classpathVariableProvider"))
+ return getImage2(JavaPlugin.getDefault().getImageRegistry().get(JavaPluginImages.IMG_OBJS_EXTJAR), enabled);
+ if( id.equals("org.jboss.ide.eclipse.archives.core.stringReplacementValueVariables"))
+ return getImage2(PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_TOOL_PASTE), enabled);
+ }
+ if( element instanceof Wrapped ) {
+ return getImage(((Wrapped)element).getProvider());
+ }
+ return null;
+ }
+ protected Image getImage2(Image original, boolean enabled) {
+ if( enabled )
+ return original;
+ if( disabledImages.get(original) == null ) {
+ Image i2 = new DecorationOverlayIcon(original, JavaPluginImages.DESC_OVR_DEPRECATED, IDecoration.TOP_LEFT).createImage();
+ disabledImages.put(original, i2);
+ }
+ return disabledImages.get(original);
+ }
+ public String getText(Object element) {
+ if( element instanceof IVariableProvider ) {
+ return ((IVariableProvider)element).getName();
+ }
+ if( element instanceof Wrapped )
+ return ((Wrapped)element).toString();
+ return "";
+ }
+ public void dispose() {
+ super.dispose();
+ Iterator<Image> i = disabledImages.values().iterator();
+ while(i.hasNext())
+ i.next().dispose();
+ }
+}
Modified: trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/util/composites/ArchiveSourceDestinationComposite.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/util/composites/ArchiveSourceDestinationComposite.java 2008-07-14 22:50:33 UTC (rev 9136)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/util/composites/ArchiveSourceDestinationComposite.java 2008-07-15 05:25:31 UTC (rev 9137)
@@ -10,6 +10,7 @@
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Status;
import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.window.Window;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.KeyEvent;
import org.eclipse.swt.events.KeyListener;
@@ -35,6 +36,7 @@
import org.jboss.ide.eclipse.archives.core.model.INamedContainerArchiveNode;
import org.jboss.ide.eclipse.archives.ui.ArchivesSharedImages;
import org.jboss.ide.eclipse.archives.ui.PackagesUIPlugin;
+import org.jboss.ide.eclipse.archives.ui.dialogs.SelectVariableDialog;
public class ArchiveSourceDestinationComposite extends Composite {
private Text text;
@@ -58,7 +60,6 @@
layoutWidgets();
setWidgetData();
addListeners();
- variablesButton.setEnabled(false); // todo
}
protected void createWidgets() {
@@ -134,10 +135,21 @@
protected void textModified() {validateAndUpdateWidgets();}
protected void filesystemButtonPressed() {browseFilesystem();}
protected void workspaceButtonPressed() {openDestinationDialog();}
- protected void variablesButtonPressed() {}
+ protected void variablesButtonPressed() {variablesPressed();}
protected void fsRadioButtonPressed() {radioPressed(fsRadioButton);}
protected void wsRadioButtonPressed() {radioPressed(wsRadioButton);}
+ protected void variablesPressed() {
+ SelectVariableDialog d = new SelectVariableDialog(Display.getDefault().getActiveShell());
+ if( d.open() == Window.OK) {
+ String val = d.getSelectedVarName();
+ if( val != null ) {
+ path = path + "${" + val + "}";
+ destinationNode = null;
+ }
+ validateAndUpdateWidgets();
+ }
+ }
protected void openDestinationDialog() {
ArchiveNodeDestinationDialog dialog = new ArchiveNodeDestinationDialog(getShell(), true, true);
16 years, 6 months
JBoss Tools SVN: r9136 - in trunk/as/plugins/org.jboss.ide.eclipse.as.ui: jbossui/org/jboss/ide/eclipse/as/ui and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2008-07-14 18:50:33 -0400 (Mon, 14 Jul 2008)
New Revision: 9136
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/Messages.java
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/Messages.properties
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/launch/JBossLaunchConfigurationTabGroup.java
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/plugin.properties
Log:
JBIDE-2483 - decided host must be changed via server editor and runtime config must be changed via the runtime wizard... not through the launch config.
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/Messages.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/Messages.java 2008-07-14 19:26:42 UTC (rev 9135)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/Messages.java 2008-07-14 22:50:33 UTC (rev 9136)
@@ -236,6 +236,10 @@
// misc
public static String ServerSaveFailed;
+ // Launch Config
+ public static String LaunchInvalidConfigChanged;
+ public static String LaunchInvalidHostChanged;
+
static {
NLS.initializeMessages(JBossServerUIPlugin.PLUGIN_ID + ".Messages",
Messages.class);
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/Messages.properties
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/Messages.properties 2008-07-14 19:26:42 UTC (rev 9135)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/Messages.properties 2008-07-14 22:50:33 UTC (rev 9136)
@@ -214,4 +214,8 @@
EditorChangePasswordCommandName=Change Password
# misc
-ServerSaveFailed=Server save failed
\ No newline at end of file
+ServerSaveFailed=Server save failed
+
+#Launch Config
+LaunchInvalidConfigChanged=Configuration can only be changed by modifying the server's runtime.
+LaunchInvalidHostChanged=The Host can only be changed in the Server Editor.
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/launch/JBossLaunchConfigurationTabGroup.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/launch/JBossLaunchConfigurationTabGroup.java 2008-07-14 19:26:42 UTC (rev 9135)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/launch/JBossLaunchConfigurationTabGroup.java 2008-07-14 22:50:33 UTC (rev 9136)
@@ -21,6 +21,8 @@
*/
package org.jboss.ide.eclipse.as.ui.launch;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.ui.AbstractLaunchConfigurationTabGroup;
import org.eclipse.debug.ui.CommonTab;
import org.eclipse.debug.ui.EnvironmentTab;
@@ -30,6 +32,9 @@
import org.eclipse.jdt.debug.ui.launchConfigurations.JavaArgumentsTab;
import org.eclipse.jdt.debug.ui.launchConfigurations.JavaClasspathTab;
import org.eclipse.jdt.debug.ui.launchConfigurations.JavaJRETab;
+import org.eclipse.jdt.launching.IJavaLaunchConfigurationConstants;
+import org.jboss.ide.eclipse.as.core.util.ArgsUtil;
+import org.jboss.ide.eclipse.as.ui.Messages;
/**
*
@@ -42,7 +47,7 @@
public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[10];
int i = 0;
- tabs[i] = new JavaArgumentsTab();
+ tabs[i] = new JavaArgumentsTabExtension();
tabs[i++].setLaunchConfigurationDialog(dialog);
tabs[i] = new JavaClasspathTab();
tabs[i++].setLaunchConfigurationDialog(dialog);
@@ -60,4 +65,44 @@
System.arraycopy(tabs, 0, tabs2, 0, i);
setTabs(tabs2);
}
+
+ public class JavaArgumentsTabExtension extends JavaArgumentsTab {
+ private String originalHost=null;
+ private String originalConf=null;
+ public void initializeFrom(ILaunchConfiguration configuration) {
+ super.initializeFrom(configuration);
+ try {
+ String startArgs = configuration.getAttribute(IJavaLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS, (String)null);
+ originalHost = ArgsUtil.getValue(startArgs, "-b", "--host");
+ originalConf = ArgsUtil.getValue(startArgs, "-c", "--configuration");
+ } catch( CoreException ce ) { }
+ }
+ public boolean isValid(ILaunchConfiguration config) {
+ if( !super.isValid(config))
+ return false;
+ try {
+ String startArgs = config.getAttribute(IJavaLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS, (String)null);
+ String newHost = ArgsUtil.getValue(startArgs, "-b", "--host");
+ String newConf = ArgsUtil.getValue(startArgs, "-c", "--configuration");
+ if( newConf == null || !newConf.equals(originalConf))
+ return false;
+ if( newHost == null || !newHost.equals(originalHost))
+ return false;
+ } catch( CoreException ce ) {}
+ return true;
+ }
+ public String getErrorMessage() {
+ String m = super.getErrorMessage();
+ if (m == null) {
+ String startArgs = getAttributeValueFrom(fPrgmArgumentsText);
+ String newHost = ArgsUtil.getValue(startArgs, "-b", "--host");
+ String newConf = ArgsUtil.getValue(startArgs, "-c", "--configuration");
+ if( newConf == null || !newConf.equals(originalConf))
+ return Messages.LaunchInvalidConfigChanged;
+ if( newHost == null || !newHost.equals(originalHost))
+ return Messages.LaunchInvalidHostChanged;
+ }
+ return m;
+ }
+ }
}
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/plugin.properties
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/plugin.properties 2008-07-14 19:26:42 UTC (rev 9135)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/plugin.properties 2008-07-14 22:50:33 UTC (rev 9136)
@@ -1,4 +1,2 @@
pluginName=JBoss WTP Server Tools UI Plugin
-jbossLaunchconfigurationTabGroupDescription=Below is the launch configuration properties \
-for starting, stopping, and polling JBoss Servers for their status.\n If your server is\
-secure, you will want to ensure the appropriate password parameters are passed in.
\ No newline at end of file
+jbossLaunchconfigurationTabGroupDescription=Below is the launch configuration properties for starting JBoss Servers.
\ No newline at end of file
16 years, 6 months