Commit abef5b73 authored by Alexander Diewald's avatar Alexander Diewald

Mode/State Factories: Infer generics everywhere

Issue-Ref: 3962
Issue-Url: https://af3-developer.fortiss.org/issues/3962Signed-off-by: Alexander Diewald's avatarAlexander Diewald <diewald@fortiss.org>
parent a959286b
ModeAutomatonControllerFactory.java 3e60fb8432aef914d0c63e8dfeb18b6ac57ddb6f GREEN
ModeAutomatonControllerFactory.java aa768159a389d90522b275e4481fb2db78669a25 YELLOW
ModeAutomatonFXEditor.java 0e772da01045f7dc39c1005735c47e51d8b92a5b GREEN
ModeAutomatonFXEditorBinding.java d3503a20fc9fccc6a8805674bdabaa2135fd28c2 GREEN
ModeAutomatonModelFactory.java 90826e0ff88b73784e41cc71f473c11daa6bc36d GREEN
......
......@@ -41,33 +41,32 @@ public class ModeAutomatonControllerFactory implements IControllerFactory {
/** {@inheritDoc} */
@Override
public IController createContentController(IContentMVCBundle model) {
return new LayoutedEllipticResizableContentController<Mode>(model, Mode.class);
return new LayoutedEllipticResizableContentController<>(model, Mode.class);
}
/** {@inheritDoc} */
@Override
public IController createDiagramAnchorageController(IDiagramAnchorageMVCBundle modelBundle) {
return new CurvedLinkLayoutedDiagramAnchorangeController<SwitchSegmentConnector>(
modelBundle, SwitchSegmentConnector.class);
return new CurvedLinkLayoutedDiagramAnchorangeController<>(modelBundle,
SwitchSegmentConnector.class);
}
/** {@inheritDoc} */
@Override
public IController createContentAnchorageController(IContentAnchorageMVCBundle modelBundle) {
return new CurvedLinkLayoutedContentAnchorangeController<SwitchSegmentConnector>(
modelBundle, SwitchSegmentConnector.class);
return new CurvedLinkLayoutedContentAnchorangeController<>(modelBundle,
SwitchSegmentConnector.class);
}
/** {@inheritDoc} */
@Override
public IController createLinkController(ILinkMVCBundle modelBundle) {
return new LayoutedCurveLinkBendPointController<SwitchSegment>(modelBundle,
SwitchSegment.class);
return new LayoutedCurveLinkBendPointController<>(modelBundle, SwitchSegment.class);
}
/** {@inheritDoc} */
@Override
public IController createDiagramController(IDiagramMVCBundle diagramBundle) {
return new EObjectDiagramController<Mode>(diagramBundle, Mode.class);
return new EObjectDiagramController<>(diagramBundle, Mode.class);
}
}
......@@ -3,7 +3,7 @@ DataStateFXEditorBase.java 0bec3533962ebcd7326f6597d598a5ff7c8ba8e6 GREEN
DataStateFXEditorBinding.java 46ab36b197a6fca102a5e2d75aa24b1fbba26b89 GREEN
DataStateFXEditorContentProvider.java 324cd24e2219ba2cf360b0f82e3628ca1b5dabba GREEN
DataStateFXEditorUIProvider.java 4993d4a6685b7738dd28a7a55177ab43fe81fc53 GREEN
StateAutomatonControllerFactory.java 87dc508fd509c7ebf0054446df315bec3da5affe YELLOW
StateAutomatonControllerFactory.java 67f7f7bbc318018080a4569d84e0f1830ce33bda YELLOW
StateAutomatonFXEditor.java eea88e496c873ec92f6b2a0735cbd3d542a3063f GREEN
StateAutomatonFXEditorBase.java 901e1ce52a2a53fb73c160b0af7fd7fbfc1e3044 GREEN
StateAutomatonFXEditorBinding.java 5fae7a8e04236c07d176a2b1ed22f7043e3a09fe GREEN
......
......@@ -41,21 +41,21 @@ public class StateAutomatonControllerFactory implements IControllerFactory {
/** {@inheritDoc} */
@Override
public IController createContentController(IContentMVCBundle model) {
return new LayoutedEllipticResizableContentController<State>(model, State.class);
return new LayoutedEllipticResizableContentController<>(model, State.class);
}
/** {@inheritDoc} */
@Override
public IController createDiagramAnchorageController(IDiagramAnchorageMVCBundle modelBundle) {
return new CurvedLinkLayoutedDiagramAnchorangeController<TransitionSegmentConnector>(
modelBundle, TransitionSegmentConnector.class);
return new CurvedLinkLayoutedDiagramAnchorangeController<>(modelBundle,
TransitionSegmentConnector.class);
}
/** {@inheritDoc} */
@Override
public IController createContentAnchorageController(IContentAnchorageMVCBundle modelBundle) {
return new CurvedLinkLayoutedContentAnchorangeController<TransitionSegmentConnector>(
modelBundle, TransitionSegmentConnector.class);
return new CurvedLinkLayoutedContentAnchorangeController<>(modelBundle,
TransitionSegmentConnector.class);
}
/** {@inheritDoc} */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment