Commit 7c034065 authored by Florian Hölzl's avatar Florian Hölzl
Browse files

RED.

refs 2983
parent 02e06b5e
......@@ -113,6 +113,7 @@ public class AutoLayoutMenu implements IContextMenuContributor {
// Check if model is empty
if(pickInstanceOf(ILayoutedModelElement.class, element.getContainedElements()).isEmpty()) {
// TODO (FH): use import static
return Collections.emptyList();
}
......@@ -121,10 +122,12 @@ public class AutoLayoutMenu implements IContextMenuContributor {
// particular also if the model does not contain any connectors, or none of the connectors
// is connected to a connection).
if(hasConnectedConnectorWithAngle(element)) {
// TODO (FH): use import static
return Collections.emptyList();
}
for(IHierarchicElement childElement : element.getContainedElements()) {
if(hasConnectedConnectorWithAngle(childElement)) {
// TODO (FH): use import static
return Collections.emptyList();
}
}
......
......@@ -84,6 +84,7 @@ import de.cau.cs.kieler.klay.layered.properties.Properties;
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 36F683174E3AD8ADC2DDDC27D7C75183
*/
// TODO (FH): use import static
public class KielerAutoLayouter implements IAutoLayouter {
/** Mapping from {@link IHierarchicElement}s to {@link KNode}s. */
......
......@@ -37,6 +37,7 @@ import org.fortiss.tooling.base.utils.ZoomUtils;
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: FDBEA15E01470E5D318805D3653A4F3F
*/
// TODO (FH): use import static (multiple occurences below)
public class ZoomUIUtils {
/** Factor to align zoomed movements to 0.05 steps (==> avail. zoom factors). */
......
......@@ -150,6 +150,7 @@ public class ConstraintUIBases {
return res;
}
// TODO (FH): remove @params or document
/**
* @param s
* @return the icon type corresponding to <code>s</code>.
......
......@@ -56,6 +56,7 @@ import org.fortiss.tooling.kernel.utils.EcoreUtils;
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 97453A8CA6928F43F260FB918B4C1AA4
*/
// TODO (FH): remove @params or document
public class ConstraintsUIUtils {
/** Gathers some statuses by verification status. */
......
Supports Markdown
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