Commit e1e5c90c authored by Anton Hattendorf's avatar Anton Hattendorf
Browse files

used static import

refs 733
parent c5206802
......@@ -17,6 +17,8 @@ $Id$
+--------------------------------------------------------------------------*/
package org.fortiss.af3.multicore.utils;
import static org.fortiss.tooling.base.utils.LayoutModelElementFactory.createNodeElementLayout;
import org.fortiss.af3.multicore.model.AF3MulticoreFactory;
import org.fortiss.af3.multicore.model.AvalonBus;
import org.fortiss.af3.multicore.model.AvalonMaster;
......@@ -25,7 +27,6 @@ import org.fortiss.af3.multicore.model.AvalonSlave;
import org.fortiss.af3.multicore.model.AvalonSlaveIF;
import org.fortiss.af3.multicore.model.Memory;
import org.fortiss.af3.multicore.model.NiosIICore;
import org.fortiss.tooling.base.utils.LayoutModelElementFactory;
/**
* Factory for Multicore objects
......@@ -33,7 +34,7 @@ import org.fortiss.tooling.base.utils.LayoutModelElementFactory;
* @author hattendorf
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 590860B280530A93371A4A170EB007EB
* @ConQAT.Rating YELLOW Hash: 050EEB2CA59114AAF24EF6977C428213
*/
public class MulticoreModelElementFactory {
......@@ -41,8 +42,7 @@ public class MulticoreModelElementFactory {
public static NiosIICore createNiosIICore(String name) {
NiosIICore nios = AF3MulticoreFactory.eINSTANCE.createNiosIICore();
nios.setName(name);
// TODO (Dan): please use import static
LayoutModelElementFactory.createNodeElementLayout(nios);
createNodeElementLayout(nios);
return nios;
}
......@@ -50,7 +50,7 @@ public class MulticoreModelElementFactory {
public static AvalonMaster createAvalonMaster(String name) {
AvalonMaster avm = AF3MulticoreFactory.eINSTANCE.createAvalonMaster();
avm.setName(name);
LayoutModelElementFactory.createNodeElementLayout(avm);
createNodeElementLayout(avm);
return avm;
}
......@@ -58,7 +58,7 @@ public class MulticoreModelElementFactory {
public static AvalonSlave createAvalonSlave(String name) {
AvalonSlave avs = AF3MulticoreFactory.eINSTANCE.createAvalonSlave();
avs.setName(name);
LayoutModelElementFactory.createNodeElementLayout(avs);
createNodeElementLayout(avs);
return avs;
}
......@@ -66,7 +66,7 @@ public class MulticoreModelElementFactory {
public static AvalonMasterIF createAvalonMasterIF(String name) {
AvalonMasterIF avmif = AF3MulticoreFactory.eINSTANCE.createAvalonMasterIF();
avmif.setName(name);
LayoutModelElementFactory.createNodeElementLayout(avmif);
createNodeElementLayout(avmif);
return avmif;
}
......@@ -74,7 +74,7 @@ public class MulticoreModelElementFactory {
public static AvalonSlaveIF createAvalonSlaveIF(String name) {
AvalonSlaveIF avsif = AF3MulticoreFactory.eINSTANCE.createAvalonSlaveIF();
avsif.setName(name);
LayoutModelElementFactory.createNodeElementLayout(avsif);
createNodeElementLayout(avsif);
return avsif;
}
......@@ -82,7 +82,7 @@ public class MulticoreModelElementFactory {
public static AvalonBus createAvalonBus(String name) {
AvalonBus avb = AF3MulticoreFactory.eINSTANCE.createAvalonBus();
avb.setName(name);
LayoutModelElementFactory.createNodeElementLayout(avb);
createNodeElementLayout(avb);
return avb;
}
......@@ -90,7 +90,7 @@ public class MulticoreModelElementFactory {
public static Memory createMemory(String name) {
Memory mem = AF3MulticoreFactory.eINSTANCE.createMemory();
mem.setName(name);
LayoutModelElementFactory.createNodeElementLayout(mem);
createNodeElementLayout(mem);
return mem;
}
......
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