First version with broken dependency in desktop/desktop-sample desktop
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Sat, 11 Sep 2010 21:01:31 +0200
branchdesktop
changeset 25703762a20a808
parent 256 1758a7727278
child 259 925ad0659349
First version with broken dependency in desktop/desktop-sample
desktop/application/pom.xml
desktop/branding/nb-configuration.xml
desktop/branding/pom.xml
desktop/branding/src/main/nbm-branding/core/core.jar/org/netbeans/core/startup/Bundle.properties
desktop/branding/src/main/nbm-branding/core/core.jar/org/netbeans/core/startup/frame.gif
desktop/branding/src/main/nbm-branding/core/core.jar/org/netbeans/core/startup/frame32.gif
desktop/branding/src/main/nbm-branding/core/core.jar/org/netbeans/core/startup/frame48.gif
desktop/branding/src/main/nbm-branding/core/core.jar/org/netbeans/core/startup/splash.gif
desktop/branding/src/main/nbm-branding/modules/org-netbeans-core-windows.jar/org/netbeans/core/windows/view/ui/Bundle.properties
desktop/branding/src/main/nbm-branding/modules/org-netbeans-core.jar/org/netbeans/core/ui/Bundle.properties
desktop/branding/src/main/nbm/manifest.mf
desktop/branding/src/main/nbm/module.xml
desktop/branding/src/main/resources/cz/xelfi/quoridor/desktop/Bundle.properties
desktop/branding/src/main/resources/cz/xelfi/quoridor/desktop/layer.xml
desktop/desktop-sample/nb-configuration.xml
desktop/desktop-sample/pom.xml
desktop/desktop-sample/src/main/java/cz/xelfi/quoridor/desktop/sample/KukTopComponent.form
desktop/desktop-sample/src/main/java/cz/xelfi/quoridor/desktop/sample/KukTopComponent.java
desktop/desktop-sample/src/main/nbm/manifest.mf
desktop/desktop-sample/src/main/nbm/module.xml
desktop/desktop-sample/src/main/resources/cz/xelfi/quoridor/desktop/Bundle.properties
desktop/desktop-sample/src/main/resources/cz/xelfi/quoridor/desktop/KukTopComponentSettings.xml
desktop/desktop-sample/src/main/resources/cz/xelfi/quoridor/desktop/KukTopComponentWstcref.xml
desktop/desktop-sample/src/main/resources/cz/xelfi/quoridor/desktop/layer.xml
desktop/desktop-sample/src/main/resources/cz/xelfi/quoridor/desktop/sample/Bundle.properties
desktop/pom.xml
pom.xml
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/desktop/application/pom.xml	Sat Sep 11 21:01:31 2010 +0200
     1.3 @@ -0,0 +1,82 @@
     1.4 +
     1.5 +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     1.6 +  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
     1.7 +    <parent>
     1.8 +        <groupId>cz.xelfi.quoridor</groupId>
     1.9 +        <artifactId>desktop</artifactId>
    1.10 +        <version>1.0-SNAPSHOT</version>
    1.11 +    </parent>
    1.12 +    <modelVersion>4.0.0</modelVersion>
    1.13 +    <packaging>nbm-application</packaging>
    1.14 +    <version>1.0-SNAPSHOT</version>
    1.15 +    <name>Quoridor Desktop</name>
    1.16 +    <dependencies>
    1.17 +        <dependency>
    1.18 +            <groupId>org.netbeans.cluster</groupId>
    1.19 +            <artifactId>platform</artifactId>
    1.20 +            <version>${netbeans.version}</version>
    1.21 +            <type>pom</type>
    1.22 +        </dependency>
    1.23 +      
    1.24 +        <dependency>
    1.25 +            <groupId>cz.xelfi.quoridor</groupId>
    1.26 +            <artifactId>desktop.branding</artifactId>
    1.27 +            <version>1.0-SNAPSHOT</version>
    1.28 +        </dependency>
    1.29 +        <dependency>
    1.30 +            <groupId>cz.xelfi.quoridor</groupId>
    1.31 +            <artifactId>desktop-sample</artifactId>
    1.32 +            <version>1.0-SNAPSHOT</version>
    1.33 +        </dependency>
    1.34 +        <dependency>
    1.35 +            <groupId>${project.groupId}</groupId>
    1.36 +            <artifactId>visidor</artifactId>
    1.37 +            <version>${visidorVersion}</version>
    1.38 +        </dependency>
    1.39 +    </dependencies>
    1.40 +    <build>
    1.41 +        <plugins>
    1.42 +            <plugin>
    1.43 +                <groupId>org.codehaus.mojo</groupId>
    1.44 +                <artifactId>nbm-maven-plugin</artifactId>
    1.45 +            </plugin>
    1.46 +        </plugins>
    1.47 +    </build>
    1.48 +
    1.49 +    <profiles>
    1.50 +        <profile>
    1.51 +            <id>deployment</id>
    1.52 +            <build>
    1.53 +                <plugins>
    1.54 +                    <plugin>
    1.55 +                        <groupId>org.codehaus.mojo</groupId>
    1.56 +                        <artifactId>nbm-maven-plugin</artifactId>
    1.57 +                        <executions>
    1.58 +                            <execution>
    1.59 +                                <id>updatesite</id>
    1.60 +                                <phase>package</phase>
    1.61 +                                <goals>
    1.62 +                                    <goal>autoupdate</goal>
    1.63 +                                </goals>
    1.64 +                                <configuration>
    1.65 +                            <!--distBase>central::default::http://repo1.maven.org/maven2</distBase-->
    1.66 +                                </configuration>
    1.67 +                            </execution>
    1.68 +                            <execution>
    1.69 +                                <id>webstart</id>
    1.70 +                                <phase>package</phase>
    1.71 +                                <goals>
    1.72 +                                    <goal>webstart-app</goal>
    1.73 +                                </goals>
    1.74 +                                <configuration>
    1.75 +                                    <codebase>${project.build.directory}/webstart/${brandingToken}</codebase>
    1.76 +                                </configuration>
    1.77 +                            </execution>
    1.78 +                        </executions>
    1.79 +                    </plugin>
    1.80 +                </plugins>
    1.81 +            </build>
    1.82 +        </profile>
    1.83 +    </profiles>
    1.84 +    <artifactId>qdor</artifactId>
    1.85 +</project>
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/desktop/branding/nb-configuration.xml	Sat Sep 11 21:01:31 2010 +0200
     2.3 @@ -0,0 +1,18 @@
     2.4 +<?xml version="1.0" encoding="UTF-8"?>
     2.5 +<project-shared-configuration>
     2.6 +    <!--
     2.7 +This file contains additional configuration written by modules in the NetBeans IDE.
     2.8 +The configuration is intended to be shared among all the users of project and
     2.9 +therefore it is assumed to be part of version control checkout.
    2.10 +Without this configuration present, some functionality in the IDE may be limited or fail altogether.
    2.11 +-->
    2.12 +    <properties xmlns="http://www.netbeans.org/ns/maven-properties-data/1">
    2.13 +        <!--
    2.14 +Properties that influence various parts of the IDE, especially code formatting and the like. 
    2.15 +You can copy and paste the single properties, into the pom.xml file and the IDE will pick them up.
    2.16 +That way multiple projects can share the same settings (useful for formatting rules for example).
    2.17 +Any value defined here will override the pom.xml file value but is only applicable to the current project.
    2.18 +-->
    2.19 +        <pathToNbApplicationModule>../application</pathToNbApplicationModule>
    2.20 +    </properties>
    2.21 +</project-shared-configuration>
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/desktop/branding/pom.xml	Sat Sep 11 21:01:31 2010 +0200
     3.3 @@ -0,0 +1,47 @@
     3.4 +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     3.5 +  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
     3.6 +  <parent>
     3.7 +      <groupId>cz.xelfi.quoridor</groupId>
     3.8 +      <artifactId>desktop</artifactId>
     3.9 +      <version>1.0-SNAPSHOT</version>
    3.10 +  </parent>
    3.11 +  <modelVersion>4.0.0</modelVersion>
    3.12 +  <artifactId>desktop.branding</artifactId>
    3.13 +  <packaging>nbm</packaging>
    3.14 +  <version>1.0-SNAPSHOT</version>
    3.15 +  <dependencies>
    3.16 +    <dependency>
    3.17 +      <groupId>org.netbeans.api</groupId>
    3.18 +      <artifactId>org-openide-util</artifactId>
    3.19 +      <version>${netbeans.version}</version>
    3.20 +    </dependency>
    3.21 +  </dependencies>
    3.22 +  <build>
    3.23 +      <plugins>
    3.24 +            <plugin>
    3.25 +                <groupId>org.codehaus.mojo</groupId>
    3.26 +                <artifactId>nbm-maven-plugin</artifactId>
    3.27 +                <executions>
    3.28 +                    <execution>
    3.29 +                        <id>branding</id>
    3.30 +                        <phase>process-resources</phase>
    3.31 +                        <goals>
    3.32 +                            <goal>branding</goal>
    3.33 +                        </goals>
    3.34 +                    </execution>
    3.35 +                </executions>
    3.36 +            </plugin>
    3.37 +            <plugin>
    3.38 +                <groupId>org.apache.maven.plugins</groupId>
    3.39 +                <artifactId>maven-jar-plugin</artifactId>
    3.40 +                <version>2.2</version>
    3.41 +                <configuration>
    3.42 +                    <!-- to have the jar plugin pickup the nbm generated manifest -->
    3.43 +                    <useDefaultManifestFile>true</useDefaultManifestFile>
    3.44 +                </configuration>
    3.45 +            </plugin>
    3.46 +      </plugins>
    3.47 +  </build>
    3.48 +    <name>Quoridor Desktop Branding</name>
    3.49 +    <description>Provides localized texts, icons and definitions</description>
    3.50 +</project>
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/desktop/branding/src/main/nbm-branding/core/core.jar/org/netbeans/core/startup/Bundle.properties	Sat Sep 11 21:01:31 2010 +0200
     4.3 @@ -0,0 +1,4 @@
     4.4 +currentVersion=desktop {0}
     4.5 +LBL_splash_window_title=Starting desktop
     4.6 +SplashProgressBarBounds=0,249,473,3
     4.7 +SplashRunningTextBounds=10,235,450,12
     5.1 Binary file desktop/branding/src/main/nbm-branding/core/core.jar/org/netbeans/core/startup/frame.gif has changed
     6.1 Binary file desktop/branding/src/main/nbm-branding/core/core.jar/org/netbeans/core/startup/frame32.gif has changed
     7.1 Binary file desktop/branding/src/main/nbm-branding/core/core.jar/org/netbeans/core/startup/frame48.gif has changed
     8.1 Binary file desktop/branding/src/main/nbm-branding/core/core.jar/org/netbeans/core/startup/splash.gif has changed
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/desktop/branding/src/main/nbm-branding/modules/org-netbeans-core-windows.jar/org/netbeans/core/windows/view/ui/Bundle.properties	Sat Sep 11 21:01:31 2010 +0200
     9.3 @@ -0,0 +1,2 @@
     9.4 +CTL_MainWindow_Title=desktop {0}
     9.5 +CTL_MainWindow_Title_No_Project=desktop {0}
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/desktop/branding/src/main/nbm-branding/modules/org-netbeans-core.jar/org/netbeans/core/ui/Bundle.properties	Sat Sep 11 21:01:31 2010 +0200
    10.3 @@ -0,0 +1,1 @@
    10.4 +LBL_ProductInformation=desktop
    11.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.2 +++ b/desktop/branding/src/main/nbm/manifest.mf	Sat Sep 11 21:01:31 2010 +0200
    11.3 @@ -0,0 +1,3 @@
    11.4 +Manifest-Version: 1.0
    11.5 +OpenIDE-Module-Localizing-Bundle: cz/xelfi/quoridor/desktop/Bundle.properties
    11.6 +OpenIDE-Module-Layer: cz/xelfi/quoridor/desktop/layer.xml
    12.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.2 +++ b/desktop/branding/src/main/nbm/module.xml	Sat Sep 11 21:01:31 2010 +0200
    12.3 @@ -0,0 +1,6 @@
    12.4 +<nbm>
    12.5 +   <!--<moduleType>autoload</moduleType>-->
    12.6 +   <!--<codeNameBase>cz.xelfi.quoridor.desktop/1</codeNameBase>-->
    12.7 +   <licenseName>Apache License, Version 2.0</licenseName>
    12.8 +   <licenseFile>license.txt</licenseFile>
    12.9 +</nbm>
   12.10 \ No newline at end of file
    13.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    13.2 +++ b/desktop/branding/src/main/resources/cz/xelfi/quoridor/desktop/Bundle.properties	Sat Sep 11 21:01:31 2010 +0200
    13.3 @@ -0,0 +1,2 @@
    13.4 +# Sample ResourceBundle properties file
    13.5 +OpenIDE-Module-Display-Category=foobar
    14.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    14.2 +++ b/desktop/branding/src/main/resources/cz/xelfi/quoridor/desktop/layer.xml	Sat Sep 11 21:01:31 2010 +0200
    14.3 @@ -0,0 +1,5 @@
    14.4 +<?xml version="1.0" encoding="UTF-8"?>
    14.5 +<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.0//EN" "http://www.netbeans.org/dtds/filesystem-1_0.dtd">
    14.6 +<filesystem>
    14.7 + 
    14.8 +</filesystem>
    15.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    15.2 +++ b/desktop/desktop-sample/nb-configuration.xml	Sat Sep 11 21:01:31 2010 +0200
    15.3 @@ -0,0 +1,18 @@
    15.4 +<?xml version="1.0" encoding="UTF-8"?>
    15.5 +<project-shared-configuration>
    15.6 +    <!--
    15.7 +This file contains additional configuration written by modules in the NetBeans IDE.
    15.8 +The configuration is intended to be shared among all the users of project and
    15.9 +therefore it is assumed to be part of version control checkout.
   15.10 +Without this configuration present, some functionality in the IDE may be limited or fail altogether.
   15.11 +-->
   15.12 +    <properties xmlns="http://www.netbeans.org/ns/maven-properties-data/1">
   15.13 +        <!--
   15.14 +Properties that influence various parts of the IDE, especially code formatting and the like. 
   15.15 +You can copy and paste the single properties, into the pom.xml file and the IDE will pick them up.
   15.16 +That way multiple projects can share the same settings (useful for formatting rules for example).
   15.17 +Any value defined here will override the pom.xml file value but is only applicable to the current project.
   15.18 +-->
   15.19 +        <pathToNbApplicationModule>../application</pathToNbApplicationModule>
   15.20 +    </properties>
   15.21 +</project-shared-configuration>
    16.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    16.2 +++ b/desktop/desktop-sample/pom.xml	Sat Sep 11 21:01:31 2010 +0200
    16.3 @@ -0,0 +1,87 @@
    16.4 +<?xml version="1.0" encoding="UTF-8"?> 
    16.5 +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 
    16.6 +    <modelVersion>4.0.0</modelVersion> 
    16.7 +    <parent> 
    16.8 +        <artifactId>desktop</artifactId> 
    16.9 +        <groupId>cz.xelfi.quoridor</groupId> 
   16.10 +        <version>1.0-SNAPSHOT</version> 
   16.11 +    </parent> 
   16.12 +    <artifactId>desktop-sample</artifactId> 
   16.13 +    <packaging>nbm</packaging> 
   16.14 +    <version>1.0-SNAPSHOT</version> 
   16.15 +    <name>desktop-sample NetBeans Module</name> 
   16.16 + 
   16.17 +    <repositories> 
   16.18 +<!-- this is a remote repository hosting the netbeans api artifacts. 
   16.19 +the versions of the artifacts are netbeans IDE release based, eg. RELEASE65. 
   16.20 +You might want to use your own repository. To create one, use the nbm:populate-repository goal. 
   16.21 +--> 
   16.22 +        <repository> 
   16.23 +            <url>http://download.java.net/maven/2/</url> 
   16.24 +            <id>restapi</id> 
   16.25 +            <layout>default</layout> 
   16.26 +            <name>Repository for library Library[restapi]</name> 
   16.27 +        </repository> 
   16.28 +    </repositories> 
   16.29 + 
   16.30 +    <dependencies> 
   16.31 +        <dependency> 
   16.32 +            <groupId>org.netbeans.api</groupId> 
   16.33 +            <artifactId>org-openide-util</artifactId> 
   16.34 +            <version>RELEASE691</version> 
   16.35 +        </dependency> 
   16.36 +        <dependency> 
   16.37 +            <groupId>org.netbeans.api</groupId> 
   16.38 +            <artifactId>org-openide-awt</artifactId> 
   16.39 +            <version>RELEASE691</version> 
   16.40 +        </dependency> 
   16.41 +        <dependency> 
   16.42 +            <groupId>org.netbeans.api</groupId> 
   16.43 +            <artifactId>org-openide-windows</artifactId> 
   16.44 +            <version>RELEASE691</version> 
   16.45 +        </dependency> 
   16.46 +        <dependency> 
   16.47 +            <groupId>org.netbeans.api</groupId> 
   16.48 +            <artifactId>org-openide-util-lookup</artifactId> 
   16.49 +            <version>RELEASE691</version> 
   16.50 +        </dependency> 
   16.51 +        <dependency> 
   16.52 +            <groupId>org.netbeans.api</groupId> 
   16.53 +            <artifactId>org-netbeans-modules-settings</artifactId> 
   16.54 +            <version>RELEASE691</version> 
   16.55 +        </dependency> 
   16.56 +        <!-- 
   16.57 +        <dependency> 
   16.58 +            <groupId>${project.groupId}</groupId> 
   16.59 +            <artifactId>quoridor</artifactId> 
   16.60 +            <version>${quoridorVersion}</version> 
   16.61 +        </dependency>--> 
   16.62 +        <dependency> 
   16.63 +            <groupId>${project.groupId}</groupId> 
   16.64 +            <artifactId>visidor</artifactId> 
   16.65 +            <version>${visidorVersion}</version> 
   16.66 +        </dependency> 
   16.67 +    </dependencies> 
   16.68 +    <build> 
   16.69 +        <plugins> 
   16.70 +            <plugin> 
   16.71 +                <groupId>org.codehaus.mojo</groupId> 
   16.72 +                <artifactId>nbm-maven-plugin</artifactId> 
   16.73 +                <version>3.2</version> 
   16.74 +                <extensions>true</extensions> 
   16.75 +                <configuration> 
   16.76 +                    <useOSGiDependencies>true</useOSGiDependencies> 
   16.77 +                </configuration> 
   16.78 +            </plugin> 
   16.79 +            <plugin> 
   16.80 +                <groupId>org.apache.maven.plugins</groupId> 
   16.81 +                <artifactId>maven-jar-plugin</artifactId> 
   16.82 +                <version>2.2</version> 
   16.83 +                <configuration> 
   16.84 +<!-- to have the jar plugin pickup the nbm generated manifest --> 
   16.85 +                    <useDefaultManifestFile>true</useDefaultManifestFile> 
   16.86 +                </configuration> 
   16.87 +            </plugin> 
   16.88 +        </plugins> 
   16.89 +    </build> 
   16.90 +</project> 
    17.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    17.2 +++ b/desktop/desktop-sample/src/main/java/cz/xelfi/quoridor/desktop/sample/KukTopComponent.form	Sat Sep 11 21:01:31 2010 +0200
    17.3 @@ -0,0 +1,46 @@
    17.4 +<?xml version="1.1" encoding="UTF-8" ?>
    17.5 +
    17.6 +<Form version="1.4" maxVersion="1.7" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
    17.7 +  <AuxValues>
    17.8 +    <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="1"/>
    17.9 +    <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
   17.10 +    <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
   17.11 +    <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="true"/>
   17.12 +    <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="true"/>
   17.13 +    <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
   17.14 +    <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
   17.15 +    <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
   17.16 +    <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
   17.17 +  </AuxValues>
   17.18 +
   17.19 +  <Layout>
   17.20 +    <DimensionLayout dim="0">
   17.21 +      <Group type="103" groupAlignment="0" attributes="0">
   17.22 +          <EmptySpace min="0" pref="450" max="32767" attributes="0"/>
   17.23 +          <Group type="103" rootIndex="1" groupAlignment="0" attributes="0">
   17.24 +              <Group type="102" attributes="0">
   17.25 +                  <EmptySpace min="0" pref="0" max="32767" attributes="0"/>
   17.26 +                  <Component id="boardPane1" min="-2" max="-2" attributes="0"/>
   17.27 +                  <EmptySpace min="0" pref="0" max="32767" attributes="0"/>
   17.28 +              </Group>
   17.29 +          </Group>
   17.30 +      </Group>
   17.31 +    </DimensionLayout>
   17.32 +    <DimensionLayout dim="1">
   17.33 +      <Group type="103" groupAlignment="0" attributes="0">
   17.34 +          <EmptySpace min="0" pref="450" max="32767" attributes="0"/>
   17.35 +          <Group type="103" rootIndex="1" groupAlignment="0" attributes="0">
   17.36 +              <Group type="102" attributes="0">
   17.37 +                  <EmptySpace min="0" pref="0" max="32767" attributes="0"/>
   17.38 +                  <Component id="boardPane1" min="-2" max="-2" attributes="0"/>
   17.39 +                  <EmptySpace min="0" pref="0" max="32767" attributes="0"/>
   17.40 +              </Group>
   17.41 +          </Group>
   17.42 +      </Group>
   17.43 +    </DimensionLayout>
   17.44 +  </Layout>
   17.45 +  <SubComponents>
   17.46 +    <Component class="cz.xelfi.quoridor.visidor.BoardPane" name="boardPane1">
   17.47 +    </Component>
   17.48 +  </SubComponents>
   17.49 +</Form>
    18.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    18.2 +++ b/desktop/desktop-sample/src/main/java/cz/xelfi/quoridor/desktop/sample/KukTopComponent.java	Sat Sep 11 21:01:31 2010 +0200
    18.3 @@ -0,0 +1,99 @@
    18.4 +/*
    18.5 + * To change this template, choose Tools | Templates
    18.6 + * and open the template in the editor.
    18.7 + */
    18.8 +package cz.xelfi.quoridor.desktop.sample;
    18.9 +
   18.10 +import org.openide.util.NbBundle;
   18.11 +import org.openide.windows.TopComponent;
   18.12 +//import org.openide.util.ImageUtilities;
   18.13 +import org.netbeans.api.settings.ConvertAsProperties;
   18.14 +
   18.15 +/**
   18.16 + * Top component which displays something.
   18.17 + */
   18.18 +@ConvertAsProperties(dtd = "-//cz.xelfi.quoridor.desktop.sample//Kuk//EN",
   18.19 +autostore = false)
   18.20 +public final class KukTopComponent extends TopComponent {
   18.21 +
   18.22 +    /** path to the icon used by the component and its open action */
   18.23 +//    static final String ICON_PATH = "SET/PATH/TO/ICON/HERE";
   18.24 +    private static final String PREFERRED_ID = "KukTopComponent";
   18.25 +
   18.26 +    public KukTopComponent() {
   18.27 +        initComponents();
   18.28 +        
   18.29 +        setName(NbBundle.getMessage(KukTopComponent.class, "CTL_KukTopComponent"));
   18.30 +        setToolTipText(NbBundle.getMessage(KukTopComponent.class, "HINT_KukTopComponent"));
   18.31 +//        setIcon(ImageUtilities.loadImage(ICON_PATH, true));
   18.32 +
   18.33 +    }
   18.34 +
   18.35 +    /** This method is called from within the constructor to
   18.36 +     * initialize the form.
   18.37 +     * WARNING: Do NOT modify this code. The content of this method is
   18.38 +     * always regenerated by the Form Editor.
   18.39 +     */
   18.40 +    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
   18.41 +    private void initComponents() {
   18.42 +
   18.43 +        boardPane1 = new cz.xelfi.quoridor.visidor.BoardPane();
   18.44 +
   18.45 +        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
   18.46 +        this.setLayout(layout);
   18.47 +        layout.setHorizontalGroup(
   18.48 +            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
   18.49 +            .addGap(0, 450, Short.MAX_VALUE)
   18.50 +            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
   18.51 +                .addGroup(layout.createSequentialGroup()
   18.52 +                    .addGap(0, 0, Short.MAX_VALUE)
   18.53 +                    .addComponent(boardPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
   18.54 +                    .addGap(0, 0, Short.MAX_VALUE)))
   18.55 +        );
   18.56 +        layout.setVerticalGroup(
   18.57 +            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
   18.58 +            .addGap(0, 450, Short.MAX_VALUE)
   18.59 +            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
   18.60 +                .addGroup(layout.createSequentialGroup()
   18.61 +                    .addGap(0, 0, Short.MAX_VALUE)
   18.62 +                    .addComponent(boardPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
   18.63 +                    .addGap(0, 0, Short.MAX_VALUE)))
   18.64 +        );
   18.65 +    }// </editor-fold>//GEN-END:initComponents
   18.66 +
   18.67 +    // Variables declaration - do not modify//GEN-BEGIN:variables
   18.68 +    private cz.xelfi.quoridor.visidor.BoardPane boardPane1;
   18.69 +    // End of variables declaration//GEN-END:variables
   18.70 +
   18.71 +    @Override
   18.72 +    public int getPersistenceType() {
   18.73 +        return TopComponent.PERSISTENCE_ALWAYS;
   18.74 +    }
   18.75 +
   18.76 +    @Override
   18.77 +    public void componentOpened() {
   18.78 +        // TODO add custom code on component opening
   18.79 +    }
   18.80 +
   18.81 +    @Override
   18.82 +    public void componentClosed() {
   18.83 +        // TODO add custom code on component closing
   18.84 +    }
   18.85 +
   18.86 +    void writeProperties(java.util.Properties p) {
   18.87 +        // better to version settings since initial version as advocated at
   18.88 +        // http://wiki.apidesign.org/wiki/PropertyFiles
   18.89 +        p.setProperty("version", "1.0");
   18.90 +        // TODO store your settings
   18.91 +    }
   18.92 +
   18.93 +    final void readProperties(java.util.Properties p) {
   18.94 +        String version = p.getProperty("version");
   18.95 +        // TODO read your settings according to their version
   18.96 +    }
   18.97 +
   18.98 +    @Override
   18.99 +    protected String preferredID() {
  18.100 +        return PREFERRED_ID;
  18.101 +    }
  18.102 +}
    19.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    19.2 +++ b/desktop/desktop-sample/src/main/nbm/manifest.mf	Sat Sep 11 21:01:31 2010 +0200
    19.3 @@ -0,0 +1,4 @@
    19.4 +Manifest-Version: 1.0
    19.5 +OpenIDE-Module-Localizing-Bundle: cz/xelfi/quoridor/desktop/Bundle.properties
    19.6 +OpenIDE-Module-Layer: cz/xelfi/quoridor/desktop/layer.xml
    19.7 +OpenIDE-Module-Requires: org.openide.windows.WindowManager
    20.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    20.2 +++ b/desktop/desktop-sample/src/main/nbm/module.xml	Sat Sep 11 21:01:31 2010 +0200
    20.3 @@ -0,0 +1,8 @@
    20.4 +<?xml version="1.0" encoding="UTF-8"?>
    20.5 +<nbm>
    20.6 +<!--<moduleType>autoload</moduleType>-->
    20.7 +<!--<codeNameBase>cz.xelfi.quoridor.desktop/1</codeNameBase>-->
    20.8 +<licenseName>Apache License, Version 2.0</licenseName>
    20.9 +<licenseFile>license.txt</licenseFile>
   20.10 +
   20.11 +</nbm>
    21.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    21.2 +++ b/desktop/desktop-sample/src/main/resources/cz/xelfi/quoridor/desktop/Bundle.properties	Sat Sep 11 21:01:31 2010 +0200
    21.3 @@ -0,0 +1,11 @@
    21.4 +#A phrase giving a category for the module.
    21.5 +# Modules with the same category may be visually grouped together in various parts of the UI.
    21.6 +OpenIDE-Module-Display-Category=Maven
    21.7 +
    21.8 +#Localized module name and description(s)
    21.9 +#If not present, by convention nbm-maven-plugin populates the values
   21.10 +# from pom.name and pom.description values
   21.11 +#
   21.12 +#OpenIDE-Module-Long-Description=
   21.13 +#OpenIDE-Module-Short-Description=
   21.14 +#OpenIDE-Module-Name=
    22.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    22.2 +++ b/desktop/desktop-sample/src/main/resources/cz/xelfi/quoridor/desktop/KukTopComponentSettings.xml	Sat Sep 11 21:01:31 2010 +0200
    22.3 @@ -0,0 +1,12 @@
    22.4 +<?xml version="1.0" encoding="UTF-8"?>
    22.5 +<!--
    22.6 +To change this template, choose Tools | Templates
    22.7 +and open the template in the editor.
    22.8 +-->
    22.9 +<!DOCTYPE settings PUBLIC "-//NetBeans//DTD Session settings 1.0//EN" "http://www.netbeans.org/dtds/sessionsettings-1_0.dtd">
   22.10 +<settings version="1.0">
   22.11 +    <module name="cz.xelfi.quoridor.desktop.sample" spec="1.0"/>
   22.12 +    <instanceof class="org.openide.windows.TopComponent"/>
   22.13 +    <instanceof class="cz.xelfi.quoridor.desktop.sample.KukTopComponent"/>
   22.14 +    <instance class="cz.xelfi.quoridor.desktop.sample.KukTopComponent" method="getDefault"/>
   22.15 +</settings>
    23.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    23.2 +++ b/desktop/desktop-sample/src/main/resources/cz/xelfi/quoridor/desktop/KukTopComponentWstcref.xml	Sat Sep 11 21:01:31 2010 +0200
    23.3 @@ -0,0 +1,11 @@
    23.4 +<?xml version="1.0" encoding="UTF-8"?>
    23.5 +<!--
    23.6 +To change this template, choose Tools | Templates
    23.7 +and open the template in the editor.
    23.8 +-->
    23.9 +<!DOCTYPE tc-ref PUBLIC "-//NetBeans//DTD Top Component in Mode Properties 2.0//EN" "http://www.netbeans.org/dtds/tc-ref2_0.dtd">
   23.10 +<tc-ref version="2.0" >
   23.11 +    <module name="cz.xelfi.quoridor.desktop.sample" spec="1.0"/>
   23.12 +    <tc-id id="KukTopComponent"/>
   23.13 +    <state opened="true"/>
   23.14 +</tc-ref>
    24.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    24.2 +++ b/desktop/desktop-sample/src/main/resources/cz/xelfi/quoridor/desktop/layer.xml	Sat Sep 11 21:01:31 2010 +0200
    24.3 @@ -0,0 +1,31 @@
    24.4 +<?xml version="1.0" encoding="UTF-8"?>
    24.5 +<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.2//EN" "http://www.netbeans.org/dtds/filesystem-1_2.dtd">
    24.6 +<filesystem>
    24.7 + 
    24.8 +    <folder name="Actions">
    24.9 +        <folder name="Window">
   24.10 +            <file name="cz-xelfi-quoridor-desktop-sample-KukAction.instance">
   24.11 +                <attr name="component" methodvalue="cz.xelfi.quoridor.desktop.sample.KukTopComponent.findInstance"/>
   24.12 +                <attr name="displayName" bundlevalue="cz.xelfi.quoridor.desktop.sample.Bundle#CTL_KukAction"/>
   24.13 +                <attr name="instanceCreate" methodvalue="org.openide.windows.TopComponent.openAction"/>
   24.14 +            </file>
   24.15 +        </folder>
   24.16 +    </folder>
   24.17 +    <folder name="Menu">
   24.18 +        <folder name="Window">
   24.19 +            <file name="KukAction.shadow">
   24.20 +                <attr name="originalFile" stringvalue="Actions/Window/cz-xelfi-quoridor-desktop-sample-KukAction.instance"/>
   24.21 +            </file>
   24.22 +        </folder>
   24.23 +    </folder>
   24.24 +    <folder name="Windows2">
   24.25 +        <folder name="Components">
   24.26 +            <file name="KukTopComponent.settings" url="KukTopComponentSettings.xml"/>
   24.27 +        </folder>
   24.28 +        <folder name="Modes">
   24.29 +            <folder name="output">
   24.30 +                <file name="KukTopComponent.wstcref" url="KukTopComponentWstcref.xml"/>
   24.31 +            </folder>
   24.32 +        </folder>
   24.33 +    </folder>
   24.34 +</filesystem>
    25.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    25.2 +++ b/desktop/desktop-sample/src/main/resources/cz/xelfi/quoridor/desktop/sample/Bundle.properties	Sat Sep 11 21:01:31 2010 +0200
    25.3 @@ -0,0 +1,5 @@
    25.4 +CTL_Hello=Hello
    25.5 +CTL_KukAction=Kuk
    25.6 +CTL_KukTopComponent=Kuk Window
    25.7 +CTL_OpenGameAction=Open a game
    25.8 +HINT_KukTopComponent=This is a Kuk window
    26.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    26.2 +++ b/desktop/pom.xml	Sat Sep 11 21:01:31 2010 +0200
    26.3 @@ -0,0 +1,79 @@
    26.4 +<?xml version="1.0" encoding="UTF-8"?>
    26.5 +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    26.6 +    <modelVersion>4.0.0</modelVersion>
    26.7 +    <parent>
    26.8 +        <artifactId>all-quoridor</artifactId>
    26.9 +        <groupId>cz.xelfi.quoridor</groupId>
   26.10 +        <version>1.0</version>
   26.11 +    </parent>
   26.12 +    <groupId>cz.xelfi.quoridor</groupId>
   26.13 +    <artifactId>desktop</artifactId>
   26.14 +    <packaging>pom</packaging>
   26.15 +    <version>1.0-SNAPSHOT</version>
   26.16 +    <name>Quoridor Desktop Master</name>
   26.17 +    <repositories>
   26.18 +        <!-- this is a remote repository hosting the netbeans api artifacts.
   26.19 +         the versions of the artifacts are netbeans IDE release based, eg. RELEASE65
   26.20 +         You might want to use your own repository. To create one, use the nbm:populate-repository goal.
   26.21 +          -->
   26.22 +        <repository>
   26.23 +            <id>netbeans</id>
   26.24 +            <name>repository hosting netbeans.org api artifacts</name>
   26.25 +            <url>http://bits.netbeans.org/maven2</url>
   26.26 +        </repository>
   26.27 +        <repository>
   26.28 +            <id>netbeans.snapshot</id>
   26.29 +            <name>repository hosting netbeans.org api snapshot artifacts</name>
   26.30 +            <url>http://bits.netbeans.org/netbeans/trunk/maven-snapshot</url>
   26.31 +            <releases>
   26.32 +                <enabled>false</enabled>
   26.33 +            </releases>
   26.34 +        </repository>
   26.35 +    </repositories>
   26.36 +
   26.37 +    <dependencies>
   26.38 +        <dependency>
   26.39 +            <groupId>junit</groupId>
   26.40 +            <artifactId>junit</artifactId>
   26.41 +            <version>4.7</version>
   26.42 +            <scope>test</scope>
   26.43 +        </dependency>
   26.44 +    </dependencies>
   26.45 +    <build>
   26.46 +        <pluginManagement>
   26.47 +            <plugins>
   26.48 +                <plugin>
   26.49 +                    <groupId>org.codehaus.mojo</groupId>
   26.50 +                    <artifactId>nbm-maven-plugin</artifactId>
   26.51 +                    <version>3.2</version>
   26.52 +                    <extensions>true</extensions>
   26.53 +                    <configuration>
   26.54 +                        <brandingToken>${brandingToken}</brandingToken>
   26.55 +                        <cluster>foobar</cluster>
   26.56 +                        <useOSGiDependencies>true</useOSGiDependencies>
   26.57 +                    </configuration>
   26.58 +                </plugin>
   26.59 +                
   26.60 +                <plugin>
   26.61 +                    <!-- netbeans modules in 6.9+ are 1.6 compatible -->
   26.62 +                    <groupId>org.apache.maven.plugins</groupId>
   26.63 +                    <artifactId>maven-compiler-plugin</artifactId>
   26.64 +                    <version>2.2</version>
   26.65 +                    <configuration>
   26.66 +                        <source>1.6</source>
   26.67 +                        <target>1.6</target>
   26.68 +                    </configuration>
   26.69 +                </plugin>
   26.70 +            </plugins>
   26.71 +        </pluginManagement>
   26.72 +    </build>
   26.73 +    <modules>
   26.74 +        <module>branding</module>
   26.75 +        <module>application</module>
   26.76 +    <module>desktop-sample</module>
   26.77 +  </modules>
   26.78 +    <properties>
   26.79 +        <netbeans.version>RELEASE691</netbeans.version>
   26.80 +        <brandingToken>qdor</brandingToken>
   26.81 +    </properties>
   26.82 +</project>
   26.83 \ No newline at end of file
    27.1 --- a/pom.xml	Sat Sep 11 17:04:51 2010 +0200
    27.2 +++ b/pom.xml	Sat Sep 11 21:01:31 2010 +0200
    27.3 @@ -45,6 +45,7 @@
    27.4      <module>freemarkerdor</module>
    27.5      <module>emailer</module>
    27.6      <module>wsdor</module>
    27.7 +    <module>desktop</module>
    27.8    </modules>
    27.9      <name>Quoridor related projects</name>
   27.10      <description>Master project that agregates all quoridor related functionality.