issue_id int64 2.04k 425k | title stringlengths 9 251 | body stringlengths 4 32.8k ⌀ | status stringclasses 6
values | after_fix_sha stringlengths 7 7 | project_name stringclasses 6
values | repo_url stringclasses 6
values | repo_name stringclasses 6
values | language stringclasses 1
value | issue_url null | before_fix_sha null | pull_url null | commit_datetime timestamp[us, tz=UTC] | report_datetime timestamp[us, tz=UTC] | updated_file stringlengths 23 187 | chunk_content stringlengths 1 22k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewVariableCompletionProposal.java | /*******************************************************************************
* Copyright (c) 2000, 2002 International Business Machines Corp. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v0.5
* which accompanie... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewVariableCompletionProposal.java | import org.eclipse.jdt.core.IField;
import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.core.IMember;
import org.eclipse.jdt.core.IType;
import org.eclipse.jdt.core.compiler.IScanner;
import org.eclipse.jdt.core.compiler.ITerminalSymbols;
import org.eclipse.jdt.core.compiler.InvalidInputException;
import o... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewVariableCompletionProposal.java | private final static class AddLocalVariableEdit extends SimpleTextEdit {
private String fContent;
private ASTNode fAstRoot;
private int fTabSize;
public AddLocalVariableEdit(ASTNode astRoot, String content, int tabSize) {
fAstRoot= astRoot;
fContent= content;
fTabSize= tabSize;
}
/* non Java-doc... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewVariableCompletionProposal.java | String insertString= null;
ASTNode curr= fAstRoot;
while (curr != null && !(curr instanceof Block)) {
curr= curr.getParent();
}
if (curr != null) {
Block block= (Block) curr;
List statements= block.statements();
if (!statements.isEmpty()) {
ASTNode statement= (ASTNode) statements.ge... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewVariableCompletionProposal.java | private String fContent;
private ASTNode fAstRoot;
private ICompilationUnit fCompilationUnit;
public AddParameterEdit(ICompilationUnit cu, ASTNode astRoot, String content) {
fAstRoot= astRoot;
fContent= content;
fCompilationUnit= cu;
}
/* non Java-doc
* @see TextEdit#copy0
*/
protected Tex... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewVariableCompletionProposal.java | /* non Java-doc
* @see TextEdit#connect
*/
public void connect(TextBuffer buffer) throws CoreException {
if (fAstRoot == null) {
return;
}
int offset= 0;
String insertString= "";
ASTNode curr= fAstRoot;
while (curr != null && !(curr instanceof MethodDeclaration)) {
curr= curr.... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewVariableCompletionProposal.java | throw new CoreException(new Status(Status.ERROR, JavaUI.ID_PLUGIN, Status.ERROR, "Unexpected EOF while scanning", null));
}
}
offset= scanner.getCurrentTokenEndPosition() + 1;
} catch (InvalidInputException e) {
throw new CoreException(new Status(Status.ERROR, JavaUI.ID_PLUGIN, Status.ERR... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewVariableCompletionProposal.java | setImage(JavaPluginImages.get(JavaPluginImages.IMG_CORRECTION_LOCAL));
}
}
/*
* @see JavaCorrectionProposal#addEdits(CompilationUnitChange)
*/
protected void addEdits(CompilationUnitChange changeElement) throws CoreException {
ICompilationUnit cu= changeElement.getCompilationUnit();
CodeGenerationSettin... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewVariableCompletionProposal.java | IType type= parentIsType ? (IType) fParentMember : fParentMember.getDeclaringType();
int insertPos= MemberEdit.ADD_AT_BEGINNING;
IJavaElement anchor= type;
if (!parentIsType && fParentMember.getElementType() != IJavaElement.FIELD) {
IField[] fields= type.getFields();
if (fields.length > 0) {
anchor= fie... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewVariableCompletionProposal.java | if (varType == null || !varType.isPrimitive()) {
buf.append("= null");
} else if (varType.getName().equals("boolean")) {
buf.append("= false");
} else {
buf.append("= 0");
}
}
if (fVariableKind != PARAM) {
buf.append(";");
}
return buf.toString();
}
private ITypeBinding eva... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ReplaceCorrectionProposal.java | /*******************************************************************************
* Copyright (c) 2000, 2002 International Business Machines Corp. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v0.5
* which accompanie... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ReplaceCorrectionProposal.java | private String fReplacementString;
private int fOffset;
private int fLength;
public ReplaceCorrectionProposal(String label, ProblemPosition problemPos, String replacementString, int relevance) throws CoreException {
this(label, problemPos.getCompilationUnit(), problemPos.getOffset(), problemPos.getLength(), replac... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/UnresolvedElementsSubProcessor.java | /*******************************************************************************
* Copyright (c) 2000, 2002 International Business Machines Corp. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v0.5
* which accompanie... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/UnresolvedElementsSubProcessor.java | import org.eclipse.jdt.core.IType;
import org.eclipse.jdt.core.JavaConventions;
import org.eclipse.jdt.core.Signature;
import org.eclipse.jdt.core.compiler.IProblem;
import org.eclipse.jdt.core.dom.AST;
import org.eclipse.jdt.core.dom.ASTNode;
import org.eclipse.jdt.core.dom.ClassInstanceCreation;
import org.eclipse.jd... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/UnresolvedElementsSubProcessor.java | private static SimpleName getVariableNode(ASTNode selectedNode) {
if (selectedNode instanceof SimpleName) {
return (SimpleName) selectedNode;
} else if (selectedNode instanceof QualifiedName) {
QualifiedName qualifierName= (QualifiedName) selectedNode;
Name qualifier= qualifierName.getQualifier();
if (q... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/UnresolvedElementsSubProcessor.java | }
}
return null;
}
public static void getVariableProposals(ProblemPosition problemPos, ArrayList proposals) throws CoreException {
ICompilationUnit cu= problemPos.getCompilationUnit();
CompilationUnit astRoot= AST.parseCompilationUnit(cu, true);
ASTNode selectedNode= ASTResolving.findSelecte... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/UnresolvedElementsSubProcessor.java | }
}
if (node == null) {
return;
}
SimilarElement[] elements= SimilarElementsRequestor.findSimilarElement(cu, node, SimilarElementsRequestor.VARIABLES);
for (int i= 0; i < elements.length; i++) {
SimilarElement curr= elements[i];
String label= CorrectionMessages.getFormattedString("UnresolvedEl... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/UnresolvedElementsSubProcessor.java | getTypeProposals(problemPos, SimilarElementsRequestor.REF_TYPES, proposals);
}
}
}
public static void getTypeProposals(ProblemPosition problemPos, int kind, ArrayList proposals) throws CoreException {
ICompilationUnit cu= problemPos.getCompilationUnit();
String typeName= cu.getBuffer().getText(pro... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/UnresolvedElementsSubProcessor.java | replaceName= curr;
}
} else {
importEdit.addImport(curr);
}
importEdit.addImport(curr);
boolean importOnly= replaceName.equals(typeName);
CUCorrectionProposal proposal= new CUCorrectionProposal("", cu, 0);
proposals.add(proposal);
CompilationUnitChange change= proposa... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/UnresolvedElementsSubProcessor.java | String addedCUName= typeName + ".java";
if (!JavaConventions.validateCompilationUnitName(addedCUName).matches(IStatus.ERROR)) {
IPackageFragment pack= (IPackageFragment) cu.getParent();
final ICompilationUnit addedCU= pack.getCompilationUnit(addedCUName);
if (!addedCU.exists()) {
if ((kind & SimilarElem... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/UnresolvedElementsSubProcessor.java | return;
}
MethodInvocation invocationNode= (MethodInvocation) nameNode.getParent();
String methodName= nameNode.getIdentifier();
SimilarElement[] elements= SimilarElementsRequestor.findSimilarElement(cu, nameNode, SimilarElementsRequestor.METHODS);
for (int i= 0; i < elements.length; i++) {
Stri... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/UnresolvedElementsSubProcessor.java | changedCU= EditorUtility.getWorkingCopy(changedCU);
if (changedCU != null) {
type= (IType) JavaModelUtil.findMemberInCompilationUnit(changedCU, type);
}
}
}
}
} else {
IJavaElement elem= cu.getElementAt(problemPos.getOffset());
if (elem != null) {
type= (IType) elem.getAncesto... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/UnresolvedElementsSubProcessor.java | if (selectedNode == null) {
return;
}
int type= selectedNode.getNodeType();
if (type == ASTNode.CLASS_INSTANCE_CREATION) {
ClassInstanceCreation creation= (ClassInstanceCreation) selectedNode;
IBinding binding= creation.getName().resolveBinding();
if (binding != null && binding.getKind() == IBindi... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/UnresolvedElementsSubProcessor.java | node= node.getParent();
}
if (node != null) {
TypeDeclaration decl= (TypeDeclaration) node;
IBinding binding= decl.getName().resolveBinding();
if (binding != null && binding.getKind() == IBinding.TYPE) {
getConstructorProposals((ITypeBinding) binding, ((ConstructorInvocation) selectedNode).argume... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | package org.eclipse.jdt.internal.ui.javaeditor;
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.StyledText;
im... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Layout;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IMarker;
import org.eclipse.core.resources.IWorkspace;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.cor... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | import org.eclipse.jface.text.contentassist.ContentAssistant;
import org.eclipse.jface.text.contentassist.IContentAssistant;
import org.eclipse.jface.text.source.Annotation;
import org.eclipse.jface.text.source.IAnnotationModel;
import org.eclipse.jface.text.source.ISourceViewer;
import org.eclipse.jface.text.source.IV... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | import org.eclipse.jdt.core.IImportDeclaration;
import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.core.ISourceRange;
import org.eclipse.jdt.core.ISourceReference;
import org.eclipse.jdt.core.JavaCore;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jdt.ui.IWorkingCopyManager;
import or... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | interface ITextConverter {
void customizeDocumentCommand(IDocument document, DocumentCommand command);
};
class AdaptedRulerLayout extends Layout {
protected int fGap;
protected AdaptedSourceViewer fAdaptedSourceViewer;
protected AdaptedRulerLayout(int gap, AdaptedSourceViewer asv) {
fGap= gap... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | protected void layout(Composite composite, boolean flushCache) {
Rectangle clArea= composite.getClientArea();
if (fAdaptedSourceViewer.isVerticalRulerVisible()) {
StyledText textWidget= fAdaptedSourceViewer.getTextWidget();
Rectangle trim= textWidget.computeTrim(0, 0, 0, 0);
int scrollbarHeight= ... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | private List fTextConverters;
private OverviewRuler fOverviewRuler;
private boolean fIsOverviewRulerVisible;
private boolean fIgnoreTextConverters= false;
private IVerticalRuler fCachedVerticalRuler;
private boolean fCachedIsVerticalRulerVisible;
public AdaptedSourceViewer(Composite parent, IVertic... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | * @see ISourceViewer#showAnnotations(boolean)
*/
public void showAnnotations(boolean show) {
fCachedIsVerticalRulerVisible= (show && fCachedVerticalRuler != null);
super.showAnnotations(show);
}
public IContentAssistant getContentAssistant() {
return fContentAssistant;
}
/*
* @see ITextOp... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | }
super.doOperation(operation);
}
public void insertTextConverter(ITextConverter textConverter, int index) {
throw new UnsupportedOperationException();
}
public void addTextConverter(ITextConverter textConverter) {
if (fTextConverters == null) {
fTextConverters= new ArrayList(1);
fTex... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | if (!fIgnoreTextConverters && fTextConverters != null) {
for (Iterator e = fTextConverters.iterator(); e.hasNext();)
((ITextConverter) e.next()).customizeDocumentCommand(getDocument(), command);
}
fIgnoreTextConverters= false;
}
public IVerticalRuler getVerticalRuler() {
return fCachedVerticalR... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | Control control= getControl();
if (control instanceof Composite) {
Composite composite= (Composite) control;
composite.setLayout(new AdaptedRulerLayout(GAP_SIZE, this));
fOverviewRuler.createControl(composite, this);
}
}
public void hideOverviewRuler() {
fIsOverviewRulerVisible= false;
Co... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | /*
* @see ISourceViewer#setDocument(IDocument, IAnnotationModel, int, int)
*/
public void setDocument(IDocument document, IAnnotationModel annotationModel, int visibleRegionOffset, int visibleRegionLength) {
super.setDocument(document, annotationModel, visibleRegionOffset, visibleRegionLength);
fOverviewR... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | private int fTabRatio;
private ILineTracker fLineTracker;
public TabConverter() {
}
public void setNumberOfSpacesPerTab(int ratio) {
fTabRatio= ratio;
}
public void setLineTracker(ILineTracker lineTracker) {
fLineTracker= lineTracker;
}
private int insertTabString(StringBuffer buffer,... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | if (fTabRatio == 0)
return 0;
int remainder= offsetInLine % fTabRatio;
remainder= fTabRatio - remainder;
for (int i= 0; i < remainder; i++)
buffer.append(' ');
return remainder;
}
public void customizeDocumentCommand(IDocument document, DocumentCommand command) {
String text= command.... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | String line= text.substring(offset, endOffset);
int position= 0;
if (i == 0) {
IRegion firstLine= document.getLineInformationOfOffset(command.offset);
position= command.offset - firstLine.getOffset();
}
int length= line.length();
for (int j= 0; j < len... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | /*
* @see IPropertyChangeListener#propertyChange(PropertyChangeEvent)
*/
public void propertyChange(org.eclipse.core.runtime.Preferences.PropertyChangeEvent event) {
handlePreferencePropertyChanged(event);
}
}
private final static String CODE_FORMATTER_TAB_SIZE= JavaCore.FORMATTER_TAB_SIZE;
public... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | public final static String SPACES_FOR_TABS= JavaSourceViewerConfiguration.SPACES_FOR_TABS;
public final static String PROBLEM_INDICATION= "problemIndication";
public final static String PROBLEM_INDICATION_COLOR= "problemIndicationColor";
public final static String LINKED_POSITION_COLOR= "linkedPositionColor"... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | private PaintManager fPaintManager;
private BracketPainter fBracketPainter;
private LinePainter fLinePainter;
private PrintMarginPainter fPrintMarginPainter;
private ProblemPainter fProblemPainter;
private TabConverter fTabConverter;
private SelectionHistory fSelectionHistory;
private IPropertyChan... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | public CompilationUnitEditor() {
super();
setDocumentProvider(JavaPlugin.getDefault().getCompilationUnitDocumentProvider());
setEditorContextMenuId("#CompilationUnitEditorContext");
setRulerContextMenuId("#CompilationUnitRulerContext");
setOutlinerContextMenuId("#CompilationUnitOutlinerContext");
fSav... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | action= new TextOperationAction(JavaEditorMessages.getResourceBundle(), "Uncomment.", this, ITextOperationTarget.STRIP_PREFIX);
action.setActionDefinitionId(IJavaEditorActionDefinitionIds.UNCOMMENT);
setAction("Uncomment", action);
action= new TextOperationAction(JavaEditorMessages.getResourceBundle(), "Forma... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | historyAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SELECT_LAST);
setAction(StructureSelectionAction.HISTORY, historyAction);
fSelectionHistory.setHistoryAction(historyAction);
fGenerateActionGroup= new GenerateActionGroup(this, ITextEditorActionConstants.GROUP_EDIT);
ActionGroup rg= new Refa... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | */
protected IJavaElement getElementAt(int offset, boolean reconcile) {
IWorkingCopyManager manager= JavaPlugin.getDefault().getWorkingCopyManager();
ICompilationUnit unit= manager.getWorkingCopy(getEditorInput());
if (unit != null) {
try {
if (reconcile) {
synchronized (unit) {
unit.reconci... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | } catch (JavaModelException x) {
JavaPlugin.getDefault().log(x.getStatus());
}
return null;
}
/*
* @see AbstractTextEditor#editorContextMenuAboutToShow(IMenuManager)
*/
public void editorContextMenuAboutToShow(IMenuManager menu) {
super.editorContextMenuAboutToShow(menu);
addAction(menu, IT... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | /*
* @see AbstractTextEditor#performSaveOperation(WorkspaceModifyOperation, IProgressMonitor)
*/
protected void performSaveOperation(WorkspaceModifyOperation operation, IProgressMonitor progressMonitor) {
IDocumentProvider p= getDocumentProvider();
if (p instanceof CompilationUnitDocumentProvider) {
Compila... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | if (p.isDeleted(getEditorInput())) {
if (isSaveAsAllowed()) {
/*
* 1GEUSSR: ITPUI:ALL - User should never loose changes made in the editors.
* Changed Behavior to make sure that if called inside a regular save (because
* of deletion of input element) there is a way to report back to the c... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | performSaveOperation(createSaveOperation(false), progressMonitor);
}
} else
performSaveOperation(createSaveOperation(false), progressMonitor);
}
}
/**
* Jumps to the error next according to the given direction.
*/
public void gotoError(boolean forward) {
ISelectionProvider provider= getSele... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | if (e != null) {
while (e.hasNext()) {
Object o= e.next();
if (o instanceof MarkerAnnotation) {
marker= ((MarkerAnnotation) o).getMarker();
break;
}
}
}
}
if (marker != null) {
IWorkbenchPage page= getSite().getPage();
IViewPart view= view= page.findView("... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | /**
* Sets the given message as error message to this editor's status line.
* @param msg message to be set
*/
protected void setStatusLineErrorMessage(String msg) {
getStatusLineManager().setErrorMessage(msg);
if (msg == null || msg.trim().length() == 0) {
if (fStatusLineClearer != null) {
getSe... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | IDocument document= getDocumentProvider().getDocument(getEditorInput());
int endOfDocument= document.getLength();
int distance= 0;
IAnnotationModel model= getDocumentProvider().getAnnotationModel(getEditorInput());
Iterator e= new ProblemAnnotationIterator(model, false);
while (e.hasNext()) {
IProb... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | nextErrorPosition= p;
}
}
}
if (nextErrorPosition != null) {
errorPosition.setOffset(nextErrorPosition.getOffset());
errorPosition.setLength(nextErrorPosition.getLength());
}
return nextError;
}
/*
* @see AbstractTextEditor#isSaveAsAllowed()
*/
public boolean isSaveAsAllowed() {
r... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | SaveAsDialog dialog= new SaveAsDialog(shell);
IFile original= (input instanceof IFileEditorInput) ? ((IFileEditorInput) input).getFile() : null;
if (original != null)
dialog.setOriginalFile(original);
dialog.create();
IDocumentProvider provider= getDocumentProvider();
if (provider.isDeleted(i... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | IFile file= workspace.getRoot().getFile(filePath);
final IEditorInput newInput= new FileEditorInput(file);
WorkspaceModifyOperation op= new WorkspaceModifyOperation() {
public void execute(final IProgressMonitor monitor) throws CoreException {
getDocumentProvider().saveDocument(monitor, newInput, getDocum... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | setInput(newInput);
}
if (progressMonitor != null)
progressMonitor.setCanceled(!success);
}
/*
* @see AbstractTextEditor#doSetInput(IEditorInput)
*/
protected void doSetInput(IEditorInput input) throws CoreException {
super.doSetInput(input);
configureTabConverter();
}
private void startBrack... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | }
}
private boolean isBracketHighlightingEnabled() {
IPreferenceStore store= getPreferenceStore();
return store.getBoolean(MATCHING_BRACKETS);
}
private void startLineHighlighting() {
if (fLinePainter == null) {
ISourceViewer sourceViewer= getSourceViewer();
fLinePainter= new LinePainter(sourceViewe... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | private void showPrintMargin() {
if (fPrintMarginPainter == null) {
fPrintMarginPainter= new PrintMarginPainter(getSourceViewer());
fPrintMarginPainter.setMarginRulerColor(getColor(PRINT_MARGIN_COLOR));
fPrintMarginPainter.setMarginRulerColumn(getPreferenceStore().getInt(PRINT_MARGIN_COLUMN));
fPaintManag... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | }
private void stopProblemIndication() {
if (fProblemPainter != null) {
fPaintManager.removePainter(fProblemPainter);
fProblemPainter.deactivate(true);
fProblemPainter.dispose();
fProblemPainter= null;
}
}
private boolean isProblemIndicationEnabled() {
IPreferenceStore store= getPreferenceStore... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | private void startTabConversion() {
if (fTabConverter == null) {
fTabConverter= new TabConverter();
configureTabConverter();
fTabConverter.setNumberOfSpacesPerTab(getTabSize());
AdaptedSourceViewer asv= (AdaptedSourceViewer) getSourceViewer();
asv.addTextConverter(fTabConverter);
asv.updateInden... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | asv.showOverviewRuler();
}
private void hideOverviewRuler() {
AdaptedSourceViewer asv= (AdaptedSourceViewer) getSourceViewer();
asv.hideOverviewRuler();
}
private boolean isOverviewRulerVisible() {
IPreferenceStore store= getPreferenceStore();
return store.getBoolean(OVERVIEW_RULER);
}
private Color... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | fPropertyChangeListener= null;
}
if (fJavaEditorErrorTickUpdater != null) {
fJavaEditorErrorTickUpdater.dispose();
fJavaEditorErrorTickUpdater= null;
}
if (fSelectionHistory != null)
fSelectionHistory.dispose();
stopBracketHighlighting();
stopLineHighlighting();
if (fPaintManager != n... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | fPaintManager= new PaintManager(getSourceViewer());
if (isBracketHighlightingEnabled())
startBracketHighlighting();
if (isLineHighlightingEnabled())
startLineHighlighting();
if (isPrintMarginVisible())
showPrintMargin();
if (isProblemIndicationEnabled())
startProblemIndication();
if (isTabConversi... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | if (isTabConversionEnabled())
startTabConversion();
else
stopTabConversion();
return;
}
if (MATCHING_BRACKETS.equals(p)) {
if (isBracketHighlightingEnabled())
startBracketHighlighting();
else
stopBracketHighlighting();
return;
}
if (MATCHING_BRA... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | if (fLinePainter != null) {
stopLineHighlighting();
startLineHighlighting();
}
return;
}
if (PRINT_MARGIN.equals(p)) {
if (isPrintMarginVisible())
showPrintMargin();
else
hidePrintMargin();
return;
}
if (PRINT_MARGIN_COLOR.equals(p)) {
... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | else
stopProblemIndication();
return;
}
if (PROBLEM_INDICATION_COLOR.equals(p)) {
if (fProblemPainter != null)
fProblemPainter.setHighlightColor(getColor(PROBLEM_INDICATION_COLOR));
return;
}
if (OVERVIEW_RULER.equals(p)) {
if (isOverviewRulerVisible())
s... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | * of the java core's preferences and updates the preference
* related editor properties.
*
* @param event the property change event
*/
protected void handlePreferencePropertyChanged(org.eclipse.core.runtime.Preferences.PropertyChangeEvent event) {
AdaptedSourceViewer asv= (AdaptedSourceViewer) getSourceView... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | return new AdaptedSourceViewer(parent, ruler, styles);
}
/*
* @see JavaEditor#synchronizeOutlinePageSelection()
*/
public void synchronizeOutlinePageSelection() {
if (isEditingScriptRunning())
return;
ISourceViewer sourceViewer= getSourceViewer();
if (sourceViewer == null || fOutlinePage == null... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | private ISourceReference getSourceReference(IJavaElement element, int offset) {
if ( !(element instanceof ISourceReference))
return null;
if (element.getElementType() == IJavaElement.IMPORT_DECLARATION) {
IImportDeclaration declaration= (IImportDeclaration) element;
IImportContainer container= (I... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | if (shell != null && !shell.isDisposed()) {
shell.getDisplay().asyncExec(new Runnable() {
public void run() {
synchronizeOutlinePageSelection();
}
});
}
}
}
protected void updateStateDependentActions() {
super.updateStateDependentActions();
fGenerateActionGroup.editorStateChanged();... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | unit.reconcile();
}
IJavaElement[] findings= unit.findElements(element);
if (findings != null && findings.length > 0)
return findings[0];
} catch (JavaModelException x) {
JavaPlugin.getDefault().log(x.getStatus());
}
}
return null;
}
/**
* Returns the offset of the given... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | /*
* @see AbstractTextEditor#rememberSelection()
*/
protected void rememberSelection() {
ISelectionProvider sp= getSelectionProvider();
fRememberedSelection= (sp == null ? null : (ITextSelection) sp.getSelection());
if (fRememberedSelection != null) {
fRememberedElement= getElementAt(fRememberedSelection.... |
15,732 | Bug 15732 String not found message not cleared | Build 20020508 - did a search, and it found no matches - the status line shows "String Not Found" in red - the message remains even if I click around, switch between editors of the same type (even though I didn't search in the other editors), or switch to another view and back to the editor Either the message should no... | resolved fixed | 79e965d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T16:00:29Z | 2002-05-10T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | fRememberedElement= null;
fRememberedElementOffset= -1;
}
}
/*
* @see AbstractTextEditor#canHandleMove(IEditorInput, IEditorInput)
*/
protected boolean canHandleMove(IEditorInput originalElement, IEditorInput movedElement) {
String oldExtension= "";
if (originalElement instanceof IFileEditorInput)... |
19,889 | Bug 19889 [assist] completion in throws clause or in javadoc @throws tag should propose only exception class | When I'm here: /** {@link Unsupp and ask for autocompletion, it comes up with a window listing a few types, among them java.lang.UnsupportedOperationException. When I'm here: /** @throws Unsupp or here: /** @exception Unsupp autocompletion has no idea what could possibly follow. | resolved wontfix | 10d9d51 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-16T14:17:42Z | 2002-06-11T12:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java | package org.eclipse.jdt.internal.ui.text.javadoc;
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
import java.util.ArrayList;
import java.util.List;
import org.eclipse.swt.graphics.Image;
import org.eclipse.jface.text.BadLocationException;
import org.eclipse.jface.text.IDocument;
import org.ecli... |
19,889 | Bug 19889 [assist] completion in throws clause or in javadoc @throws tag should propose only exception class | When I'm here: /** {@link Unsupp and ask for autocompletion, it comes up with a window listing a few types, among them java.lang.UnsupportedOperationException. When I'm here: /** @throws Unsupp or here: /** @exception Unsupp autocompletion has no idea what could possibly follow. | resolved wontfix | 10d9d51 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-16T14:17:42Z | 2002-06-11T12:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java | protected final static String[] fgTagProposals= {
"@author",
"@deprecated",
"@exception",
"@link",
"@param",
"@return",
"@see", "@serial", "@serialData", "@serialField", "@since",
"@throws",
"@version"
};
protected final static String[] fgHTMLProposals= {
"<code>", "</code>",
"<br>",... |
19,889 | Bug 19889 [assist] completion in throws clause or in javadoc @throws tag should propose only exception class | When I'm here: /** {@link Unsupp and ask for autocompletion, it comes up with a window listing a few types, among them java.lang.UnsupportedOperationException. When I'm here: /** @throws Unsupp or here: /** @exception Unsupp autocompletion has no idea what could possibly follow. | resolved wontfix | 10d9d51 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-16T14:17:42Z | 2002-06-11T12:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java | private int fCurrentPos;
private int fCurrentLength;
private JavaElementLabelProvider fLabelProvider;
private List fResult;
private boolean fRestrictToMatchingCase;
public JavaDocCompletionEvaluator(ICompilationUnit cu, IDocument doc, int pos, int length) {
fCompilationUnit= cu;
fDocument= doc;
fCurren... |
19,889 | Bug 19889 [assist] completion in throws clause or in javadoc @throws tag should propose only exception class | When I'm here: /** {@link Unsupp and ask for autocompletion, it comes up with a window listing a few types, among them java.lang.UnsupportedOperationException. When I'm here: /** @throws Unsupp or here: /** @exception Unsupp autocompletion has no idea what could possibly follow. | resolved wontfix | 10d9d51 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-16T14:17:42Z | 2002-06-11T12:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java | private static int findCharBeforeWord(IDocument doc, int lineBeginPos, int pos) {
int currPos= pos - 1;
if (currPos > lineBeginPos) {
try {
while (currPos > lineBeginPos && isWordPart(doc.getChar(currPos))) {
currPos--;
}
return currPos;
} catch (BadLocationException e) {
}
}
return ... |
19,889 | Bug 19889 [assist] completion in throws clause or in javadoc @throws tag should propose only exception class | When I'm here: /** {@link Unsupp and ask for autocompletion, it comes up with a window listing a few types, among them java.lang.UnsupportedOperationException. When I'm here: /** @throws Unsupp or here: /** @exception Unsupp autocompletion has no idea what could possibly follow. | resolved wontfix | 10d9d51 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-16T14:17:42Z | 2002-06-11T12:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java | }
if (curr < end) {
return curr + 1;
}
return pos;
}
private static int findReplaceEndPos(IDocument doc, String newText, String oldText, int pos) {
if (oldText.length() == 0 || oldText.equals(newText)) {
return pos;
}
try {
IRegion lineInfo= doc.getLineInformationOfOffset(pos);
int end= l... |
19,889 | Bug 19889 [assist] completion in throws clause or in javadoc @throws tag should propose only exception class | When I'm here: /** {@link Unsupp and ask for autocompletion, it comes up with a window listing a few types, among them java.lang.UnsupportedOperationException. When I'm here: /** @throws Unsupp or here: /** @exception Unsupp autocompletion has no idea what could possibly follow. | resolved wontfix | 10d9d51 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-16T14:17:42Z | 2002-06-11T12:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java | }
return pos1;
}
} catch (BadLocationException e) {
e.printStackTrace();
}
return pos;
}
public JavaCompletionProposal[] computeProposals() throws JavaModelException {
fLabelProvider= new JavaElementLabelProvider(JavaElementLabelProvider.SHOW_POST_QUALIFIED | JavaElementLabelProvider.SHOW_PARAMET... |
19,889 | Bug 19889 [assist] completion in throws clause or in javadoc @throws tag should propose only exception class | When I'm here: /** {@link Unsupp and ask for autocompletion, it comes up with a window listing a few types, among them java.lang.UnsupportedOperationException. When I'm here: /** @throws Unsupp or here: /** @exception Unsupp autocompletion has no idea what could possibly follow. | resolved wontfix | 10d9d51 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-16T14:17:42Z | 2002-06-11T12:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java | }
char firstChar= fDocument.getChar(word1Begin);
if (firstChar == '@') {
String prefix= fDocument.get(word1Begin, fCurrentPos - word1Begin);
addProposals(prefix, fgTagProposals, JavaPluginImages.IMG_OBJS_JAVADOCTAG);
return;
} else if (firstChar == '<') {
String prefix= fDocument.get(word1Begin... |
19,889 | Bug 19889 [assist] completion in throws clause or in javadoc @throws tag should propose only exception class | When I'm here: /** {@link Unsupp and ask for autocompletion, it comes up with a window listing a few types, among them java.lang.UnsupportedOperationException. When I'm here: /** @throws Unsupp or here: /** @exception Unsupp autocompletion has no idea what could possibly follow. | resolved wontfix | 10d9d51 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-16T14:17:42Z | 2002-06-11T12:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java | }
}
private boolean prefixMatches(String prefix, String proposal) {
if (fRestrictToMatchingCase) {
return proposal.startsWith(prefix);
} else if (proposal.length() >= prefix.length()) {
return prefix.equalsIgnoreCase(proposal.substring(0, prefix.length()));
}
return false;
}
private void add... |
19,889 | Bug 19889 [assist] completion in throws clause or in javadoc @throws tag should propose only exception class | When I'm here: /** {@link Unsupp and ask for autocompletion, it comes up with a window listing a few types, among them java.lang.UnsupportedOperationException. When I'm here: /** @throws Unsupp or here: /** @exception Unsupp autocompletion has no idea what could possibly follow. | resolved wontfix | 10d9d51 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-16T14:17:42Z | 2002-06-11T12:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java | private void addProposals(String prefix, String[] choices, String imageName) {
for (int i= 0; i < choices.length; i++) {
String curr= choices[i];
if (prefixMatches(prefix, curr)) {
fResult.add(createCompletion(curr, prefix, curr, JavaPluginImages.get(imageName), null));
}
}
}
private void addPropo... |
19,889 | Bug 19889 [assist] completion in throws clause or in javadoc @throws tag should propose only exception class | When I'm here: /** {@link Unsupp and ask for autocompletion, it comes up with a window listing a few types, among them java.lang.UnsupportedOperationException. When I'm here: /** @throws Unsupp or here: /** @exception Unsupp autocompletion has no idea what could possibly follow. | resolved wontfix | 10d9d51 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-16T14:17:42Z | 2002-06-11T12:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java | buf.append(Signature.toString(types[i]));
if (i != last) {
buf.append(", ");
}
}
buf.append(')');
return buf.toString();
} else {
return elem.getElementName();
}
}
/**
* Returns true if case is handeled
*/
private boolean addArgumentProposals(String tag, String argument) throws J... |
19,889 | Bug 19889 [assist] completion in throws clause or in javadoc @throws tag should propose only exception class | When I'm here: /** {@link Unsupp and ask for autocompletion, it comes up with a window listing a few types, among them java.lang.UnsupportedOperationException. When I'm here: /** @throws Unsupp or here: /** @exception Unsupp autocompletion has no idea what could possibly follow. | resolved wontfix | 10d9d51 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-16T14:17:42Z | 2002-06-11T12:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java | String[] exceptions= ((IMethod)elem).getExceptionTypes();
for (int i= 0; i < exceptions.length; i++) {
String curr= Signature.toString(exceptions[i]);
if (prefixMatches(argument, curr)) {
fResult.add(createCompletion(curr, argument, curr, JavaPluginImages.get(JavaPluginImages.IMG_OBJS_CLASS), null))... |
19,889 | Bug 19889 [assist] completion in throws clause or in javadoc @throws tag should propose only exception class | When I'm here: /** {@link Unsupp and ask for autocompletion, it comes up with a window listing a few types, among them java.lang.UnsupportedOperationException. When I'm here: /** @throws Unsupp or here: /** @exception Unsupp autocompletion has no idea what could possibly follow. | resolved wontfix | 10d9d51 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-16T14:17:42Z | 2002-06-11T12:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java | parent= (IType) elem.getAncestor(IJavaElement.TYPE);
}
if (parent != null) {
int nidx= arg.indexOf('(', pidx);
if (nidx == -1) {
nidx= arg.length();
}
String prefix= arg.substring(pidx + 1, nidx);
addProposals(prefix, parent.getMethods());
addProposals(prefix, parent.getFi... |
19,889 | Bug 19889 [assist] completion in throws clause or in javadoc @throws tag should propose only exception class | When I'm here: /** {@link Unsupp and ask for autocompletion, it comes up with a window listing a few types, among them java.lang.UnsupportedOperationException. When I'm here: /** @throws Unsupp or here: /** @exception Unsupp autocompletion has no idea what could possibly follow. | resolved wontfix | 10d9d51 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-16T14:17:42Z | 2002-06-11T12:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java | };
try {
preparedCU.codeComplete(fCurrentPos, requestor);
if (currElem.getDeclaringType() == null && fCurrentPos > wordStart) {
IType type= (IType) currElem;
char[] name= type.getElementName().toCharArray();
fResult.add(createSeeTypeCompletion(type.isClass(), wordStart, fCurrentPos, name, name... |
19,889 | Bug 19889 [assist] completion in throws clause or in javadoc @throws tag should propose only exception class | When I'm here: /** {@link Unsupp and ask for autocompletion, it comes up with a window listing a few types, among them java.lang.UnsupportedOperationException. When I'm here: /** @throws Unsupp or here: /** @exception Unsupp autocompletion has no idea what could possibly follow. | resolved wontfix | 10d9d51 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-16T14:17:42Z | 2002-06-11T12:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java | private ICompilationUnit createPreparedCU(IMember elem, int wordStart, int wordEnd) throws JavaModelException {
int startpos= elem.getSourceRange().getOffset();
char[] content= (char[]) fCompilationUnit.getBuffer().getCharacters().clone();
if ((elem.getDeclaringType() == null) && (wordStart + 6 < content.length))... |
19,889 | Bug 19889 [assist] completion in throws clause or in javadoc @throws tag should propose only exception class | When I'm here: /** {@link Unsupp and ask for autocompletion, it comes up with a window listing a few types, among them java.lang.UnsupportedOperationException. When I'm here: /** @throws Unsupp or here: /** @exception Unsupp autocompletion has no idea what could possibly follow. | resolved wontfix | 10d9d51 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-16T14:17:42Z | 2002-06-11T12:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java | JavaCompletionProposal proposal= new JavaCompletionProposal(newText, offset, length, image, labelText, 0);
proposal.setProposalInfo(proposalInfo);
proposal.setTriggerCharacters( new char[] { '#' });
return proposal;
}
private JavaCompletionProposal createSeeTypeCompletion(boolean isClass, int start, int end, ... |
22,553 | Bug 22553 "Show in Types Hierarchy" selects the "wrong" class [type hierarchy] | My custom perspective has a Packages pane, Hierarchy pane and a code editor pane. My packages pane is really a pane with a Packages Tab and a Projects Tab. (1) I select one of my packages. (2) I choose Open in Types Hierarchy. (3) E opens by package in the Types Hierarchy but Selects the class Object! (4) This causes t... | resolved fixed | 4297428 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-16T15:12:15Z | 2002-08-19T23:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | /*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
package org.eclipse.jdt.internal.ui.typehierarchy;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.CoreException;
import org.ecli... |
22,553 | Bug 22553 "Show in Types Hierarchy" selects the "wrong" class [type hierarchy] | My custom perspective has a Packages pane, Hierarchy pane and a code editor pane. My packages pane is really a pane with a Packages Tab and a Projects Tab. (1) I select one of my packages. (2) I choose Open in Types Hierarchy. (3) E opens by package in the Types Hierarchy but Selects the class Object! (4) This causes t... | resolved fixed | 4297428 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-16T15:12:15Z | 2002-08-19T23:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.ScrollBar;
import org.eclipse.swt.widgets.ToolBar;
import org.eclipse.jface.action.IMenuListener;
import org.eclipse.jface.action... |
22,553 | Bug 22553 "Show in Types Hierarchy" selects the "wrong" class [type hierarchy] | My custom perspective has a Packages pane, Hierarchy pane and a code editor pane. My packages pane is really a pane with a Packages Tab and a Projects Tab. (1) I select one of my packages. (2) I choose Open in Types Hierarchy. (3) E opens by package in the Types Hierarchy but Selects the class Object! (4) This causes t... | resolved fixed | 4297428 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-16T15:12:15Z | 2002-08-19T23:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | import org.eclipse.ui.IWorkbenchActionConstants;
import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.actions.ActionContext;
import org.eclipse.ui.actions.ActionGroup;
import org.eclipse.ui.actions.OpenWithMenu;
import org.eclipse.ui.help.WorkbenchHelp;
import org.eclipse... |
22,553 | Bug 22553 "Show in Types Hierarchy" selects the "wrong" class [type hierarchy] | My custom perspective has a Packages pane, Hierarchy pane and a code editor pane. My packages pane is really a pane with a Packages Tab and a Projects Tab. (1) I select one of my packages. (2) I choose Open in Types Hierarchy. (3) E opens by package in the Types Hierarchy but Selects the class Object! (4) This causes t... | resolved fixed | 4297428 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-16T15:12:15Z | 2002-08-19T23:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | import org.eclipse.jdt.internal.ui.dnd.DelegatingDragAdapter;
import org.eclipse.jdt.internal.ui.dnd.DelegatingDropAdapter;
import org.eclipse.jdt.internal.ui.dnd.LocalSelectionTransfer;
import org.eclipse.jdt.internal.ui.dnd.TransferDragSourceListener;
import org.eclipse.jdt.internal.ui.dnd.TransferDropTargetListener;... |
22,553 | Bug 22553 "Show in Types Hierarchy" selects the "wrong" class [type hierarchy] | My custom perspective has a Packages pane, Hierarchy pane and a code editor pane. My packages pane is really a pane with a Packages Tab and a Projects Tab. (1) I select one of my packages. (2) I choose Open in Types Hierarchy. (3) E opens by package in the Types Hierarchy but Selects the class Object! (4) This causes t... | resolved fixed | 4297428 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-16T15:12:15Z | 2002-08-19T23:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | private static final String TAG_ORIENTATION= "orientation";
private static final String TAG_RATIO= "ratio";
private static final String TAG_SELECTION= "selection";
private static final String TAG_VERTICAL_SCROLL= "vertical_scroll";
private static final String GROUP_FOCUS= "group.focus";
private IType fSel... |
22,553 | Bug 22553 "Show in Types Hierarchy" selects the "wrong" class [type hierarchy] | My custom perspective has a Packages pane, Hierarchy pane and a code editor pane. My packages pane is really a pane with a Packages Tab and a Projects Tab. (1) I select one of my packages. (2) I choose Open in Types Hierarchy. (3) E opens by package in the Types Hierarchy but Selects the class Object! (4) This causes t... | resolved fixed | 4297428 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-16T15:12:15Z | 2002-08-19T23:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | private PageBook fViewerbook;
private PageBook fPagebook;
private Label fNoHierarchyShownLabel;
private Label fEmptyTypesViewer;
private ViewForm fTypeViewerViewForm;
private ViewForm fMethodViewerViewForm;
private CLabel fMethodViewerPaneLabel;
private JavaUILabelProvider fPaneLabelProvider;
private ID... |
22,553 | Bug 22553 "Show in Types Hierarchy" selects the "wrong" class [type hierarchy] | My custom perspective has a Packages pane, Hierarchy pane and a code editor pane. My packages pane is really a pane with a Packages Tab and a Projects Tab. (1) I select one of my packages. (2) I choose Open in Types Hierarchy. (3) E opens by package in the Types Hierarchy but Selects the class Object! (4) This causes t... | resolved fixed | 4297428 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-16T15:12:15Z | 2002-08-19T23:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | public TypeHierarchyViewPart() {
fSelectedType= null;
fInputElement= null;
fHierarchyLifeCycle= new TypeHierarchyLifeCycle();
fHierarchyLifeCycle.setReconciled(JavaBasePreferencePage.reconcileJavaViews());
fTypeHierarchyLifeCycleListener= new ITypeHierarchyLifeCycleListener() {
public void typeHierarchy... |
22,553 | Bug 22553 "Show in Types Hierarchy" selects the "wrong" class [type hierarchy] | My custom perspective has a Packages pane, Hierarchy pane and a code editor pane. My packages pane is really a pane with a Packages Tab and a Projects Tab. (1) I select one of my packages. (2) I choose Open in Types Hierarchy. (3) E opens by package in the Types Hierarchy but Selects the class Object! (4) This causes t... | resolved fixed | 4297428 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-16T15:12:15Z | 2002-08-19T23:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | fToggleOrientationActions= new ToggleOrientationAction[] {
new ToggleOrientationAction(this, VIEW_ORIENTATION_VERTICAL),
new ToggleOrientationAction(this, VIEW_ORIENTATION_HORIZONTAL),
new ToggleOrientationAction(this, VIEW_ORIENTATION_SINGLE)
};
fEnableMemberFilterAction= new EnableMemberFilterAction(... |
22,553 | Bug 22553 "Show in Types Hierarchy" selects the "wrong" class [type hierarchy] | My custom perspective has a Packages pane, Hierarchy pane and a code editor pane. My packages pane is really a pane with a Packages Tab and a Projects Tab. (1) I select one of my packages. (2) I choose Open in Types Hierarchy. (3) E opens by package in the Types Hierarchy but Selects the class Object! (4) This causes t... | resolved fixed | 4297428 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-16T15:12:15Z | 2002-08-19T23:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | };
}
/**
* Adds the entry if new. Inserted at the beginning of the history entries list.
*/
private void addHistoryEntry(IJavaElement entry) {
if (fInputHistory.contains(entry)) {
fInputHistory.remove(entry);
}
fInputHistory.add(0, entry);
fHistoryDropDownAction.setEnabled(true);
}
privat... |
22,553 | Bug 22553 "Show in Types Hierarchy" selects the "wrong" class [type hierarchy] | My custom perspective has a Packages pane, Hierarchy pane and a code editor pane. My packages pane is really a pane with a Packages Tab and a Projects Tab. (1) I select one of my packages. (2) I choose Open in Types Hierarchy. (3) E opens by package in the Types Hierarchy but Selects the class Object! (4) This causes t... | resolved fixed | 4297428 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-16T15:12:15Z | 2002-08-19T23:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | updateInput(entry);
}
}
/**
* Gets all history entries.
*/
public IJavaElement[] getHistoryEntries() {
if (fInputHistory.size() > 0) {
updateHistoryEntries();
}
return (IJavaElement[]) fInputHistory.toArray(new IJavaElement[fInputHistory.size()]);
}
/**
* Sets the history entries
*/
public... |
22,553 | Bug 22553 "Show in Types Hierarchy" selects the "wrong" class [type hierarchy] | My custom perspective has a Packages pane, Hierarchy pane and a code editor pane. My packages pane is really a pane with a Packages Tab and a Projects Tab. (1) I select one of my packages. (2) I choose Open in Types Hierarchy. (3) E opens by package in the Types Hierarchy but Selects the class Object! (4) This causes t... | resolved fixed | 4297428 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-16T15:12:15Z | 2002-08-19T23:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | if (cu != null && cu.isWorkingCopy()) {
member= (IMember) cu.getOriginal(member);
if (member == null) {
return;
}
}
if (member.getElementType() != IJavaElement.TYPE) {
if (fHierarchyLifeCycle.isReconciled() && cu != null) {
try {
member= (IMember) EditorUtility.getWorkingCopy(member);
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.