mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
platform: rename usages function -> lambda (to use the old icon)
GitOrigin-RevId: 1e0d0ff3139521ec2168e611956a7e7467d4487f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
98891cf103
commit
a1055d6567
@@ -99,7 +99,7 @@ public class FunctionalExpressionCompletionProvider extends CompletionProvider<C
|
||||
LookupElementBuilder.create(functionalInterfaceMethod, paramsString + " -> ")
|
||||
.withPresentableText(paramsString + " -> {}")
|
||||
.withTypeText(functionalInterfaceType.getPresentableText())
|
||||
.withIcon(AllIcons.Nodes.Function);
|
||||
.withIcon(AllIcons.Nodes.Lambda);
|
||||
builder.putUserData(LAMBDA_ITEM, true);
|
||||
result.consume(builder.withAutoCompletionPolicy(AutoCompletionPolicy.NEVER_AUTOCOMPLETE));
|
||||
}
|
||||
|
||||
@@ -264,6 +264,6 @@ public class PsiLambdaExpressionImpl extends JavaStubPsiElement<FunctionalExpres
|
||||
@Nullable
|
||||
@Override
|
||||
public Icon getIcon(int flags) {
|
||||
return AllIcons.Nodes.Function;
|
||||
return AllIcons.Nodes.Lambda;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ public class JavaLambdaNodeProvider
|
||||
@NotNull
|
||||
@Override
|
||||
public ActionPresentation getPresentation() {
|
||||
return new ActionPresentationData(getCheckBoxText(), null, AllIcons.Nodes.Function);
|
||||
return new ActionPresentationData(getCheckBoxText(), null, AllIcons.Nodes.Lambda);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
@@ -87,6 +87,6 @@ public class JavaLambdaTreeElement extends JavaClassTreeElementBase<PsiLambdaExp
|
||||
|
||||
@Override
|
||||
public Icon getIcon(boolean open) {
|
||||
return AllIcons.Nodes.Function;
|
||||
return AllIcons.Nodes.Lambda;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -440,7 +440,7 @@ class VariableView(override val variableName: String, private val variable: Vari
|
||||
fun getIcon(value: Value): Icon {
|
||||
val type = value.type
|
||||
return when (type) {
|
||||
ValueType.FUNCTION -> AllIcons.Nodes.Function
|
||||
ValueType.FUNCTION -> AllIcons.Nodes.Lambda
|
||||
ValueType.ARRAY -> AllIcons.Debugger.Db_array
|
||||
else -> if (type.isObjectType) AllIcons.Debugger.Value else AllIcons.Debugger.Db_primitive
|
||||
}
|
||||
|
||||
@@ -130,7 +130,7 @@ public class ShStructureViewFactory implements PsiStructureViewFactory {
|
||||
public Icon getIcon(boolean open) {
|
||||
if (!myElement.isValid()) return null;
|
||||
if (myElement instanceof ShFunctionDefinition) {
|
||||
return AllIcons.Nodes.Function;
|
||||
return AllIcons.Nodes.Lambda;
|
||||
}
|
||||
return myElement.getIcon(0);
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
package com.jetbrains.python.psi.impl;
|
||||
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
import com.intellij.icons.AllIcons;
|
||||
import com.intellij.lang.ASTNode;
|
||||
import com.intellij.navigation.ItemPresentation;
|
||||
import com.intellij.openapi.util.Key;
|
||||
@@ -128,7 +129,7 @@ public class PyFunctionImpl extends PyBaseElementImpl<PyFunctionStub> implements
|
||||
if (getContainingClass() != null) {
|
||||
return PlatformIcons.METHOD_ICON;
|
||||
}
|
||||
return PythonIcons.Python.Function;
|
||||
return AllIcons.Nodes.Function;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
package com.jetbrains.python.testing.pyTestFixtures
|
||||
|
||||
import com.intellij.icons.AllIcons
|
||||
import com.intellij.openapi.module.Module
|
||||
import com.jetbrains.python.psi.PyFunction
|
||||
import com.jetbrains.python.psi.types.TypeEvalContext
|
||||
import com.jetbrains.python.testing.PyTestFunctionParameter
|
||||
import com.jetbrains.python.testing.PyTestFunctionParameterProvider
|
||||
import icons.PythonIcons
|
||||
|
||||
/**
|
||||
* Test fixtures for pytest tests and other fixtures
|
||||
*/
|
||||
internal object PyTestFixtureAsParameterProvider : PyTestFunctionParameterProvider {
|
||||
override fun getArguments(function: PyFunction, evalContext: TypeEvalContext, module: Module) =
|
||||
getFixtures(module, function, evalContext).map { PyTestFunctionParameter(it.name, PythonIcons.Python.Function) }
|
||||
getFixtures(module, function, evalContext).map { PyTestFunctionParameter(it.name, AllIcons.Nodes.Function) }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user