Revision: 18481
http://sourceforge.net/p/gate/code/18481
Author: ian_roberts
Date: 2014-12-02 20:35:45 +0000 (Tue, 02 Dec 2014)
Log Message:
-----------
Ensure the list editor dialog gets the correct list of values when loading a
saved population config.
Modified Paths:
--------------
gate/trunk/plugins/Twitter/src/gate/corpora/twitter/PopulationDialogWrapper.java
Modified:
gate/trunk/plugins/Twitter/src/gate/corpora/twitter/PopulationDialogWrapper.java
===================================================================
---
gate/trunk/plugins/Twitter/src/gate/corpora/twitter/PopulationDialogWrapper.java
2014-12-01 02:20:18 UTC (rev 18480)
+++
gate/trunk/plugins/Twitter/src/gate/corpora/twitter/PopulationDialogWrapper.java
2014-12-02 20:35:45 UTC (rev 18481)
@@ -303,6 +303,12 @@
public void setValues(List<String> values) {
this.values = values;
+ // re-create the list editor with new values
+ if(listEditor != null) {
+ listEditor.dispose();
+ }
+ listEditor = new ListEditorDialog(SwingUtilities.getAncestorOfClass(
+ Window.class, this), values, List.class, String.class.getName());
this.field.setText(Strings.toString(values));
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs