diff dwtx/jface/text/contentassist/CompletionProposalPopup.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/CompletionProposalPopup.d	Sun Aug 24 01:46:20 2008 +0200
+++ b/dwtx/jface/text/contentassist/CompletionProposalPopup.d	Sun Aug 24 01:52:31 2008 +0200
@@ -385,7 +385,7 @@
      * 
      * @since 3.1.1
      */
-    private final Runnable fFilterRunnable= new Runnable() {
+    private final Runnable fFilterRunnable= new class()  Runnable {
         public void run() {
             if (!fIsFilterPending)
                 return;
@@ -510,7 +510,7 @@
             // when the user types fast.
             fContentAssistSubjectControlAdapter.addKeyListener(fKeyListener);
 
-            BusyIndicator.showWhile(control.getDisplay(), new Runnable() {
+            BusyIndicator.showWhile(control.getDisplay(), new class()  Runnable {
                 public void run() {
 
                     fInvocationOffset= fContentAssistSubjectControlAdapter.getSelectedRange().x;
@@ -609,7 +609,7 @@
         if cast(USE_VIRTUAL) {
             fProposalTable= new Table(fProposalShell, DWT.H_SCROLL | DWT.V_SCROLL | DWT.VIRTUAL);
 
-            Listener listener= new Listener() {
+            Listener listener= new class()  Listener {
                 public void handleEvent(Event event) {
                     handleSetData(event);
                 }
@@ -656,7 +656,7 @@
         }
         fContentAssistant.addToLayout(this, fProposalShell, ContentAssistant.LayoutManager.LAYOUT_PROPOSAL_SELECTOR, fContentAssistant.getSelectionOffset());
 
-        fProposalShell.addControlListener(new ControlListener() {
+        fProposalShell.addControlListener(new class()  ControlListener {
 
             public void controlMoved(ControlEvent e) {}
 
@@ -678,7 +678,7 @@
         c= getForegroundColor(control);
         fProposalTable.setForeground(c);
 
-        fProposalTable.addSelectionListener(new SelectionListener() {
+        fProposalTable.addSelectionListener(new class()  SelectionListener {
 
             public void widgetSelected(SelectionEvent e) {}
 
@@ -689,7 +689,7 @@
 
         fPopupCloser.install(fContentAssistant, fProposalTable, fAdditionalInfoController);
 
-        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!
             }
@@ -728,7 +728,7 @@
     private void addCommandSupport(final Control control) {
         final KeySequence commandSequence= fContentAssistant.getRepeatedInvocationKeySequence();
         if (commandSequence !is null && !commandSequence.isEmpty() && fContentAssistant.isRepeatedInvocationMode()) {
-            control.addFocusListener(new FocusListener() {
+            control.addFocusListener(new class()  FocusListener {
                 private CommandKeyListener fCommandKeyListener;
                 public void focusGained(FocusEvent e) {
                     if (Helper.okToUse(control)) {
@@ -746,12 +746,12 @@
                 }
             });
         }
-        control.addFocusListener(new FocusListener() {
+        control.addFocusListener(new class()  FocusListener {
             private TraverseListener fTraverseListener;
             public void focusGained(FocusEvent e) {
                 if (Helper.okToUse(control)) {
                     if (fTraverseListener is null) {
-                        fTraverseListener= new TraverseListener() {
+                        fTraverseListener= new class()  TraverseListener {
                             public void keyTraversed(TraverseEvent event) {
                                 if (event.detail is DWT.TRAVERSE_TAB_NEXT) {
                                     IInformationControl iControl= fAdditionalInfoController.getCurrentInformationControl2();
@@ -828,7 +828,7 @@
 
             if (fContentAssistant.isRepeatedInvocationMode()) {
                 fMessageText.setCursor(fProposalShell.getDisplay().getSystemCursor(DWT.CURSOR_HAND));
-                fMessageText.addMouseListener(new MouseAdapter() {
+                fMessageText.addMouseListener(new class()  MouseAdapter {
                     public void mouseUp(MouseEvent e) {
                         fLastCompletionOffset= fFilterOffset;
                         fProposalTable.setFocus();
@@ -922,7 +922,7 @@
 
         fInserting= true;
         IRewriteTarget target= null;
-        IEditingSupport helper= new IEditingSupport() {
+        IEditingSupport helper= new class()  IEditingSupport {
 
             public bool isOriginator(DocumentEvent event, IRegion focus) {
                 return focus.getOffset() <= offset && focus.getOffset() + focus.getLength() >= offset;
@@ -1195,7 +1195,7 @@
             ensureDocumentListenerInstalled();
             
             if (fFocusHelper is null) {
-                fFocusHelper= new IEditingSupport() {
+                fFocusHelper= new class()  IEditingSupport {
 
                     public bool isOriginator(DocumentEvent event, IRegion focus) {
                         return false; // this helper just covers the focus change to the proposal shell, no remote editions
@@ -1240,7 +1240,7 @@
      */
     private void ensureDocumentListenerInstalled() {
         if (fDocumentListener is null) {
-            fDocumentListener=  new IDocumentListener()  {
+            fDocumentListener=  new class()   IDocumentListener {
                 public void documentAboutToBeChanged(DocumentEvent event) {
                     if (!fInserting)
                         fDocumentEvents.add(event);
@@ -1563,7 +1563,7 @@
             if (!Helper.okToUse(fProposalShell) && !control.isDisposed())
                 fContentAssistSubjectControlAdapter.addKeyListener(fKeyListener);
 
-            BusyIndicator.showWhile(control.getDisplay(), new Runnable() {
+            BusyIndicator.showWhile(control.getDisplay(), new class()  Runnable {
                 public void run() {
 
                     fInvocationOffset= fContentAssistSubjectControlAdapter.getSelectedRange().x;