Skip to content
Snippets Groups Projects
Commit 159cc390 authored by Daniel Ratiu's avatar Daniel Ratiu
Browse files

cleaning up to simplify the API usage

refs 311
parent 8f3ebd89
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,7 @@ import org.fortiss.tooling.kernel.model.INamedCommentedElement;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 235F807E331B0D3976B0707631869C69
* @ConQAT.Rating YELLOW Hash: D9401C2ABBD8FF2E6038867F91E6F966
*/
public abstract class ConnectorEditPartBase<T extends ILayoutedModelElement & IConnector & INamedCommentedElement>
extends PositionedEditPartBase<T> {
......@@ -164,7 +164,6 @@ public abstract class ConnectorEditPartBase<T extends ILayoutedModelElement & IC
}
/** {@inheritDoc} */
@SuppressWarnings({ "unchecked" })
@Override
protected void refreshVisuals() {
super.refreshVisuals();
......@@ -172,14 +171,28 @@ public abstract class ConnectorEditPartBase<T extends ILayoutedModelElement & IC
refreshSourceConnections();
refreshTargetConnections();
for (ConnectionEditPart editPart : (List<ConnectionEditPart>) getSourceConnections()) {
for (ConnectionEditPart editPart : getSourceConnections()) {
editPart.refresh();
}
for (ConnectionEditPart editPart : (List<ConnectionEditPart>) getTargetConnections()) {
for (ConnectionEditPart editPart : getTargetConnections()) {
editPart.refresh();
}
}
/** {@inheritDoc} */
@SuppressWarnings("unchecked")
@Override
public List<ConnectionEditPart> getSourceConnections() {
return super.getSourceConnections();
}
/** {@inheritDoc} */
@SuppressWarnings("unchecked")
@Override
public List<ConnectionEditPart> getTargetConnections() {
return super.getTargetConnections();
}
/** {@inheritDoc} */
@Override
protected List<IConnection> getModelSourceConnections() {
......
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