diff options
Diffstat (limited to 'scripting/java/org/openoffice/netbeans/modules/office/actions/DeployParcelAction.java')
-rw-r--r-- | scripting/java/org/openoffice/netbeans/modules/office/actions/DeployParcelAction.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/actions/DeployParcelAction.java b/scripting/java/org/openoffice/netbeans/modules/office/actions/DeployParcelAction.java index 6f9f48b02489..e662faea400f 100644 --- a/scripting/java/org/openoffice/netbeans/modules/office/actions/DeployParcelAction.java +++ b/scripting/java/org/openoffice/netbeans/modules/office/actions/DeployParcelAction.java @@ -215,14 +215,11 @@ public class DeployParcelAction extends CookieAction implements chooser.setFileSelectionMode(JFileChooser.FILES_ONLY); chooser.setFileFilter(new FileFilter() { public boolean accept(File file) { - if (file.isDirectory() || + return file.isDirectory() || file.getName().endsWith(".sxw") || file.getName().endsWith(".sxc") || file.getName().endsWith(".sxd") || - file.getName().endsWith(".sxi")) - return true; - - return false; + file.getName().endsWith(".sxi"); } public String getDescription() { |