|
Gridarta Editor
|
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) | |
| 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) |
Private Member Functions | |
| int | runNormal (@NotNull final List< File > 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) |
| 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) |
Static Private Member Functions | |
| static void | checkForErrors (@NotNull final ErrorView errorView) |
| static void | usage (@NotNull final String editorJarName, @Nullable final String defaultConfig) |
| static void | waitDialog (final ErrorView errorView) |
Static Private Attributes | |
| static final Category | LOG = Logger.getLogger(GridartaEditor.class) |
Main class of the editor; parses command-line arguments, initializes and starts the editor.
Definition at line 83 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 95 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 295 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 116 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.commands.BatchPngCommand.execute(), net.sf.gridarta.commands.SinglePngCommand.execute(), net.sf.gridarta.model.configsource.ConfigSourceFactory.getConfigSource(), net.sf.gridarta.model.settings.ProjectSettings.getConfigSourceName(), net.sf.gridarta.utils.ConfigFileUtils.getHomeFile(), net.sf.gridarta.model.settings.ProjectSettings.getMapsDirectory(), 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.
Referenced by net.sf.gridarta.var.atrinik.maincontrol.AtrinikEditor.main(), net.sf.gridarta.var.daimonin.maincontrol.DaimoninEditor.main(), and net.sf.gridarta.var.crossfire.maincontrol.CrossfireEditor.main().
Here is the call graph for this function:
Here is the caller 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 328 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 280 of file GridartaEditor.java.
Here is the call graph for this function:
|
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 390 of file GridartaEditor.java.
|
staticprivate |
Waits until the error dialog has been dismissed.
| errorView | the error view instance |
Definition at line 307 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 89 of file GridartaEditor.java.