public class GUIMainControl<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
extends java.lang.Object
implements net.sf.japi.util.ThrowableHandler<java.lang.Throwable>
| Constructor and Description |
|---|
GUIMainControl(@NotNull ProjectModel<G,A,R> projectModel,
@NotNull EditorSettings editorSettings,
@NotNull ErrorView errorView,
@NotNull ResourceIcons resourceIcons,
@NotNull EditorFactory<G,A,R> editorFactory,
@NotNull ConfigSourceFactory configSourceFactory)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
handleThrowable(@NotNull java.lang.Throwable t) |
void |
run(@NotNull java.util.List<java.io.File> args)
Starts the editor: makes the main window visible and opens map files.
|
public GUIMainControl(@NotNull
@NotNull ProjectModel<G,A,R> projectModel,
@NotNull
@NotNull EditorSettings editorSettings,
@NotNull
@NotNull ErrorView errorView,
@NotNull
@NotNull ResourceIcons resourceIcons,
@NotNull
@NotNull EditorFactory<G,A,R> editorFactory,
@NotNull
@NotNull ConfigSourceFactory configSourceFactory)
projectModel - the project model to editeditorSettings - the editor settings instanceerrorView - the error view for reporting errorsresourceIcons - the gui utils for creating iconseditorFactory - the editor factory instanceconfigSourceFactory - the config source factory instancepublic void handleThrowable(@NotNull
@NotNull java.lang.Throwable t)
handleThrowable in interface net.sf.japi.util.ThrowableHandler<java.lang.Throwable>public void run(@NotNull
@NotNull java.util.List<java.io.File> args)
args - the map files to open