Skip to content

Commit

Permalink
add some structure
Browse files Browse the repository at this point in the history
remove intellij-stuff
  • Loading branch information
fschaupp committed May 21, 2020
1 parent 2347552 commit 771448a
Show file tree
Hide file tree
Showing 25 changed files with 154 additions and 193 deletions.
15 changes: 0 additions & 15 deletions .classpath

This file was deleted.

5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,8 @@
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
/target/

# Intellij...
.DS_Store
.idea
.settings
23 changes: 0 additions & 23 deletions .project

This file was deleted.

15 changes: 0 additions & 15 deletions dependencybuildr.analyzr/.classpath

This file was deleted.

1 change: 0 additions & 1 deletion dependencybuildr.analyzr/.gitignore

This file was deleted.

23 changes: 0 additions & 23 deletions dependencybuildr.analyzr/.project

This file was deleted.

11 changes: 0 additions & 11 deletions dependencybuildr.analyzr/.settings/org.eclipse.jdt.core.prefs

This file was deleted.

4 changes: 0 additions & 4 deletions dependencybuildr.analyzr/.settings/org.eclipse.m2e.core.prefs

This file was deleted.

10 changes: 0 additions & 10 deletions dependencybuildr.analyzr/pom.xml

This file was deleted.

15 changes: 0 additions & 15 deletions dependencybuildr.gui/.classpath

This file was deleted.

1 change: 0 additions & 1 deletion dependencybuildr.gui/.gitignore

This file was deleted.

23 changes: 0 additions & 23 deletions dependencybuildr.gui/.project

This file was deleted.

16 changes: 0 additions & 16 deletions dependencybuildr.gui/.settings/org.eclipse.jdt.core.prefs

This file was deleted.

4 changes: 0 additions & 4 deletions dependencybuildr.gui/.settings/org.eclipse.m2e.core.prefs

This file was deleted.

10 changes: 0 additions & 10 deletions dependencybuildr.gui/pom.xml

This file was deleted.

16 changes: 16 additions & 0 deletions dependencybuildr.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_5">
<output url="file://$MODULE_DIR$/target/classes" />
<output-test url="file://$MODULE_DIR$/target/test-classes" />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" exported="" name="com.jgoodies:jgoodies-forms:1.9.0" level="project" />
<orderEntry type="library" name="Maven: com.jgoodies:jgoodies-forms:1.9.0" level="project" />
<orderEntry type="library" name="Maven: com.jgoodies:jgoodies-common:1.8.1" level="project" />
</component>
</module>
50 changes: 29 additions & 21 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,22 +1,30 @@
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>me.fschaupp</groupId>
<artifactId>dependencybuildr</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>Dependency Buildr</name>
<packaging>pom</packaging>
<modules>
<module>dependencybuildr.analyzr</module>
<module>dependencybuildr.gui</module>
</modules>
<url>https://github.com/fschaupp/DependencyBuildr</url>
<scm>
<url>https://github.com/fschaupp/DependencyBuildr</url>
<developerConnection>Florian Schaupp</developerConnection>
<tag>Maven</tag>
</scm>
<issueManagement>
<system>Github</system>
<url>https://github.com/fschaupp/DependencyBuildr/issues</url>
</issueManagement>
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>me.fschaupp</groupId>
<artifactId>dependencybuildr</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>DependencyBuildr</name>
<packaging>jar</packaging>
<url>https://github.com/fschaupp/DependencyBuildr</url>
<scm>
<url>https://github.com/fschaupp/DependencyBuildr</url>
<developerConnection>Florian Schaupp</developerConnection>
<tag>Maven</tag>
</scm>
<issueManagement>
<system>Github</system>
<url>https://github.com/fschaupp/DependencyBuildr/issues</url>
</issueManagement>

<dependencies>
<dependency>
<groupId>com.jgoodies</groupId>
<artifactId>jgoodies-forms</artifactId>
<version>1.9.0</version>
<scope>compile</scope>
</dependency>
</dependencies>


</project>
11 changes: 11 additions & 0 deletions src/me/fschaupp/dependencybuildr/Constants.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package me.fschaupp.dependencybuildr;

import java.awt.Color;
import java.awt.Dimension;

public final class Constants {
public static final String TITLE = "DependencyBuildr";
public static final Dimension WINDOW_SIZE = Utils.dimensionOf(600, 400);
public static final Color BACKGROUND_COLOR = new Color(0x2f2f2f);

}
6 changes: 5 additions & 1 deletion src/me/fschaupp/dependencybuildr/Main.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
package me.fschaupp.dependencybuildr;

import me.fschaupp.dependencybuildr.gui.GUI;

public class Main {

public static void main(String[] args) {
private static GUI gui;

public static void main(String[] args) {
gui = new GUI();
}

}
11 changes: 11 additions & 0 deletions src/me/fschaupp/dependencybuildr/Utils.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package me.fschaupp.dependencybuildr;

import java.awt.Dimension;

public interface Utils {

public static Dimension dimensionOf(int width, int height) {
return new Dimension(width, height);
}

}
9 changes: 9 additions & 0 deletions src/me/fschaupp/dependencybuildr/analyzr/Analyzr.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package me.fschaupp.dependencybuildr.analyzr;

public class Analyzr {

public Analyzr() {

}

}
23 changes: 23 additions & 0 deletions src/me/fschaupp/dependencybuildr/analyzr/Dependencies.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package me.fschaupp.dependencybuildr.analyzr;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class Dependencies {
private final Dependencies INSTANCE = new Dependencies();

private List<Dependency> dependencies;
private Map<String, DependencyBuilder> dependencyBuilder = new HashMap<String, DependencyBuilder>();

public Dependencies getInstance() {
return INSTANCE;
}

public void registerBuilder(String builderName, DependencyBuilder builder) {
if (!dependencyBuilder.containsKey(builderName)) {
dependencyBuilder.put(builderName, builder);
}
}
}
4 changes: 4 additions & 0 deletions src/me/fschaupp/dependencybuildr/analyzr/Dependency.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package me.fschaupp.dependencybuildr.analyzr;

public interface Dependency {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package me.fschaupp.dependencybuildr.analyzr;

public interface DependencyBuilder {
}
37 changes: 37 additions & 0 deletions src/me/fschaupp/dependencybuildr/gui/GUI.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
package me.fschaupp.dependencybuildr.gui;

import javax.swing.JButton;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JTextField;

import me.fschaupp.dependencybuildr.Constants;
import me.fschaupp.dependencybuildr.Utils;

public class GUI extends JFrame implements Utils {

private JTextField path;
private JButton browse;
private JFileChooser projectChooser;

public GUI() {
setTitle(Constants.TITLE);
setSize(Constants.WINDOW_SIZE);
setLocationRelativeTo(null);
setBackground(Constants.BACKGROUND_COLOR);

createUI();

setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setVisible(true);
}

private void createUI() {
path = new JTextField();
browse = new JButton("...");
projectChooser = new JFileChooser();



}
}

0 comments on commit 771448a

Please sign in to comment.