Index: maven-i18n-plugin/src/java/org/codelutin/i18n/plugin/ui/KeysModifier.java diff -u maven-i18n-plugin/src/java/org/codelutin/i18n/plugin/ui/KeysModifier.java:1.5 maven-i18n-plugin/src/java/org/codelutin/i18n/plugin/ui/KeysModifier.java:1.6 --- maven-i18n-plugin/src/java/org/codelutin/i18n/plugin/ui/KeysModifier.java:1.5 Fri Nov 2 16:06:37 2007 +++ maven-i18n-plugin/src/java/org/codelutin/i18n/plugin/ui/KeysModifier.java Wed Nov 7 10:21:44 2007 @@ -62,6 +62,7 @@ protected JLabel name = new JLabel(); protected JLabel path = new JLabel(); protected JTextField key = new JTextField(); + protected JTextField pattern = new JTextField(".*"); protected JButton next = new JButton("Next >>"); /** @@ -73,7 +74,7 @@ this.patternLeft = patternLeft; this.patternRight = patternRight; - setLayout(new GridLayout(6, 2, 10, 10)); + setLayout(new GridLayout(8, 2, 10, 10)); Container pane = getContentPane(); pane.add(new JLabel("--- File information ---")); @@ -91,6 +92,12 @@ pane.add(new JLabel("Key :")); pane.add(key); + pane.add(new JLabel("--- Filters ---")); + pane.add(new JLabel()); + + pane.add(new JLabel("Pattern :")); + pane.add(pattern); + pane.add(new JLabel()); pane.add(next); @@ -158,7 +165,7 @@ key.setText(keyI18n); newKeys.add(key.getText()); repaint(); - if(isVisible()) { + if(isVisible() && keyI18n.matches(pattern.getText())) { try { wait(); } catch (InterruptedException e) {