Package net.officefloor.gef.ide
Class AbstractIdeTestApplication<R extends Model,RE extends java.lang.Enum<RE>,O>
- java.lang.Object
-
- javafx.application.Application
-
- net.officefloor.gef.ide.AbstractIdeTestApplication<R,RE,O>
-
- Direct Known Subclasses:
ActivityIdeTestApplication
,SectionIdeTestApplication
,WoofIdeTestApplication
public abstract class AbstractIdeTestApplication<R extends Model,RE extends java.lang.Enum<RE>,O> extends javafx.application.Application
Abstract IDE EditorApplication
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description AbstractIdeTestApplication()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract AbstractAdaptedIdeEditor<R,RE,O>
createEditor(EnvironmentBridge envBridge)
Creates theAbstractAdaptedIdeEditor
.protected abstract java.lang.String
getConfigurationFileName()
Obtains path to theWritableConfigurationItem
.protected abstract java.lang.String
getReplaceConfigurationFileName()
Obtains path to theWritableConfigurationItem
to replace rootModel
.protected <P> void
register(java.lang.Class<P> prototypeType, java.util.function.Consumer<P> decorator)
Registers a prototype decorator.void
start(javafx.stage.Stage stage)
-
-
-
Method Detail
-
createEditor
protected abstract AbstractAdaptedIdeEditor<R,RE,O> createEditor(EnvironmentBridge envBridge)
Creates theAbstractAdaptedIdeEditor
.- Parameters:
envBridge
-EnvironmentBridge
.- Returns:
AbstractAdaptedIdeEditor
.
-
getConfigurationFileName
protected abstract java.lang.String getConfigurationFileName()
Obtains path to theWritableConfigurationItem
.- Returns:
- Path to the
WritableConfigurationItem
.
-
getReplaceConfigurationFileName
protected abstract java.lang.String getReplaceConfigurationFileName()
Obtains path to theWritableConfigurationItem
to replace rootModel
.- Returns:
- Path to the
WritableConfigurationItem
to replace rootModel
.
-
register
protected <P> void register(java.lang.Class<P> prototypeType, java.util.function.Consumer<P> decorator)
Registers a prototype decorator.- Type Parameters:
P
- Prototype type.- Parameters:
prototypeType
- PrototypeClass
.decorator
- Prototype decorator.
-
start
public void start(javafx.stage.Stage stage) throws java.lang.Exception
- Specified by:
start
in classjavafx.application.Application
- Throws:
java.lang.Exception
-
-