mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 02:59:33 +07:00
Inline refactor (IDEA-CR-34554)
This commit is contained in:
@@ -809,7 +809,6 @@ class Foo {{
|
||||
Expression expr = new EmptyExpression() {
|
||||
@Override
|
||||
LookupElement[] calculateLookupItems(ExpressionContext context) {
|
||||
LookupElement[] res = new LookupElement[1]
|
||||
def finishTemplateHandler = new InsertHandler<LookupElement>() {
|
||||
@Override
|
||||
void handleInsert(InsertionContext insertCtx, LookupElement item) {
|
||||
@@ -820,7 +819,7 @@ class Foo {{
|
||||
stateRef.considerNextTabOnLookupItemSelected(item)
|
||||
}
|
||||
}
|
||||
return res[0] = LookupElementBuilder.create("com").withInsertHandler(finishTemplateHandler)
|
||||
return LookupElementBuilder.create("com").withInsertHandler(finishTemplateHandler) as LookupElement[]
|
||||
}
|
||||
}
|
||||
template.addVariable('PKG', expr, true)
|
||||
|
||||
Reference in New Issue
Block a user