|
Gridarta Editor
|
Main class of the editor; parses command-line arguments, initializes and starts the editor. More...
Collaboration diagram for net.sf.gridarta.maincontrol.GridartaEditor< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:Public Member Functions | |
| GridartaEditor (@NotNull final String tipOfTheDayPackage) | |
| Creates a new instance. More... | |
| void | run (@NotNull final String actionBuilderPackage, @NotNull final String editorJarName, @NotNull final EditorFactory< G, A, R > editorFactory, @Nullable final String defaultConfig, @NotNull final String... args) |
| Runs the editor. More... | |
Private Member Functions | |
| int | runNormal (@NotNull final Iterable< String > args, @NotNull final EditorFactory< G, A, R > editorFactory, @NotNull final ErrorView errorView, @NotNull final ResourceIcons resourceIcons, @NotNull final ConfigSourceFactory configSourceFactory, @NotNull final ProjectModel< G, A, R > projectModel, @NotNull final EditorSettings editorSettings) |
| Run in normal mode. More... | |
| int | runPlugin (@NotNull final String plugin, final ErrorView errorView, final Iterable< String > args, @NotNull final EditorFactory< G, A, R > editorFactory, @NotNull final ProjectModel< G, A, R > projectModel, @NotNull final ResourceIcons resourceIcons, @NotNull final EditorSettings editorSettings) |
| Executes a plugin. More... | |
Static Private Member Functions | |
| static void | checkForErrors (@NotNull final ErrorView errorView) |
| Checks whether a ErrorView instance contains at least one error. More... | |
| static void | usage (@NotNull final String editorJarName, @Nullable final String defaultConfig) |
| Prints the editor's command-line options to System#out. More... | |
| static void | waitDialog (final ErrorView errorView) |
| Waits until the error dialog has been dismissed. More... | |
Static Private Attributes | |
| static final Category | LOG = Logger.getLogger(GridartaEditor.class) |
| The Logger for printing log messages. More... | |
Main class of the editor; parses command-line arguments, initializes and starts the editor.
Definition at line 81 of file GridartaEditor.java.
| net.sf.gridarta.maincontrol.GridartaEditor< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.GridartaEditor | ( | @NotNull final String | tipOfTheDayPackage | ) |
Creates a new instance.
| tipOfTheDayPackage | the package name for tip of the day messages |
Definition at line 93 of file GridartaEditor.java.
|
staticprivate |
Checks whether a ErrorView instance contains at least one error.
Quits the application if an error exists.
| errorView | the error view to check |
Definition at line 272 of file GridartaEditor.java.
References net.sf.gridarta.mainactions.DefaultExiter.callExit().
Here is the call graph for this function:| void net.sf.gridarta.maincontrol.GridartaEditor< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.run | ( | @NotNull final String | actionBuilderPackage, |
| @NotNull final String | editorJarName, | ||
| @NotNull final EditorFactory< G, A, R > | editorFactory, | ||
| @Nullable final String | defaultConfig, | ||
| @NotNull final String... | args | ||
| ) |
Runs the editor.
| actionBuilderPackage | the package name for creating an action builder |
| editorJarName | the name of the .jar file containing the executable |
| editorFactory | the editor factory to use |
| defaultConfig | the default config file or null |
| args | the command line parameters given to the level editor |
Definition at line 114 of file GridartaEditor.java.
References net.sf.gridarta.maincontrol.GridartaRunMode.BATCH_PNG, net.sf.gridarta.maincontrol.GridartaRunMode.COLLECT_ARCHES, net.sf.gridarta.commands.CollectArchesCommand.execute(), net.sf.gridarta.model.configsource.ConfigSourceFactory.getConfigSource(), net.sf.gridarta.model.settings.ProjectSettings.getConfigSourceName(), net.sf.gridarta.utils.ConfigFileUtils.getHomeFile(), net.sf.gridarta.preferences.FilePreferencesFactory.initialize(), net.sf.gridarta.maincontrol.GridartaRunMode.isConsoleMode(), net.sf.gridarta.maincontrol.GridartaRunMode.NORMAL, net.sf.gridarta.gui.dialog.prefs.GUIPreferences.PREFERENCES_LANGUAGE, and net.sf.gridarta.maincontrol.GridartaRunMode.SINGLE_PNG.
Here is the call graph for this function:
|
private |
Run in normal mode.
| args | the files to open |
| editorFactory | the editor factory to use |
| errorView | the error view to add errors to |
| resourceIcons | the gui utils to use |
| configSourceFactory | the config source factory to use |
| projectModel | the project model to use |
| editorSettings | the editor settings |
Definition at line 305 of file GridartaEditor.java.
Here is the call graph for this function:
|
private |
Executes a plugin.
| plugin | the name of the plugin to run |
| errorView | the error view to add errors to |
| args | the arguments for the plugin |
| editorFactory | the editor factory to use |
| projectModel | the project model to use |
| resourceIcons | the gui utils to use |
| editorSettings | the global editor settings instance |
Definition at line 257 of file GridartaEditor.java.
|
staticprivate |
Prints the editor's command-line options to System#out.
| editorJarName | the name of the editor's .jar file |
| defaultConfig | the default config file or null |
Definition at line 370 of file GridartaEditor.java.
|
staticprivate |
Waits until the error dialog has been dismissed.
| errorView | the error view instance |
Definition at line 284 of file GridartaEditor.java.
References net.sf.gridarta.mainactions.DefaultExiter.callExit(), and net.sf.gridarta.model.errorview.ErrorView.waitDialog().
Here is the call graph for this function:
|
staticprivate |
The Logger for printing log messages.
Definition at line 87 of file GridartaEditor.java.