Commits

hani  committed bac26c4

Hack to prevent deadlock

  • Participants
  • Parent commits 7871ef9

Comments (0)

Files changed (1)

File src/designer/com/opensymphony/workflow/designer/swing/JavaTextPane.java

 
 		public void insertString(int offs, String str, AttributeSet a) throws BadLocationException
 		{
-			synchronized(doclock)
-			{
-				super.insertString(offs, str, a);
-				color(offs, str.length());
-				documentReader.update(offs, str.length());
-			}
+      super.insertString(offs, str, a);
+      color(offs, str.length());
+      documentReader.update(offs, str.length());
 		}
 
 		public void remove(int offs, int len) throws BadLocationException
 		{
-			synchronized(doclock)
-			{
-				super.remove(offs, len);
-				color(offs, -len);
-				documentReader.update(offs, -len);
-			}
+      super.remove(offs, len);
+      color(offs, -len);
+      documentReader.update(offs, -len);
 		}
 	}