diff --git a/apisupport/apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/platform/NbPlatformCustomizerHarness.java b/apisupport/apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/platform/NbPlatformCustomizerHarness.java index 32eef8aa57f9..3160a0b430e5 100644 --- a/apisupport/apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/platform/NbPlatformCustomizerHarness.java +++ b/apisupport/apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/platform/NbPlatformCustomizerHarness.java @@ -194,6 +194,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) { private void browseButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_browseButtonActionPerformed JFileChooser jfc = new JFileChooser() { // Trick stolen from ProjectChooserAccessory.ProjectFileChooser: + @Override public void approveSelection() { File dir = FileUtil.normalizeFile(getSelectedFile()); if (NbPlatform.isHarness(dir)) { @@ -203,7 +204,6 @@ public void approveSelection() { } } }; - FileUtil.preventFileChooserSymlinkTraversal(jfc, null); jfc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); jfc.setSelectedFile(plaf.getHarnessLocation()); if (jfc.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) { diff --git a/apisupport/apisupport.wizards/src/org/netbeans/modules/apisupport/project/ui/wizard/project/templatePanelVisual.javx b/apisupport/apisupport.wizards/src/org/netbeans/modules/apisupport/project/ui/wizard/project/templatePanelVisual.javx index e32f5508dc4b..609b2aab75f5 100644 --- a/apisupport/apisupport.wizards/src/org/netbeans/modules/apisupport/project/ui/wizard/project/templatePanelVisual.javx +++ b/apisupport/apisupport.wizards/src/org/netbeans/modules/apisupport/project/ui/wizard/project/templatePanelVisual.javx @@ -132,7 +132,6 @@ public class ${TEMPLATENAME}PanelVisual extends JPanel implements DocumentListen String command = evt.getActionCommand(); if ("BROWSE".equals(command)) { JFileChooser chooser = new JFileChooser(); - FileUtil.preventFileChooserSymlinkTraversal(chooser, null); chooser.setDialogTitle("Select Project Location"); chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); String path = this.projectLocationTextField.getText(); diff --git a/contrib/groovy.grailsproject/src/org/netbeans/modules/groovy/grailsproject/ui/wizards/impl/PanelProjectLocationVisual.java b/contrib/groovy.grailsproject/src/org/netbeans/modules/groovy/grailsproject/ui/wizards/impl/PanelProjectLocationVisual.java index 0b14c69aa69b..d66e3cefa96f 100644 --- a/contrib/groovy.grailsproject/src/org/netbeans/modules/groovy/grailsproject/ui/wizards/impl/PanelProjectLocationVisual.java +++ b/contrib/groovy.grailsproject/src/org/netbeans/modules/groovy/grailsproject/ui/wizards/impl/PanelProjectLocationVisual.java @@ -216,7 +216,6 @@ public void actionPerformed(java.awt.event.ActionEvent evt) { private void browseLocationJButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_browseLocationJButtonActionPerformed JFileChooser chooser = new JFileChooser (); - FileUtil.preventFileChooserSymlinkTraversal(chooser, null); chooser.setDialogTitle(NbBundle.getMessage(PanelProjectLocationVisual.class,"GetProjectLocationPanel.FileChooserTitle")); chooser.setFileSelectionMode (JFileChooser.DIRECTORIES_ONLY); String path = projectLocationTextField.getText().trim(); diff --git a/contrib/j2ee.jboss4/src/org/netbeans/modules/j2ee/jboss4/customizer/CustomizerSupport.java b/contrib/j2ee.jboss4/src/org/netbeans/modules/j2ee/jboss4/customizer/CustomizerSupport.java index c64e12fa90e0..1ffeb25ce7ee 100644 --- a/contrib/j2ee.jboss4/src/org/netbeans/modules/j2ee/jboss4/customizer/CustomizerSupport.java +++ b/contrib/j2ee.jboss4/src/org/netbeans/modules/j2ee/jboss4/customizer/CustomizerSupport.java @@ -604,7 +604,6 @@ public void actionPerformed(ActionEvent e) { private void addPathElement () { JFileChooser chooser = new JFileChooser(); - FileUtil.preventFileChooserSymlinkTraversal(chooser, null); chooser.setMultiSelectionEnabled (true); String title = null; String message = null; @@ -630,9 +629,7 @@ private void addPathElement () { //#61789 on old macosx (jdk 1.4.1) these two method need to be called in this order. chooser.setAcceptAllFileFilterUsed( false ); chooser.setFileFilter (new SimpleFileFilter(message,new String[] {"ZIP","JAR"})); //NOI18N - if (this.currentDir != null && currentDir.exists()) { - chooser.setCurrentDirectory(this.currentDir); - } + chooser.setCurrentDirectory(this.currentDir != null && currentDir.exists() ? this.currentDir : null); if (chooser.showOpenDialog(this)==JFileChooser.APPROVE_OPTION) { File[] fs = chooser.getSelectedFiles(); PathModel model = (PathModel) this.resources.getModel(); diff --git a/contrib/websvc.wsitconf/src/org/netbeans/modules/websvc/wsitconf/ui/service/subpanels/KeystorePanel.form b/contrib/websvc.wsitconf/src/org/netbeans/modules/websvc/wsitconf/ui/service/subpanels/KeystorePanel.form index e81d6386c3a6..2f09890846a8 100644 --- a/contrib/websvc.wsitconf/src/org/netbeans/modules/websvc/wsitconf/ui/service/subpanels/KeystorePanel.form +++ b/contrib/websvc.wsitconf/src/org/netbeans/modules/websvc/wsitconf/ui/service/subpanels/KeystorePanel.form @@ -1,4 +1,4 @@ - +