Jaxx-commits
Threads by month
- ----- 2026 -----
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2006 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2005 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2004 -----
- December
- November
- October
- September
- August
January 2014
- 4 participants
- 18 discussions
r2772 - in trunk: . jaxx-compiler jaxx-config jaxx-demo jaxx-maven-plugin jaxx-runtime jaxx-validator jaxx-widgets
by maven-release@users.nuiton.org 12 Jan '14
by maven-release@users.nuiton.org 12 Jan '14
12 Jan '14
Author: maven-release
Date: 2014-01-12 14:24:21 +0100 (Sun, 12 Jan 2014)
New Revision: 2772
Url: http://nuiton.org/projects/jaxx/repository/revisions/2772
Log:
[maven-release-plugin] prepare release jaxx-2.7
Modified:
trunk/jaxx-compiler/pom.xml
trunk/jaxx-config/pom.xml
trunk/jaxx-demo/pom.xml
trunk/jaxx-maven-plugin/pom.xml
trunk/jaxx-runtime/pom.xml
trunk/jaxx-validator/pom.xml
trunk/jaxx-widgets/pom.xml
trunk/pom.xml
Modified: trunk/jaxx-compiler/pom.xml
===================================================================
--- trunk/jaxx-compiler/pom.xml 2014-01-12 13:21:56 UTC (rev 2771)
+++ trunk/jaxx-compiler/pom.xml 2014-01-12 13:24:21 UTC (rev 2772)
@@ -30,7 +30,7 @@
<parent>
<groupId>org.nuiton</groupId>
<artifactId>jaxx</artifactId>
- <version>2.7-SNAPSHOT</version>
+ <version>2.7</version>
</parent>
<groupId>org.nuiton.jaxx</groupId>
Modified: trunk/jaxx-config/pom.xml
===================================================================
--- trunk/jaxx-config/pom.xml 2014-01-12 13:21:56 UTC (rev 2771)
+++ trunk/jaxx-config/pom.xml 2014-01-12 13:24:21 UTC (rev 2772)
@@ -31,7 +31,7 @@
<parent>
<groupId>org.nuiton</groupId>
<artifactId>jaxx</artifactId>
- <version>2.7-SNAPSHOT</version>
+ <version>2.7</version>
</parent>
<groupId>org.nuiton.jaxx</groupId>
Modified: trunk/jaxx-demo/pom.xml
===================================================================
--- trunk/jaxx-demo/pom.xml 2014-01-12 13:21:56 UTC (rev 2771)
+++ trunk/jaxx-demo/pom.xml 2014-01-12 13:24:21 UTC (rev 2772)
@@ -30,7 +30,7 @@
<parent>
<groupId>org.nuiton</groupId>
<artifactId>jaxx</artifactId>
- <version>2.7-SNAPSHOT</version>
+ <version>2.7</version>
</parent>
<groupId>org.nuiton.jaxx</groupId>
Modified: trunk/jaxx-maven-plugin/pom.xml
===================================================================
--- trunk/jaxx-maven-plugin/pom.xml 2014-01-12 13:21:56 UTC (rev 2771)
+++ trunk/jaxx-maven-plugin/pom.xml 2014-01-12 13:24:21 UTC (rev 2772)
@@ -31,7 +31,7 @@
<parent>
<groupId>org.nuiton</groupId>
<artifactId>jaxx</artifactId>
- <version>2.7-SNAPSHOT</version>
+ <version>2.7</version>
</parent>
<groupId>org.nuiton.jaxx</groupId>
Modified: trunk/jaxx-runtime/pom.xml
===================================================================
--- trunk/jaxx-runtime/pom.xml 2014-01-12 13:21:56 UTC (rev 2771)
+++ trunk/jaxx-runtime/pom.xml 2014-01-12 13:24:21 UTC (rev 2772)
@@ -30,7 +30,7 @@
<parent>
<groupId>org.nuiton</groupId>
<artifactId>jaxx</artifactId>
- <version>2.7-SNAPSHOT</version>
+ <version>2.7</version>
</parent>
<groupId>org.nuiton.jaxx</groupId>
Modified: trunk/jaxx-validator/pom.xml
===================================================================
--- trunk/jaxx-validator/pom.xml 2014-01-12 13:21:56 UTC (rev 2771)
+++ trunk/jaxx-validator/pom.xml 2014-01-12 13:24:21 UTC (rev 2772)
@@ -30,7 +30,7 @@
<parent>
<groupId>org.nuiton</groupId>
<artifactId>jaxx</artifactId>
- <version>2.7-SNAPSHOT</version>
+ <version>2.7</version>
</parent>
<groupId>org.nuiton.jaxx</groupId>
Modified: trunk/jaxx-widgets/pom.xml
===================================================================
--- trunk/jaxx-widgets/pom.xml 2014-01-12 13:21:56 UTC (rev 2771)
+++ trunk/jaxx-widgets/pom.xml 2014-01-12 13:24:21 UTC (rev 2772)
@@ -31,7 +31,7 @@
<parent>
<groupId>org.nuiton</groupId>
<artifactId>jaxx</artifactId>
- <version>2.7-SNAPSHOT</version>
+ <version>2.7</version>
</parent>
<groupId>org.nuiton.jaxx</groupId>
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2014-01-12 13:21:56 UTC (rev 2771)
+++ trunk/pom.xml 2014-01-12 13:24:21 UTC (rev 2772)
@@ -34,7 +34,7 @@
</parent>
<artifactId>jaxx</artifactId>
- <version>2.7-SNAPSHOT</version>
+ <version>2.7</version>
<modules>
<module>jaxx-runtime</module>
@@ -141,11 +141,11 @@
<!-- Source control management. -->
<scm>
- <connection>scm:svn:http://svn.nuiton.org/svn/jaxx/trunk</connection>
+ <connection>scm:svn:http://svn.nuiton.org/svn/jaxx/tags/jaxx-2.7</connection>
<developerConnection>
- scm:svn:http://svn.nuiton.org/svn/jaxx/trunk
+ scm:svn:http://svn.nuiton.org/svn/jaxx/tags/jaxx-2.7
</developerConnection>
- <url>http://nuiton.org/projects/jaxx/repository/show/trunk</url>
+ <url>http://nuiton.org/projects/jaxx/repository/show/tags/jaxx-2.7</url>
</scm>
<distributionManagement>
1
0
Author: tchemit
Date: 2014-01-12 14:21:56 +0100 (Sun, 12 Jan 2014)
New Revision: 2771
Url: http://nuiton.org/projects/jaxx/repository/revisions/2771
Log:
improve webstart plugin config
Modified:
trunk/pom.xml
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2014-01-12 13:21:09 UTC (rev 2770)
+++ trunk/pom.xml 2014-01-12 13:21:56 UTC (rev 2771)
@@ -124,7 +124,7 @@
<swingXVersion>1.6.5-1</swingXVersion>
<plexusUtilVersion>3.0.15</plexusUtilVersion>
- <webstartPluginVersion>1.0-beta-5</webstartPluginVersion>
+ <webstartPluginVersion>1.0-beta-5.1</webstartPluginVersion>
<!-- i18n configuration -->
<i18n.bundles>fr_FR,en_GB,es_ES</i18n.bundles>
@@ -476,7 +476,6 @@
</sign>
<gzip>true</gzip>
- <unsign>true</unsign>
<pack200>
<enabled>true</enabled>
<passFiles>
1
0
Author: tchemit
Date: 2014-01-12 14:21:09 +0100 (Sun, 12 Jan 2014)
New Revision: 2770
Url: http://nuiton.org/projects/jaxx/repository/revisions/2770
Log:
revert log levels
Modified:
trunk/jaxx-demo/src/main/resources/log4j.properties
Modified: trunk/jaxx-demo/src/main/resources/log4j.properties
===================================================================
--- trunk/jaxx-demo/src/main/resources/log4j.properties 2014-01-12 13:19:54 UTC (rev 2769)
+++ trunk/jaxx-demo/src/main/resources/log4j.properties 2014-01-12 13:21:09 UTC (rev 2770)
@@ -38,4 +38,4 @@
#log4j.logger.jaxx.runtime.swing.editor.config=INFO
#log4j.logger.jaxx.runtime.swing.editor.config.model.ConfigUIModelBuilder=DEBUG
log4j.logger.org.nuiton=WARN
-log4j.logger.jaxx.runtime.swing.help=DEBUG
+#log4j.logger.jaxx.runtime.swing.help=DEBUG
1
0
r2769 - in trunk/jaxx-demo/src/main: java/jaxx/demo resources/i18n
by tchemit@users.nuiton.org 12 Jan '14
by tchemit@users.nuiton.org 12 Jan '14
12 Jan '14
Author: tchemit
Date: 2014-01-12 14:19:54 +0100 (Sun, 12 Jan 2014)
New Revision: 2769
Url: http://nuiton.org/projects/jaxx/repository/revisions/2769
Log:
refs #72: Improve Jaxx demo
Modified:
trunk/jaxx-demo/src/main/java/jaxx/demo/DemoApplicationContext.java
trunk/jaxx-demo/src/main/java/jaxx/demo/DemoUI.jaxx
trunk/jaxx-demo/src/main/resources/i18n/jaxx-demo_en_GB.properties
trunk/jaxx-demo/src/main/resources/i18n/jaxx-demo_es_ES.properties
trunk/jaxx-demo/src/main/resources/i18n/jaxx-demo_fr_FR.properties
Modified: trunk/jaxx-demo/src/main/java/jaxx/demo/DemoApplicationContext.java
===================================================================
--- trunk/jaxx-demo/src/main/java/jaxx/demo/DemoApplicationContext.java 2014-01-10 18:06:58 UTC (rev 2768)
+++ trunk/jaxx-demo/src/main/java/jaxx/demo/DemoApplicationContext.java 2014-01-12 13:19:54 UTC (rev 2769)
@@ -138,6 +138,7 @@
if (log.isInfoEnabled()) {
log.info("help-uri: " + resolvedUri);
}
+ getMainUI().getP().setStatus(_("jaxxdemo.openHelp", helpId));
// SwingUtil.openLink(resolvedUri);
// } catch (URISyntaxException e) {
// throw new RuntimeException(_("jaxxdemo.context.helpPage.notFound", resolvedUri));
Modified: trunk/jaxx-demo/src/main/java/jaxx/demo/DemoUI.jaxx
===================================================================
--- trunk/jaxx-demo/src/main/java/jaxx/demo/DemoUI.jaxx 2014-01-10 18:06:58 UTC (rev 2768)
+++ trunk/jaxx-demo/src/main/java/jaxx/demo/DemoUI.jaxx 2014-01-12 13:19:54 UTC (rev 2769)
@@ -87,9 +87,13 @@
onActionPerformed="handler.showAbout(this)"/>
</JMenu>
- <!-- pour afficher l'aide contextuelle -->
- <JButton id='showHelp'/>
+ <JToolBar layout='{new BorderLayout()}'>
+ <!-- pour afficher l'aide contextuelle -->
+ <JButton id='showHelp' constraints='BorderLayout.EAST'/>
+ </JToolBar>
+
+
</JMenuBar>
<JPanel id='mainPane' layout='{new BorderLayout()}'>
Modified: trunk/jaxx-demo/src/main/resources/i18n/jaxx-demo_en_GB.properties
===================================================================
--- trunk/jaxx-demo/src/main/resources/i18n/jaxx-demo_en_GB.properties 2014-01-10 18:06:58 UTC (rev 2768)
+++ trunk/jaxx-demo/src/main/resources/i18n/jaxx-demo_en_GB.properties 2014-01-12 13:19:54 UTC (rev 2769)
@@ -307,6 +307,7 @@
jaxxdemo.numbereditor.showReset=Show reset button
jaxxdemo.numbereditor.useFloat=Use float
jaxxdemo.numbereditor.useSign=Use Sign
+jaxxdemo.openHelp=Open contextual help (%s), Will come in 3.0 version
jaxxdemo.timeeditor.editor=Time Editor
jaxxdemo.timeeditor.label=Label
jaxxdemo.timeeditor.model=Result
Modified: trunk/jaxx-demo/src/main/resources/i18n/jaxx-demo_es_ES.properties
===================================================================
--- trunk/jaxx-demo/src/main/resources/i18n/jaxx-demo_es_ES.properties 2014-01-10 18:06:58 UTC (rev 2768)
+++ trunk/jaxx-demo/src/main/resources/i18n/jaxx-demo_es_ES.properties 2014-01-12 13:19:54 UTC (rev 2769)
@@ -310,6 +310,7 @@
jaxxdemo.numbereditor.showReset=Afficher le boutton de reset
jaxxdemo.numbereditor.useFloat=Utiliser les décimales
jaxxdemo.numbereditor.useSign=Utiliser le signe
+jaxxdemo.openHelp=Open contextual help (%s), Will come in 3.0 version
jaxxdemo.timeeditor.editor=Editeur de temps
jaxxdemo.timeeditor.label=Label
jaxxdemo.timeeditor.model=Résultat
Modified: trunk/jaxx-demo/src/main/resources/i18n/jaxx-demo_fr_FR.properties
===================================================================
--- trunk/jaxx-demo/src/main/resources/i18n/jaxx-demo_fr_FR.properties 2014-01-10 18:06:58 UTC (rev 2768)
+++ trunk/jaxx-demo/src/main/resources/i18n/jaxx-demo_fr_FR.properties 2014-01-12 13:19:54 UTC (rev 2769)
@@ -302,6 +302,7 @@
jaxxdemo.numbereditor.showReset=Afficher le boutton de reset
jaxxdemo.numbereditor.useFloat=Utiliser les décimales
jaxxdemo.numbereditor.useSign=Utiliser le signe
+jaxxdemo.openHelp=Ouvertude l'aide contextuelle (%s), A venir en version 3.0
jaxxdemo.timeeditor.editor=Editeur de temps
jaxxdemo.timeeditor.label=Label
jaxxdemo.timeeditor.model=Résultat
1
0
Author: tchemit
Date: 2014-01-10 19:06:58 +0100 (Fri, 10 Jan 2014)
New Revision: 2768
Url: http://nuiton.org/projects/jaxx/repository/revisions/2768
Log:
fix webstart config
Modified:
trunk/pom.xml
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2014-01-10 18:05:55 UTC (rev 2767)
+++ trunk/pom.xml 2014-01-10 18:06:58 UTC (rev 2768)
@@ -456,8 +456,7 @@
<Codebase>*</Codebase>
</updateManifestEntries>
<filenameMapping>simple</filenameMapping>
- <!-- TODO Use this this webstart 1.0-beta-5 -->
- <!--<outputJarVersions>true</outputJarVersions>-->
+ <outputJarVersions>true</outputJarVersions>
<jnlp>
<mainClass>${maven.jar.main.class}</mainClass>
<allPermissions>true</allPermissions>
1
0
r2767 - in trunk: . jaxx-demo jaxx-demo/src/main/java/jaxx/demo
by tchemit@users.nuiton.org 10 Jan '14
by tchemit@users.nuiton.org 10 Jan '14
10 Jan '14
Author: tchemit
Date: 2014-01-10 19:05:55 +0100 (Fri, 10 Jan 2014)
New Revision: 2767
Url: http://nuiton.org/projects/jaxx/repository/revisions/2767
Log:
fix broker + webstart config
Modified:
trunk/jaxx-demo/pom.xml
trunk/jaxx-demo/src/main/java/jaxx/demo/DemoHelpBroker.java
trunk/pom.xml
Modified: trunk/jaxx-demo/pom.xml
===================================================================
--- trunk/jaxx-demo/pom.xml 2014-01-10 16:52:31 UTC (rev 2766)
+++ trunk/jaxx-demo/pom.xml 2014-01-10 18:05:55 UTC (rev 2767)
@@ -64,7 +64,6 @@
<!-- Post Release configuration -->
<skipPostRelease>false</skipPostRelease>
- <webstartPluginVersion>1.0-beta-5-SNAPSHOT</webstartPluginVersion>
</properties>
<dependencies>
@@ -349,7 +348,7 @@
<id>generate-jnlp</id>
<phase>package</phase>
<goals>
- <goal>jnlp-single2</goal>
+ <goal>jnlp-single</goal>
</goals>
</execution>
</executions>
Modified: trunk/jaxx-demo/src/main/java/jaxx/demo/DemoHelpBroker.java
===================================================================
--- trunk/jaxx-demo/src/main/java/jaxx/demo/DemoHelpBroker.java 2014-01-10 16:52:31 UTC (rev 2766)
+++ trunk/jaxx-demo/src/main/java/jaxx/demo/DemoHelpBroker.java 2014-01-10 18:05:55 UTC (rev 2767)
@@ -122,8 +122,13 @@
public String getMessage(ComponentTreeNode componentTree) {
String message = super.getMessage(componentTree);
Component userObject = componentTree.getUserObject();
- Rectangle rectangle = new Rectangle(userObject.getLocationOnScreen(), userObject.getSize());
- return message + (userObject.isVisible() ? " visible" : "") + " - " + rectangle;
+ if (userObject.isShowing() && userObject.isVisible()) {
+ Rectangle rectangle = new Rectangle(userObject.getLocationOnScreen(), userObject.getSize());
+ message += " visible - " + rectangle;
+ } else {
+ message += " invisible";
+ }
+ return message;
}
};
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2014-01-10 16:52:31 UTC (rev 2766)
+++ trunk/pom.xml 2014-01-10 18:05:55 UTC (rev 2767)
@@ -124,6 +124,8 @@
<swingXVersion>1.6.5-1</swingXVersion>
<plexusUtilVersion>3.0.15</plexusUtilVersion>
+ <webstartPluginVersion>1.0-beta-5</webstartPluginVersion>
+
<!-- i18n configuration -->
<i18n.bundles>fr_FR,en_GB,es_ES</i18n.bundles>
@@ -449,10 +451,11 @@
<makeArchive>false</makeArchive>
<verbose>false</verbose>
<updateManifestEntries>
- <Application-Name>jTimer ${project.version}</Application-Name>
+ <Application-Name>JAXX Demo ${project.version}</Application-Name>
<Permissions>all-permissions</Permissions>
<Codebase>*</Codebase>
</updateManifestEntries>
+ <filenameMapping>simple</filenameMapping>
<!-- TODO Use this this webstart 1.0-beta-5 -->
<!--<outputJarVersions>true</outputJarVersions>-->
<jnlp>
@@ -472,11 +475,9 @@
<gen>false</gen>
</keystoreConfig>
</sign>
+
<gzip>true</gzip>
<unsign>true</unsign>
- <canUnsign>true</canUnsign>
- <unsignAlreadySignedJars>true</unsignAlreadySignedJars>
- <!--Can't use pack2000 since there is some already signed jar-->
<pack200>
<enabled>true</enabled>
<passFiles>
@@ -484,22 +485,14 @@
</passFiles>
</pack200>
<jnlpExtensions>
- <!--jnlpExtension>
- <name>sun</name>
- <title>Sun MicroSystems</title>
- <vendor>Sun MicroSystems, Inc.</vendor>
- <includes>
- <include>javax.help:javahelp</include>
- </includes>
- </jnlpExtension-->
- <!--jnlpExtension>
+ <jnlpExtension>
<name>jxlayer</name>
<title>Swing labs JXLayer</title>
<vendor>Swing Labs</vendor>
<includes>
<include>org.swinglabs:jxlayer</include>
</includes>
- </jnlpExtension-->
+ </jnlpExtension>
</jnlpExtensions>
</configuration>
</plugin>
1
0
r2766 - in trunk: jaxx-demo jaxx-demo/src/main/filters jaxx-demo/src/main/java/jaxx/demo jaxx-demo/src/main/java/jaxx/demo/component/swing jaxx-demo/src/main/resources jaxx-demo/src/main/resources/i18n jaxx-runtime/src/main/java/jaxx/runtime jaxx-runtime/src/main/java/jaxx/runtime/awt/visitor jaxx-runtime/src/main/java/jaxx/runtime/swing/help
by tchemit@users.nuiton.org 10 Jan '14
by tchemit@users.nuiton.org 10 Jan '14
10 Jan '14
Author: tchemit
Date: 2014-01-10 17:52:31 +0100 (Fri, 10 Jan 2014)
New Revision: 2766
Url: http://nuiton.org/projects/jaxx/repository/revisions/2766
Log:
fixes #2999: Can't get the correct component with GetCompopentAtPointVisitor
Added:
trunk/jaxx-demo/src/main/java/jaxx/demo/DemoApplicationContext.java
trunk/jaxx-demo/src/main/java/jaxx/demo/DemoHelpBroker.java
trunk/jaxx-demo/src/main/java/jaxx/demo/DemoSources.css
trunk/jaxx-demo/src/main/java/jaxx/demo/component/swing/JButtonDemo.css
trunk/jaxx-demo/src/main/resources/jaxxdemo-help-fr.properties
trunk/jaxx-runtime/src/main/java/jaxx/runtime/awt/visitor/DebugComponentTreeNodeVisitor.java
Modified:
trunk/jaxx-demo/pom.xml
trunk/jaxx-demo/src/main/filters/jaxx-demo.properties
trunk/jaxx-demo/src/main/java/jaxx/demo/DemoConfig.java
trunk/jaxx-demo/src/main/java/jaxx/demo/DemoPanel.jaxx
trunk/jaxx-demo/src/main/java/jaxx/demo/DemoSources.jaxx
trunk/jaxx-demo/src/main/java/jaxx/demo/DemoUI.jaxx
trunk/jaxx-demo/src/main/java/jaxx/demo/DemoUIHandler.java
trunk/jaxx-demo/src/main/java/jaxx/demo/RunDemo.java
trunk/jaxx-demo/src/main/java/jaxx/demo/component/swing/JButtonDemo.jaxx
trunk/jaxx-demo/src/main/resources/i18n/jaxx-demo_en_GB.properties
trunk/jaxx-demo/src/main/resources/i18n/jaxx-demo_es_ES.properties
trunk/jaxx-demo/src/main/resources/i18n/jaxx-demo_fr_FR.properties
trunk/jaxx-demo/src/main/resources/log4j.properties
trunk/jaxx-runtime/src/main/java/jaxx/runtime/SwingUtil.java
trunk/jaxx-runtime/src/main/java/jaxx/runtime/awt/visitor/ComponentTreeNode.java
trunk/jaxx-runtime/src/main/java/jaxx/runtime/awt/visitor/GetCompopentAtPointVisitor.java
trunk/jaxx-runtime/src/main/java/jaxx/runtime/swing/help/JAXXHelpBroker.java
Modified: trunk/jaxx-demo/pom.xml
===================================================================
--- trunk/jaxx-demo/pom.xml 2014-01-08 18:55:30 UTC (rev 2765)
+++ trunk/jaxx-demo/pom.xml 2014-01-10 16:52:31 UTC (rev 2766)
@@ -48,7 +48,16 @@
<jaxx.autoImportCss>true</jaxx.autoImportCss>
<jaxx.autoRecurseInCss>false</jaxx.autoRecurseInCss>
<jaxx.addAutoHandlerUI>true</jaxx.addAutoHandlerUI>
+ <jaxx.generateHelp>true</jaxx.generateHelp>
+ <!-- jaxx help configuration -->
+ <jaxx.helpsetName>tutti</jaxx.helpsetName>
+ <jaxx.locales>fr</jaxx.locales>
+ <jaxx.mergeIdsToInput>true</jaxx.mergeIdsToInput>
+ <jaxx.inputHelpDirectory>src/main/resources</jaxx.inputHelpDirectory>
+ <jaxx.inputHelpFilenamePrefix>jaxxdemo-help</jaxx.inputHelpFilenamePrefix>
+ <jaxx.helpBrokerFQN>jaxx.demo.DemoHelpBroker</jaxx.helpBrokerFQN>
+
<!-- generate license bundled files -->
<license.generateBundle>true</license.generateBundle>
@@ -231,6 +240,7 @@
<execution>
<goals>
<goal>generate</goal>
+ <goal>generate-help-ids</goal>
</goals>
</execution>
</executions>
Modified: trunk/jaxx-demo/src/main/filters/jaxx-demo.properties
===================================================================
--- trunk/jaxx-demo/src/main/filters/jaxx-demo.properties 2014-01-08 18:55:30 UTC (rev 2765)
+++ trunk/jaxx-demo/src/main/filters/jaxx-demo.properties 2014-01-10 16:52:31 UTC (rev 2766)
@@ -32,3 +32,4 @@
#licence.url=${project.licenses.0.url}
application.organisation.name=${project.organization.name}
application.organisation.url=${project.organization.url}
+application.help.path=http://maven-site.nuiton.org/jaxx/jaxx-demo/help
Added: trunk/jaxx-demo/src/main/java/jaxx/demo/DemoApplicationContext.java
===================================================================
--- trunk/jaxx-demo/src/main/java/jaxx/demo/DemoApplicationContext.java (rev 0)
+++ trunk/jaxx-demo/src/main/java/jaxx/demo/DemoApplicationContext.java 2014-01-10 16:52:31 UTC (rev 2766)
@@ -0,0 +1,152 @@
+package jaxx.demo;
+
+import jaxx.runtime.JAXXContext;
+import jaxx.runtime.JAXXUtil;
+import jaxx.runtime.context.DefaultApplicationContext;
+import jaxx.runtime.context.JAXXContextEntryDef;
+import jaxx.runtime.swing.help.JAXXHelpBroker;
+import jaxx.runtime.swing.help.JAXXHelpUIHandler;
+import org.apache.commons.lang3.StringUtils;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+import java.io.InputStream;
+import java.net.URI;
+import java.util.Properties;
+
+import static org.nuiton.i18n.I18n._;
+
+/**
+ * Created on 1/9/14.
+ *
+ * @author Tony Chemit <chemit(a)codelutin.com>
+ * @since XXX
+ */
+public class DemoApplicationContext extends DefaultApplicationContext implements JAXXHelpUIHandler {
+
+ static final JAXXContextEntryDef<DemoUI> MAIN_UI =
+ JAXXUtil.newContextEntryDef("MainUI", DemoUI.class);
+
+ /** The singleton instance of the main context */
+ private static volatile DemoApplicationContext context;
+
+ /** Logger. */
+ private static final Log log = LogFactory.getLog(DemoApplicationContext.class);
+
+ /**
+ * @return <code>true</code> si le context a été initialisé via la méthode
+ * {@link #init(DemoConfig)}, <ocde>false</code> autrement.
+ */
+ protected static boolean isInit() {
+ return context != null;
+ }
+
+ /**
+ * Permet l'initialisation du contexte applicatif et positionne
+ * l'context partagée.
+ * <p/>
+ * Note : Cette méthode ne peut être appelée qu'une seule fois.
+ *
+ * @param config application config
+ * @return le context partagée
+ * @throws IllegalStateException si un contexte applicatif a déja été positionné.
+ */
+ protected static DemoApplicationContext init(DemoConfig config) throws IllegalStateException {
+ if (isInit()) {
+ throw new IllegalStateException("there is an already application context registred.");
+ }
+ context = new DemoApplicationContext(config);
+ return context;
+ }
+
+ /**
+ * Récupération du contexte applicatif.
+ *
+ * @return l'context partagé du contexte.
+ * @throws IllegalStateException si le contexte n'a pas été initialisé via
+ * la méthode {@link #init(DemoConfig)}
+ */
+ public static DemoApplicationContext get() throws IllegalStateException {
+ if (!isInit()) {
+ throw new IllegalStateException("no application context registred.");
+ }
+ return context;
+ }
+
+ public DemoApplicationContext(DemoConfig config) {
+
+ // share config
+ setContextValue(config);
+
+ //--------------------------------------------------------------------//
+ // init help
+ //--------------------------------------------------------------------//
+
+ // load help mapping
+ String mappingProperties = "/jaxxdemo-help-fr.properties";
+ try {
+
+ InputStream resourceAsStream =
+ getClass().getResourceAsStream(mappingProperties);
+ helpMapping = new Properties();
+ helpMapping.load(resourceAsStream);
+
+ } catch (Exception eee) {
+ log.error("Failed to load help mapping file at '" +
+ mappingProperties + "'", eee);
+ }
+ }
+
+ public DemoConfig getConfig() {
+ return getContextValue(DemoConfig.class);
+ }
+
+ private Properties helpMapping;
+
+ @Override
+ public void showHelp(JAXXContext context, JAXXHelpBroker broker, String helpId) {
+
+ if (helpId == null) {
+ helpId = broker.getDefaultID();
+ }
+
+ if (log.isInfoEnabled()) {
+ log.info("help-id: " + helpId);
+ }
+
+ String value = (String) helpMapping.get(helpId);
+
+ if (value == null) {
+ throw new RuntimeException(_("jaxxdemo.context.helpPage.notFound", helpId));
+ }
+
+ String helpDirectory = getConfig().getHelpResourceWithLocale(value);
+ boolean withFragment = helpDirectory.contains("#");
+
+ String fragment = null;
+ if (withFragment) {
+ fragment = StringUtils.substringAfter(helpDirectory, "#");
+ helpDirectory = StringUtils.substringBefore(helpDirectory, "#");
+ }
+
+ URI resolvedUri = URI.create(helpDirectory);
+// try {
+
+ if (withFragment) {
+ resolvedUri = URI.create(resolvedUri.toString() + "#" + fragment);
+ }
+ if (log.isInfoEnabled()) {
+ log.info("help-uri: " + resolvedUri);
+ }
+// SwingUtil.openLink(resolvedUri);
+// } catch (URISyntaxException e) {
+// throw new RuntimeException(_("jaxxdemo.context.helpPage.notFound", resolvedUri));
+// }
+ }
+
+ public DemoUI getMainUI() {
+
+ return MAIN_UI.getContextValue(this);
+ }
+
+}
Property changes on: trunk/jaxx-demo/src/main/java/jaxx/demo/DemoApplicationContext.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Modified: trunk/jaxx-demo/src/main/java/jaxx/demo/DemoConfig.java
===================================================================
--- trunk/jaxx-demo/src/main/java/jaxx/demo/DemoConfig.java 2014-01-08 18:55:30 UTC (rev 2765)
+++ trunk/jaxx-demo/src/main/java/jaxx/demo/DemoConfig.java 2014-01-10 16:52:31 UTC (rev 2766)
@@ -26,7 +26,7 @@
package jaxx.demo;
import com.google.common.base.Supplier;
-import jaxx.demo.feature.nav.NavDemo;
+import jaxx.demo.component.swing.JButtonDemo;
import jaxx.runtime.JAXXUtil;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@@ -357,6 +357,17 @@
return applicationConfig.getOption("application.third-party.path");
}
+ public String getHelpLocation() {
+ return applicationConfig.getOption("application.help.path");
+ }
+
+ public String getHelpResourceWithLocale(String value) {
+ String result = getHelpLocation() + "/" +
+ getLocale().getLanguage() + "/" +
+ value;
+ return result;
+ }
+
//////////////////////////////////////////////////
// Toutes les options disponibles
//////////////////////////////////////////////////
@@ -430,7 +441,7 @@
DEMO_PATH(
"ui.demo.path",
_("jaxxdemo.config.ui.demo.path"),
- "jaxxdemo.tree/jaxxdemo.tree.component.jaxx/jaxxdemo.tree.component.jaxx.tree/" + NavDemo.class.getSimpleName(),
+ "jaxxdemo.tree/jaxxdemo.component.swing/jaxxdemo.component.swing.buttons/" + JButtonDemo.class.getSimpleName(),
String.class,
false,
true);
Added: trunk/jaxx-demo/src/main/java/jaxx/demo/DemoHelpBroker.java
===================================================================
--- trunk/jaxx-demo/src/main/java/jaxx/demo/DemoHelpBroker.java (rev 0)
+++ trunk/jaxx-demo/src/main/java/jaxx/demo/DemoHelpBroker.java 2014-01-10 16:52:31 UTC (rev 2766)
@@ -0,0 +1,145 @@
+package jaxx.demo;
+
+/*
+ * #%L
+ * Tutti :: UI
+ * $Id$
+ * $HeadURL: https://svn.forge.codelutin.com/svn/tutti/trunk/tutti-ui-swing/src/main/jav… $
+ * %%
+ * Copyright (C) 2012 - 2013 Ifremer
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
+import com.google.common.base.Preconditions;
+import jaxx.runtime.JAXXObject;
+import jaxx.runtime.SwingUtil;
+import jaxx.runtime.awt.visitor.BuildTreeVisitor;
+import jaxx.runtime.awt.visitor.ComponentTreeNode;
+import jaxx.runtime.awt.visitor.DebugComponentTreeNodeVisitor;
+import jaxx.runtime.awt.visitor.GetCompopentAtPointVisitor;
+import jaxx.runtime.swing.help.JAXXHelpBroker;
+import jaxx.runtime.swing.help.JAXXHelpUI;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+import javax.swing.AbstractButton;
+import java.awt.Component;
+import java.awt.Point;
+import java.awt.Rectangle;
+import java.awt.event.ActionListener;
+import java.awt.event.MouseEvent;
+
+/**
+ * Help broker.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 1.1
+ */
+public class DemoHelpBroker extends JAXXHelpBroker {
+
+ /** Logger */
+ private static final Log log = LogFactory.getLog(DemoHelpBroker.class);
+
+ public DemoHelpBroker(String defaultID) {
+ super("tutti", "help",
+ defaultID,
+ DemoApplicationContext.get());
+ }
+
+ @Override
+ public void prepareUI(JAXXObject c) {
+
+ Preconditions.checkNotNull(c, "parameter c can not be null!");
+
+ // l'ui doit avoir un boutton showHelp
+ AbstractButton help = getShowHelpButton(c);
+
+ if (help != null) {
+
+ // attach context to button
+ if (log.isDebugEnabled()) {
+ log.debug("attach context to showhelp button " + c);
+ }
+ help.putClientProperty(JAXX_CONTEXT_ENTRY, c);
+
+ // add tracking action
+ ActionListener listener = getShowHelpAction();
+ if (log.isDebugEnabled()) {
+ log.debug("adding tracking action " + listener);
+ }
+ help.addActionListener(listener);
+
+ if (log.isDebugEnabled()) {
+ log.debug("done for " + c);
+ }
+ }
+ }
+
+ @Override
+ public String findHelpId(Component comp) {
+
+ if (comp == null) {
+ comp = DemoApplicationContext.get().getMainUI();
+ }
+ JAXXHelpUI parentContainer = SwingUtil.getParent(comp, JAXXHelpUI.class);
+
+ String result;
+ if (parentContainer != null && this != parentContainer.getBroker()) {
+
+ JAXXHelpBroker broker = parentContainer.getBroker();
+ result = broker.findHelpId(comp);
+ } else {
+ result = super.findHelpId(comp);
+ }
+
+ if (result == null) {
+ result = "ui.main.menu";
+ }
+
+ return result;
+ }
+
+ @Override
+ public Component getDeppestComponent(Component mouseComponent, MouseEvent event) {
+ ComponentTreeNode tree = BuildTreeVisitor.buildTree(mouseComponent);
+
+ DebugComponentTreeNodeVisitor debugTree = new DebugComponentTreeNodeVisitor() {
+ @Override
+ public String getMessage(ComponentTreeNode componentTree) {
+ String message = super.getMessage(componentTree);
+ Component userObject = componentTree.getUserObject();
+ Rectangle rectangle = new Rectangle(userObject.getLocationOnScreen(), userObject.getSize());
+ return message + (userObject.isVisible() ? " visible" : "") + " - " + rectangle;
+ }
+ };
+
+ debugTree.setDebug(log.isDebugEnabled());
+
+ debugTree.parse(tree);
+
+// Point point = event.getPoint();
+ Point point = event.getLocationOnScreen();
+
+ Component component = GetCompopentAtPointVisitor.get(tree, point);
+ if (log.isDebugEnabled()) {
+ log.debug("Component at (" + point + "): " + component);
+ }
+ return component;
+ }
+
+
+}
Property changes on: trunk/jaxx-demo/src/main/java/jaxx/demo/DemoHelpBroker.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Modified: trunk/jaxx-demo/src/main/java/jaxx/demo/DemoPanel.jaxx
===================================================================
--- trunk/jaxx-demo/src/main/java/jaxx/demo/DemoPanel.jaxx 2014-01-08 18:55:30 UTC (rev 2765)
+++ trunk/jaxx-demo/src/main/java/jaxx/demo/DemoPanel.jaxx 2014-01-10 16:52:31 UTC (rev 2766)
@@ -26,11 +26,14 @@
<JPanel id='top' abstract='true'>
<import>
+ jaxx.demo.DemoHelpBroker
org.nuiton.util.StringUtil
</import>
<script><![CDATA[
+//protected String getHelpDefaultId() { return "ui.main.menu"; }
+
protected String[] getSources() {
if (DemoPanel.class.equals(getClass())) {
return StringUtil.EMPTY_STRING_ARRAY;
@@ -56,4 +59,8 @@
]]>
</script>
+ <String id='helpDefaultId' javaBean='"ui.main.menu"'/>
+
+ <DemoHelpBroker id='broker' constructorParams='getHelpDefaultId()'/>
+
</JPanel>
\ No newline at end of file
Added: trunk/jaxx-demo/src/main/java/jaxx/demo/DemoSources.css
===================================================================
--- trunk/jaxx-demo/src/main/java/jaxx/demo/DemoSources.css (rev 0)
+++ trunk/jaxx-demo/src/main/java/jaxx/demo/DemoSources.css 2014-01-10 16:52:31 UTC (rev 2766)
@@ -0,0 +1,11 @@
+#editorPaneHeader {
+ _help:{"ui.main.sources.toolbar"};
+}
+
+#sourceTabs {
+ _help:{"ui.main.sources.list"};
+}
+
+#editor {
+ _help:{"ui.main.sources.editor"};
+}
\ No newline at end of file
Property changes on: trunk/jaxx-demo/src/main/java/jaxx/demo/DemoSources.css
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Modified: trunk/jaxx-demo/src/main/java/jaxx/demo/DemoSources.jaxx
===================================================================
--- trunk/jaxx-demo/src/main/java/jaxx/demo/DemoSources.jaxx 2014-01-08 18:55:30 UTC (rev 2765)
+++ trunk/jaxx-demo/src/main/java/jaxx/demo/DemoSources.jaxx 2014-01-10 16:52:31 UTC (rev 2766)
@@ -23,9 +23,10 @@
#L%
-->
-<JPanel layout='{new BorderLayout()}'>
+<JPanel layout='{new BorderLayout()}' decorator='help'>
<import>
+ jaxx.demo.DemoHelpBroker
jaxx.runtime.SwingUtil
jaxx.runtime.swing.FontSizor
@@ -49,6 +50,8 @@
]]>
</script>
+ <DemoHelpBroker id='broker' constructorParams='"ui.main.sources"'/>
+
<Class id='incomingClass' javaBean='null' genericType='?'/>
<String id='currentSource' javaBean='null'/>
Modified: trunk/jaxx-demo/src/main/java/jaxx/demo/DemoUI.jaxx
===================================================================
--- trunk/jaxx-demo/src/main/java/jaxx/demo/DemoUI.jaxx 2014-01-08 18:55:30 UTC (rev 2765)
+++ trunk/jaxx-demo/src/main/java/jaxx/demo/DemoUI.jaxx 2014-01-10 16:52:31 UTC (rev 2766)
@@ -45,6 +45,7 @@
<DemoTreeHelper id='treeHelper'
initializer='getContextValue(DemoTreeHelper.class)'/>
+ <DemoHelpBroker id='broker' constructorParams='"ui.main.menu"'/>
<script><![CDATA[
@@ -86,6 +87,9 @@
onActionPerformed="handler.showAbout(this)"/>
</JMenu>
+ <!-- pour afficher l'aide contextuelle -->
+ <JButton id='showHelp'/>
+
</JMenuBar>
<JPanel id='mainPane' layout='{new BorderLayout()}'>
Modified: trunk/jaxx-demo/src/main/java/jaxx/demo/DemoUIHandler.java
===================================================================
--- trunk/jaxx-demo/src/main/java/jaxx/demo/DemoUIHandler.java 2014-01-08 18:55:30 UTC (rev 2765)
+++ trunk/jaxx-demo/src/main/java/jaxx/demo/DemoUIHandler.java 2014-01-10 16:52:31 UTC (rev 2766)
@@ -361,7 +361,7 @@
config.setFullscreen(fullscreen);
// rechargement de l'ui
- reloadUI(RunDemo.get(), config);
+ reloadUI(DemoApplicationContext.get(), config);
}
public void changeLanguage(JAXXContext context, Locale newLocale) {
@@ -374,7 +374,7 @@
config.setLocale(newLocale);
// rechargement de l'ui
- reloadUI(RunDemo.get(), config);
+ reloadUI(DemoApplicationContext.get(), config);
}
/**
@@ -400,7 +400,7 @@
if (log.isInfoEnabled()) {
log.info("will reload ui");
}
- DefaultApplicationContext context = RunDemo.get();
+ DefaultApplicationContext context = DemoApplicationContext.get();
DemoUI ui = getUI(context);
DemoConfig config = ui.getConfig();
reloadUI(context, config);
@@ -414,7 +414,7 @@
if (log.isInfoEnabled()) {
log.info("will reload appplication");
}
- close(RunDemo.get());
+ close(DemoApplicationContext.get());
}
};
@@ -425,7 +425,7 @@
if (log.isInfoEnabled()) {
log.info("will reload log appender");
}
- DefaultApplicationContext context = RunDemo.get();
+ DefaultApplicationContext context = DemoApplicationContext.get();
DemoUI ui = getUI(context);
DemoConfig config = ui.getConfig();
@@ -503,6 +503,11 @@
helper.displayUI(ui, false);
}
+ public void showHelp(DemoUI ui) {
+
+ DemoApplicationContext.get().showHelp(ui, ui.getBroker(), null);
+ }
+
public void showHelp(JAXXContext context, String helpId) {
log.info(context + " :: " + helpId);
// DemoUI mainUI = getUI(context);
Modified: trunk/jaxx-demo/src/main/java/jaxx/demo/RunDemo.java
===================================================================
--- trunk/jaxx-demo/src/main/java/jaxx/demo/RunDemo.java 2014-01-08 18:55:30 UTC (rev 2765)
+++ trunk/jaxx-demo/src/main/java/jaxx/demo/RunDemo.java 2014-01-10 16:52:31 UTC (rev 2766)
@@ -29,15 +29,14 @@
import jaxx.demo.tree.DemoDataProvider;
import jaxx.demo.tree.DemoTreeHelper;
import jaxx.runtime.SwingUtil;
-import jaxx.runtime.context.DefaultApplicationContext;
import jaxx.runtime.swing.ErrorDialogUI;
import jaxx.runtime.swing.log.JAXXLog4jUI;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+import org.nuiton.decorator.DecoratorProvider;
import org.nuiton.i18n.I18n;
import org.nuiton.i18n.init.DefaultI18nInitializer;
import org.nuiton.util.StringUtil;
-import org.nuiton.decorator.DecoratorProvider;
import java.util.Arrays;
import java.util.Date;
@@ -50,9 +49,6 @@
/** Logger */
private static Log log = LogFactory.getLog(RunDemo.class);
- /** The singleton instance of the main context */
- protected static volatile DefaultApplicationContext context;
-
public static void main(String[] args) {
long startingTime = System.nanoTime();
@@ -72,16 +68,15 @@
Runtime.getRuntime().addShutdownHook(new ShutdownHook());
+ // init config
+ DemoConfig config = new DemoConfig(args);
+
// init root context
- DefaultApplicationContext rootContext = init();
+ DemoApplicationContext rootContext = DemoApplicationContext.init(config);
// share a tree helper
rootContext.setContextValue(new DemoTreeHelper(new DemoDataProvider()));
- // init config
- DemoConfig config = new DemoConfig(args);
-
-
// share the config
rootContext.setContextValue(config);
@@ -131,6 +126,8 @@
log.info(_("jaxxdemo.init.ui.done"));
+ DemoApplicationContext.MAIN_UI.setContextValue(rootContext, ui);
+
handler.displayUI(ui, config.getDemoPath().split("/"));
} catch (Exception e) {
@@ -140,45 +137,6 @@
}
}
- /**
- * @return <code>true</code> si le context a été initialisé via la méthode
- * {@link #init()}, <ocde>false</code> autrement.
- */
- protected static boolean isInit() {
- return context != null;
- }
-
- /**
- * Permet l'initialisation du contexte applicatif et positionne
- * l'context partagée.
- * <p/>
- * Note : Cette méthode ne peut être appelée qu'une seule fois.
- *
- * @return l'context partagée
- * @throws IllegalStateException si un contexte applicatif a déja été positionné.
- */
- protected static DefaultApplicationContext init() throws IllegalStateException {
- if (isInit()) {
- throw new IllegalStateException("there is an already application context registred.");
- }
- context = new DefaultApplicationContext();
- return context;
- }
-
- /**
- * Récupération du contexte applicatif.
- *
- * @return l'context partagé du contexte.
- * @throws IllegalStateException si le contexte n'a pas été initialisé via
- * la méthode {@link #init()}
- */
- public static DefaultApplicationContext get() throws IllegalStateException {
- if (!isInit()) {
- throw new IllegalStateException("no application context registred.");
- }
- return context;
- }
-
protected static class ShutdownHook extends Thread {
public ShutdownHook() {
Added: trunk/jaxx-demo/src/main/java/jaxx/demo/component/swing/JButtonDemo.css
===================================================================
--- trunk/jaxx-demo/src/main/java/jaxx/demo/component/swing/JButtonDemo.css (rev 0)
+++ trunk/jaxx-demo/src/main/java/jaxx/demo/component/swing/JButtonDemo.css 2014-01-10 16:52:31 UTC (rev 2766)
@@ -0,0 +1,11 @@
+#topDemoPanel {
+ _help:{"ui.component.swing.buttons.JButtonDemo"};
+}
+
+#simpleButon {
+ _help:{"ui.component.swing.buttons.JButtonDemo.simpleButon"};
+}
+
+#fancyButon {
+ _help:{"ui.component.swing.buttons.JButtonDemo.fancyButon"};
+}
\ No newline at end of file
Property changes on: trunk/jaxx-demo/src/main/java/jaxx/demo/component/swing/JButtonDemo.css
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Modified: trunk/jaxx-demo/src/main/java/jaxx/demo/component/swing/JButtonDemo.jaxx
===================================================================
--- trunk/jaxx-demo/src/main/java/jaxx/demo/component/swing/JButtonDemo.jaxx 2014-01-08 18:55:30 UTC (rev 2765)
+++ trunk/jaxx-demo/src/main/java/jaxx/demo/component/swing/JButtonDemo.jaxx 2014-01-10 16:52:31 UTC (rev 2766)
@@ -23,7 +23,7 @@
#L%
-->
-<jaxx.demo.DemoPanel>
+<jaxx.demo.DemoPanel id='topDemoPanel' decorator='help'>
<style>
JButton.fancy {
foreground: blue;
@@ -50,13 +50,15 @@
java.awt.Color
</import>
+ <String id='helpDefaultId' initializer='"ui.component.swing.buttons.JButtonDemo"'/>
+
<javax.swing.ImageIcon id='pencil'
constructorParams='getClass().getResource("/jaxx/demo/images/pencil_black.gif")'/>
<VBox horizontalAlignment='center' verticalAlignment='middle'>
- <JButton text='Simple Button'
+ <JButton id='simpleButon' text='Simple Button'
onActionPerformed='buttonClicked((JButton) event.getSource())'/>
- <JButton text='Fancy Button' styleClass='fancy' icon='{pencil}'
+ <JButton id='fancyButon' text='Fancy Button' styleClass='fancy' icon='{pencil}'
onActionPerformed='buttonClicked((JButton) event.getSource())'/>
</VBox>
</jaxx.demo.DemoPanel>
Modified: trunk/jaxx-demo/src/main/resources/i18n/jaxx-demo_en_GB.properties
===================================================================
--- trunk/jaxx-demo/src/main/resources/i18n/jaxx-demo_en_GB.properties 2014-01-08 18:55:30 UTC (rev 2765)
+++ trunk/jaxx-demo/src/main/resources/i18n/jaxx-demo_en_GB.properties 2014-01-10 16:52:31 UTC (rev 2766)
@@ -175,6 +175,7 @@
jaxxdemo.action.normalscreen.tip=Change to normal screen mode
jaxxdemo.action.remove=Remove
jaxxdemo.action.show=show
+jaxxdemo.action.showHelp.tip=
jaxxdemo.action.showLogs=Show logs
jaxxdemo.action.showLogs.mnemonic=S
jaxxdemo.action.site=Web site
@@ -235,6 +236,7 @@
jaxxdemo.config.ui.locale=Language used in application
jaxxdemo.config.ui.logLevel=Log level
jaxxdemo.config.ui.logPatternLayout=Log pattern
+jaxxdemo.context.helpPage.notFound=
jaxxdemo.coordinate.latitude=
jaxxdemo.coordinate.latitudeDd=
jaxxdemo.coordinate.latitudeDmd=
@@ -333,5 +335,6 @@
t0.isSelected()\ &&\ t1.isSelected()=
t0.isSelected()\ ||\ t1.isSelected()=
t1.isSelected()=
+tutti.context.helpPage.notFound=
valid=
x=
Modified: trunk/jaxx-demo/src/main/resources/i18n/jaxx-demo_es_ES.properties
===================================================================
--- trunk/jaxx-demo/src/main/resources/i18n/jaxx-demo_es_ES.properties 2014-01-08 18:55:30 UTC (rev 2765)
+++ trunk/jaxx-demo/src/main/resources/i18n/jaxx-demo_es_ES.properties 2014-01-10 16:52:31 UTC (rev 2766)
@@ -176,6 +176,7 @@
jaxxdemo.action.normalscreen.tip=Revenir en mode normal
jaxxdemo.action.remove=Supprimer
jaxxdemo.action.show=Voir
+jaxxdemo.action.showHelp.tip=
jaxxdemo.action.showLogs=
jaxxdemo.action.showLogs.mnemonic=
jaxxdemo.action.site=Site internet
@@ -236,6 +237,7 @@
jaxxdemo.config.ui.locale=La langue utilisée par l'application
jaxxdemo.config.ui.logLevel=Level de log
jaxxdemo.config.ui.logPatternLayout=Pattern des log
+jaxxdemo.context.helpPage.notFound=
jaxxdemo.coordinate.latitude=
jaxxdemo.coordinate.latitudeDd=
jaxxdemo.coordinate.latitudeDmd=
@@ -336,6 +338,7 @@
t0.isSelected()\ &&\ t1.isSelected()=
t0.isSelected()\ ||\ t1.isSelected()=
t1.isSelected()=
+tutti.context.helpPage.notFound=
tutti.menu.file.mnemonic=
tutti.menu.help.mnemonic=
valid=valide
Modified: trunk/jaxx-demo/src/main/resources/i18n/jaxx-demo_fr_FR.properties
===================================================================
--- trunk/jaxx-demo/src/main/resources/i18n/jaxx-demo_fr_FR.properties 2014-01-08 18:55:30 UTC (rev 2765)
+++ trunk/jaxx-demo/src/main/resources/i18n/jaxx-demo_fr_FR.properties 2014-01-10 16:52:31 UTC (rev 2766)
@@ -175,6 +175,7 @@
jaxxdemo.action.normalscreen.tip=Revenir en mode normal
jaxxdemo.action.remove=Supprimer
jaxxdemo.action.show=Voir
+jaxxdemo.action.showHelp.tip=
jaxxdemo.action.showLogs=Afficher les logs
jaxxdemo.action.showLogs.mnemonic=l
jaxxdemo.action.site=Site internet
@@ -235,6 +236,7 @@
jaxxdemo.config.ui.locale=La langue utilisée par l'application
jaxxdemo.config.ui.logLevel=Level de log
jaxxdemo.config.ui.logPatternLayout=Pattern des log
+jaxxdemo.context.helpPage.notFound=
jaxxdemo.coordinate.latitude=Latitude
jaxxdemo.coordinate.latitudeDd=Latitude (au format DD)
jaxxdemo.coordinate.latitudeDmd=Latitude (au format DMD)
@@ -328,5 +330,6 @@
t0.isSelected()\ &&\ t1.isSelected()=
t0.isSelected()\ ||\ t1.isSelected()=
t1.isSelected()=
+tutti.context.helpPage.notFound=
valid=valide
x=x
Added: trunk/jaxx-demo/src/main/resources/jaxxdemo-help-fr.properties
===================================================================
--- trunk/jaxx-demo/src/main/resources/jaxxdemo-help-fr.properties (rev 0)
+++ trunk/jaxx-demo/src/main/resources/jaxxdemo-help-fr.properties 2014-01-10 16:52:31 UTC (rev 2766)
@@ -0,0 +1,23 @@
+#Generated by org.nuiton.jaxx.plugin.GenerateHelpIdsMojo
+#Fri Jan 10 13:44:01 CET 2014
+ui.component.swing.buttons.JButtonDemo=
+ui.component.swing.buttons.JButtonDemo.fancyButon=
+ui.component.swing.buttons.JButtonDemo.simpleButon=
+ui.main.action.showLogs=
+ui.main.body.db.view.content=
+ui.main.menu=
+ui.main.menu.file=
+ui.main.menu.file.configuration=
+ui.main.menu.file.exit=
+ui.main.menu.file.fullscreen=
+ui.main.menu.file.leave-fullscreen=
+ui.main.menu.file.locale=
+ui.main.menu.file.locale.fr=
+ui.main.menu.file.locale.uk=
+ui.main.menu.help=
+ui.main.menu.help.about=
+ui.main.menu.help.help=
+ui.main.menu.help.site=
+ui.main.sources.editor=
+ui.main.sources.list=
+ui.main.sources.toolbar=
Property changes on: trunk/jaxx-demo/src/main/resources/jaxxdemo-help-fr.properties
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Modified: trunk/jaxx-demo/src/main/resources/log4j.properties
===================================================================
--- trunk/jaxx-demo/src/main/resources/log4j.properties 2014-01-08 18:55:30 UTC (rev 2765)
+++ trunk/jaxx-demo/src/main/resources/log4j.properties 2014-01-10 16:52:31 UTC (rev 2766)
@@ -38,3 +38,4 @@
#log4j.logger.jaxx.runtime.swing.editor.config=INFO
#log4j.logger.jaxx.runtime.swing.editor.config.model.ConfigUIModelBuilder=DEBUG
log4j.logger.org.nuiton=WARN
+log4j.logger.jaxx.runtime.swing.help=DEBUG
Modified: trunk/jaxx-runtime/src/main/java/jaxx/runtime/SwingUtil.java
===================================================================
--- trunk/jaxx-runtime/src/main/java/jaxx/runtime/SwingUtil.java 2014-01-08 18:55:30 UTC (rev 2765)
+++ trunk/jaxx-runtime/src/main/java/jaxx/runtime/SwingUtil.java 2014-01-10 16:52:31 UTC (rev 2766)
@@ -1486,4 +1486,36 @@
return text == null || text.trim().length() == 0 ?
defaultValue : text.charAt(0);
}
+
+ public static void openLink(URI uri) {
+
+ Desktop desktop = getDesktopForBrowse();
+
+ try {
+
+ desktop.browse(uri);
+ } catch (Exception e) {
+
+ throw new RuntimeException(
+ _("application.error.cannot.open.link", uri), e);
+ }
+ }
+
+ public static Desktop getDesktopForBrowse() {
+
+ if (!Desktop.isDesktopSupported()) {
+ throw new RuntimeException(
+ _("application.error.desktop.not.supported"));
+ }
+
+ Desktop desktop = Desktop.getDesktop();
+
+ if (!desktop.isSupported(Desktop.Action.BROWSE)) {
+
+ throw new RuntimeException(
+ _("application.error.desktop.browse.not.supported"));
+ }
+
+ return desktop;
+ }
}
Modified: trunk/jaxx-runtime/src/main/java/jaxx/runtime/awt/visitor/ComponentTreeNode.java
===================================================================
--- trunk/jaxx-runtime/src/main/java/jaxx/runtime/awt/visitor/ComponentTreeNode.java 2014-01-08 18:55:30 UTC (rev 2765)
+++ trunk/jaxx-runtime/src/main/java/jaxx/runtime/awt/visitor/ComponentTreeNode.java 2014-01-10 16:52:31 UTC (rev 2766)
@@ -34,7 +34,7 @@
/**
* A node where userObject is a {@link Component}.
* <p/>
- * If the compoent is a {@link Container}, then his children are the components
+ * If the component is a {@link Container}, then his children are the components
* of the container.
*
* @author tchemit <chemit(a)codelutin.com>
Added: trunk/jaxx-runtime/src/main/java/jaxx/runtime/awt/visitor/DebugComponentTreeNodeVisitor.java
===================================================================
--- trunk/jaxx-runtime/src/main/java/jaxx/runtime/awt/visitor/DebugComponentTreeNodeVisitor.java (rev 0)
+++ trunk/jaxx-runtime/src/main/java/jaxx/runtime/awt/visitor/DebugComponentTreeNodeVisitor.java 2014-01-10 16:52:31 UTC (rev 2766)
@@ -0,0 +1,89 @@
+package jaxx.runtime.awt.visitor;
+
+/*
+ * #%L
+ * JAXX :: Runtime
+ * $Id$
+ * $HeadURL: http://svn.nuiton.org/svn/jaxx/trunk/jaxx-runtime/src/main/java/jaxx/runtim… $
+ * %%
+ * Copyright (C) 2008 - 2013 CodeLutin, Tony Chemit
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Lesser Public License for more details.
+ *
+ * You should have received a copy of the GNU General Lesser Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
+ */
+
+import org.apache.commons.lang3.StringUtils;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+import java.awt.Component;
+
+/**
+ * To print a tree node.
+ * <p/>
+ * Created on 1/10/14.
+ *
+ * @author Tony Chemit <chemit(a)codelutin.com>
+ * @since 2.7
+ */
+public class DebugComponentTreeNodeVisitor implements ComponentTreeNodeVisitor {
+
+ /** Logger. */
+ private static final Log log =
+ LogFactory.getLog(DebugComponentTreeNodeVisitor.class);
+
+ /**
+ * Flag to log in debug level (otherwise will be in info level).
+ */
+ protected boolean debug;
+
+ protected int level = 0;
+
+ public void parse(ComponentTreeNode componentTree) {
+
+ sb = new StringBuilder();
+ componentTree.visit(this);
+
+ String message = sb.toString();
+ if (debug) {
+ log.debug(message);
+ } else {
+ log.info(message);
+ }
+ }
+
+ protected StringBuilder sb = new StringBuilder();
+
+ @Override
+ public void startNode(ComponentTreeNode componentTree) {
+ String message = StringUtils.leftPad(" ", 2 * level);
+ sb.append("\n").append(message).append(getMessage(componentTree));
+ level++;
+ }
+
+ @Override
+ public void endNode(ComponentTreeNode componentTree) {
+ level--;
+ }
+
+ public void setDebug(boolean debug) {
+ this.debug = debug;
+ }
+
+ public String getMessage(ComponentTreeNode componentTree) {
+ Component userObject = componentTree.getUserObject();
+ return userObject.getClass().getSimpleName() + "::" + userObject.getName();
+ }
+}
Property changes on: trunk/jaxx-runtime/src/main/java/jaxx/runtime/awt/visitor/DebugComponentTreeNodeVisitor.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Modified: trunk/jaxx-runtime/src/main/java/jaxx/runtime/awt/visitor/GetCompopentAtPointVisitor.java
===================================================================
--- trunk/jaxx-runtime/src/main/java/jaxx/runtime/awt/visitor/GetCompopentAtPointVisitor.java 2014-01-08 18:55:30 UTC (rev 2765)
+++ trunk/jaxx-runtime/src/main/java/jaxx/runtime/awt/visitor/GetCompopentAtPointVisitor.java 2014-01-10 16:52:31 UTC (rev 2766)
@@ -30,6 +30,7 @@
import java.awt.Component;
import java.awt.Point;
+import java.awt.Rectangle;
import java.util.List;
/**
@@ -79,15 +80,24 @@
public void startNode(ComponentTreeNode node) {
Component component = node.getUserObject();
- Point point = component.getLocation();
- currentX -= point.x;
- currentY -= point.y;
+ if (!(component.isVisible() && component.isShowing())) {
+ if (log.isDebugEnabled()) {
+ log.debug("Skip invisible component: " +
+ component.getClass().getSimpleName() + "::" +
+ component.getName());
+ }
+ return;
+ }
// check parent is ok
if (node.isRoot() || components.contains(node.getParent())) {
- boolean containsPoint = component.contains(currentX, currentY);
+ Point locationOnScreen = component.getLocationOnScreen();
+ Rectangle bounds = component.getBounds();
+ bounds.setLocation(locationOnScreen);
+ boolean containsPoint = bounds.contains(currentX, currentY);
+
if (containsPoint) {
if (log.isDebugEnabled()) {
@@ -102,8 +112,5 @@
@Override
public void endNode(ComponentTreeNode componentTree) {
- Point point = componentTree.getUserObject().getLocation();
- currentX += point.x;
- currentY += point.y;
}
}
Modified: trunk/jaxx-runtime/src/main/java/jaxx/runtime/swing/help/JAXXHelpBroker.java
===================================================================
--- trunk/jaxx-runtime/src/main/java/jaxx/runtime/swing/help/JAXXHelpBroker.java 2014-01-08 18:55:30 UTC (rev 2765)
+++ trunk/jaxx-runtime/src/main/java/jaxx/runtime/swing/help/JAXXHelpBroker.java 2014-01-10 16:52:31 UTC (rev 2766)
@@ -27,7 +27,9 @@
import com.google.common.base.Preconditions;
import jaxx.runtime.JAXXContext;
import jaxx.runtime.JAXXObject;
-import jaxx.runtime.SwingUtil;
+import jaxx.runtime.awt.visitor.BuildTreeVisitor;
+import jaxx.runtime.awt.visitor.ComponentTreeNode;
+import jaxx.runtime.awt.visitor.GetCompopentAtPointVisitor;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@@ -47,6 +49,7 @@
import java.awt.EventQueue;
import java.awt.Frame;
import java.awt.MenuComponent;
+import java.awt.Point;
import java.awt.Toolkit;
import java.awt.Window;
import java.awt.event.ActionEvent;
@@ -290,7 +293,16 @@
}
protected Component getDeppestComponent(Component mouseComponent, MouseEvent event) {
- return SwingUtil.getDeepestObjectAt(mouseComponent, event.getX(), event.getY());
+ ComponentTreeNode tree = BuildTreeVisitor.buildTree(mouseComponent);
+
+ Point point = event.getLocationOnScreen();
+
+ Component component = GetCompopentAtPointVisitor.get(tree, point);
+ if (log.isDebugEnabled()) {
+ log.debug("Component at (" + point + "): " + component);
+ }
+ return component;
+// return SwingUtil.getDeepestObjectAt(mouseComponent, event.getX(), event.getY());
}
public String findHelpId(Component comp) {
1
0
r2765 - in trunk: . jaxx-compiler/src/site jaxx-config/src/site jaxx-demo jaxx-demo/src/main/java/jaxx/demo/component/jaxx/editor jaxx-demo/src/site jaxx-demo/src/site/rst jaxx-maven-plugin/src/site jaxx-runtime/src/site jaxx-swing-action/src/site jaxx-validator/src/site jaxx-widgets/src/site src/site
by tchemit@users.nuiton.org 08 Jan '14
by tchemit@users.nuiton.org 08 Jan '14
08 Jan '14
Author: tchemit
Date: 2014-01-08 19:55:30 +0100 (Wed, 08 Jan 2014)
New Revision: 2765
Url: http://nuiton.org/projects/jaxx/repository/revisions/2765
Log:
fixes #2998: Updates mavenpom to 4.5
Modified:
trunk/jaxx-compiler/src/site/site_fr.xml
trunk/jaxx-config/src/site/site_fr.xml
trunk/jaxx-demo/pom.xml
trunk/jaxx-demo/src/main/java/jaxx/demo/component/jaxx/editor/CoordinateDemo.css
trunk/jaxx-demo/src/main/java/jaxx/demo/component/jaxx/editor/CoordinateDemo.jaxx
trunk/jaxx-demo/src/main/java/jaxx/demo/component/jaxx/editor/CoordinateDemoHandler.java
trunk/jaxx-demo/src/main/java/jaxx/demo/component/jaxx/editor/CoordinateDemoModel.java
trunk/jaxx-demo/src/main/java/jaxx/demo/component/jaxx/editor/SimpleTimeEditorDemo.css
trunk/jaxx-demo/src/main/java/jaxx/demo/component/jaxx/editor/SimpleTimeEditorDemo.jaxx
trunk/jaxx-demo/src/main/java/jaxx/demo/component/jaxx/editor/SimpleTimeEditorDemoHandler.java
trunk/jaxx-demo/src/site/rst/index.rst
trunk/jaxx-demo/src/site/site_fr.xml
trunk/jaxx-maven-plugin/src/site/site_fr.xml
trunk/jaxx-runtime/src/site/site_fr.xml
trunk/jaxx-swing-action/src/site/site_fr.xml
trunk/jaxx-validator/src/site/site_fr.xml
trunk/jaxx-widgets/src/site/site_fr.xml
trunk/pom.xml
trunk/src/site/site_fr.xml
Modified: trunk/jaxx-compiler/src/site/site_fr.xml
===================================================================
--- trunk/jaxx-compiler/src/site/site_fr.xml 2013-11-28 17:33:52 UTC (rev 2764)
+++ trunk/jaxx-compiler/src/site/site_fr.xml 2014-01-08 18:55:30 UTC (rev 2765)
@@ -28,7 +28,7 @@
<bannerLeft>
<name>${project.name}</name>
- <src>http://maven-site.chorem.org/public/images/logos/jaxx-logo.png</src>
+ <src>${mavenpomSiteCommonResourcesUrl}/images/logos/jaxx-logo.png</src>
<href>index.html</href>
</bannerLeft>
@@ -36,11 +36,11 @@
<head>
<script type="text/javascript"
- src="http://maven-site.nuiton.org/public/js/mavenpom-site.js">
+ src="${mavenpomSiteCommonResourcesUrl}/js/mavenpom-site.js">
</script>
<link rel="stylesheet" type="text/css"
- href="http://maven-site.nuiton.org/public/css/mavenpom-site.css"/>
+ href="${mavenpomSiteCommonResourcesUrl}/css/mavenpom-site.css"/>
</head>
<breadcrumbs>
@@ -66,7 +66,8 @@
scmwebeditorurl='${project.scmwebeditorUrl}'
siteSourcesType='${project.siteSourcesType}'
piwikEnabled='${project.piwikEnabled}'
- piwikId='${project.piwikId}'>
+ piwikId='${project.piwikId}'
+ scmwebeditor_skipDefaultFiles="true">
</div>
</footer>
Modified: trunk/jaxx-config/src/site/site_fr.xml
===================================================================
--- trunk/jaxx-config/src/site/site_fr.xml 2013-11-28 17:33:52 UTC (rev 2764)
+++ trunk/jaxx-config/src/site/site_fr.xml 2014-01-08 18:55:30 UTC (rev 2765)
@@ -28,7 +28,7 @@
<bannerLeft>
<name>${project.name}</name>
- <src>http://maven-site.chorem.org/public/images/logos/jaxx-logo.png</src>
+ <src>${mavenpomSiteCommonResourcesUrl}/images/logos/jaxx-logo.png</src>
<href>index.html</href>
</bannerLeft>
@@ -36,11 +36,11 @@
<head>
<script type="text/javascript"
- src="http://maven-site.nuiton.org/public/js/mavenpom-site.js">
+ src="${mavenpomSiteCommonResourcesUrl}/js/mavenpom-site.js">
</script>
<link rel="stylesheet" type="text/css"
- href="http://maven-site.nuiton.org/public/css/mavenpom-site.css"/>
+ href="${mavenpomSiteCommonResourcesUrl}/css/mavenpom-site.css"/>
</head>
<breadcrumbs>
Modified: trunk/jaxx-demo/pom.xml
===================================================================
--- trunk/jaxx-demo/pom.xml 2013-11-28 17:33:52 UTC (rev 2764)
+++ trunk/jaxx-demo/pom.xml 2014-01-08 18:55:30 UTC (rev 2765)
@@ -54,6 +54,8 @@
<!-- Post Release configuration -->
<skipPostRelease>false</skipPostRelease>
+
+ <webstartPluginVersion>1.0-beta-5-SNAPSHOT</webstartPluginVersion>
</properties>
<dependencies>
@@ -304,6 +306,7 @@
</property>
</activation>
<build>
+ <defaultGoal>package</defaultGoal>
<plugins>
<!-- key store secrets availables -->
<plugin>
@@ -336,7 +339,7 @@
<id>generate-jnlp</id>
<phase>package</phase>
<goals>
- <goal>jnlp-inline</goal>
+ <goal>jnlp-single2</goal>
</goals>
</execution>
</executions>
Modified: trunk/jaxx-demo/src/main/java/jaxx/demo/component/jaxx/editor/CoordinateDemo.css
===================================================================
--- trunk/jaxx-demo/src/main/java/jaxx/demo/component/jaxx/editor/CoordinateDemo.css 2013-11-28 17:33:52 UTC (rev 2764)
+++ trunk/jaxx-demo/src/main/java/jaxx/demo/component/jaxx/editor/CoordinateDemo.css 2014-01-08 18:55:30 UTC (rev 2765)
@@ -1,3 +1,26 @@
+/*
+ * #%L
+ * JAXX :: Demo
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2008 - 2013 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Lesser Public License for more details.
+ *
+ * You should have received a copy of the GNU General Lesser Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
+ */
#config {
border: {new TitledBorder(_("jaxxdemo.numbereditor.configuration"))};
Modified: trunk/jaxx-demo/src/main/java/jaxx/demo/component/jaxx/editor/CoordinateDemo.jaxx
===================================================================
--- trunk/jaxx-demo/src/main/java/jaxx/demo/component/jaxx/editor/CoordinateDemo.jaxx 2013-11-28 17:33:52 UTC (rev 2764)
+++ trunk/jaxx-demo/src/main/java/jaxx/demo/component/jaxx/editor/CoordinateDemo.jaxx 2014-01-08 18:55:30 UTC (rev 2765)
@@ -1,3 +1,26 @@
+<!--
+ #%L
+ JAXX :: Demo
+ $Id$
+ $HeadURL$
+ %%
+ Copyright (C) 2008 - 2013 CodeLutin
+ %%
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Lesser Public License for more details.
+
+ You should have received a copy of the GNU General Lesser Public
+ License along with this program. If not, see
+ <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ #L%
+ -->
<jaxx.demo.DemoPanel layout='{new BorderLayout()}'>
<import>
Modified: trunk/jaxx-demo/src/main/java/jaxx/demo/component/jaxx/editor/CoordinateDemoHandler.java
===================================================================
--- trunk/jaxx-demo/src/main/java/jaxx/demo/component/jaxx/editor/CoordinateDemoHandler.java 2013-11-28 17:33:52 UTC (rev 2764)
+++ trunk/jaxx-demo/src/main/java/jaxx/demo/component/jaxx/editor/CoordinateDemoHandler.java 2014-01-08 18:55:30 UTC (rev 2765)
@@ -1,5 +1,29 @@
package jaxx.demo.component.jaxx.editor;
+/*
+ * #%L
+ * JAXX :: Demo
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2008 - 2013 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Lesser Public License for more details.
+ *
+ * You should have received a copy of the GNU General Lesser Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
+ */
+
import jaxx.runtime.spi.UIHandler;
import jaxx.runtime.swing.editor.gis.DmdCoordinate;
import jaxx.runtime.swing.editor.gis.DmsCoordinate;
Modified: trunk/jaxx-demo/src/main/java/jaxx/demo/component/jaxx/editor/CoordinateDemoModel.java
===================================================================
--- trunk/jaxx-demo/src/main/java/jaxx/demo/component/jaxx/editor/CoordinateDemoModel.java 2013-11-28 17:33:52 UTC (rev 2764)
+++ trunk/jaxx-demo/src/main/java/jaxx/demo/component/jaxx/editor/CoordinateDemoModel.java 2014-01-08 18:55:30 UTC (rev 2765)
@@ -1,5 +1,29 @@
package jaxx.demo.component.jaxx.editor;
+/*
+ * #%L
+ * JAXX :: Demo
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2008 - 2013 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Lesser Public License for more details.
+ *
+ * You should have received a copy of the GNU General Lesser Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
+ */
+
import org.jdesktop.beans.AbstractSerializableBean;
/**
Modified: trunk/jaxx-demo/src/main/java/jaxx/demo/component/jaxx/editor/SimpleTimeEditorDemo.css
===================================================================
--- trunk/jaxx-demo/src/main/java/jaxx/demo/component/jaxx/editor/SimpleTimeEditorDemo.css 2013-11-28 17:33:52 UTC (rev 2764)
+++ trunk/jaxx-demo/src/main/java/jaxx/demo/component/jaxx/editor/SimpleTimeEditorDemo.css 2014-01-08 18:55:30 UTC (rev 2765)
@@ -1,23 +1,23 @@
/*
* #%L
* JAXX :: Demo
- *
+ * *
* $Id$
* $HeadURL$
* %%
* Copyright (C) 2008 - 2010 CodeLutin
* %%
* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation, either version 3 of the
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Lesser Public License for more details.
- *
- * You should have received a copy of the GNU General Lesser Public
+ *
+ * You should have received a copy of the GNU General Lesser Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/lgpl-3.0.html>.
* #L%
Modified: trunk/jaxx-demo/src/main/java/jaxx/demo/component/jaxx/editor/SimpleTimeEditorDemo.jaxx
===================================================================
--- trunk/jaxx-demo/src/main/java/jaxx/demo/component/jaxx/editor/SimpleTimeEditorDemo.jaxx 2013-11-28 17:33:52 UTC (rev 2764)
+++ trunk/jaxx-demo/src/main/java/jaxx/demo/component/jaxx/editor/SimpleTimeEditorDemo.jaxx 2014-01-08 18:55:30 UTC (rev 2765)
@@ -1,3 +1,26 @@
+<!--
+ #%L
+ JAXX :: Demo
+ $Id$
+ $HeadURL$
+ %%
+ Copyright (C) 2008 - 2013 CodeLutin
+ %%
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Lesser Public License for more details.
+
+ You should have received a copy of the GNU General Lesser Public
+ License along with this program. If not, see
+ <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ #L%
+ -->
<jaxx.demo.DemoPanel layout='{new BorderLayout()}'>
<import>
Modified: trunk/jaxx-demo/src/main/java/jaxx/demo/component/jaxx/editor/SimpleTimeEditorDemoHandler.java
===================================================================
--- trunk/jaxx-demo/src/main/java/jaxx/demo/component/jaxx/editor/SimpleTimeEditorDemoHandler.java 2013-11-28 17:33:52 UTC (rev 2764)
+++ trunk/jaxx-demo/src/main/java/jaxx/demo/component/jaxx/editor/SimpleTimeEditorDemoHandler.java 2014-01-08 18:55:30 UTC (rev 2765)
@@ -1,5 +1,29 @@
package jaxx.demo.component.jaxx.editor;
+/*
+ * #%L
+ * JAXX :: Demo
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2008 - 2013 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Lesser Public License for more details.
+ *
+ * You should have received a copy of the GNU General Lesser Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
+ */
+
import jaxx.runtime.spi.UIHandler;
/**
Modified: trunk/jaxx-demo/src/site/rst/index.rst
===================================================================
--- trunk/jaxx-demo/src/site/rst/index.rst 2013-11-28 17:33:52 UTC (rev 2764)
+++ trunk/jaxx-demo/src/site/rst/index.rst 2014-01-08 18:55:30 UTC (rev 2765)
@@ -56,7 +56,7 @@
.. _Java Web Start: http://java.sun.com/products/javawebstart/
-.. |webstart| image:: http://maven-site.nuiton.org/public/images/logos//webstart.gif
+.. |webstart| image:: ${mavenpomSiteCommonResourcesUrl}/images/logos/webstart.gif
.. _following link: ./jnlp/launch.jnlp
Modified: trunk/jaxx-demo/src/site/site_fr.xml
===================================================================
--- trunk/jaxx-demo/src/site/site_fr.xml 2013-11-28 17:33:52 UTC (rev 2764)
+++ trunk/jaxx-demo/src/site/site_fr.xml 2014-01-08 18:55:30 UTC (rev 2765)
@@ -27,24 +27,24 @@
<bannerLeft>
<name>${project.name}</name>
- <src>http://maven-site.chorem.org/public/images/logos/jaxx-logo.png</src>
+ <src>${mavenpomSiteCommonResourcesUrl}/images/logos/jaxx-logo.png</src>
<href>index.html</href>
</bannerLeft>
<poweredBy>
<logo href="http://maven-site.nuiton.org/jaxx/" name="Jaxx"
- img="http://maven-site.nuiton.org/public/images/logos/jaxx-logo.png"/>
+ img="${mavenpomSiteCommonResourcesUrl}/images/logos/jaxx-logo.png"/>
</poweredBy>
<body>
<head>
<script type="text/javascript"
- src="http://maven-site.nuiton.org/public/js/mavenpom-site.js">
+ src="${mavenpomSiteCommonResourcesUrl}/js/mavenpom-site.js">
</script>
<link rel="stylesheet" type="text/css"
- href="http://maven-site.nuiton.org/public/css/mavenpom-site.css"/>
+ href="${mavenpomSiteCommonResourcesUrl}/css/mavenpom-site.css"/>
</head>
<breadcrumbs>
@@ -73,7 +73,8 @@
scmwebeditorurl='${project.scmwebeditorUrl}'
siteSourcesType='${project.siteSourcesType}'
piwikEnabled='${project.piwikEnabled}'
- piwikId='${project.piwikId}'>
+ piwikId='${project.piwikId}'
+ scmwebeditor_skipDefaultFiles="true">
</div>
</footer>
Modified: trunk/jaxx-maven-plugin/src/site/site_fr.xml
===================================================================
--- trunk/jaxx-maven-plugin/src/site/site_fr.xml 2013-11-28 17:33:52 UTC (rev 2764)
+++ trunk/jaxx-maven-plugin/src/site/site_fr.xml 2014-01-08 18:55:30 UTC (rev 2765)
@@ -28,7 +28,7 @@
<bannerLeft>
<name>${project.name}</name>
- <src>http://maven-site.nuiton.org/public/images/logos/jaxx-logo.png</src>
+ <src>${mavenpomSiteCommonResourcesUrl}/images/logos/jaxx-logo.png</src>
<href>index.html</href>
</bannerLeft>
@@ -36,11 +36,11 @@
<head>
<script type="text/javascript"
- src="http://maven-site.nuiton.org/public/js/mavenpom-site.js">
+ src="${mavenpomSiteCommonResourcesUrl}/js/mavenpom-site.js">
</script>
<link rel="stylesheet" type="text/css"
- href="http://maven-site.nuiton.org/public/css/mavenpom-site.css"/>
+ href="${mavenpomSiteCommonResourcesUrl}/css/mavenpom-site.css"/>
</head>
<breadcrumbs>
@@ -74,7 +74,8 @@
scmwebeditorurl='${project.scmwebeditorUrl}'
siteSourcesType='${project.siteSourcesType}'
piwikEnabled='${project.piwikEnabled}'
- piwikId='${project.piwikId}'>
+ piwikId='${project.piwikId}'
+ scmwebeditor_skipDefaultFiles="true">
</div>
</footer>
Modified: trunk/jaxx-runtime/src/site/site_fr.xml
===================================================================
--- trunk/jaxx-runtime/src/site/site_fr.xml 2013-11-28 17:33:52 UTC (rev 2764)
+++ trunk/jaxx-runtime/src/site/site_fr.xml 2014-01-08 18:55:30 UTC (rev 2765)
@@ -28,7 +28,7 @@
<bannerLeft>
<name>${project.name}</name>
- <src>http://maven-site.chorem.org/public/images/logos/jaxx-logo.png</src>
+ <src>${mavenpomSiteCommonResourcesUrl}/images/logos/jaxx-logo.png</src>
<href>index.html</href>
</bannerLeft>
@@ -36,11 +36,11 @@
<head>
<script type="text/javascript"
- src="http://maven-site.nuiton.org/public/js/mavenpom-site.js">
+ src="${mavenpomSiteCommonResourcesUrl}/js/mavenpom-site.js">
</script>
<link rel="stylesheet" type="text/css"
- href="http://maven-site.nuiton.org/public/css/mavenpom-site.css"/>
+ href="${mavenpomSiteCommonResourcesUrl}/css/mavenpom-site.css"/>
</head>
<breadcrumbs>
@@ -68,7 +68,8 @@
scmwebeditorurl='${project.scmwebeditorUrl}'
siteSourcesType='${project.siteSourcesType}'
piwikEnabled='${project.piwikEnabled}'
- piwikId='${project.piwikId}'>
+ piwikId='${project.piwikId}'
+ scmwebeditor_skipDefaultFiles="true">
</div>
</footer>
</body>
Modified: trunk/jaxx-swing-action/src/site/site_fr.xml
===================================================================
--- trunk/jaxx-swing-action/src/site/site_fr.xml 2013-11-28 17:33:52 UTC (rev 2764)
+++ trunk/jaxx-swing-action/src/site/site_fr.xml 2014-01-08 18:55:30 UTC (rev 2765)
@@ -78,7 +78,7 @@
<footer>
<script type="text/javascript"
- src="http://maven-site.nuiton.org/public/js/mavenpom-site.js">
+ src="${mavenpomSiteCommonResourcesUrl}/js/mavenpom-site.js">
</script>
<div id='projectMetas'
@@ -90,7 +90,8 @@
scmwebeditorurl='${project.scmwebeditorUrl}'
siteSourcesType='${project.siteSourcesType}'
piwikEnabled='${project.piwikEnabled}'
- piwikId='${project.piwikId}'>
+ piwikId='${project.piwikId}'
+ scmwebeditor_skipDefaultFiles="true">
</div>
</footer>
Modified: trunk/jaxx-validator/src/site/site_fr.xml
===================================================================
--- trunk/jaxx-validator/src/site/site_fr.xml 2013-11-28 17:33:52 UTC (rev 2764)
+++ trunk/jaxx-validator/src/site/site_fr.xml 2014-01-08 18:55:30 UTC (rev 2765)
@@ -28,7 +28,7 @@
<bannerLeft>
<name>${project.name}</name>
- <src>http://maven-site.chorem.org/public/images/logos/jaxx-logo.png</src>
+ <src>${mavenpomSiteCommonResourcesUrl}/images/logos/jaxx-logo.png</src>
<href>index.html</href>
</bannerLeft>
@@ -36,11 +36,11 @@
<head>
<script type="text/javascript"
- src="http://maven-site.nuiton.org/public/js/mavenpom-site.js">
+ src="${mavenpomSiteCommonResourcesUrl}/js/mavenpom-site.js">
</script>
<link rel="stylesheet" type="text/css"
- href="http://maven-site.nuiton.org/public/css/mavenpom-site.css"/>
+ href="${mavenpomSiteCommonResourcesUrl}/css/mavenpom-site.css"/>
</head>
<breadcrumbs>
@@ -66,7 +66,8 @@
scmwebeditorurl='${project.scmwebeditorUrl}'
siteSourcesType='${project.siteSourcesType}'
piwikEnabled='${project.piwikEnabled}'
- piwikId='${project.piwikId}'>
+ piwikId='${project.piwikId}'
+ scmwebeditor_skipDefaultFiles="true">
</div>
</footer>
Modified: trunk/jaxx-widgets/src/site/site_fr.xml
===================================================================
--- trunk/jaxx-widgets/src/site/site_fr.xml 2013-11-28 17:33:52 UTC (rev 2764)
+++ trunk/jaxx-widgets/src/site/site_fr.xml 2014-01-08 18:55:30 UTC (rev 2765)
@@ -28,7 +28,7 @@
<bannerLeft>
<name>${project.name}</name>
- <src>http://maven-site.chorem.org/public/images/logos/jaxx-logo.png</src>
+ <src>${mavenpomSiteCommonResourcesUrl}/images/logos/jaxx-logo.png</src>
<href>index.html</href>
</bannerLeft>
@@ -36,11 +36,11 @@
<head>
<script type="text/javascript"
- src="http://maven-site.nuiton.org/public/js/mavenpom-site.js">
+ src="${mavenpomSiteCommonResourcesUrl}/js/mavenpom-site.js">
</script>
<link rel="stylesheet" type="text/css"
- href="http://maven-site.nuiton.org/public/css/mavenpom-site.css"/>
+ href="${mavenpomSiteCommonResourcesUrl}/css/mavenpom-site.css"/>
</head>
<breadcrumbs>
@@ -66,7 +66,8 @@
scmwebeditorurl='${project.scmwebeditorUrl}'
siteSourcesType='${project.siteSourcesType}'
piwikEnabled='${project.piwikEnabled}'
- piwikId='${project.piwikId}'>
+ piwikId='${project.piwikId}'
+ scmwebeditor_skipDefaultFiles="true">
</div>
</footer>
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2013-11-28 17:33:52 UTC (rev 2764)
+++ trunk/pom.xml 2014-01-08 18:55:30 UTC (rev 2765)
@@ -30,7 +30,7 @@
<parent>
<groupId>org.nuiton</groupId>
<artifactId>mavenpom4redmineAndCentral</artifactId>
- <version>4.3</version>
+ <version>4.5</version>
</parent>
<artifactId>jaxx</artifactId>
Modified: trunk/src/site/site_fr.xml
===================================================================
--- trunk/src/site/site_fr.xml 2013-11-28 17:33:52 UTC (rev 2764)
+++ trunk/src/site/site_fr.xml 2014-01-08 18:55:30 UTC (rev 2765)
@@ -29,7 +29,7 @@
<skin>
<groupId>org.apache.maven.skins</groupId>
<artifactId>maven-fluido-skin</artifactId>
- <version>1.3.0</version>
+ <version>${fluidoSkinVersion}</version>
</skin>
<custom>
@@ -44,7 +44,7 @@
<bannerLeft>
<name>${project.name}</name>
- <src>http://maven-site.nuiton.org/public/images/logos/jaxx-logo.png</src>
+ <src>${mavenpomSiteCommonResourcesUrl}/images/logos/jaxx-logo.png</src>
<href>index.html</href>
</bannerLeft>
@@ -58,23 +58,23 @@
<poweredBy>
<logo href="http://maven.apache.org" name="Maven"
- img="http://maven-site.nuiton.org/public/images/logos/maven-feather.png"/>
+ img="${mavenpomSiteCommonResourcesUrl}/images/logos/maven-feather.png"/>
<logo href="http://maven-site.nuiton.org/jrst" name="JRst"
- img="http://maven-site.nuiton.org/public/images/logos/jrst-logo.png"/>
+ img="${mavenpomSiteCommonResourcesUrl}/images/logos/jrst-logo.png"/>
<logo href="http://docutils.sourceforge.net/rst.html"
name="ReStructuredText"
- img="http://maven-site.nuiton.org/public/images/logos/restructuredtext-logo.png"/>
+ img="${mavenpomSiteCommonResourcesUrl}/images/logos/restructuredtext-logo.png"/>
</poweredBy>
<body>
<head>
<script type="text/javascript"
- src="http://maven-site.nuiton.org/public/js/mavenpom-site.js">
+ src="${mavenpomSiteCommonResourcesUrl}/js/mavenpom-site.js">
</script>
<link rel="stylesheet" type="text/css"
- href="http://maven-site.nuiton.org/public/css/mavenpom-site.css"/>
+ href="${mavenpomSiteCommonResourcesUrl}/css/mavenpom-site.css"/>
</head>
<links>
@@ -144,7 +144,8 @@
scmwebeditorurl='${project.scmwebeditorUrl}'
siteSourcesType='${project.siteSourcesType}'
piwikEnabled='${project.piwikEnabled}'
- piwikId='${project.piwikId}'>
+ piwikId='${project.piwikId}'
+ scmwebeditor_skipDefaultFiles="true">
</div>
</footer>
1
0