- int currLineWidth = Config.getConfigInt(Config.KEY_LINE_WIDTH);
- if (currLineWidth < 1 || currLineWidth > 4) {
- currLineWidth = 2;
- }
- Object lineWidthStr = JOptionPane.showInputDialog(_app.getFrame(),
- I18nManager.getText("dialog.setlinewidth.text"),
- I18nManager.getText(getNameKey()),
- JOptionPane.QUESTION_MESSAGE, null, null, "" + currLineWidth);
- if (lineWidthStr != null)
+ // Not required, because this function is started from a ChooseSingleParameter function
+ // and goes directly to the completeFunction method.
+ }
+
+ /**
+ * Complete the function using the given line width parameter
+ */
+ public void completeFunction(int inLineWidth)
+ {
+ final int currLineWidth = Config.getConfigInt(Config.KEY_LINE_WIDTH);
+ if (inLineWidth >= 1 && inLineWidth <= 4 && inLineWidth != currLineWidth)