Revision: 18311 http://sourceforge.net/p/gate/code/18311 Author: markagreenwood Date: 2014-09-11 10:56:52 +0000 (Thu, 11 Sep 2014) Log Message: ----------- runtime params are now set on the underlying PR whenever a cell edit finishes and the new value is different from the old one, as well as on a run or PR change
Modified Paths: -------------- gate/trunk/src/main/gate/gui/ResourceParametersEditor.java Modified: gate/trunk/src/main/gate/gui/ResourceParametersEditor.java =================================================================== --- gate/trunk/src/main/gate/gui/ResourceParametersEditor.java 2014-09-11 10:56:00 UTC (rev 18310) +++ gate/trunk/src/main/gate/gui/ResourceParametersEditor.java 2014-09-11 10:56:52 UTC (rev 18311) @@ -53,6 +53,7 @@ import java.util.Comparator; import java.util.Iterator; import java.util.List; +import java.util.Objects; import java.util.Set; import javax.swing.AbstractCellEditor; @@ -388,7 +389,15 @@ break; } case 3: { - pDisj.setValue(aValue); + Object oldValue = pDisj.getValue(); + if (!Objects.equals(oldValue, aValue)) { + pDisj.setValue(aValue); + try { + ResourceParametersEditor.this.resource.setParameterValue(pDisj.getName(), pDisj.getValue()); + } catch(ResourceInstantiationException e) { + e.printStackTrace(); + } + } break; } default: { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk _______________________________________________ GATE-cvs mailing list GATE-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gate-cvs