public AbstractMethodCorrectionProposal(String label, ICompilationUnit targetCU, ASTNode invocationNode, ITypeBinding binding, int relevance, Image image) { super(label, targetCU, null, relevance, image); Assert.isTrue(binding != null && Bindings.isDeclarationBinding(binding)); fNode= invocationNode; fSenderBinding= binding; }
public AbstractMethodCorrectionProposal(String label, ICompilationUnit targetCU, ASTNode invocationNode, ITypeBinding binding, int relevance, Image image) { super(label, targetCU, null, relevance, image); Assert.isTrue(binding != null && Bindings.isDeclarationBinding(binding)); fNode= invocationNode; fSenderBinding= binding; }
public ChangeMethodSignatureProposal(String label, ICompilationUnit targetCU, ASTNode invocationNode, IMethodBinding binding, ChangeDescription[] paramChanges, ChangeDescription[] exceptionChanges, int relevance) { super(label, CodeActionKind.QuickFix, targetCU, null, relevance); Assert.isTrue(binding != null && Bindings.isDeclarationBinding(binding)); fInvocationNode= invocationNode; fSenderBinding= binding; fParameterChanges= paramChanges; fExceptionChanges= exceptionChanges; }
public ChangeMethodSignatureProposal(String label, ICompilationUnit targetCU, ASTNode invocationNode, IMethodBinding binding, ChangeDescription[] paramChanges, ChangeDescription[] exceptionChanges, int relevance, Image image) { super(label, targetCU, null, relevance, image); Assert.isTrue(binding != null && Bindings.isDeclarationBinding(binding)); fInvocationNode= invocationNode; fSenderBinding= binding; fParameterChanges= paramChanges; fExceptionChanges= exceptionChanges; }
public AbstractMethodCorrectionProposal(String label, ICompilationUnit targetCU, ASTNode invocationNode, ITypeBinding binding, int relevance) { super(label, CodeActionKind.QuickFix, targetCU, null, relevance); Assert.isTrue(binding != null && Bindings.isDeclarationBinding(binding)); fNode= invocationNode; fSenderBinding= binding; }
public ChangeMethodSignatureProposal(String label, ICompilationUnit targetCU, ASTNode invocationNode, IMethodBinding binding, ChangeDescription[] paramChanges, ChangeDescription[] exceptionChanges, int relevance, Image image) { super(label, targetCU, null, relevance, image); Assert.isTrue(binding != null && Bindings.isDeclarationBinding(binding)); fInvocationNode= invocationNode; fSenderBinding= binding; fParameterChanges= paramChanges; fExceptionChanges= exceptionChanges; }
public AbstractMethodCompletionProposal(String label, ICompilationUnit targetCU, ASTNode invocationNode, ITypeBinding binding, int relevance, Image image) { super(label, targetCU, null, relevance, image); Assert.isTrue(binding != null && Bindings.isDeclarationBinding(binding)); fNode= invocationNode; fSenderBinding= binding; }
public ChangeMethodSignatureProposal(String label, ICompilationUnit targetCU, ASTNode invocationNode, IMethodBinding binding, ChangeDescription[] paramChanges, ChangeDescription[] exceptionChanges, int relevance, Image image) { super(label, targetCU, null, relevance, image); Assert.isTrue(binding != null && Bindings.isDeclarationBinding(binding)); fInvocationNode= invocationNode; fSenderBinding= binding; fParameterChanges= paramChanges; fExceptionChanges= exceptionChanges; }
public NewVariableCorrectionProposal(String label, ICompilationUnit cu, int variableKind, SimpleName node, ITypeBinding senderBinding, int relevance) { super(label, CodeActionKind.QuickFix, cu, null, relevance); if (senderBinding == null) { Assert.isTrue(variableKind == PARAM || variableKind == LOCAL); } else { Assert.isTrue(Bindings.isDeclarationBinding(senderBinding)); } fVariableKind= variableKind; fOriginalNode= node; fSenderBinding= senderBinding; }
public NewVariableCorrectionProposal(String label, ICompilationUnit cu, int variableKind, SimpleName node, ITypeBinding senderBinding, int relevance, Image image) { super(label, cu, null, relevance, image); if (senderBinding == null) { Assert.isTrue(variableKind == PARAM || variableKind == LOCAL); } else { Assert.isTrue(Bindings.isDeclarationBinding(senderBinding)); } fVariableKind= variableKind; fOriginalNode= node; fSenderBinding= senderBinding; }
public NewVariableCorrectionProposal(String label, ICompilationUnit cu, int variableKind, SimpleName node, ITypeBinding senderBinding, int relevance, Image image) { super(label, cu, null, relevance, image); if (senderBinding == null) { Assert.isTrue(variableKind == PARAM || variableKind == LOCAL); } else { Assert.isTrue(Bindings.isDeclarationBinding(senderBinding)); } fVariableKind= variableKind; fOriginalNode= node; fSenderBinding= senderBinding; }
public NewVariableCompletionProposal(String label, ICompilationUnit cu, int variableKind, SimpleName node, ITypeBinding senderBinding, int relevance, Image image) { super(label, cu, null, relevance, image); if (senderBinding == null) { Assert.isTrue(variableKind == PARAM || variableKind == LOCAL); } else { Assert.isTrue(Bindings.isDeclarationBinding(senderBinding)); } fVariableKind= variableKind; fOriginalNode= node; fSenderBinding= senderBinding; }
public ImplementInterfaceProposal(ICompilationUnit targetCU, ITypeBinding binding, CompilationUnit astRoot, ITypeBinding newInterface, int relevance) { super("", targetCU, null, relevance, JavaPluginImages.get(JavaPluginImages.IMG_CORRECTION_CHANGE)); //$NON-NLS-1$ Assert.isTrue(binding != null && Bindings.isDeclarationBinding(binding)); fBinding= binding; fAstRoot= astRoot; fNewInterface= newInterface; String[] args= { binding.getName(), Bindings.getRawName(newInterface) }; setDisplayName(Messages.format(CorrectionMessages.ImplementInterfaceProposal_name, args)); }
public ImplementInterfaceProposal(ICompilationUnit targetCU, ITypeBinding binding, CompilationUnit astRoot, ITypeBinding newInterface, int relevance) { super("", CodeActionKind.QuickFix, targetCU, null, relevance); //$NON-NLS-1$ Assert.isTrue(binding != null && Bindings.isDeclarationBinding(binding)); fBinding= binding; fAstRoot= astRoot; fNewInterface= newInterface; String[] args= { BasicElementLabels.getJavaElementName(binding.getName()), BasicElementLabels.getJavaElementName(Bindings.getRawName(newInterface)) }; setDisplayName(Messages.format(CorrectionMessages.ImplementInterfaceProposal_name, args)); }
public ImplementInterfaceProposal(ICompilationUnit targetCU, ITypeBinding binding, CompilationUnit astRoot, ITypeBinding newInterface, int relevance) { super("", targetCU, null, relevance, JavaPluginImages.get(JavaPluginImages.IMG_CORRECTION_CHANGE)); //$NON-NLS-1$ Assert.isTrue(binding != null && Bindings.isDeclarationBinding(binding)); fBinding= binding; fAstRoot= astRoot; fNewInterface= newInterface; String[] args= { BasicElementLabels.getJavaElementName(binding.getName()), BasicElementLabels.getJavaElementName(Bindings.getRawName(newInterface)) }; setDisplayName(Messages.format(CorrectionMessages.ImplementInterfaceProposal_name, args)); }
public ImplementInterfaceProposal(ICompilationUnit targetCU, ITypeBinding binding, CompilationUnit astRoot, ITypeBinding newInterface, int relevance) { super("", targetCU, null, relevance, JavaPluginImages.get(JavaPluginImages.IMG_CORRECTION_CHANGE)); //$NON-NLS-1$ Assert.isTrue(binding != null && Bindings.isDeclarationBinding(binding)); fBinding= binding; fAstRoot= astRoot; fNewInterface= newInterface; String[] args= { BasicElementLabels.getJavaElementName(binding.getName()), BasicElementLabels.getJavaElementName(Bindings.getRawName(newInterface)) }; setDisplayName(Messages.format(CorrectionMessages.ImplementInterfaceProposal_name, args)); }
public AddTypeParameterProposal(ICompilationUnit targetCU, IBinding binding, CompilationUnit astRoot, String name, ITypeBinding[] bounds, int relevance) { super("", CodeActionKind.QuickFix, targetCU, null, relevance); //$NON-NLS-1$ Assert.isTrue(binding != null && Bindings.isDeclarationBinding(binding)); Assert.isTrue(binding instanceof IMethodBinding || binding instanceof ITypeBinding); fBinding= binding; fAstRoot= astRoot; fTypeParamName= name; fBounds= bounds; if (binding instanceof IMethodBinding) { String[] args = { BasicElementLabels.getJavaElementName(fTypeParamName), org.eclipse.jdt.ls.core.internal.corrections.ASTResolving.getMethodSignature((IMethodBinding) binding) }; setDisplayName(Messages.format(CorrectionMessages.AddTypeParameterProposal_method_label, args)); } else { String[] args = { BasicElementLabels.getJavaElementName(fTypeParamName), org.eclipse.jdt.ls.core.internal.corrections.ASTResolving.getTypeSignature((ITypeBinding) binding) }; setDisplayName(Messages.format(CorrectionMessages.AddTypeParameterProposal_type_label, args)); } }
public AddTypeParameterProposal(ICompilationUnit targetCU, IBinding binding, CompilationUnit astRoot, String name, ITypeBinding[] bounds, int relevance) { super("", targetCU, null, relevance, JavaPluginImages.get(JavaPluginImages.IMG_FIELD_PUBLIC)); //$NON-NLS-1$ Assert.isTrue(binding != null && Bindings.isDeclarationBinding(binding)); Assert.isTrue(binding instanceof IMethodBinding || binding instanceof ITypeBinding); fBinding= binding; fAstRoot= astRoot; fTypeParamName= name; fBounds= bounds; if (binding instanceof IMethodBinding) { boolean isSameCU= fAstRoot.findDeclaringNode(binding) != null; String[] args= { fTypeParamName, ASTResolving.getMethodSignature((IMethodBinding) binding, isSameCU) }; setDisplayName(Messages.format(CorrectionMessages.AddTypeParameterProposal_method_label, args)); } else { String[] args= { fTypeParamName, ASTResolving.getTypeSignature((ITypeBinding) binding) }; setDisplayName(Messages.format(CorrectionMessages.AddTypeParameterProposal_type_label, args)); } }
public AddTypeParameterProposal(ICompilationUnit targetCU, IBinding binding, CompilationUnit astRoot, String name, ITypeBinding[] bounds, int relevance) { super("", targetCU, null, relevance, JavaPluginImages.get(JavaPluginImages.IMG_FIELD_PUBLIC)); //$NON-NLS-1$ Assert.isTrue(binding != null && Bindings.isDeclarationBinding(binding)); Assert.isTrue(binding instanceof IMethodBinding || binding instanceof ITypeBinding); fBinding= binding; fAstRoot= astRoot; fTypeParamName= name; fBounds= bounds; if (binding instanceof IMethodBinding) { String[] args= { BasicElementLabels.getJavaElementName(fTypeParamName), ASTResolving.getMethodSignature((IMethodBinding) binding) }; setDisplayName(Messages.format(CorrectionMessages.AddTypeParameterProposal_method_label, args)); } else { String[] args= { BasicElementLabels.getJavaElementName(fTypeParamName), ASTResolving.getTypeSignature((ITypeBinding) binding) }; setDisplayName(Messages.format(CorrectionMessages.AddTypeParameterProposal_type_label, args)); } }
public AddTypeParameterProposal(ICompilationUnit targetCU, IBinding binding, CompilationUnit astRoot, String name, ITypeBinding[] bounds, int relevance) { super("", targetCU, null, relevance, JavaPluginImages.get(JavaPluginImages.IMG_FIELD_PUBLIC)); //$NON-NLS-1$ Assert.isTrue(binding != null && Bindings.isDeclarationBinding(binding)); Assert.isTrue(binding instanceof IMethodBinding || binding instanceof ITypeBinding); fBinding= binding; fAstRoot= astRoot; fTypeParamName= name; fBounds= bounds; if (binding instanceof IMethodBinding) { String[] args= { BasicElementLabels.getJavaElementName(fTypeParamName), org.eclipse.jdt.internal.ui.text.correction.ASTResolving.getMethodSignature((IMethodBinding) binding) }; setDisplayName(Messages.format(CorrectionMessages.AddTypeParameterProposal_method_label, args)); } else { String[] args= { BasicElementLabels.getJavaElementName(fTypeParamName), org.eclipse.jdt.internal.ui.text.correction.ASTResolving.getTypeSignature((ITypeBinding) binding) }; setDisplayName(Messages.format(CorrectionMessages.AddTypeParameterProposal_type_label, args)); } }