diff dwtx/jface/internal/text/link/contentassist/CompletionProposalPopup2.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 b6bad70d540a
line wrap: on
line diff
--- a/dwtx/jface/internal/text/link/contentassist/CompletionProposalPopup2.d	Sun Aug 24 01:46:20 2008 +0200
+++ b/dwtx/jface/internal/text/link/contentassist/CompletionProposalPopup2.d	Sun Aug 24 01:52:31 2008 +0200
@@ -125,7 +125,7 @@
      */
     private bool fIsColoredLabelsSupportEnabled= false;
     
-    private final IEditingSupport fFocusEditingSupport= new IEditingSupport() {
+    private final IEditingSupport fFocusEditingSupport= new class()  IEditingSupport {
 
         public bool isOriginator(DocumentEvent event, IRegion focus) {
             return false;
@@ -137,7 +137,7 @@
         }
 
     };
-    private final IEditingSupport fModificationEditingSupport= new IEditingSupport() {
+    private final IEditingSupport fModificationEditingSupport= new class()  IEditingSupport {
 
         public bool isOriginator(DocumentEvent event, IRegion focus) {
             if (fViewer !is null) {
@@ -178,7 +178,7 @@
     public String showProposals(final bool autoActivated) {
 
         if (fKeyListener is null) {
-            fKeyListener= new KeyListener() {
+            fKeyListener= new class()  KeyListener {
                 public void keyPressed(KeyEvent e) {
                     if (!Helper2.okToUse(fProposalShell))
                         return;
@@ -209,7 +209,7 @@
         if (styledText !is null && !styledText.isDisposed())
             styledText.addKeyListener(fKeyListener);
 
-//      BusyIndicator.showWhile(styledText.getDisplay(), new Runnable() {
+//      BusyIndicator.showWhile(styledText.getDisplay(), new class()  Runnable {
 //          public void run() {
 
                 fInvocationOffset= fViewer.getSelectedRange().x;
@@ -305,7 +305,7 @@
             fProposalShell.setLocation(newLocation);
 
         if (fAdditionalInfoController !is null) {
-            fProposalShell.addControlListener(new ControlListener() {
+            fProposalShell.addControlListener(new class()  ControlListener {
 
                 public void controlMoved(ControlEvent e) {}
 
@@ -324,7 +324,7 @@
         c= control.getDisplay().getSystemColor(DWT.COLOR_INFO_FOREGROUND);
         fProposalTable.setForeground(c);
 
-        fProposalTable.addSelectionListener(new SelectionListener() {
+        fProposalTable.addSelectionListener(new class()  SelectionListener {
 
             public void widgetSelected(SelectionEvent e) {}
 
@@ -335,7 +335,7 @@
 
         fPopupCloser.install(fContentAssistant, fProposalTable);
 
-        fProposalShell.addDisposeListener(new DisposeListener() {
+        fProposalShell.addDisposeListener(new class()  DisposeListener {
             public void widgetDisposed(DisposeEvent e) {
                 unregister(); // but don't dispose the shell, since we're being called from its disposal event!
             }
@@ -664,7 +664,7 @@
         if (fContentAssistant.addContentAssistListener(this, ContentAssistant2.PROPOSAL_SELECTOR)) {
 
             if (fDocumentListener is null)
-                fDocumentListener=  new IDocumentListener()  {
+                fDocumentListener=  new class()   IDocumentListener {
                     public void documentAboutToBeChanged(DocumentEvent event) {
                         if (!fInserting)
                             fDocumentEvents.add(event);
@@ -867,7 +867,7 @@
     private void filterProposals() {
         ++ fInvocationCounter;
         Control control= fViewer.getTextWidget();
-        control.getDisplay().asyncExec(new Runnable() {
+        control.getDisplay().asyncExec(new class()  Runnable {
             long fCounter= fInvocationCounter;
             public void run() {