Commit dfca9af1 authored by Simon Barner's avatar Simon Barner
Browse files

- Pretty icon

- Use less technical labels
refs 2658
parent a0eb1b10
PrototypeProvider.java 67476993153ad0554d66dd8dc8971991aa7338f5 RED
PrototypeProvider.java 964f3739536877096ee2ebdd19ec3350d86adbb5 YELLOW
......@@ -16,6 +16,7 @@
package org.fortiss.af3.platform.hierarchic.ui.prototypes;
import static java.util.Collections.emptyList;
import static org.fortiss.af3.allocation.ui.prototypes.PrototypeProvider.RIGHT_ARROW;
import static org.fortiss.af3.platform.hierarchic.utils.HierarchicPlatformModelElementFactory.createPartitionToHardwareAllocationTable;
import static org.fortiss.tooling.base.ui.utils.LayoutDataUIUtils.setConnectorPosition;
import static org.fortiss.tooling.base.utils.LayoutDataUtils.setNodePosition;
......@@ -24,6 +25,8 @@ import java.lang.reflect.Method;
import java.util.List;
import org.fortiss.af3.allocation.model.AllocationTable;
import org.fortiss.af3.partition.model.Partition;
import org.fortiss.af3.partition.model.PartitionArchitecture;
import org.fortiss.af3.platform.hierarchic.utils.HierarchicPlatformModelElementFactory;
import org.fortiss.tooling.base.model.base.HierarchicElementBase;
import org.fortiss.tooling.base.model.layout.ILayoutedModelElement;
......@@ -45,6 +48,9 @@ public class PrototypeProvider extends PrototypeProviderBase {
*/
private static boolean hideGenericHierarchicalArchitecture = false;
/** {@link Partition}s to hardware {@link PartitionArchitecture} label. */
private final static String PARTITIONS_TO_HARDWARE = "Partitions " + RIGHT_ARROW + " Hardware";
/*** Requests to hide the prototypes of the generic hierarchical architecture. */
protected void requestHideGenericHierarchicalArchitecture(
boolean hideGenericHierarchicalArchitecture) {
......@@ -137,8 +143,8 @@ public class PrototypeProvider extends PrototypeProviderBase {
/** Registers the prototypes to use this platform architecture in {@link AllocationTable} s. */
private void setupAllocationPrototypes() {
registerPrimaryPrototype("Pa \u2192 Hw",
createPartitionToHardwareAllocationTable("Pa \u2192 Hw"), getCategoryName());
registerPrimaryPrototype(PARTITIONS_TO_HARDWARE,
createPartitionToHardwareAllocationTable(PARTITIONS_TO_HARDWARE), getCategoryName());
}
/**
......
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