refs #7008
Change-Id: I28c4cf4068a137679eeb641d0b7e085ac2cc3c63
import org.simantics.scl.runtime.SCLContext;
import org.simantics.scl.runtime.function.Function1;
import org.simantics.utils.datastructures.Pair;
import org.simantics.scl.runtime.SCLContext;
import org.simantics.scl.runtime.function.Function1;
import org.simantics.utils.datastructures.Pair;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
public class CompileSCLMonitorRequest extends AbstractExpressionCompilationRequest<CompilationContext, Variable> {
public class CompileSCLMonitorRequest extends AbstractExpressionCompilationRequest<CompilationContext, Variable> {
+
+ private static Logger LOGGER = LoggerFactory.getLogger(CompileSCLMonitorRequest.class);
+
protected static Name BROWSE = Name.create("Simantics/Variables", "browse");
protected static Name VALUE = Name.create("Simantics/Variables", "value");
protected static Name BROWSE = Name.create("Simantics/Variables", "browse");
protected static Name VALUE = Name.create("Simantics/Variables", "value");
sclContext.put("graph", graph);
return exp.apply(context.getParent(graph));
} catch (DatabaseException e) {
sclContext.put("graph", graph);
return exp.apply(context.getParent(graph));
} catch (DatabaseException e) {
throw (DatabaseException)e;
} catch (Throwable t) {
throw (DatabaseException)e;
} catch (Throwable t) {
throw new DatabaseException(t);
} finally {
sclContext.put("graph", oldGraph);
throw new DatabaseException(t);
} finally {
sclContext.put("graph", oldGraph);
try {
return Environments.getType(context.runtimeEnvironment.getEnvironment(), valueType);
} catch (SCLExpressionCompilationException e) {
try {
return Environments.getType(context.runtimeEnvironment.getEnvironment(), valueType);
} catch (SCLExpressionCompilationException e) {
+ LOGGER.warn("getExpectedType failed for valueType: " + valueType, e);
}
}
return super.getExpectedType(graph, context);
}
}
return super.getExpectedType(graph, context);