Changeset 3638
- Timestamp:
- Aug 7, 2007, 11:30:02 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/plugins/core/net/sf/basedb/plugins/Base1PluginExecuter.java
r3632 r3638 1738 1738 false, 1739 1739 1, 1740 new Integer(options),1740 Values.getInt(options, 30), 1741 1741 1, 1742 1742 null); … … 1753 1753 { 1754 1754 Float defValue = Values.getFloat(defaultValue, null); 1755 FloatParameterType t = new FloatParameterType(null, null, defValue, false, 1, new Integer(options), 1, null);1755 FloatParameterType t = new FloatParameterType(null, null, defValue, false, 1, Values.getInt(options, 30), 1, null); 1756 1756 parameter = new PluginParameter<Float>(name, commonName, "", t); 1757 1757 break; … … 1760 1760 { 1761 1761 String[] wh = options.split(","); 1762 StringParameterType t = new StringParameterType(null, defaultValue, false, 1, new Integer(wh[0]), wh.length > 1 ? new Integer(wh[1]) : 1); 1762 int width = Values.getInt(wh[0], 30); 1763 int height = wh.length > 1 ? Values.getInt(wh[1], 1) : 1; 1764 StringParameterType t = new StringParameterType(null, defaultValue, false, 1, width, height); 1763 1765 parameter = new PluginParameter<String>(name, commonName, "", t); 1764 1766 break; … … 1772 1774 enums.add(at.getName(), at.getName()); 1773 1775 } 1774 StringParameterType t = new StringParameterType(255, defaultValue, true, 1, new Integer(options), 1, enums);1776 StringParameterType t = new StringParameterType(255, defaultValue, true, 1, Values.getInt(options, 30), 1, enums); 1775 1777 parameter = new PluginParameter<String>(name, commonName, "", t); 1776 1778 break; … … 1778 1780 case ENUMERATION: 1779 1781 { 1780 StringParameterType t = new StringParameterType(255, defaultValue, true, 1, options.equals("") ? 30 : new Integer(options), 1, enumOptions);1782 StringParameterType t = new StringParameterType(255, defaultValue, true, 1, Values.getInt(options, 30), 1, enumOptions); 1781 1783 parameter = new PluginParameter<String>(name, commonName, "", t); 1782 1784 break;
Note: See TracChangeset
for help on using the changeset viewer.