Commit f78e12e3 authored by Dumoulin Nicolas's avatar Dumoulin Nicolas
Browse files

[maven-release-plugin] copy for tag ohoui-0.1.1

parent 32e7a959
......@@ -8,7 +8,7 @@
<groupId>fr.cemagref</groupId>
<artifactId>ohoui</artifactId>
<version>0.1.1-SNAPSHOT</version>
<version>0.1.1</version>
<dependencies>
<dependency>
......@@ -20,7 +20,7 @@
<dependency>
<groupId>fr.cemagref</groupId>
<artifactId>lisc-commons</artifactId>
<version>0.1</version>
<version>0.1.1</version>
</dependency>
<dependency>
<groupId>com.thoughtworks.xstream</groupId>
......@@ -57,8 +57,8 @@
<packaging>jar</packaging>
<scm>
<connection>scm:svn:http://trac.clermont.cemagref.fr/svn/LISC/OhOUI/branches/0.1</connection>
<url>http://trac.clermont.cemagref.fr/projets/LISC/browser/OhOUI/branches/0.1</url>
<connection>scm:svn:http://trac.clermont.cemagref.fr/svn/LISC/OhOUI/tags/ohoui-0.1.1</connection>
<url>http://trac.clermont.cemagref.fr/projets/LISC/browser/OhOUI/tags/ohoui-0.1.1</url>
</scm>
<build>
<plugins>
......
......@@ -5,7 +5,6 @@ import java.io.File;
import java.util.ArrayList;
import java.util.List;
import fr.cemagref.commons.modulesloader.ModulesLoader;
import fr.cemagref.ohoui.annotations.Anchor;
import fr.cemagref.ohoui.annotations.Description;
import fr.cemagref.ohoui.annotations.Link;
......@@ -18,13 +17,6 @@ public class OhOUIDemo {
public static void main(String[] args) throws Exception {
// Init the engine
//ModulesLoader.addModulesPackage("demo");
//ModulesLoader.setLogStream(System.err);
ModulesLoader.addModulesJAR("rt.jar");
ModulesLoader.addModulesPackageForJar("rt.jar","java.util");
ModulesLoader.addModulesPackageForJar("rt.jar","java.lang");
ModulesLoader.addModulesPackageForJar("rt.jar","java.io");
MyModel maclasse = new MyModel();
// Run the GUI
......@@ -35,17 +27,18 @@ public class OhOUIDemo {
}
// launch the method defined by the abstract class Algo
if (maclasse.algo != null)
if (maclasse.algo != null) {
maclasse.algo.process();
}
if (maclasse.init != null)
if (maclasse.init != null) {
maclasse.init.doProcess();
}
// print the complete state of the object after edition
//System.out.println((new XStream(new DomDriver())).toXML(maclasse));
}
public static class MyModel<A extends Algo> {
public MyModel() {
......@@ -54,37 +47,27 @@ public class OhOUIDemo {
listAlgo.add(new AlgoFaster());
//listAlgo2 = new ArrayList<AlgoAccurate>();
}
Test1 test1;
Test2 test2;
@Description(name = "A number", tooltip = "Here, you can add some indications")
private Integer aNumber = 1;
@Description(name = "Use color ?", tooltip = "Use the checkbox")
@Link(action="enable", target="color")
@Link(action = "enable", target = "color")
boolean b = true;
@Description(name = "The color of the sky ", tooltip = "Please, change this color")
@Anchor(id="color")
@Anchor(id = "color")
Color color = new Color(150, 150, 150);
// without metadata
private String aString;
InitOpinionIncertitude init;
private Algo algo;
@Description(name = "List of processes", tooltip = "Used to compute your solution")
@XStreamable(load = true, save = true)
private List<Algo> listAlgo;
/*@XStreamable(load = true, save = true)
private List<? extends Algo> listAlgo2;*/
private List<A> listAlgo3;
//private List listAlgo4;
/*@Description(name = "Process", tooltip = "Used to compute your solution")
......@@ -93,6 +76,7 @@ public class OhOUIDemo {
}
public static abstract class Algo {
@Description(name = "Input data", tooltip = "")
File input;
......@@ -103,13 +87,12 @@ public class OhOUIDemo {
// some params that you may need for your algo
public double param1;
public double param2;
@Override
void process() {
// Here your process
System.out.println("fast "+param1);
System.out.println("fast " + param1);
}
}
......@@ -117,6 +100,7 @@ public class OhOUIDemo {
public int param;
InitOpinionIncertitude trux;
@Override
void process() {
System.out.println("accurate");
......@@ -127,8 +111,8 @@ public class OhOUIDemo {
public interface InitOpinionIncertitude {
void doProcess();
}
public class InitOpinionIncertitudeRandom implements InitOpinionIncertitude {
public InitOpinionIncertitudeRandom() {
......@@ -138,7 +122,5 @@ public class OhOUIDemo {
public void doProcess() {
System.out.println("Init Random");
}
}
}
......@@ -2,23 +2,16 @@ package demo;
import java.util.List;
import fr.cemagref.commons.modulesloader.ModulesLoader;
import fr.cemagref.ohoui.filters.NoTransientField;
import fr.cemagref.ohoui.swing.OhOUI;
import fr.cemagref.ohoui.swing.OhOUIDialog;
public class Test1 {
int truc;
List<Integer> list;
public static void main(String[] args) throws Exception {
// Init the engine
//ModulesLoader.addModulesPackage("demo");
//ModulesLoader.setLogStream(System.err);
ModulesLoader.addModulesJAR("rt.jar");
ModulesLoader.addModulesPackageForJar("rt.jar","java.util");
ModulesLoader.addModulesPackageForJar("rt.jar","java.lang");
ModulesLoader.addModulesPackageForJar("rt.jar","java.io");
public static void main(String[] args) throws Exception {
// Run the GUI
OhOUIDialog dialog = OhOUI.getDialog(null, new Test1(), new NoTransientField());
......
package demo;
public class Test2 {
}
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