Reopening SWT bug 141282

I spent several hours to locate a SWT problem with DND and special characters in path on OSX. The hard part was that strings were are correctly displayed by SWT and work with the file API. But if you try to compare or check equality of this string with another one, it always fails because a special char uses 2 chars instead of one. This is only an encoding problem, but not easy to find.

See Bug 141282 on Eclipse
and Bug 97 on ShareMedia bugtracker




  • Ok, I'll post a quick tutorial for running snippets tomorrow.
  • boris
    I see, that this blog is owned by sophisticated in SWT man!
    May I ask, how to include “in system manner” in Eclipse 3.3 Java projects,
    in build path (or may by import packages): org.eclipse.swt and org.eclipse.swt.widgets
    to compile and run Java aplication with only one class:

    import org.eclipse.swt.*;
    import org.eclipse.swt.widgets.*;
    public class LessonSWT {
    public static void main(String[] args) {
    Display display=new Display();
    Shell shell=new LessonSWT().open(display);
    while(!shell.isDisposed()){
    if(!display.readAndDispatch())
    display.sleep();
    }
    display.dispose();
    }
    public Shell open(final Display display){
    Shell shell=new Shell(display);
    shell.setSize(100,100);
    shell.open();
    return shell;

    }
    }

    Thanks in advance!
    Boris Starchev Theacher
blog comments powered by Disqus