]> gerrit.simantics Code Review - simantics/district.git/blobdiff - org.simantics.district.network.ui/src/org/simantics/district/network/ui/techtype/table/TechTypeTable.java
Move tech type table-related request from UI plug-in
[simantics/district.git] / org.simantics.district.network.ui / src / org / simantics / district / network / ui / techtype / table / TechTypeTable.java
index 3b3d4a7014f13cbdc924ef46368f3111db828dfa..f3ba54d9f790491dbe866705e4ff4a9dfe18c4aa 100644 (file)
@@ -44,7 +44,7 @@ import org.eclipse.swt.widgets.Text;
 import org.simantics.Simantics;
 import org.simantics.db.Resource;
 import org.simantics.db.exception.DatabaseException;
-import org.simantics.district.network.ui.techtype.requests.WriteTechTypeTableRequest;
+import org.simantics.district.network.techtype.requests.WriteTechTypeTableRequest;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -208,8 +208,17 @@ public class TechTypeTable extends Composite {
                        LOGGER.error("Failed to write tech type table data to model", e);
                }
 
+               setTechTypeData(data);
+       }
+
+       public void setTechTypeData(String data) {
                bodyDataProvider.setData(data);
                table.refresh(true);
        }
 
+       public void setComponentType(Resource componentType) {
+               this.componentType = componentType;
+       }
+
 }
+