Class AbstractEditorTestApplication<R extends Model>
- java.lang.Object
-
- javafx.application.Application
-
- net.officefloor.eclipse.editor.test.AbstractEditorTestApplication<R>
-
- Direct Known Subclasses:
ExampleOfficeEditorMain
,ExampleOfficeFloorEditorMain
,ExampleSectionEditorMain
public abstract class AbstractEditorTestApplication<R extends Model> extends javafx.application.Application
Provides means to test editor configurations without loading the Eclipse platform.
-
-
Constructor Summary
Constructors Constructor Description AbstractEditorTestApplication()
-
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 R
createRootModel()
Creates the rootModel
.protected abstract R
createRootReplacement()
Creates the replacement 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
.
-
createRootReplacement
protected abstract R createRootReplacement()
Creates the replacement rootModel
.- Returns:
- Replacement 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
-
-