Skip to content
Snippets Groups Projects
Commit 9375507a authored by Robert Goldmann's avatar Robert Goldmann
Browse files

final commit

parent 6c401108
No related branches found
No related tags found
No related merge requests found
File moved
File added
No preview for this file type
No preview for this file type
No preview for this file type
File moved
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
...@@ -29,9 +29,7 @@ public class Main extends Application ...@@ -29,9 +29,7 @@ public class Main extends Application
stage.setScene(scene); stage.setScene(scene);
stage.setResizable(true); stage.setResizable(true);
CommandBundle cb = new CommandBundle(); CommandLine cmd = new CommandLine(stage, null, ResourceBundle.getBundle("commandLine/", Locale.ENGLISH), new CommandBundle());
CommandLine cmd = new CommandLine(stage, null, ResourceBundle.getBundle("commandLine/", Locale.GERMANY), cb);
HBox hbox = new HBox(); HBox hbox = new HBox();
...@@ -64,7 +62,6 @@ public class Main extends Application ...@@ -64,7 +62,6 @@ public class Main extends Application
} }
}); });
hbox.getChildren().add(button2); hbox.getChildren().add(button2);
mainPane.getChildren().add(hbox); mainPane.getChildren().add(hbox);
stage.show(); stage.show();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment