jruaux      2003/02/06 08:44:42

  Modified:    integration/eclipse/src/java/org/apache/cactus/eclipse/ui
                        CactusPlugin.java
  Log:
  Corrected the UI problem
  
  Revision  Changes    Path
  1.3       +13 -7     
jakarta-cactus/integration/eclipse/src/java/org/apache/cactus/eclipse/ui/CactusPlugin.java
  
  Index: CactusPlugin.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-cactus/integration/eclipse/src/java/org/apache/cactus/eclipse/ui/CactusPlugin.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- CactusPlugin.java 4 Feb 2003 16:54:26 -0000       1.2
  +++ CactusPlugin.java 6 Feb 2003 16:44:41 -0000       1.3
  @@ -242,8 +242,8 @@
        * @param theStatus status of the error
        */
       public static void displayErrorMessage(
  -        String theTitle,
  -        String theMessage,
  +        final String theTitle,
  +        final String theMessage,
           IStatus theStatus)
       {
           if (theStatus == null)
  @@ -260,10 +260,16 @@
           {
               log(theStatus);
           }
  -        MessageDialog.openError(
  -            getActiveWorkbenchShell(),
  -            theTitle,
  -            theMessage);
  +        Display.getDefault().asyncExec(new Runnable()
  +        {
  +            public void run()
  +            {
  +                MessageDialog.openError(
  +                    getActiveWorkbenchShell(),
  +                    theTitle,
  +                    theMessage);
  +            }
  +        });
       }
       /**
        * Helper method for other classes. Returns a CoreException with a message
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to