public OverrideCompletionProposal(IJavaProject jproject, ICompilationUnit cu, String methodName, String[] paramTypes, int start, int length, StyledString displayName, String completionProposal) { super(completionProposal, cu, start, length, null, displayName, 0); Assert.isNotNull(jproject); Assert.isNotNull(methodName); Assert.isNotNull(paramTypes); Assert.isNotNull(cu); fParamTypes= paramTypes; fMethodName= methodName; fJavaProject= jproject; StringBuilder buffer= new StringBuilder(); buffer.append(completionProposal); buffer.append(" {};"); //$NON-NLS-1$ setReplacementString(buffer.toString()); }
public OverrideCompletionProposal(IJavaProject jproject, ICompilationUnit cu, String methodName, String[] paramTypes, int start, int length, String displayName, String completionProposal) { super(completionProposal, cu, start, length, null, displayName, 0); Assert.isNotNull(jproject); Assert.isNotNull(methodName); Assert.isNotNull(paramTypes); Assert.isNotNull(cu); fParamTypes= paramTypes; fMethodName= methodName; fJavaProject= jproject; StringBuffer buffer= new StringBuffer(); buffer.append(completionProposal); buffer.append(" {};"); //$NON-NLS-1$ setReplacementString(buffer.toString()); }
public OverrideCompletionProposal(IJavaProject jproject, ICompilationUnit cu, String methodName, String[] paramTypes, int start, int length, StyledString displayName, String completionProposal) { super(completionProposal, cu, start, length, null, displayName, 0); Assert.isNotNull(jproject); Assert.isNotNull(methodName); Assert.isNotNull(paramTypes); Assert.isNotNull(cu); fParamTypes= paramTypes; fMethodName= methodName; fJavaProject= jproject; StringBuffer buffer= new StringBuffer(); buffer.append(completionProposal); buffer.append(" {};"); //$NON-NLS-1$ setReplacementString(buffer.toString()); }
JavaPlugin.log(exception); setReplacementString(IndentManipulation.changeIndent(Strings.trimIndentation(contents.get(position.getStartPosition(), position.getLength()), settings.tabWidth, settings.indentWidth, false), 0, settings.tabWidth, settings.indentWidth, indent, TextUtilities.getDefaultLineDelimiter(contents)));
setReplacementString(IndentManipulation.changeIndent(generatedCode, generatedIndent, settings.tabWidth, settings.indentWidth, indent, TextUtilities.getDefaultLineDelimiter(document)));
setReplacementString(IndentManipulation.changeIndent(generatedCode, generatedIndent, settings.tabWidth, settings.indentWidth, indent, TextUtilities.getDefaultLineDelimiter(document)));