diff --git a/bin/commandLine/_de.properties b/bin/commandLine/_en.properties similarity index 100% rename from bin/commandLine/_de.properties rename to bin/commandLine/_en.properties diff --git a/bin/commands/CommandNew.class b/bin/commands/CommandNew.class new file mode 100644 index 0000000000000000000000000000000000000000..983ca72d187ebd53c575ed3e2f637c3b6044a0d0 Binary files /dev/null and b/bin/commands/CommandNew.class differ diff --git a/bin/test/Main$1.class b/bin/test/Main$1.class index 3524c51fd0d955d6f06fad56fb746d3ec7a2f3c1..222b8b32e9e810aa622cd092d9964632a7d52cea 100644 Binary files a/bin/test/Main$1.class and b/bin/test/Main$1.class differ diff --git a/bin/test/Main$2.class b/bin/test/Main$2.class index 3aab3c6a6671eb2faa5cea2791db11dc46128ba0..79654abbc7ed86cf22a22f496d9d346116d57189 100644 Binary files a/bin/test/Main$2.class and b/bin/test/Main$2.class differ diff --git a/bin/test/Main.class b/bin/test/Main.class index 27f2a876e6fcb195df6a10bc48a37326ad9f09b7..7096d5b1d2e5de60f2d989fd0bc25c4f315403c3 100644 Binary files a/bin/test/Main.class and b/bin/test/Main.class differ diff --git a/src/commandLine/_de.properties b/src/commandLine/_en.properties similarity index 100% rename from src/commandLine/_de.properties rename to src/commandLine/_en.properties diff --git a/src/commands/CommandNew.java b/src/commands/CommandNew.java new file mode 100644 index 0000000000000000000000000000000000000000..a31b712576fe3609fdc6c07cc3af0f8b5e2830e6 --- /dev/null +++ b/src/commands/CommandNew.java @@ -0,0 +1,28 @@ +package commands; + +/** + * Clears the history log and console + * @author deadlocker8 + * + */ +public class CommandNew extends Command +{ + public CommandNew() + { + super.keyword = "your-keyword"; + super.numberOfParams = 0; + super.helptText = "help.your-keyword"; + } + + @Override + public void execute(String[] command, CommandBundle bundle) + { + if(!isValid(command)) + { + bundle.getController().print(bundle.getLanguageBundle().getString("error.invalid.arguments")); + return; + } + + //implement your code here + } +} \ No newline at end of file diff --git a/src/test/Main.java b/src/test/Main.java index 82ee1e1506f26c8643b98d8b596158dbef60a61a..d4b481c6c18e5fe21e6631090e3e62cf6882edaa 100644 --- a/src/test/Main.java +++ b/src/test/Main.java @@ -27,11 +27,9 @@ public class Main extends Application stage.setTitle("Test"); stage.setScene(scene); - stage.setResizable(true); + stage.setResizable(true); - CommandBundle cb = new CommandBundle(); - - CommandLine cmd = new CommandLine(stage, null, ResourceBundle.getBundle("commandLine/", Locale.GERMANY), cb); + CommandLine cmd = new CommandLine(stage, null, ResourceBundle.getBundle("commandLine/", Locale.ENGLISH), new CommandBundle()); HBox hbox = new HBox(); @@ -64,7 +62,6 @@ public class Main extends Application } }); hbox.getChildren().add(button2); - mainPane.getChildren().add(hbox); stage.show();