marcelomendes / patterncoder

Automatically exported from code.google.com/p/patterncoder
0 stars 0 forks source link

extension will not start if pattern file name contains special characters, e.g. accented characters #8

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Reported by user in Brazil, extension will not start if pattern filename
contains characters commonly used in Portuguese.

Original issue reported on code.google.com by jhpater...@googlemail.com on 14 Jul 2008 at 9:36

GoogleCodeExporter commented 8 years ago
Kafai worked on this, making changes to the following files:
PatternFileValidator
XMLSourceHandler
ErrorHandler (improving error report dialog to allow a Throwable to be passed 
as a
parameter to printErrorMessage, with an additional pane in dialog to show stacke
trace. Errors in PatternCoder.java modified to use this option)

Kafai's comment on changes:
While I was testing the new modified version of PatternCoder, I realised the
modification I made earlier to fix the Mac problem was on source I downloaded 
form site.

Anyway, cut the long story short, I have made the change again, but better this 
time.
 I have tested it on my Windows XP machine, Linux and my Mac.  Here is the change:

private File getPatternSchemaFile(){
        File programClassDirectory =
BlueJHandler.getInstance().getBlueJDir();
        File extensionDirectory = new File(programClassDirectory, EXT_PATH);
        File schemaFile = new File(extensionDirectory, SCHEMA_FILENAME);
        return schemaFile;
    }

It uses the BlueJHandler.getInstance().getBlueJDir() to find out where the 
BlueJ is
install, and work from there.

Original comment by jhpater...@googlemail.com on 14 Jul 2008 at 10:45