From: Marcelo V. <va...@us...> - 2006-01-25 04:36:35
|
Update of /cvsroot/jedit/plugins/ProjectViewer/projectviewer/gui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20063/projectviewer/gui Modified Files: ImportDialog.java Log Message: - fix AWT deadlock problem. Index: ImportDialog.java =================================================================== RCS file: /cvsroot/jedit/plugins/ProjectViewer/projectviewer/gui/ImportDialog.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- ImportDialog.java 12 Jan 2006 05:14:54 -0000 1.8 +++ ImportDialog.java 25 Jan 2006 04:36:20 -0000 1.9 @@ -360,6 +360,18 @@ //{{{ +show() : void public void show() { + PVActions.swingInvoke( + new Runnable() { + public void run() { + internalShow(); + } + } + ); + return; + } //}}} + + //{{{ -internalShow() : void + private void internalShow() { if (showChooser && chooser == null) { String initPath; if (selected != null && selected.isDirectory() && @@ -451,8 +463,10 @@ } //}}} + //{{{ -class MouseHandler private class MouseHandler extends MouseAdapter { + //{{{ +mouseClicked(MouseEvent) : void public void mouseClicked(MouseEvent me) { System.err.println("mouse clicked"); if (me.getClickCount() == 2 @@ -460,9 +474,9 @@ { System.err.println("is double click"); } - } + } //}}} - } + } //}}} } |