Skip to content
Snippets Groups Projects
Commit 16498549 authored by Alexander Diewald's avatar Alexander Diewald
Browse files

CR: GREEN

parent 658e3174
No related branches found
No related tags found
1 merge request!77[UI] Refactor component diagram visuals
CoordinateCorrections.java f78a936ba49c5fc4daf29237ecb4e86a446316d4 YELLOW
LayoutedCircularContentAnchorageVisualBase.java aa546c0c9d975972a33cf22682b5d6634e56d271 YELLOW
LayoutedCircularDiagramAnchorageVisualBase.java 54505229239232a070c981c6f59c7058fd39712d YELLOW
LayoutedLineLinkVisualBase.java 42dfb003f1aecae3d6124544b51739f8fcd4db11 YELLOW
LayoutedRectangularContentVisualBase.java da8cd44fa9f03ccf4325d240db3d6fb5678f21c7 YELLOW
CoordinateCorrections.java f78a936ba49c5fc4daf29237ecb4e86a446316d4 GREEN
LayoutedCircularContentAnchorageVisualBase.java aa546c0c9d975972a33cf22682b5d6634e56d271 GREEN
LayoutedCircularDiagramAnchorageVisualBase.java c5cc5fb41777166bc169011324585e51acda04c3 GREEN
LayoutedLineLinkVisualBase.java 429483c1222a26345fbc3bf5c9b2dbe41c6ad5f1 GREEN
LayoutedRectangularContentVisualBase.java d4cd07a8056df99927b160f2d4ce1cf4778d1dfa GREEN
......@@ -46,6 +46,7 @@ public abstract class LayoutedCircularDiagramAnchorageVisualBase
public LayoutedCircularDiagramAnchorageVisualBase(
IDiagramAnchorageMVCBundle mvcb) {
super(mvcb);
// TODO(#3877): Move type checks to a common base class.
Object model = mvcb.getModel();
if(!(model instanceof ILayoutedModelElement)) {
throw new IllegalArgumentException(
......@@ -106,6 +107,7 @@ public abstract class LayoutedCircularDiagramAnchorageVisualBase
}
/** Return the {@link ILayoutedModelElement}. */
// TODO(#3877): Move type checks to a common base class.
private ILayoutedModelElement getLayoutedModelElement() {
// Safe wild cast due to type check in constructor
return (ILayoutedModelElement)getModel();
......
......@@ -41,6 +41,7 @@ public abstract class LayoutedLineLinkVisualBase extends LineLinkVisualBase {
/** Constructor. */
public LayoutedLineLinkVisualBase(ILinkMVCBundle mvcb) {
super(mvcb);
// TODO(#3877): Move type checks to a common base class.
Object model = mvcb.getModel();
if(!(model instanceof ILayoutedModelElement)) {
throw new IllegalArgumentException(
......@@ -108,6 +109,7 @@ public abstract class LayoutedLineLinkVisualBase extends LineLinkVisualBase {
}
/** Return the {@link ILayoutedModelElement}. */
// TODO(#3877): Move type checks to a common base class.
private ILayoutedModelElement getLayoutedModelElement() {
// Safe wild cast due to type check in constructor
return (ILayoutedModelElement)getModel();
......
......@@ -44,6 +44,7 @@ public abstract class LayoutedRectangularContentVisualBase extends RectangularCo
/** Constructor. */
public LayoutedRectangularContentVisualBase(IContentMVCBundle mvcb) {
super(mvcb);
// TODO(#3877): Move type checks to a common base class.
Object model = mvcb.getModel();
if(!(model instanceof ILayoutedModelElement)) {
throw new IllegalArgumentException(
......@@ -103,6 +104,7 @@ public abstract class LayoutedRectangularContentVisualBase extends RectangularCo
}
/** Return the {@link ILayoutedModelElement}. */
// TODO(#3877): Move type checks to a common base class.
private ILayoutedModelElement getLayoutedModelElement() {
// Safe wild cast due to type check in constructor
return (ILayoutedModelElement)getModel();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment