Revision: 5757 http://sourceforge.net/p/jump-pilot/code/5757 Author: michaudm Date: 2018-04-08 21:12:30 +0000 (Sun, 08 Apr 2018) Log Message: ----------- Small improvements in AutoAssignAttributePlugIn code
Modified Paths: -------------- core/trunk/src/org/openjump/core/ui/plugin/tools/AutoAssignAttributePlugIn.java Modified: core/trunk/src/org/openjump/core/ui/plugin/tools/AutoAssignAttributePlugIn.java =================================================================== --- core/trunk/src/org/openjump/core/ui/plugin/tools/AutoAssignAttributePlugIn.java 2018-04-08 16:59:51 UTC (rev 5756) +++ core/trunk/src/org/openjump/core/ui/plugin/tools/AutoAssignAttributePlugIn.java 2018-04-08 21:12:30 UTC (rev 5757) @@ -255,7 +255,7 @@ autoIncrement = dialog.getBoolean(AUTOINC_CHECK_BOX); assignValue = dialog.getBoolean(ASSIGN_VALUE_CHECK_BOX); - boolean fromAttributeValid = schema.getAttributeCount() > 1; + //boolean fromAttributeValid = schema.getAttributeCount() > 1; //dialog.setFieldEnabled(AUTOINC_CHECK_BOX, !assignFromSource && !assignValue); dialog.setFieldEnabled(AUTOINC_PATTERN_BOX, autoIncrement); @@ -302,7 +302,7 @@ private void initEnableChecks(final MultiInputDialog dialog) { dialog.addEnableChecks(SOURCE_COMBO_BOX, - Arrays.asList(new EnableCheck[] {new EnableCheck() { + Collections.singletonList(new EnableCheck() { public String check(JComponent component) { return assignFromSource && dialog.getText(TARGET_ATTRIBUTE_COMBO_BOX) @@ -309,7 +309,6 @@ .equals(dialog.getText(SOURCE_COMBO_BOX)) ? SOURCE_DIFF_DESTINATION : null; } - } })); } ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel