diff dwtx/jface/text/contentassist/AdditionalInfoController.d @ 135:65801ad2b265

Regex fix for anon classes
author Frank Benoit <benoit@tionex.de>
date Sun, 24 Aug 2008 01:52:31 +0200
parents 51e6e63f930e
children 6dcb0baaa031
line wrap: on
line diff
--- a/dwtx/jface/text/contentassist/AdditionalInfoController.d	Sun Aug 24 01:46:20 2008 +0200
+++ b/dwtx/jface/text/contentassist/AdditionalInfoController.d	Sun Aug 24 01:52:31 2008 +0200
@@ -112,7 +112,7 @@
          * IDLE: the initial task, and active whenever the info has been shown. It cannot be run,
          * but specifies an infinite delay.
          */
-        private final Task IDLE= new Task() {
+        private final Task IDLE= new class()  Task {
             public void run() {
                 Assert.isTrue(false);
             }
@@ -133,7 +133,7 @@
         /**
          * FIRST_WAIT: Schedules a platform {@link Job} to fetch additional info from an {@link ICompletionProposalExtension5}.
          */
-        private final Task FIRST_WAIT= new Task() {
+        private final Task FIRST_WAIT= new class()  Task {
             public void run() {
                 final ICompletionProposalExtension5 proposal= getCurrentProposalEx();
                 Job job= new Job(JFaceTextMessages.getString("AdditionalInfoController.job_name")) { //$NON-NLS-1$
@@ -171,7 +171,7 @@
          * SECOND_WAIT: Allows display of additional info obtained from an
          * {@link ICompletionProposalExtension5}.
          */
-        private final Task SECOND_WAIT= new Task() {
+        private final Task SECOND_WAIT= new class()  Task {
             public void run() {
                 // show the info
                 allowShowing();
@@ -192,11 +192,11 @@
         /**
          * LEGACY_WAIT: Posts a runnable into the display thread to fetch additional info from non-{@link ICompletionProposalExtension5}s.
          */
-        private final Task LEGACY_WAIT= new Task() {
+        private final Task LEGACY_WAIT= new class()  Task {
             public void run() {
                 final ICompletionProposal proposal= getCurrentProposal();
                 if (!fDisplay.isDisposed()) {
-                    fDisplay.asyncExec(new Runnable() {
+                    fDisplay.asyncExec(new class()  Runnable {
                         public void run() {
                             synchronized (Timer.this) {
                                 if (proposal is getCurrentProposal()) {
@@ -224,7 +224,7 @@
         /**
          * EXIT: The task that triggers termination of the timer thread.
          */
-        private final Task EXIT= new Task() {
+        private final Task EXIT= new class()  Task {
             public long delay() {
                 return 1;
             }
@@ -270,7 +270,7 @@
             long current= System.currentTimeMillis();
             schedule(IDLE, current);
 
-            fThread= new Thread(new Runnable() {
+            fThread= new class(new Runnable()  Thread {
                 public void run() {
                     try {
                         loop();
@@ -372,7 +372,7 @@
         private void triggerShowing() {
             final Object info= fCurrentInfo;
             if (!fDisplay.isDisposed()) {
-                fDisplay.asyncExec(new Runnable() {
+                fDisplay.asyncExec(new class()  Runnable {
                     public void run() {
                         synchronized (Timer.this) {
                             if (info is fCurrentInfo) {
@@ -491,7 +491,7 @@
         fProposalTable.addSelectionListener(fSelectionListener);
         getInternalAccessor().getInformationControlReplacer().install(fProposalTable);
         
-        fTimer= new Timer(fProposalTable.getDisplay(), fDelay) {
+        fTimer= new class(fProposalTable.getDisplay(), fDelay)  Timer {
             protected void showInformation(ICompletionProposal proposal, Object info) {
                 InformationControlReplacer replacer= getInternalAccessor().getInformationControlReplacer();
                 if (replacer !is null)