- At your pom.xml
<dependency>
<groupId>de.dhbw.wi13c.jguicreator</groupId>
<artifactId>framework</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
- At your parseable Object
import de.dhbw.wi13c.jguicreator.data.annotation.BarChart;
import de.dhbw.wi13c.jguicreator.data.annotation.PieChart;
public class Person {
@NotNull
@Size(min = 2)
private String vorname;
@PieChart
private Map<String, ? extends Number> einkommensZusammensetzung;
@BarChart
private Map<String, ? extends Number> einkommensEntwicklung;
.
.
.
- To create the gui
import de.dhbw.wi13c.jguicreator.DomainObjectParser;
import de.dhbw.wi13c.jguicreator.impl.GuiCreator;
import de.dhbw.wi13c.jguicreator.listener.SavedListener;
public class Showcase {
public static void main(String[] args) {
Person aPerson = new Person("Chuck", "Norris", ...);
GuiCreator.createView(aPerson, new SavedListener<Person>() {
public void saved(Person object) {
System.out.println('Changed data got saved');
System.out.println(object.toString());
}
}, new DomainObjectParser());
}
}
##Run the sample-project
- install java-jre
- clone or download this project
- navigate with your terminal into the project-folder
- run this command:
java -jar Showcase.jar
Import this Codestyle into your eclipse.
##Import the project into eclipse
- Eclipse -> Import -> Existing Maven Projects -> Code
- select the folder and select all pom.xml-files
##Install maven
##Build the project
- Open the terminal in the code-folder
- run:
mvn clean install
- if the build is successfully, the created jar-file can be found at 'framework/target/'
DO Write the summary line and description of what you have done in the imperative mode, that is as if you were commanding someone. Start the line with "Fix", "Add", "Change" instead of "Fixed", "Added", "Changed". Always leave the second line blank. Line break the commit message (to make the commit message readable without having to scroll horizontally in gitk).
DON'T Don't end the summary line with a period - it's a title and titles don't end with a period.
Tips If it seems difficult to summarize what your commit does, it may be because it includes several logical changes or bug fixes, and are better split up into several commits using git add -p.