Revision: 15278
http://gate.svn.sourceforge.net/gate/?rev=15278&view=rev
Author: markagreenwood
Date: 2012-01-31 12:18:55 +0000 (Tue, 31 Jan 2012)
Log Message:
-----------
fixed a bug Johann spotted where you couldn't okay the config dialog after you
had made a mistake filling it in
Modified Paths:
--------------
gate/trunk/src/gate/gui/creole/manager/PluginUpdateManager.java
Modified: gate/trunk/src/gate/gui/creole/manager/PluginUpdateManager.java
===================================================================
--- gate/trunk/src/gate/gui/creole/manager/PluginUpdateManager.java
2012-01-31 11:20:36 UTC (rev 15277)
+++ gate/trunk/src/gate/gui/creole/manager/PluginUpdateManager.java
2012-01-31 12:18:55 UTC (rev 15278)
@@ -744,23 +744,22 @@
true);
options.addPropertyChangeListener(new PropertyChangeListener() {
public void propertyChange(PropertyChangeEvent e) {
+ if (options.getValue().equals(JOptionPane.UNINITIALIZED_VALUE))
return;
String prop = e.getPropertyName();
-
if(dialog.isVisible() && (e.getSource() == options)
&& (prop.equals(JOptionPane.VALUE_PROPERTY))) {
-
if(((Integer)options.getValue()).intValue() ==
JOptionPane.OK_OPTION) {
-
if(txtName.getText().trim().equals("")) {
txtName.requestFocusInWindow();
+ options.setValue(JOptionPane.UNINITIALIZED_VALUE);
return;
}
if(txtURL.getText().trim().equals("")) {
txtURL.requestFocusInWindow();
+ options.setValue(JOptionPane.UNINITIALIZED_VALUE);
return;
}
}
-
dialog.setVisible(false);
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs