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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
14,891 | Bug 14891 NPE during organize imports | Build 20020425.3 java.lang.NullPointerException Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V java/lang/NullPointerException.<init>(Ljava/lang/String;)V org/eclipse/jdt/ui/actions/OrganizeImportsAction.setStatusBarMessage (Ljava/lang/String;)V org/eclipse/jdt/ui/actions/Orga... | resolved fixed | d8124c0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T12:08:21Z | 2002-04-30T09:46:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OrganizeImportsAction.java | break;
}
}
} catch (JavaModelException e) {
JavaPlugin.log(e);
}
}
return (ICompilationUnit[]) result.toArray(new ICompilationUnit[result.size()]);
}
/* (non-Javadoc)
* Method declared on SelectionDispatchAction.
*/
protected void run(ITextSelection selection) {
IWorkingCopyManager manag... |
14,891 | Bug 14891 NPE during organize imports | Build 20020425.3 java.lang.NullPointerException Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V java/lang/NullPointerException.<init>(Ljava/lang/String;)V org/eclipse/jdt/ui/actions/OrganizeImportsAction.setStatusBarMessage (Ljava/lang/String;)V org/eclipse/jdt/ui/actions/Orga... | resolved fixed | d8124c0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T12:08:21Z | 2002-04-30T09:46:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OrganizeImportsAction.java | try {
String message= ActionMessages.getString("OrganizeImportsAction.multi.status.description");
final MultiStatus status= new MultiStatus(JavaUI.ID_PLUGIN, Status.OK, message, null);
ProgressMonitorDialog dialog= new ProgressMonitorDialog(getShell());
dialog.run(false, true, new IRunnableWithProgress... |
14,891 | Bug 14891 NPE during organize imports | Build 20020425.3 java.lang.NullPointerException Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V java/lang/NullPointerException.<init>(Ljava/lang/String;)V org/eclipse/jdt/ui/actions/OrganizeImportsAction.setStatusBarMessage (Ljava/lang/String;)V org/eclipse/jdt/ui/actions/Orga... | resolved fixed | d8124c0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T12:08:21Z | 2002-04-30T09:46:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OrganizeImportsAction.java | monitor.beginTask(ActionMessages.getString("OrganizeImportsAction.multi.op.description"), cus.length);
try {
String[] prefOrder= ImportOrganizePreferencePage.getImportOrderPreference();
int threshold= ImportOrganizePreferencePage.getImportNumberThreshold();
boolean ignoreLowerCaseNames= ImportOrganizePrefer... |
14,891 | Bug 14891 NPE during organize imports | Build 20020425.3 java.lang.NullPointerException Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V java/lang/NullPointerException.<init>(Ljava/lang/String;)V org/eclipse/jdt/ui/actions/OrganizeImportsAction.setStatusBarMessage (Ljava/lang/String;)V org/eclipse/jdt/ui/actions/Orga... | resolved fixed | d8124c0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T12:08:21Z | 2002-04-30T09:46:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OrganizeImportsAction.java | status.add(new Status(Status.INFO, JavaUI.ID_PLUGIN, Status.ERROR, message, null));
} catch (CoreException e) {
JavaPlugin.log(e);
String message= ActionMessages.getFormattedString("OrganizeImportsAction.multi.error.unexpected", e.getMessage());
status.add(new Status(Status.ERROR, JavaUI.ID_PLU... |
14,891 | Bug 14891 NPE during organize imports | Build 20020425.3 java.lang.NullPointerException Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V java/lang/NullPointerException.<init>(Ljava/lang/String;)V org/eclipse/jdt/ui/actions/OrganizeImportsAction.setStatusBarMessage (Ljava/lang/String;)V org/eclipse/jdt/ui/actions/Orga... | resolved fixed | d8124c0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T12:08:21Z | 2002-04-30T09:46:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OrganizeImportsAction.java | }
OrganizeImportsOperation op= new OrganizeImportsOperation(cu, prefOrder, threshold, ignoreLowerCaseNames, !cu.isWorkingCopy(), doResolve, createChooseImportQuery());
BusyIndicatorRunnableContext context= new BusyIndicatorRunnableContext();
context.run(false, true, new WorkbenchRunnableAdapter(op));... |
14,891 | Bug 14891 NPE during organize imports | Build 20020425.3 java.lang.NullPointerException Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V java/lang/NullPointerException.<init>(Ljava/lang/String;)V org/eclipse/jdt/ui/actions/OrganizeImportsAction.setStatusBarMessage (Ljava/lang/String;)V org/eclipse/jdt/ui/actions/Orga... | resolved fixed | d8124c0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T12:08:21Z | 2002-04-30T09:46:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OrganizeImportsAction.java | }
private IChooseImportQuery createChooseImportQuery() {
return new IChooseImportQuery() {
public TypeInfo[] chooseImports(TypeInfo[][] openChoices, ISourceRange[] ranges) {
return doChooseImports(openChoices, ranges);
}
};
}
private TypeInfo[] doChooseImports(TypeInfo[][] openChoices, final ISour... |
14,891 | Bug 14891 NPE during organize imports | Build 20020425.3 java.lang.NullPointerException Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V java/lang/NullPointerException.<init>(Ljava/lang/String;)V org/eclipse/jdt/ui/actions/OrganizeImportsAction.setStatusBarMessage (Ljava/lang/String;)V org/eclipse/jdt/ui/actions/Orga... | resolved fixed | d8124c0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T12:08:21Z | 2002-04-30T09:46:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OrganizeImportsAction.java | Object[] array= (Object[]) res[i];
if (array.length > 0)
result[i]= (TypeInfo) array[0];
}
}
if (sel instanceof ITextSelection) {
ITextSelection textSelection= (ITextSelection) sel;
fEditor.selectAndReveal(textSelection.getOffset(), textSelection.getLength());
}
return result;
}
private... |
9,440 | Bug 9440 Duplicate non-qualified class names no handled by import generator | If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to c... | resolved fixed | 5105ba9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:15:35Z | 2002-02-12T05:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/AnonymousTypeCompletionProposal.java | package org.eclipse.jdt.internal.ui.text.java;
import org.eclipse.swt.graphics.Image;
import org.eclipse.jface.text.BadLocationException;
import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.IRegion;
import org.eclipse.jface.util.Assert;
import org.eclipse.core.runtime.CoreException;
import org.eclips... |
9,440 | Bug 9440 Duplicate non-qualified class names no handled by import generator | If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to c... | resolved fixed | 5105ba9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:15:35Z | 2002-02-12T05:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/AnonymousTypeCompletionProposal.java | private IType fDeclaringType;
private ICompilationUnit fCompilationUnit;
private ImportsStructure fImportStructure;
public AnonymousTypeCompletionProposal(IJavaProject jproject, ICompilationUnit cu, int start, int length, String constructorCompletion, String displayName, String declaringTypeName, int relevance) {
... |
9,440 | Bug 9440 Duplicate non-qualified class names no handled by import generator | If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to c... | resolved fixed | 5105ba9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:15:35Z | 2002-02-12T05:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/AnonymousTypeCompletionProposal.java | }
private IType getDeclaringType(IJavaProject project, String typeName) {
try {
return project.findType(typeName);
} catch (JavaModelException e) {
JavaPlugin.log(e);
}
return null;
}
/*
* @see JavaCompletionProposal#applyImports(IDocument)
*/
protected void applyImports(IDocument document) {
... |
9,440 | Bug 9440 Duplicate non-qualified class names no handled by import generator | If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to c... | resolved fixed | 5105ba9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:15:35Z | 2002-02-12T05:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/AnonymousTypeCompletionProposal.java | } else {
String[] prefOrder= ImportOrganizePreferencePage.getImportOrderPreference();
int threshold= ImportOrganizePreferencePage.getImportNumberThreshold();
fImportStructure= new ImportsStructure(fCompilationUnit, prefOrder, threshold, true);
}
String replacementString= getReplacementString(... |
9,440 | Bug 9440 Duplicate non-qualified class names no handled by import generator | If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to c... | resolved fixed | 5105ba9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:15:35Z | 2002-02-12T05:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/AnonymousTypeCompletionProposal.java | } catch (BadLocationException e) {
JavaPlugin.log(e);
} catch (CoreException e) {
JavaPlugin.log(e);
}
super.apply(document, trigger, offset);
}
private boolean createStubs(StringBuffer buf, ImportsStructure imports) throws JavaModelException {
if (fDeclaringType == null) {
return true;
}
C... |
9,440 | Bug 9440 Duplicate non-qualified class names no handled by import generator | If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to c... | resolved fixed | 5105ba9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:15:35Z | 2002-02-12T05:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProposal.java | package org.eclipse.jdt.internal.ui.text.java;
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
import org.eclipse.core.runtime.CoreException;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.graphics.Point;
import org.eclipse.jface.text.BadLocationException;
import org.eclipse.jface... |
9,440 | Bug 9440 Duplicate non-qualified class names no handled by import generator | If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to c... | resolved fixed | 5105ba9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:15:35Z | 2002-02-12T05:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProposal.java | private String fDisplayString;
private String fReplacementString;
private int fReplacementOffset;
private int fReplacementLength;
private int fCursorPosition;
private Image fImage;
private IContextInformation fContextInformation;
private int fContextInformationPosition;
private ProposalInfo fProposalInfo;
priv... |
9,440 | Bug 9440 Duplicate non-qualified class names no handled by import generator | If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to c... | resolved fixed | 5105ba9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:15:35Z | 2002-02-12T05:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProposal.java | public JavaCompletionProposal(String replacementString, int replacementOffset, int replacementLength, Image image, String displayString, int relevance) {
Assert.isNotNull(replacementString);
Assert.isTrue(replacementOffset >= 0);
Assert.isTrue(replacementLength >= 0);
fReplacementString= replacementString;
... |
9,440 | Bug 9440 Duplicate non-qualified class names no handled by import generator | If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to c... | resolved fixed | 5105ba9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:15:35Z | 2002-02-12T05:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProposal.java | * Sets the import declaration to import when applied.
* @param importDeclaration Optional import declaration to be added. Can be <code>null</code>. The underlying compilation unit
* is assumed to be compatible with the document passed in <code>apply</code>.
*/
public void setImportDeclaration(IImportDeclaration ... |
9,440 | Bug 9440 Duplicate non-qualified class names no handled by import generator | If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to c... | resolved fixed | 5105ba9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:15:35Z | 2002-02-12T05:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProposal.java | Assert.isTrue(cursorPosition >= 0);
fCursorPosition= cursorPosition;
fContextInformationPosition= (fContextInformation != null ? fCursorPosition : -1);
}
protected void applyImports(IDocument document) {
if (fImportDeclaration == null) {
return;
}
ICompilationUnit cu= (ICompilationUnit) fImportDecl... |
9,440 | Bug 9440 Duplicate non-qualified class names no handled by import generator | If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to c... | resolved fixed | 5105ba9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:15:35Z | 2002-02-12T05:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProposal.java | /*
* @see ICompletionProposalExtension#apply(IDocument, char, int)
*/
public void apply(IDocument document, char trigger, int offset) {
try {
int delta= offset - (fReplacementOffset + fReplacementLength);
if (delta > 0)
fReplacementLength += delta;
if (trigger == (char) 0) {
replace(... |
9,440 | Bug 9440 Duplicate non-qualified class names no handled by import generator | If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to c... | resolved fixed | 5105ba9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:15:35Z | 2002-02-12T05:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProposal.java | }
}
private void replace(IDocument document, int offset, int length, String string) throws BadLocationException {
if (!document.get(offset, length).equals(string))
document.replace(offset, length, string);
}
/*
* @see ICompletionProposal#apply
*/
public void apply(IDocument document) {
apply(docume... |
9,440 | Bug 9440 Duplicate non-qualified class names no handled by import generator | If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to c... | resolved fixed | 5105ba9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:15:35Z | 2002-02-12T05:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProposal.java | public Image getImage() {
return fImage;
}
/*
* @see ICompletionProposal#getDisplayString()
*/
public String getDisplayString() {
return fDisplayString;
}
/*
* @see ICompletionProposal#getAdditionalProposalInfo()
*/
public String getAdditionalProposalInfo() {
if (fProposalInfo != null) {
return f... |
9,440 | Bug 9440 Duplicate non-qualified class names no handled by import generator | If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to c... | resolved fixed | 5105ba9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:15:35Z | 2002-02-12T05:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProposal.java | }
/**
* Gets the replacement offset.
* @return Returns a int
*/
public int getReplacementOffset() {
return fReplacementOffset;
}
/**
* Sets the replacement offset.
* @param replacementOffset The replacement offset to set
*/
public void setReplacementOffset(int replacementOffset) {
Assert.isTrue(r... |
9,440 | Bug 9440 Duplicate non-qualified class names no handled by import generator | If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to c... | resolved fixed | 5105ba9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:15:35Z | 2002-02-12T05:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProposal.java | fReplacementLength= replacementLength;
}
/**
* Gets the replacement string.
* @return Returns a String
*/
public String getReplacementString() {
return fReplacementString;
}
/**
* Sets the replacement string.
* @param replacementString The replacement string to set
*/
public void setReplacementStrin... |
9,440 | Bug 9440 Duplicate non-qualified class names no handled by import generator | If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to c... | resolved fixed | 5105ba9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:15:35Z | 2002-02-12T05:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProposal.java | int replacementLength= fReplacementString == null ? 0 : fReplacementString.length();
if (offset > fReplacementOffset + replacementLength)
return false;
try {
int length= offset - fReplacementOffset;
String start= document.get(fReplacementOffset, length);
return fReplacementString.substring(0, length... |
9,440 | Bug 9440 Duplicate non-qualified class names no handled by import generator | If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to c... | resolved fixed | 5105ba9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:15:35Z | 2002-02-12T05:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/MethodStubCompletionProposal.java | package org.eclipse.jdt.internal.ui.text.java;
import org.eclipse.jface.text.BadLocationException;
import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.IRegion;
import org.eclipse.jface.util.Assert;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.jdt.core.Flags;
import org.eclipse.jd... |
9,440 | Bug 9440 Duplicate non-qualified class names no handled by import generator | If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to c... | resolved fixed | 5105ba9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:15:35Z | 2002-02-12T05:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/MethodStubCompletionProposal.java | private String fTypeName;
private String fMethodName;
private String[] fParamTypes;
private ICompilationUnit fCompilationUnit;
private IJavaProject fJavaProject;
private ImportsStructure fImportStructure;
public MethodStubCompletionProposal(IJavaProject jproject, ICompilationUnit cu, String declaringTypeName, S... |
9,440 | Bug 9440 Duplicate non-qualified class names no handled by import generator | If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to c... | resolved fixed | 5105ba9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:15:35Z | 2002-02-12T05:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/MethodStubCompletionProposal.java | /*
* @see JavaCompletionProposal#applyImports(IDocument)
*/
protected void applyImports(IDocument document) {
if (fImportStructure != null) {
try {
fImportStructure.create(false, null);
} catch (CoreException e) {
JavaPlugin.log(e);
}
}
}
/*
* @see ICompletionProposalExtension#apply(IDocum... |
9,440 | Bug 9440 Duplicate non-qualified class names no handled by import generator | If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to c... | resolved fixed | 5105ba9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:15:35Z | 2002-02-12T05:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/MethodStubCompletionProposal.java | }
settings.noBody= (definingType != null) && definingType.isInterface();
settings.callSuper= declaringType.isClass() && !Flags.isAbstract(method.getFlags()) && !Flags.isStatic(method.getFlags());
settings.methodOverwrites= !Flags.isStatic(method.getFlags());
String stub= StubUtility.genStub(fTypeNam... |
9,440 | Bug 9440 Duplicate non-qualified class names no handled by import generator | If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to c... | resolved fixed | 5105ba9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:15:35Z | 2002-02-12T05:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ResultCollector.java | package org.eclipse.jdt.internal.ui.text.java;
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
import java.util.ArrayList;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.graphics.Point;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jdt.core.CompletionReque... |
9,440 | Bug 9440 Duplicate non-qualified class names no handled by import generator | If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to c... | resolved fixed | 5105ba9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:15:35Z | 2002-02-12T05:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ResultCollector.java | private final static char[] METHOD_WITH_ARGUMENTS_TRIGGERS= new char[] { '(', '-', ' ' };
private final static char[] METHOD_TRIGGERS= new char[] { ';', ',', '.', '\t', '[', ' ' };
private final static char[] TYPE_TRIGGERS= new char[] { '.', '\t', '[', '(', ' ' };
private final static char[] VAR_TRIGGER= new char[] ... |
9,440 | Bug 9440 Duplicate non-qualified class names no handled by import generator | If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to c... | resolved fixed | 5105ba9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:15:35Z | 2002-02-12T05:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ResultCollector.java | * When eating is enabled, JavaCompletionProposal must be revisited: PR #5533
*/
private boolean fPreventEating= true;
/*
* @see ICompletionRequestor#acceptClass
*/
public void acceptClass(char[] packageName, char[] typeName, char[] completionName, int modifiers, int start, int end, int relevance) {
Image... |
9,440 | Bug 9440 Duplicate non-qualified class names no handled by import generator | If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to c... | resolved fixed | 5105ba9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:15:35Z | 2002-02-12T05:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ResultCollector.java | StringBuffer nameBuffer= new StringBuffer();
nameBuffer.append(name);
if (typeName.length > 0) {
nameBuffer.append(" ");
nameBuffer.append(typeName);
}
if (declaringTypeName != null && declaringTypeName.length > 0) {
nameBuffer.append(" - ");
nameBuffer.append(declaringTypeName);
}
JavaC... |
9,440 | Bug 9440 Duplicate non-qualified class names no handled by import generator | If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to c... | resolved fixed | 5105ba9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:15:35Z | 2002-02-12T05:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ResultCollector.java | /*
* @see ICompletionRequestor#acceptAnonymousType
*/
public void acceptAnonymousType(char[] superTypePackageName, char[] superTypeName, char[][] parameterPackageNames, char[][] parameterTypeNames, char[][] parameterNames,
char[] completionName, int modifiers, int completionStart, int completionEnd, int relevanc... |
9,440 | Bug 9440 Duplicate non-qualified class names no handled by import generator | If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to c... | resolved fixed | 5105ba9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:15:35Z | 2002-02-12T05:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ResultCollector.java | StringBuffer buf= new StringBuffer();
buf.append(name);
if (typeName != null) {
buf.append(" ");
buf.append(typeName);
}
JavaCompletionProposal proposal= createCompletion(start, end, new String(name), null, buf.toString(), relevance);
proposal.setTriggerCharacters(VAR_TRIGGER);
fVariables.add(prop... |
9,440 | Bug 9440 Duplicate non-qualified class names no handled by import generator | If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to c... | resolved fixed | 5105ba9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:15:35Z | 2002-02-12T05:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ResultCollector.java | * @see ICompletionRequestor#acceptMethod
*/
public void acceptMethod(char[] declaringTypePackageName, char[] declaringTypeName, char[] name,
char[][] parameterPackageNames, char[][] parameterTypeNames, char[][] parameterNames,
char[] returnTypePackageName, char[] returnTypeName, char[] completionName, int modifi... |
9,440 | Bug 9440 Duplicate non-qualified class names no handled by import generator | If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to c... | resolved fixed | 5105ba9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:15:35Z | 2002-02-12T05:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ResultCollector.java | }
/*
* @see ICompletionRequestor#acceptModifier
*/
public void acceptModifier(char[] modifier, int start, int end, int relevance) {
String mod= new String(modifier);
fModifiers.add(createCompletion(start, end, mod, null, mod, relevance));
}
/*
* @see ICompletionRequestor#acceptPackage
*/
public v... |
9,440 | Bug 9440 Duplicate non-qualified class names no handled by import generator | If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to c... | resolved fixed | 5105ba9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:15:35Z | 2002-02-12T05:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ResultCollector.java | StringBuffer typeName= new StringBuffer();
if (declaringTypePackageName.length > 0) {
typeName.append(declaringTypePackageName);
typeName.append('.');
}
typeName.append(declaringTypeName);
String[] paramTypes= new String[parameterTypeNames.length];
for (int i= 0; i < parameterTypeNames.length; i++) {... |
9,440 | Bug 9440 Duplicate non-qualified class names no handled by import generator | If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to c... | resolved fixed | 5105ba9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:15:35Z | 2002-02-12T05:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ResultCollector.java | JavaCompletionProposal proposal= createCompletion(start, end, new String(completionName), null, buf.toString(), relevance);
proposal.setTriggerCharacters(VAR_TRIGGER);
fVariables.add(proposal);
}
public String getErrorMessage() {
if (fLastProblem != null)
return fLastProblem.getMessage();
return "";
}... |
9,440 | Bug 9440 Duplicate non-qualified class names no handled by import generator | If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to c... | resolved fixed | 5105ba9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:15:35Z | 2002-02-12T05:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ResultCollector.java | private StringBuffer getMethodDisplayString(char[] declaringTypeName, char[] name, char[][] parameterTypeNames, char[][] parameterNames, char[] returnTypeName) {
StringBuffer nameBuffer= new StringBuffer();
nameBuffer.append(name);
nameBuffer.append('(');
if (parameterTypeNames != null && parameterTypeNames.len... |
9,440 | Bug 9440 Duplicate non-qualified class names no handled by import generator | If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to c... | resolved fixed | 5105ba9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:15:35Z | 2002-02-12T05:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ResultCollector.java | StringBuffer nameBuffer= new StringBuffer();
nameBuffer.append(declaringTypeName);
nameBuffer.append('(');
if (parameterTypeNames.length > 0) {
nameBuffer.append(getParameterSignature(parameterTypeNames, parameterNames));
}
nameBuffer.append(')');
nameBuffer.append(" ");
nameBuffer.append(JavaTextMes... |
9,440 | Bug 9440 Duplicate non-qualified class names no handled by import generator | If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to c... | resolved fixed | 5105ba9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:15:35Z | 2002-02-12T05:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ResultCollector.java | buf.append(JavaTextMessages.getString("ResultCollector.default_package"));
}
}
String name= buf.toString();
JavaCompletionProposal proposal= createCompletion(start, end, completion, descriptor, name, relevance);
proposal.setImportDeclaration(importDeclaration);
proposal.setProposalInfo(proposalInfo);
... |
9,440 | Bug 9440 Duplicate non-qualified class names no handled by import generator | If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to c... | resolved fixed | 5105ba9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:15:35Z | 2002-02-12T05:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ResultCollector.java | return new JavaElementImageDescriptor(descriptor, JavaElementImageDescriptor.WARNING, size);
}
protected JavaCompletionProposal createCompletion(int start, int end, String completion, ImageDescriptor descriptor, String name, int relevance) {
Image icon= (descriptor == null) ? null : fRegistry.get(descriptor)... |
9,440 | Bug 9440 Duplicate non-qualified class names no handled by import generator | If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to c... | resolved fixed | 5105ba9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:15:35Z | 2002-02-12T05:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ResultCollector.java | public void reset(int codeAssistOffset, IJavaProject jproject, ICompilationUnit cu) {
fJavaProject= jproject;
fCompilationUnit= cu;
fCodeAssistOffset= codeAssistOffset;
fUserReplacementLength= -1;
fLastProblem= null;
for (int i= 0; i < fResults.length; i++)
fResults[i].clear();
}
/**
* If ... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | /*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
package org.eclipse.jdt.internal.ui.browsing;
import java.util.Collection;
import java.util.Comparator;
import java.util.Iterator;
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resource... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | import org.eclipse.swt.events.KeyAdapter;
import org.eclipse.swt.events.KeyEvent;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Menu;
import org.eclipse.swt.widgets.Shell;
im... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | import org.eclipse.jface.viewers.StructuredViewer;
import org.eclipse.ui.IActionBars;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.IFileEditorInput;
import org.eclipse.ui.IMemento;
import org.eclipse.ui.IPartListener;
import org.eclipse.ui.ISelectionListener;
import org.e... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | import org.eclipse.jdt.ui.IContextMenuConstants;
import org.eclipse.jdt.ui.IWorkingCopyManager;
import org.eclipse.jdt.ui.JavaElementLabelProvider;
import org.eclipse.jdt.ui.JavaElementSorter;
import org.eclipse.jdt.ui.JavaUI;
import org.eclipse.jdt.ui.actions.CCPActionGroup;
import org.eclipse.jdt.ui.actions.GenerateA... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | import org.eclipse.jdt.internal.ui.search.JavaSearchGroup;
import org.eclipse.jdt.internal.ui.util.JavaUIHelp;
import org.eclipse.jdt.internal.ui.viewsupport.BaseJavaElementContentProvider;
import org.eclipse.jdt.internal.ui.viewsupport.IProblemChangedListener;
import org.eclipse.jdt.internal.ui.viewsupport.JavaElement... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | private Image fOriginalTitleImage;
private WorkingSetFilterActionGroup fWorkingSetFilterActionGroup;
private CCPActionGroup fCCPActionGroup;
/*
* Ensure selection changed events being processed only if
* initiated by user interaction with this part.
*/
private boolean fProcessSelectionEvents= true;
pri... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | /*
* Implements method from IViewPart.
*/
public void saveState(IMemento memento) {
if (fViewer == null) {
if (fMemento != null)
memento.putMemento(fMemento);
return;
}
fWorkingSetFilterActionGroup.saveState(memento);
}
protected void restoreState(IMemento memento) {
fWorkingSetFilterActi... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | fTitleProvider= createTitleProvider();
MenuManager menuMgr= new MenuManager("#PopupMenu");
menuMgr.setRemoveAllWhenShown(true);
menuMgr.addMenuListener(this);
fContextMenu= menuMgr.createContextMenu(fViewer.getControl());
fViewer.getControl().setMenu(fContextMenu);
getSite().registerContextMenu(menuMgr,... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | setInitialSelection();
getViewSite().getWorkbenchWindow().getSelectionService().addSelectionListener(this);
getViewSite().getPage().addPartListener(fPartListener);
fillActionBars();
setHelp();
}
private void initDragAndDrop() {
int ops= DND.DROP_COPY | DND.DROP_MOVE;
Transfer[] transfers= new ... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | source.addDragListener(new DelegatingDragAdapter(dragListeners) {
public void dragStart(DragSourceEvent event) {
IStructuredSelection selection= (IStructuredSelection)getSelectionProvider().getSelection();
for (Iterator iter= selection.iterator(); iter.hasNext(); ) {
if (iter.next() instanceof IMember) ... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | fBuildGroup.fillActionBars(actionBars);
}
public void setFocus() {
fViewer.getControl().setFocus();
}
public void dispose() {
if (fViewer != null) {
JavaPlugin.getDefault().getProblemMarkerManager().removeListener((IProblemChangedListener)fViewer);
getViewSite().getWorkbenchWindow().getSelectionS... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | }
protected void handleKeyReleased(KeyEvent event) {
if (event.stateMask != 0)
return;
int key= event.keyCode;
if (key == SWT.F5) {
fRefreshAction.selectionChanged(
(IStructuredSelection) fViewer.getSelection());
if (fRefreshAction.isEnabled())
fRefreshAction.run();
} if (event.character... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | fPropertyDialogAction.selectionChanged(selection);
MenuManager newMenu= new MenuManager(PackagesMessages.getString("PackageExplorer.new"));
menu.appendToGroup(IContextMenuConstants.GROUP_NEW, newMenu);
new NewWizardMenu(newMenu, getSite().getWorkbenchWindow(), false);
fOpenAction.update();
if (fOpenAction... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | }
if (!(element instanceof IContainer))
return;
menu.appendToGroup(
IContextMenuConstants.GROUP_OPEN,
new PatchedOpenInNewWindowAction(getSite().getWorkbenchWindow(), (IContainer)element));
}
private void createActions() {
ISelectionProvider provider= getSelectionProvider();
fOpenAction= new OpenAct... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | IPropertyChangeListener titleUpdater= new IPropertyChangeListener() {
public void propertyChange(PropertyChangeEvent event) {
String property= event.getProperty();
if (IWorkbenchPage.CHANGE_WORKING_SET_REPLACE.equals(property))
updateTitle();
else if (IWorkingSet.CHANGE_WORKING_SET_NAME_CHANGE.equal... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | * Used in this class, and in the actions.
*/
private Shell getShell() {
return fViewer.getControl().getShell();
}
protected final Display getDisplay() {
return fViewer.getControl().getDisplay();
}
/**
* Returns the selection provider.
*/
ISelectionProvider getSelectionProvider() {
return fViewer;
}
... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | if (element == null)
return false;
element= getSuitableJavaElement(element);
if (element == null)
return false;
Object input= getViewer().getInput();
if (input == null)
return false;
if (input instanceof Collection)
return ((Collection)input).contains(element);
else
return input.equals(elemen... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | return true;
}
protected boolean isAncestorOf(Object ancestor, Object element) {
if (element instanceof IJavaElement && ancestor instanceof IJavaElement)
return !element.equals(ancestor) && internalIsAncestorOf((IJavaElement)ancestor, (IJavaElement)element);
return false;
}
private boolean internalIsAncest... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | setSelection(new StructuredSelection(elementToSelect), true);
fPreviousSelectionProvider= part;
return;
}
if (part != fPreviousSelectionProvider && selectedElement != null && !selectedElement.equals(currentInput) && isInputResetBy(selectedElement, currentInput, part)) {
if (!isAncestorOf(selectedElem... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | else if (input instanceof Collection) {
if (((Collection)input).isEmpty())
setTitleImage(fOriginalTitleImage);
else {
Object firstElement= ((Collection)input).iterator().next();
setTitleImage(fTitleProvider.getImage(firstElement));
}
} else
setTitleImage(fTitleProvider.getImage(input));
setV... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | result= getConfigurationElement().getAttribute("name");
} else {
result= path.makeRelative().toString();
}
}
if (fWorkingSetFilterActionGroup == null || fWorkingSetFilterActionGroup.getWorkingSet() == null)
return result;
IWorkingSet ws= fWorkingSetFilterActionGroup.getWorkingSet();
String wsst... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | }
protected final StructuredViewer getViewer() {
return fViewer;
}
protected ILabelProvider createLabelProvider() {
return new StandardJavaUILabelProvider(
StandardJavaUILabelProvider.DEFAULT_TEXTFLAGS,
StandardJavaUILabelProvider.DEFAULT_IMAGEFLAGS | JavaElementImageProvider.SMALL_ICONS,
Stand... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | return JavaElementLabelProvider.SHOW_BASICS | JavaElementLabelProvider.SHOW_OVERLAY_ICONS |
JavaElementLabelProvider.SHOW_SMALL_ICONS | JavaElementLabelProvider.SHOW_VARIABLE | JavaElementLabelProvider.SHOW_PARAMETERS;
}
/**
* Adds filters the viewer of this part.
*/
protected void addFilters() {
}
/**
... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | ISelection selection= getSite().getPage().getSelection();
if (selection != null && !selection.isEmpty())
input= getSingleElementFromSelection(selection);
else {
input= getSite().getPage().getInput();
if (!(input instanceof IJavaElement)) {
if (input instanceof IAdaptable)
input= ((IAdaptable)i... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | public void selectionChanged(SelectionChangedEvent event) {
if (!fProcessSelectionEvents)
return;
if (JavaBrowsingPreferencePage.openEditorOnSingleClick())
new ShowInEditorAction().run(event.getSelection(), getSite().getPage());
else if (JavaBrowsingPart.this.equals(getSite().getPage().getActivePa... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | setSelection(StructuredSelection.EMPTY, true);
}
/**
* Finds the closest Java element which can be used as input for
* this part and has the given Java element as child
*
* @param je the Java element for which to search the closest input
* @return the closest Java element used as input for this part
*/... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | private Object getSingleElementFromSelection(ISelection selection) {
if (!(selection instanceof StructuredSelection) || selection.isEmpty())
return null;
Iterator iter= ((StructuredSelection)selection).iterator();
Object firstElement= iter.next();
if (!(firstElement instanceof IJavaElement)) {
if (firs... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | /**
* Gets the typeComparator.
* @return Returns a JavaElementTypeComparator
*/
protected Comparator getTypeComparator() {
return fTypeComparator;
}
/**
* Links to editor (if option enabled)
*/
private void linkToEditor(IStructuredSelection selection) {
if (selection == null || selection.isEmpty())
... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | for (int i= 0; i < editorArray.length; ++i) {
IEditorPart editor= editorArray[i];
Object input= getElementOfInput(editor.getEditorInput());
if (input != null && input.equals(element)) {
page.bringToTop(editor);
if (obj instanceof IJavaElement)
EditorUtility.revealInEditor(editor, (IJav... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | return;
}
}
if (ei instanceof IFileEditorInput) {
IFile file= ((IFileEditorInput)ei).getFile();
IJavaElement je= (IJavaElement)file.getAdapter(IJavaElement.class);
if (je == null) {
setSelection(null, false);
return;
}
adjustInputAndSetSelection(je);
} else if (ei instanceof I... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | }
private IResource getResourceFor(Object element) {
if (element instanceof IJavaElement) {
if (element instanceof IWorkingCopy) {
IWorkingCopy wc= (IWorkingCopy)element;
IJavaElement original= wc.getOriginalElement();
if (original != null)
element= original;
}
try {
element= ((IJavaE... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | */
protected static IJavaElement getWorkingCopy(IJavaElement input) {
try {
if (input instanceof ICompilationUnit)
return EditorUtility.getWorkingCopy((ICompilationUnit)input);
else
return EditorUtility.getWorkingCopy(input, false);
} catch (JavaModelException ex) {
}
return null;
}
/**
* Ret... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | */
protected static ICompilationUnit getCompilationUnit(IJavaElement element) {
if (element == null)
return null;
if (element instanceof IMember)
return ((IMember) element).getCompilationUnit();
int type= element.getElementType();
if (IJavaElement.COMPILATION_UNIT == type)
return (ICompilationU... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | return element;
if (((BaseJavaElementContentProvider)getViewer().getContentProvider()).getProvideWorkingCopy()) {
IJavaElement wc= getWorkingCopy(element);
if (wc != null)
element= wc;
return element;
}
else {
ICompilationUnit cu= getCompilationUnit(element);
if (cu != null && ((IWorkingCopy)cu... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | unit.reconcile();
return unit.getElementAt(offset);
} catch (JavaModelException ex) {
}
return null;
}
protected IType getTypeForCU(ICompilationUnit cu) {
cu= (ICompilationUnit)getSuitableJavaElement(cu);
IType primaryType= cu.findPrimaryType();
if (primaryType != null)
return primaryType... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerActionGroup.java | /*******************************************************************************
* Copyright (c) 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 accompanies this... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerActionGroup.java | import org.eclipse.swt.widgets.Shell;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.IToolBarManager;
import org.eclipse.jface.action.MenuManager;
import org.eclipse.jface.action.Separator;
import org.eclipse.jface.util.IPropertyChangeListener;
imp... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerActionGroup.java | import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jdt.ui.IContextMenuConstants;
import org.eclipse.jdt.ui.JavaUI;
import org.eclipse.jdt.ui.actions.BuildActionGroup;
import org.eclipse.jdt.ui.actions.CCPActionGroup;
import org.eclipse.jdt.ui.actions.GenerateActionGroup;
import org.eclipse.jdt.ui.action... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerActionGroup.java | private MemberFilterActionGroup fMemberFilterActionGroup;
private ShowLibrariesAction fShowLibrariesAction;
private FilterSelectionAction fFilterAction;
public PackageExplorerActionGroup(PackageExplorerPart part) {
super();
fPart= part;
Shell shell= fPart.getSite().getShell();
setGroups(new ActionGroup[... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerActionGroup.java | fMemberFilterActionGroup= new MemberFilterActionGroup(fPart.getViewer(), "PackageView");
fShowLibrariesAction = new ShowLibrariesAction(fPart, PackagesMessages.getString("PackageExplorer.referencedLibs"));
fFilterAction = new FilterSelectionAction(shell, fPart, PackagesMessages.getString("PackageExplorer.... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerActionGroup.java | actionBars.setGlobalActionHandler(JdtActionConstants.GOTO_PACKAGE, fGotoPackageAction);
}
void fillToolBar(IToolBarManager toolBar) {
toolBar.removeAll();
toolBar.add(fBackAction);
toolBar.add(fForwardAction);
toolBar.add(fUpAction);
if (JavaBasePreferencePage.showCompilationUnitChildren()) {
tool... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerActionGroup.java | IJavaElement jElement= element instanceof IJavaElement ? (IJavaElement)element : null;
if (size == 1 && isNewTarget(jElement)) {
IMenuManager newMenu= new MenuManager(PackagesMessages.getString("PackageExplorer.new"));
menu.appendToGroup(IContextMenuConstants.GROUP_NEW, newMenu);
new NewWizardMenu(newMen... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerActionGroup.java | private boolean isNewTarget(IJavaElement element) {
if (element == null)
return false;
int type= element.getElementType();
return type == IJavaElement.JAVA_PROJECT ||
type == IJavaElement.PACKAGE_FRAGMENT_ROOT ||
type == IJavaElement.PACKAGE_FRAGMENT;
}
private boolean isGoIntoTarget(Object element)... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerActionGroup.java | menu.appendToGroup(
IContextMenuConstants.GROUP_OPEN,
new OpenInNewWindowAction(fPart.getSite().getWorkbenchWindow(), (IContainer)element));
}
void handleDoubleClick(DoubleClickEvent event) {
OpenAction openAction= fNavigateActionGroup.getOpenAction();
if (openAction != null && openAction.isEnabled()) {... |
14,898 | Bug 14898 working set class cast exception | 20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplor... | resolved fixed | 18ba29a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T14:37:43Z | 2002-04-30T12:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerActionGroup.java | if (event.keyCode == SWT.F5) {
RefreshAction action= fBuildActionGroup.getRefreshAction();
if (action.isEnabled())
action.run();
} else if (event.character == SWT.DEL) {
IAction delete= fCCPActionGroup.getDeleteAction();
if (delete.isEnabled())
delete.run();
}
}
private IPropertyChangeListen... |
14,409 | Bug 14409 Hardcoded usage of \t for indent | Build 20020418 While fixing the indent problem for extract method I did a search for \t in JDT UI. The following classes are IMO suspicious regarding their usage of \t JavaAutoIndentStrategy.java NLSLine.java NLSRefactoring.java StubUtility.java SurroundWithTryCatchRefactoring.java | resolved fixed | 67596b4 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T17:28:30Z | 2002-04-23T13:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java | package org.eclipse.jdt.internal.ui.text.java;
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
import org.eclipse.jface.text.BadLocationException;
import org.eclipse.jface.text.DefaultAutoIndentStrategy;
import org.eclipse.jface.text.DocumentCommand;
import org.eclipse.jface.text.IDocument;
import... |
14,409 | Bug 14409 Hardcoded usage of \t for indent | Build 20020418 While fixing the indent problem for extract method I did a search for \t in JDT UI. The following classes are IMO suspicious regarding their usage of \t JavaAutoIndentStrategy.java NLSLine.java NLSRefactoring.java StubUtility.java SurroundWithTryCatchRefactoring.java | resolved fixed | 67596b4 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T17:28:30Z | 2002-04-23T13:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java | public JavaAutoIndentStrategy() {
}
protected int findMatchingOpenBracket(IDocument d, int line, int end, int closingBracketIncrease) throws BadLocationException {
int start= d.getLineOffset(line);
int brackcount= getBracketCount(d, start, end, false) - closingBracketIncrease;
while (brackcount < 0) {
... |
14,409 | Bug 14409 Hardcoded usage of \t for indent | Build 20020418 While fixing the indent problem for extract method I did a search for \t in JDT UI. The following classes are IMO suspicious regarding their usage of \t JavaAutoIndentStrategy.java NLSLine.java NLSRefactoring.java StubUtility.java SurroundWithTryCatchRefactoring.java | resolved fixed | 67596b4 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T17:28:30Z | 2002-04-23T13:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java | while (start < end) {
char curr= d.getChar(start);
start++;
switch (curr) {
case '/' :
if (start < end) {
char next= d.getChar(start);
if (next == '*') {
start= getCommentEnd(d, start + 1, end);
} else if (next == '/') {
start= end;
}
}
... |
14,409 | Bug 14409 Hardcoded usage of \t for indent | Build 20020418 While fixing the indent problem for extract method I did a search for \t in JDT UI. The following classes are IMO suspicious regarding their usage of \t JavaAutoIndentStrategy.java NLSLine.java NLSRefactoring.java StubUtility.java SurroundWithTryCatchRefactoring.java | resolved fixed | 67596b4 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T17:28:30Z | 2002-04-23T13:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java | case '}' :
if (!ignoreCloseBrackets) {
bracketcount--;
}
break;
case '"' :
case '\'' :
start= getStringEnd(d, start, end, curr);
break;
default :
}
}
return bracketcount;
}
private int getCommentEnd(IDocument d, int pos, int end) throws BadLocationException {
wh... |
14,409 | Bug 14409 Hardcoded usage of \t for indent | Build 20020418 While fixing the indent problem for extract method I did a search for \t in JDT UI. The following classes are IMO suspicious regarding their usage of \t JavaAutoIndentStrategy.java NLSLine.java NLSRefactoring.java StubUtility.java SurroundWithTryCatchRefactoring.java | resolved fixed | 67596b4 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T17:28:30Z | 2002-04-23T13:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java | int end= start + d.getLineLength(line) - 1;
int whiteend= findEndOfWhiteSpace(d, start, end);
return d.get(start, whiteend - start);
} else {
return "";
}
}
private int getStringEnd(IDocument d, int pos, int end, char ch) throws BadLocationException {
while (pos < end) {
char curr= d.getChar(pos);
... |
14,409 | Bug 14409 Hardcoded usage of \t for indent | Build 20020418 While fixing the indent problem for extract method I did a search for \t in JDT UI. The following classes are IMO suspicious regarding their usage of \t JavaAutoIndentStrategy.java NLSLine.java NLSRefactoring.java StubUtility.java SurroundWithTryCatchRefactoring.java | resolved fixed | 67596b4 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T17:28:30Z | 2002-04-23T13:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java | int indLine= findMatchingOpenBracket(d, line, c.offset, 1);
if (indLine != -1 && indLine != line) {
StringBuffer replaceText= new StringBuffer(getIndentOfLine(d, indLine));
replaceText.append(d.get(whiteend, c.offset - whiteend));
replaceText.append(c.text);
c.length += c.offse... |
14,409 | Bug 14409 Hardcoded usage of \t for indent | Build 20020418 While fixing the indent problem for extract method I did a search for \t in JDT UI. The following classes are IMO suspicious regarding their usage of \t JavaAutoIndentStrategy.java NLSLine.java NLSRefactoring.java StubUtility.java SurroundWithTryCatchRefactoring.java | resolved fixed | 67596b4 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T17:28:30Z | 2002-04-23T13:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java | }
buf.append(getIndentOfLine(d, indLine));
} else {
int start= d.getLineOffset(line);
IDocumentPartitioner partitioner= d.getDocumentPartitioner();
if (partitioner != null) {
ITypedRegion region= partitioner.getPartition(start);
if (JavaPartitionScanner.JAVA_DOC.equals(region.getType()... |
14,409 | Bug 14409 Hardcoded usage of \t for indent | Build 20020418 While fixing the indent problem for extract method I did a search for \t in JDT UI. The following classes are IMO suspicious regarding their usage of \t JavaAutoIndentStrategy.java NLSLine.java NLSRefactoring.java StubUtility.java SurroundWithTryCatchRefactoring.java | resolved fixed | 67596b4 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-04-30T17:28:30Z | 2002-04-23T13:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java | }
return String.valueOf('\t');
}
/**
* Returns whether the text ends with one of the given search strings.
*/
private boolean endsWithDelimiter(IDocument d, String txt) {
String[] delimiters= d.getLegalLineDelimiters();
for (int i= 0; i < delimiters.length; i++) {
if (txt.endsWith(delimiters[i]... |
14,975 | Bug 14975 Resource exception while running plug-in import | Build 20020430 Started from a full-source Eclipse workspace 20020425, which I upgraded into a 20020430 one (first imported existing library projects - apache, xerces, etc) then selected all other projects (but jdt/core) as source ones). Got the following exception. !ENTRY org.eclipse.jdt.ui 4 1 Wed May 01 01:26:10 CEST... | resolved fixed | de1d940 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-01T10:02:57Z | 2002-04-30T23:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/ErrorTickAdornmentProvider.java | package org.eclipse.jdt.internal.ui.viewsupport;
import java.util.Iterator;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IMarker;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.jface.text.Position;
import org.eclipse.jface.tex... |
14,975 | Bug 14975 Resource exception while running plug-in import | Build 20020430 Started from a full-source Eclipse workspace 20020425, which I upgraded into a 20020430 one (first imported existing library projects - apache, xerces, etc) then selected all other projects (but jdt/core) as source ones). Got the following exception. !ENTRY org.eclipse.jdt.ui 4 1 Wed May 01 01:26:10 CEST... | resolved fixed | de1d940 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-01T10:02:57Z | 2002-04-30T23:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/ErrorTickAdornmentProvider.java | return 0;
}
int type= element.getElementType();
switch (type) {
case IJavaElement.JAVA_PROJECT:
case IJavaElement.PACKAGE_FRAGMENT_ROOT:
return getErrorTicksFromMarkers(element.getCorrespondingResource(), IResource.DEPTH_INFINITE, null);
case IJavaElement.PACKAGE_FRAGMENT:
cas... |
14,975 | Bug 14975 Resource exception while running plug-in import | Build 20020430 Started from a full-source Eclipse workspace 20020425, which I upgraded into a 20020430 one (first imported existing library projects - apache, xerces, etc) then selected all other projects (but jdt/core) as source ones). Got the following exception. !ENTRY org.eclipse.jdt.ui 4 1 Wed May 01 01:26:10 CEST... | resolved fixed | de1d940 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-01T10:02:57Z | 2002-04-30T23:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/ErrorTickAdornmentProvider.java | }
} else if (obj instanceof IResource) {
return getErrorTicksFromMarkers((IResource) obj, IResource.DEPTH_INFINITE, null);
}
} catch (CoreException e) {
JavaPlugin.log(e);
}
return 0;
}
/*
* @see IAdornmentProvider#dispose()
*/
public void dispose() {
}
private int getErrorTicksFromMark... |
14,975 | Bug 14975 Resource exception while running plug-in import | Build 20020430 Started from a full-source Eclipse workspace 20020425, which I upgraded into a 20020430 one (first imported existing library projects - apache, xerces, etc) then selected all other projects (but jdt/core) as source ones). Got the following exception. !ENTRY org.eclipse.jdt.ui 4 1 Wed May 01 01:26:10 CEST... | resolved fixed | de1d940 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-01T10:02:57Z | 2002-04-30T23:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/ErrorTickAdornmentProvider.java | } else if (priority == IMarker.SEVERITY_ERROR) {
info= ERRORTICK_ERROR;
}
}
}
}
return info;
}
private boolean isMarkerInRange(IMarker marker, ISourceRange range) throws CoreException {
if (marker.isSubtypeOf(IMarker.TEXT)) {
int pos= marker.getAttribute(IMarker.CHAR_START, -1);
int... |
14,975 | Bug 14975 Resource exception while running plug-in import | Build 20020430 Started from a full-source Eclipse workspace 20020425, which I upgraded into a 20020430 one (first imported existing library projects - apache, xerces, etc) then selected all other projects (but jdt/core) as source ones). Got the following exception. !ENTRY org.eclipse.jdt.ui 4 1 Wed May 01 01:26:10 CEST... | resolved fixed | de1d940 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-01T10:02:57Z | 2002-04-30T23:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/ErrorTickAdornmentProvider.java | Annotation curr= (Annotation) iter.next();
IMarker marker= isAnnotationInRange(model, curr, range);
if (marker != null) {
int priority= marker.getAttribute(IMarker.SEVERITY, -1);
if (priority == IMarker.SEVERITY_WARNING) {
info= ERRORTICK_WARNING;
} else if (priority == IMarker.SEVERITY_ERR... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.