|
|
@ -158,8 +158,8 @@ public class WebJsPane extends BasicPane { |
|
|
|
private ActionListener chooseFileListener = new ActionListener() { |
|
|
|
private ActionListener chooseFileListener = new ActionListener() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
FILEChooserPane fileChooser = FILEChooserPane.getInstance(false, false, true, |
|
|
|
FILEChooserPane fileChooser = FILEChooserPane.getInstanceWithDesignatePath(ProjectConstants.RESOURCES_NAME , |
|
|
|
new ChooseFileFilter("js", "javascript" + com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_File"))); |
|
|
|
new ChooseFileFilter("js", "javascript" + com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_File")), ProjectConstants.RESOURCES_NAME); |
|
|
|
|
|
|
|
|
|
|
|
if (fileChooser.showOpenDialog(DesignerContext.getDesignerFrame()) == FILEChooserPane.OK_OPTION) { |
|
|
|
if (fileChooser.showOpenDialog(DesignerContext.getDesignerFrame()) == FILEChooserPane.OK_OPTION) { |
|
|
|
final FILE file = fileChooser.getSelectedFILE(); |
|
|
|
final FILE file = fileChooser.getSelectedFILE(); |
|
|
|