+ String filePath = theFile.getPath();\r
+ if (!filePath.startsWith(wsDir)) {\r
+ JOptionPane.showMessageDialog(frame, "You can only select files in current WORKSPACE.");\r
+ return;\r
+ }\r
+ jTextField3.setText(filePath.substring(wsDir.length() + 1).replace('\\', '/'));\r