From: lempinen Date: Mon, 2 Aug 2010 13:26:21 +0000 (+0000) Subject: git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@16905 ac1ea38d-2e2b... X-Git-Tag: simantics-1.2.0~139 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=6bc5955c3b4ed80cece3b24ceb96f32bbd318ff8;p=simantics%2Fsysdyn.git git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@16905 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements2/ValveFactory.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements2/ValveFactory.java index d231adbd..a9774e5c 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements2/ValveFactory.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements2/ValveFactory.java @@ -135,6 +135,9 @@ public class ValveFactory extends SysdynElementFactory { public void hintChanged(IHintObservable sender, Key key, Object oldValue, Object newValue) { IElement e = (IElement)sender; HoverShapeNode shape = (HoverShapeNode) e.getHint(NODE); + if(shape == null) { + return; + } boolean hover = ElementUtils.isHovering(e); shape.setHover(hover); } diff --git a/org.simantics.sysdyn/build.properties b/org.simantics.sysdyn/build.properties index b088bf18..886d03ee 100644 --- a/org.simantics.sysdyn/build.properties +++ b/org.simantics.sysdyn/build.properties @@ -12,4 +12,5 @@ source.. = src/ output.. = bin/ bin.includes = META-INF/,\ - . + .,\ + adapters.xml