Package net.officefloor.eclipse.editor
Class AbstractEditorApplication
- java.lang.Object
-
- javafx.application.Application
-
- net.officefloor.eclipse.editor.AbstractEditorApplication
-
- Direct Known Subclasses:
ExampleOfficeEditorMain
,ExampleOfficeFloorEditorMain
,ExampleSectionEditorMain
public abstract class AbstractEditorApplication extends javafx.application.Application
Provides means to test editor configurations without loading the Eclipse platform.
-
-
Constructor Summary
Constructors Constructor Description AbstractEditorApplication()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
buildModels(AdaptedBuilderContext context)
Builds theAdaptedModel
instances.protected AdaptedEditorModule
createModule()
Creates theAdaptedEditorModule
.protected abstract Model
createRootModel()
Creates the rootModel
.protected void
setSelectOnly(SelectOnly selectOnly)
Allows specifying thatSelectOnly
.void
start(javafx.stage.Stage stage)
-
-
-
Method Detail
-
buildModels
protected abstract void buildModels(AdaptedBuilderContext context)
Builds theAdaptedModel
instances.- Parameters:
context
-AdaptedBuilderContext
.
-
createRootModel
protected abstract Model createRootModel()
Creates the rootModel
.- Returns:
- Root
Model
.
-
createModule
protected AdaptedEditorModule createModule()
Creates the
AdaptedEditorModule
.Allows overriding the
AdaptedEditorModule
.- Returns:
AdaptedEditorModule
.
-
setSelectOnly
protected void setSelectOnly(SelectOnly selectOnly)
Allows specifying thatSelectOnly
.- Parameters:
selectOnly
-SelectOnly
.
-
start
public void start(javafx.stage.Stage stage) throws java.lang.Exception
- Specified by:
start
in classjavafx.application.Application
- Throws:
java.lang.Exception
-
-