Community
Participate
Working Groups
Build I20030625: Do not get completion proposals at indicated cursor position: public void createPartControl(Composite parent) { super.createPartControl(parent); getEditorSite().getSelectionProvider ().addSelectionChangedListener(new ISelectionChangedListener() { public void selectionChanged(SelectionChangedEvent event) { ISelection selection= event.getSelection(); if (selection inst>I< ) } }); }
Problem still occurs in build 20040120 simple test case public class X { public void foo() { bar(new Object() { public void toto(Object a) { if (a instanceof Object) {} } }); } private void bar(Object o) { } } The problem does not occur with the following test case public class X { public void foo() { new Object() { public void toto(Object a) { if (a instanceof Object) {} } }; } private void bar(Object o) { } }
The problem was a bad usage indexOfAssistIdentifier() inside CompletionParser. Fixed and test added CompletionParserTest2#test0142()
Verified in 200405180816