Commit 241f1cd9 authored by Björn Richerzhagen's avatar Björn Richerzhagen
Browse files

Merge branch 'releases/v2-2' into 'master'

Updated to v2.2, using maven to resolve API-dependency

Now including API-dependencies via maven

See merge request !2
parents 9f025d13 38138678
...@@ -6,13 +6,12 @@ ...@@ -6,13 +6,12 @@
<attribute name="maven.pomderived" value="true"/> <attribute name="maven.pomderived" value="true"/>
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry combineaccessrules="false" kind="src" path="/simonstrator-api"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
<attributes> <attributes>
<attribute name="maven.pomderived" value="true"/> <attribute name="maven.pomderived" value="true"/>
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry exported="true" kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes> <attributes>
<attribute name="maven.pomderived" value="true"/> <attribute name="maven.pomderived" value="true"/>
</attributes> </attributes>
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>PeerfactSim.KOM</groupId> <groupId>maki</groupId>
<artifactId>PeerfactSim.KOM</artifactId> <artifactId>simonstrator-peerfactsim</artifactId>
<version>0.0.1-SNAPSHOT</version> <version>2.2</version>
<build> <build>
<sourceDirectory>src</sourceDirectory> <sourceDirectory>src</sourceDirectory>
<testSourceDirectory>test</testSourceDirectory> <testSourceDirectory>test</testSourceDirectory>
...@@ -108,6 +108,13 @@ ...@@ -108,6 +108,13 @@
</build> </build>
<repositories> <repositories>
<!-- simonstrator-repository -->
<repository>
<id>simonstrator</id>
<url>http://dev.kom.e-technik.tu-darmstadt.de/mvn/</url>
</repository>
<!-- local kom repository --> <!-- local kom repository -->
<repository> <repository>
<id>maven.kom</id> <id>maven.kom</id>
...@@ -137,6 +144,15 @@ ...@@ -137,6 +144,15 @@
</repositories> </repositories>
<dependencies> <dependencies>
<!-- Meta: to remove unused dependencies :) -->
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.9</version>
</dependency>
<!-- XML --> <!-- XML -->
<dependency> <dependency>
<groupId>dom4j</groupId> <groupId>dom4j</groupId>
...@@ -160,6 +176,7 @@ ...@@ -160,6 +176,7 @@
<artifactId>batik-1.5-fop</artifactId> <artifactId>batik-1.5-fop</artifactId>
<version>0.20-5</version> <version>0.20-5</version>
</dependency> </dependency>
<!-- unused?
<dependency> <dependency>
<groupId>batik</groupId> <groupId>batik</groupId>
<artifactId>batik-parser</artifactId> <artifactId>batik-parser</artifactId>
...@@ -169,7 +186,7 @@ ...@@ -169,7 +186,7 @@
<groupId>batik</groupId> <groupId>batik</groupId>
<artifactId>batik-awt-util</artifactId> <artifactId>batik-awt-util</artifactId>
<version>1.5</version> <version>1.5</version>
</dependency> </dependency> -->
<!-- Testing --> <!-- Testing -->
<dependency> <dependency>
...@@ -184,6 +201,7 @@ ...@@ -184,6 +201,7 @@
</dependency> </dependency>
<!-- Logging --> <!-- Logging -->
<!-- unused
<dependency> <dependency>
<groupId>org.slf4j</groupId> <groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId> <artifactId>slf4j-log4j12</artifactId>
...@@ -193,7 +211,7 @@ ...@@ -193,7 +211,7 @@
<groupId>org.slf4j</groupId> <groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId> <artifactId>slf4j-api</artifactId>
<version>1.6.1</version> <version>1.6.1</version>
</dependency> </dependency> -->
<dependency> <dependency>
<groupId>log4j</groupId> <groupId>log4j</groupId>
<artifactId>log4j</artifactId> <artifactId>log4j</artifactId>
...@@ -201,6 +219,7 @@ ...@@ -201,6 +219,7 @@
</dependency> </dependency>
<!-- Parsing, Bytecode, ... --> <!-- Parsing, Bytecode, ... -->
<!-- Unused
<dependency> <dependency>
<groupId>antlr</groupId> <groupId>antlr</groupId>
<artifactId>antlr</artifactId> <artifactId>antlr</artifactId>
...@@ -215,7 +234,7 @@ ...@@ -215,7 +234,7 @@
<groupId>javassist</groupId> <groupId>javassist</groupId>
<artifactId>javassist</artifactId> <artifactId>javassist</artifactId>
<version>3.12.0.GA</version> <version>3.12.0.GA</version>
</dependency> </dependency> -->
<!-- Geometric calculations --> <!-- Geometric calculations -->
<dependency> <dependency>
...@@ -232,11 +251,12 @@ ...@@ -232,11 +251,12 @@
</dependency> </dependency>
<!-- Chart creation --> <!-- Chart creation -->
<!-- unused?
<dependency> <dependency>
<groupId>jfree</groupId> <groupId>jfree</groupId>
<artifactId>jcommon</artifactId> <artifactId>jcommon</artifactId>
<version>1.0.16</version> <version>1.0.16</version>
</dependency> </dependency> -->
<dependency> <dependency>
<groupId>jfree</groupId> <groupId>jfree</groupId>
<artifactId>jfreechart</artifactId> <artifactId>jfreechart</artifactId>
...@@ -305,6 +325,7 @@ ...@@ -305,6 +325,7 @@
</dependency> </dependency>
<!-- SimCfg, Xtext, EMF dependencies --> <!-- SimCfg, Xtext, EMF dependencies -->
<!-- unused
<dependency> <dependency>
<groupId>org.eclipse</groupId> <groupId>org.eclipse</groupId>
<artifactId>xtext</artifactId> <artifactId>xtext</artifactId>
...@@ -359,7 +380,7 @@ ...@@ -359,7 +380,7 @@
<groupId>org.eclipse.emf</groupId> <groupId>org.eclipse.emf</groupId>
<artifactId>mwe.utils</artifactId> <artifactId>mwe.utils</artifactId>
<version>1.2.1</version> <version>1.2.1</version>
</dependency> </dependency> -->
<!-- Math --> <!-- Math -->
<dependency> <dependency>
...@@ -381,6 +402,7 @@ ...@@ -381,6 +402,7 @@
<artifactId>javax.inject</artifactId> <artifactId>javax.inject</artifactId>
<version>1</version> <version>1</version>
</dependency> </dependency>
<!-- unused
<dependency> <dependency>
<groupId>commons-logging</groupId> <groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId> <artifactId>commons-logging</artifactId>
...@@ -395,7 +417,7 @@ ...@@ -395,7 +417,7 @@
<groupId>org.codehaus.plexus</groupId> <groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId> <artifactId>plexus-utils</artifactId>
<version>2.1</version> <version>2.1</version>
</dependency> </dependency> -->
<dependency> <dependency>
<groupId>commons-lang</groupId> <groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId> <artifactId>commons-lang</artifactId>
...@@ -416,6 +438,7 @@ ...@@ -416,6 +438,7 @@
--> -->
<!-- Geodemlia --> <!-- Geodemlia -->
<!-- unused
<dependency> <dependency>
<groupId>org.swinglabs</groupId> <groupId>org.swinglabs</groupId>
<artifactId>jxmapviewer</artifactId> <artifactId>jxmapviewer</artifactId>
...@@ -425,15 +448,15 @@ ...@@ -425,15 +448,15 @@
<groupId>org.swinglabs</groupId> <groupId>org.swinglabs</groupId>
<artifactId>swingx</artifactId> <artifactId>swingx</artifactId>
<version>1.6.1</version> <version>1.6.1</version>
</dependency> </dependency> -->
<!-- JUNG Graph Library --> <!-- JUNG Graph Library -->
<dependency> <!-- unused<dependency>
<groupId>net.sf.jung</groupId> <groupId>net.sf.jung</groupId>
<artifactId>jung2</artifactId> <artifactId>jung2</artifactId>
<version>2.0.1</version> <version>2.0.1</version>
<type>pom</type> <type>pom</type>
</dependency> </dependency> -->
<dependency> <dependency>
<groupId>net.sf.jung</groupId> <groupId>net.sf.jung</groupId>
<artifactId>jung-api</artifactId> <artifactId>jung-api</artifactId>
...@@ -454,6 +477,7 @@ ...@@ -454,6 +477,7 @@
<artifactId>jung-io</artifactId> <artifactId>jung-io</artifactId>
<version>2.0.1</version> <version>2.0.1</version>
</dependency> </dependency>
<!-- unused
<dependency> <dependency>
<groupId>net.sf.jung</groupId> <groupId>net.sf.jung</groupId>
<artifactId>jung-visualization</artifactId> <artifactId>jung-visualization</artifactId>
...@@ -463,9 +487,15 @@ ...@@ -463,9 +487,15 @@
<groupId>net.sf.jung</groupId> <groupId>net.sf.jung</groupId>
<artifactId>jung-samples</artifactId> <artifactId>jung-samples</artifactId>
<version>2.0.1</version> <version>2.0.1</version>
</dependency> </dependency> -->
<!-- Simonstrator-Platform -->
<dependency>
<groupId>maki</groupId>
<artifactId>simonstrator-api</artifactId>
<version>2.2</version>
</dependency>
</dependencies> </dependencies>
</project> </project>
...@@ -109,9 +109,10 @@ public class GUIRunner extends JFrame implements WindowListener, KeyListener { ...@@ -109,9 +109,10 @@ public class GUIRunner extends JFrame implements WindowListener, KeyListener {
this.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); this.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
this.addWindowListener(this); this.addWindowListener(this);
this.setSize(Config.getValue(CONF_PATH_WIDTH, 600), Config.getValue( int winWidth = Config.getValue(CONF_PATH_WIDTH, 600);
CONF_PATH_HEIGHT, 600)); int winHeight = Config.getValue(CONF_PATH_HEIGHT, 600);
this.setSize(winWidth, winHeight);
this.setLocation(new Point(Config.getValue(CONF_PATH_POSX, 0), Config this.setLocation(new Point(Config.getValue(CONF_PATH_POSX, 0), Config
.getValue(CONF_PATH_POSY, 0))); .getValue(CONF_PATH_POSY, 0)));
......
...@@ -51,9 +51,11 @@ public class FileToolkit { ...@@ -51,9 +51,11 @@ public class FileToolkit {
File rootDir) { File rootDir) {
File[] filesArray = rootDir.listFiles(); File[] filesArray = rootDir.listFiles();
Set<File> files = new TreeSet<File>(); Set<File> files = new TreeSet<File>();
for (int i = 0; i < filesArray.length; i++) if (filesArray != null) {
files.add(filesArray[i]); for (int i = 0; i < filesArray.length; i++)
files.add(filesArray[i]);
}
boolean containsAConfig = false; boolean containsAConfig = false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment