propertyDisplayValue :: Variable -> String -> <ReadGraph> String
propertyValueSetter :: Variable -> String -> <ReadGraph> AbstractEventHandler
-
-
\ No newline at end of file
+
+ columnsBean :: Resource -> <ReadGraph> ColumnsBean
+ columnBeans :: ColumnsBean -> [ColumnBean]
+
+ columnBeanKey :: ColumnBean -> String
+ columnBeanLabel :: ColumnBean -> String
package org.simantics.document.swt.core.scl;
+import java.util.ArrayList;
import java.util.List;
import org.simantics.databoard.Bindings;
import org.simantics.document.server.io.CommandResult;
import org.simantics.document.server.serverResponse.ServerResponse;
import org.simantics.document.swt.core.SWTViews;
+import org.simantics.document.swt.core.bean.ColumnBean;
+import org.simantics.document.swt.core.bean.ColumnsBean;
import org.simantics.scl.runtime.SCLContext;
import org.simantics.scl.runtime.function.Function1;
import org.simantics.scl.runtime.reporting.SCLReportingHandler;
return WorkbenchSelectionUtils.getPossibleResource(wse);
}
+ public static ColumnsBean columnsBean(ReadGraph graph, Resource value) throws DatabaseException {
+ return graph.getValue(value, ColumnsBean.BINDING);
+ }
+
+ public static List<ColumnBean> columnBeans(ColumnsBean bean) {
+ ArrayList<ColumnBean> result = new ArrayList<>();
+ for(ColumnBean b : bean.columns) result.add(b);
+ return result;
+ }
+
+ public static String columnBeanKey(ColumnBean bean) {
+ return bean.key;
+ }
+
+ public static String columnBeanLabel(ColumnBean bean) {
+ return bean.label;
+ }
+
}