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
5,062
Bug 5062 Walkback in Synchronize clicking on 'Two way compare (ignore ancestor)'
- Load a java project from a repository - Edit several java files in the project, deleting several methods (I am not sure if it is important, but there were methods added as well) - Synchronize - Double-click on the first modified java file so you can see the Structured Compare view - Now click on the 'Two way compare ...
resolved fixed
180e359
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T09:58:43Z
2001-10-18T01:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/ProblemItemMapper.java
} /** * Clears the map. */ public void clearMap() { fPathToItem.clear(); } /** * Method that decides which elements can have error markers * Returns null if an element can not have error markers. */ private static IPath getCorrespondingPath(Object element) { if (element instanceof IJavaElement) ...
5,062
Bug 5062 Walkback in Synchronize clicking on 'Two way compare (ignore ancestor)'
- Load a java project from a repository - Edit several java files in the project, deleting several methods (I am not sure if it is important, but there were methods added as well) - Synchronize - Double-click on the first modified java file so you can see the Structured Compare view - Now click on the 'Two way compare ...
resolved fixed
180e359
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T09:58:43Z
2001-10-18T01:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/ProblemItemMapper.java
case IJavaElement.PACKAGE_FRAGMENT_ROOT: IPackageFragmentRoot root= (IPackageFragmentRoot)elem; if (!root.isArchive()) { return root.getPath(); } return null; case IJavaElement.PACKAGE_FRAGMENT: String packName= elem.getElementName(); IPath rootPath= getCorrespondingPath(elem.getParent()...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProcessor.java
package org.eclipse.jdt.internal.ui.text.java; /* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ import org.eclipse.jdt.core.ICompilationUnit; import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jdt.internal.ui.JavaPlugin; import org.eclipse.jdt.internal.ui.text.template.TemplateEngin...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProcessor.java
private IEditorPart fEditor; private ResultCollector fCollector; private IWorkingCopyManager fManager; private IContextInformationValidator fValidator; private TemplateEngine fTemplateEngine; public JavaCompletionProcessor(IEditorPart editor) { fEditor= editor; fCollector= new ResultCollector(); fManager...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProcessor.java
* @see IContentAssistProcessor#getContextInformationAutoActivationCharacters() */ public char[] getContextInformationAutoActivationCharacters() { return null; } /** * @see IContentAssistProcessor#getCompletionProposalAutoActivationCharacters() */ public char[] getCompletionProposalAutoActivationCharacters()...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProcessor.java
fCollector.setRegionToReplace(selection.x, selection.y); unit.codeComplete(offset, fCollector); } } catch (JavaModelException x) { Shell shell= viewer.getTextWidget().getShell(); ErrorDialog.openError(shell, JavaTextMessages.getString("CompletionProcessor.error.accessing.title"), JavaTextMessages.ge...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionProcessor.java
package org.eclipse.jdt.internal.ui.text.javadoc; /* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ import org.eclipse.jdt.core.ICompilationUnit; import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jdt.internal.ui.JavaPlugin; import org.eclipse.jdt.internal.ui.text.template.TemplateEn...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionProcessor.java
private IEditorPart fEditor; private IWorkingCopyManager fManager; private TemplateEngine fTemplateEngine; public JavaDocCompletionProcessor(IEditorPart editor) { fEditor= editor; fManager= JavaPlugin.getDefault().getWorkingCopyManager(); fTemplateEngine= new TemplateEngine(TemplateEngine.JAVADOC); } /** ...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionProcessor.java
/** * @see IContentAssistProcessor#getContextInformationAutoActivationCharacters() */ public char[] getContextInformationAutoActivationCharacters() { return null; } /** * @see IContentAssistProcessor#getCompletionProposalAutoActivationCharacters() */ public char[] getCompletionProposalAutoActivationCharac...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionProcessor.java
Point selection= viewer.getSelectedRange(); if (selection.y > 0) { offset= selection.x; length= selection.y; } CompletionEvaluator evaluator= new CompletionEvaluator(unit, document, offset, length); results= evaluator.computeProposals(); } } catch (JavaModelException x) { } try {...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/ArgumentEvaluator.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.text.template; import java.text.NumberFormat; public class ArgumentEvaluator implements VariableEvaluator { private final String[] fArguments; /** * Creates an argument evaluator with template arguments. */
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/ArgumentEvaluator.java
public ArgumentEvaluator(String[] arguments) { fArguments= arguments; } /* * @see VariableEvaluator#evaluate(String, int) */ public String evaluate(String variable, int offset) { if (fArguments == null) return null; try { int i= Integer.parseInt(variable); if ((i < 0) || (i >= fArguments.le...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/CodeIndentator.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.text.template; import org.eclipse.jdt.internal.core.refactoring.TextUtilities; import org.eclipse.jface.text.BadLocationException; import org.eclipse.jface.text.DefaultLineTracker; import org.eclipse.jface.text.Gap...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/CodeIndentator.java
private int fIndentationLevel= 0; private int[] fPositions; /** * Sets the indentation level. */ public void setIndentationLevel(int indentationLevel) { fIndentationLevel= indentationLevel; } /** * Sets the positions to map. */ public void setPositionsToMap(int[] positions) { fPositions= positions; ...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/CodeIndentator.java
return fPositions; } /** * Indentates a string. */ public String indentate(String string) { StringBuffer buffer = new StringBuffer(string.length()); String indentation= TextUtilities.createIndentString(fIndentationLevel); String[] lines= splitIntoLines(string); int position= 0; for (int i= 0; i !=...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/CodeIndentator.java
store.set(text); ILineTracker tracker= new DefaultLineTracker(); tracker.set(text); int size= tracker.getNumberOfLines(); String result[]= new String[size]; for (int i= 0; i < size; i++) { String lineDelimiter= null; try { lineDelimiter= tracker.getLineDelimiter(i); } catch (BadL...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/CursorSelectionEvaluator.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.text.template; public class CursorSelectionEvaluator implements VariableEvaluator {
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/CursorSelectionEvaluator.java
private static final String CURSOR= "cursor"; private static final String CURSOR_END= "cursor-end"; private int fStart; private int fEnd; /** * Creates an instance of <code>CursorSelectionEvaluator</code>. */ public CursorSelectionEvaluator() { reset(); } /** * Resets the <code>CursorSelectionEvalu...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/CursorSelectionEvaluator.java
return fStart; } /** * Returns the position where the selection ends. */ public int getEnd() { return fEnd; } /* * @see VariableEvaluator#evaluate(String) */ public String evaluate(String variable, int offset) { if (variable.equals(CURSOR)) { fStart= offset; fEnd= fStart; } else if (varia...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/LocalVariableEvaluator.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.text.template; public class LocalVariableEvaluator implements VariableEvaluator { private static final String INDEX= "index"; private static final String ARRAY= "array"; private static final String ITERATOR= "...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/LocalVariableEvaluator.java
if (variable.equals(INDEX)) { return "i"; } else if (variable.equals(ARRAY)) { return "array"; } else if (variable.equals(ITERATOR)) { return "iterator"; } else if (variable.equals(COLLECTION)) { return "collection"; } else if (variable.equals(VECTOR)) { return "vector"; } else if...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateEngine.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.text.template; import java.util.ArrayList; import java.util.List; import java.util.StringTokenizer; import org.eclipse.jdt.core.ICompilationUnit; import org.eclipse.jdt.core.JavaModelException; import org.eclipse.j...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateEngine.java
/** * Partition types. */ public static String JAVA= "java"; public static String JAVADOC= "javadoc"; private String fPartitionType; private ArrayList fExactProposals= new ArrayList(); private ArrayList fNotExactProposals= new ArrayList(); public TemplateEngine(String partitionType) { Assert.isNotNull(par...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateEngine.java
return (ICompletionProposal[]) fNotExactProposals.toArray(new ICompletionProposal[fNotExactProposals.size()]); } /** * Inspects the context of the compilation unit around <code>completionPosition</code> * and feeds the collector with proposals. * @param collector the collector for template proposals. ...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateEngine.java
while (tokenizer.hasMoreTokens()) { String token= tokenizer.nextToken().trim(); list.add(token); } arguments= (String[]) list.toArray(new String[list.size()]); } Template[] templates= TemplateSet.getInstance().getMatchingTemplates(key, fPartitionType); for (int i= 0; i != templates.length; ...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateEngine.java
start--; } while ((start != 0) && Character.isUnicodeIdentifierPart(source.charAt(start - 1))) start--; if ((start != 0) && Character.isUnicodeIdentifierStart(source.charAt(start - 1))) start--; } else if (partitionType.equals(JAVADOC)) { if ((start != 0) && (source.charAt(start -...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateInterpolator.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.text.template; import org.eclipse.jdt.internal.core.Assert; public class TemplateInterpolator { /*
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateInterpolator.java
* EBNF grammar. * * template := (text | escape)*. * text := character - dollar. * escape := dollar ('{' identifier '}' | dollar). * dollar := '$'. */ private static final int TEXT= 0; private static final int ESCAPE= 1; private static final int IDENTIFIER= 2; private static final char ESCAPE_CHARACT...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateInterpolator.java
state= ESCAPE; break; default: buffer.append(ch); break; } break; case ESCAPE: switch (ch) { case ESCAPE_CHARACTER: buffer.append(ch); state= TEXT; break; case IDENTIFIER_BEGIN: identifier.setLength(0); state= IDENTIFIER; break; ...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateInterpolator.java
switch (ch) { case IDENTIFIER_END: { String value= evaluator.evaluate(identifier.toString(), buffer.length()); if (value == null) { buffer.append(ESCAPE_CHARACTER); buffer.append(IDENTIFIER_BEGIN); buffer.append(identifier); buffer.append(IDENTIFIER_END); ...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateProposal.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.text.template; import org.eclipse.jdt.core.JavaCore; import org.eclipse.jdt.internal.core.Assert; import org.eclipse.jdt.internal.core.refactoring.TextUtilities; import org.eclipse.jdt.internal.formatter.CodeFormat...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateProposal.java
private final Template fTemplate; private final int fStart; private final int fEnd; private int fSelectionStart; private int fSelectionEnd; private CursorSelectionEvaluator fCursorSelectionEvaluator= new CursorSelectionEvaluator(); private VariableEvaluator fLocalVariableEvaluator= new LocalVariableEvaluator(...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateProposal.java
private ArgumentEvaluator fArgumentEvaluator; /** * Creates a template proposal with a template and the range of its key. * @param template the template * @param arguments arguments to the template, or <code>null</code> for no arguments * @param start the starting position of the key. * @param end ...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateProposal.java
int start= fCursorSelectionEvaluator.getStart(); if (start == -1) { fSelectionStart= pattern.length(); fSelectionEnd= fSelectionStart; } else { fSelectionStart= start; fSelectionEnd= fCursorSelectionEvaluator.getEnd(); } boolean format= TemplatePreferencePage.useCodeFormatter(); if (format) {...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateProposal.java
int charactersRemoved= pattern.length() - finalString.length(); fSelectionStart -= charactersRemoved; fSelectionEnd -= charactersRemoved; try { document.replace(fStart, fEnd - fStart, finalString); } catch (BadLocationException x) {} } private static String trimBegin(String string) { int i= 0; wh...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateProposal.java
return textToHTML(pattern); } /** * @see ICompletionProposal#getDisplayString() */ public String getDisplayString() { return fTemplate.getName() + " - " + fTemplate.getDescription(); } /** * @see ICompletionProposal#getImage() */ public Image getImage() { return fTemplate.getImage(); } /** * @see...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateProposal.java
for (int i= 0; i != string.length(); i++) { char ch= string.charAt(i); switch (ch) { case '&': buffer.append("&amp;"); break; case '<': buffer.append("&lt;"); break; case '>': buffer.append("&gt;"); break; case '\t': buffer.append(" "); brea...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateSet.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.text.template; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.Outp...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateSet.java
import org.w3c.dom.Element; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.w3c.dom.NodeList; import org.w3c.dom.Text; import org.xml.sax.InputSource; import org.xml.sax.SAXException; /** * A user defined template set. */ public class TemplateSet { private static class TemplateComparator imple...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateSet.java
private static final String DESCRIPTION_ATTRIBUTE= "description"; private static final String CONTEXT_ATTRIBUTE= "context"; private static final String ENABLED_ATTRIBUTE= "enabled"; private List fTemplates= new ArrayList(); private Comparator fTemplateComparator= new TemplateComparator(); private Template[] fSo...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateSet.java
InputStream inputStream= getDefaultsAsStream(); if (inputStream == null) return new TemplateSet(); if (!templateFile.createNewFile()) return new TemplateSet(); OutputStream outputStream= new FileOutputStream(templateFile); byte buffer[]= new byte[65536]; while (true)...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateSet.java
/** * Resets the template set with the default templates. */ public void restoreDefaults() { clear(); addFromStream(getDefaultsAsStream()); } /** * Resets (reloads) the template set. */ public void reset() { clear(); try { addFromStream(new FileInputStream(getTemplateFile())); } catch (FileNo...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateSet.java
Node node= elements.item(i); NamedNodeMap attributes= node.getAttributes(); if (attributes == null) continue; String name= attributes.getNamedItem(NAME_ATTRIBUTE).getNodeValue(); String description= attributes.getNamedItem(DESCRIPTION_ATTRIBUTE).getNodeValue(); String context= attributes.g...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateSet.java
sort(); return false; } /** * Saves the template set. */ public boolean save() { try { fgTemplateSet.save(new FileOutputStream(getTemplateFile())); return true; } catch (IOException e) { JavaPlugin.log(e); return false; } } /** * Saves the template set as XML. */ private boolea...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateSet.java
Node node= document.createElement("template"); root.appendChild(node); NamedNodeMap attributes= node.getAttributes(); Attr name= document.createAttribute(NAME_ATTRIBUTE); name.setValue(template.getName()); attributes.setNamedItem(name); Attr description= document.createAttribute(DES...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateSet.java
return true; } catch (ParserConfigurationException e) { JavaPlugin.log(e); } catch (IOException e) { JavaPlugin.log(e); } return false; } /** * Adds a template to the set. */ public void add(Template template) { fTemplates.add(template); sort(); } /** * Removes a template to the set...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateSet.java
} /** * Returns all templates. */ public Template[] getTemplates() { return (Template[]) fTemplates.toArray(new Template[fTemplates.size()]); } /** * Returns templates matching a prefix. */ public Template[] getMatchingTemplates(String prefix, String partitionType) { Assert.isNotNull(prefix); Ass...
4,139
Bug 4139 EC DCR: Code templates feature (1GIVMDV)
null
verified fixed
8fd6bb8
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T10:39:57Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/VariableEvaluator.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.text.template; /** * An interface to allow custom evaluation of variables. */ public interface VariableEvaluator { /** * Returns the value of a variable. * * @param variable the variable to evaluate. * ...
4,977
Bug 4977 Extra spaces in completion for <code></code>
Enter <c and type ctrl-space Select <code></code> Note the extra spaces Same for other <*></*>
resolved fixed
de7172b
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T12:49:17Z
2001-10-15T12:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateContext.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.text.template; import java.text.DateFormat; import java.util.Date; import java.util.Locale; import java.util.Map; import org.eclipse.core.runtime.CoreException; import org.eclipse.jdt.core.ICompilationUnit; import ...
4,977
Bug 4977 Extra spaces in completion for <code></code>
Enter <c and type ctrl-space Select <code></code> Note the extra spaces Same for other <*></*>
resolved fixed
de7172b
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T12:49:17Z
2001-10-15T12:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateContext.java
import org.eclipse.jdt.internal.compiler.problem.ProblemIrritants; import org.eclipse.jdt.internal.compiler.problem.ProblemReporter; import org.eclipse.jdt.internal.core.Assert; import org.eclipse.jdt.internal.core.JavaProject; import org.eclipse.jdt.internal.core.SearchableEnvironment; import org.eclipse.jdt.internal....
4,977
Bug 4977 Extra spaces in completion for <code></code>
Enter <c and type ctrl-space Select <code></code> Note the extra spaces Same for other <*></*>
resolved fixed
de7172b
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T12:49:17Z
2001-10-15T12:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateContext.java
Assert.isTrue(start <= end); fUnit= unit; fStart= start; fEnd= end; fViewer= viewer; } public int getStart() { return fStart; } public int getEnd() { return fEnd; } public ITextViewer getViewer() { return fViewer; } public void setDocument(IDocument document) { fDocument= document; } ...
4,977
Bug 4977 Extra spaces in completion for <code></code>
Enter <c and type ctrl-space Select <code></code> Note the extra spaces Same for other <*></*>
resolved fixed
de7172b
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T12:49:17Z
2001-10-15T12:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateContext.java
/* * @see VariableEvaluator#acceptText(String, int) */ public void acceptText(String variable, int offset) { } /* * @see VariableEvaluator#evaluateVariable(String, int) */ public String evaluateVariable(String variable, int offset) { if (variable.equals(FILE)) { return fUnit.getElementName(); ...
4,977
Bug 4977 Extra spaces in completion for <code></code>
Enter <c and type ctrl-space Select <code></code> Note the extra spaces Same for other <*></*>
resolved fixed
de7172b
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T12:49:17Z
2001-10-15T12:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateContext.java
*/ public String[] getRecognizedVariables() { return null; } private static int getLineNumber(ICompilationUnit unit, int offset) { CompilationUnitDocumentProvider documentProvider= JavaPlugin.getDefault().getCompilationUnitDocumentProvider(); try { DocumentManager documentManager= new DocumentManager...
4,977
Bug 4977 Extra spaces in completion for <code></code>
Enter <c and type ctrl-space Select <code></code> Note the extra spaces Same for other <*></*>
resolved fixed
de7172b
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T12:49:17Z
2001-10-15T12:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateProposal.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.text.template; import org.eclipse.jdt.core.JavaCore; import org.eclipse.jdt.internal.core.Assert; import org.eclipse.jdt.internal.core.refactoring.TextUtilities; import org.eclipse.jdt.internal.formatter.CodeFormat...
4,977
Bug 4977 Extra spaces in completion for <code></code>
Enter <c and type ctrl-space Select <code></code> Note the extra spaces Same for other <*></*>
resolved fixed
de7172b
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T12:49:17Z
2001-10-15T12:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateProposal.java
private final Template fTemplate; private final TemplateContext fContext; private int fSelectionStart; private int fSelectionEnd;
4,977
Bug 4977 Extra spaces in completion for <code></code>
Enter <c and type ctrl-space Select <code></code> Note the extra spaces Same for other <*></*>
resolved fixed
de7172b
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T12:49:17Z
2001-10-15T12:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateProposal.java
private CursorSelectionEvaluator fCursorSelectionEvaluator= new CursorSelectionEvaluator(); private VariableEvaluator fLocalVariableEvaluator= new LocalVariableEvaluator(); private TemplateInterpolator fInterpolator= new TemplateInterpolator(); private ArgumentEvaluator fArgumentEvaluator; private ModelEvaluator fM...
4,977
Bug 4977 Extra spaces in completion for <code></code>
Enter <c and type ctrl-space Select <code></code> Note the extra spaces Same for other <*></*>
resolved fixed
de7172b
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T12:49:17Z
2001-10-15T12:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateProposal.java
pattern= fInterpolator.interpolate(pattern, fArgumentEvaluator); pattern= fInterpolator.interpolate(pattern, fContext); fInterpolator.interpolate(pattern, fModelEvaluator); TemplateModel model= fModelEvaluator.getModel(); if (model.getEditableCount() == 0) { pattern= fInterpolator.interpolate(pattern, fC...
4,977
Bug 4977 Extra spaces in completion for <code></code>
Enter <c and type ctrl-space Select <code></code> Note the extra spaces Same for other <*></*>
resolved fixed
de7172b
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T12:49:17Z
2001-10-15T12:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateProposal.java
fSelectionStart= pattern.length(); fSelectionEnd= fSelectionStart; } else { fSelectionStart= selection[0]; fSelectionEnd= selection[1]; } } if (TemplatePreferencePage.useCodeFormatter()) { CodeFormatter formatter= new CodeFormatter(JavaCore.getOptions()); formatter.setPositionsToMap(new int[...
4,977
Bug 4977 Extra spaces in completion for <code></code>
Enter <c and type ctrl-space Select <code></code> Note the extra spaces Same for other <*></*>
resolved fixed
de7172b
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T12:49:17Z
2001-10-15T12:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateProposal.java
fSelectionEnd -= charactersRemoved; int start= fContext.getStart(); int length= fContext.getEnd() - start; try { document.replace(start, length, finalString); } catch (BadLocationException x) {} } private static String trimBegin(String string) { int i= 0; while ((i != string.length()) && Character...
4,977
Bug 4977 Extra spaces in completion for <code></code>
Enter <c and type ctrl-space Select <code></code> Note the extra spaces Same for other <*></*>
resolved fixed
de7172b
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T12:49:17Z
2001-10-15T12:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateProposal.java
return textToHTML(pattern); } /** * @see ICompletionProposal#getDisplayString() */ public String getDisplayString() { return fTemplate.getName() + TemplateMessages.getString("TemplateProposal.delimiter") + fTemplate.getDescription(); } /** * @see ICompletionProposal#getImage() */ public Image getImage(...
4,977
Bug 4977 Extra spaces in completion for <code></code>
Enter <c and type ctrl-space Select <code></code> Note the extra spaces Same for other <*></*>
resolved fixed
de7172b
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T12:49:17Z
2001-10-15T12:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateProposal.java
for (int i= 0; i != string.length(); i++) { char ch= string.charAt(i); switch (ch) { case '&': buffer.append("&amp;"); break; case '<': buffer.append("&lt;"); break; case '>': buffer.append("&gt;"); break; case '\t': buffer.append(" "); brea...
5,075
Bug 5075 Class cast extception in JavaOutliner
* Using latest code (204++) * Using Junit as a test case * Put a breakpoint in VectorTest#testElementAt(), on the second line of the method * Open a class file editor in the Java Perspective, and make it the active editor (I openned Vector.class) * Debug to the breakpoint * Try to inspect or display "i.intValue == 1" *...
resolved fixed
adb0fef
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T14:35:53Z
2001-10-18T13:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
package org.eclipse.jdt.internal.ui.javaeditor; /* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ import java.util.Enumeration; import java.util.Hashtable; import java.util.Vector; import org.eclipse.swt.SWT; import org.eclipse.swt.events.KeyAdapter; import org.eclipse.swt.events.KeyEvent; import or...
5,075
Bug 5075 Class cast extception in JavaOutliner
* Using latest code (204++) * Using Junit as a test case * Put a breakpoint in VectorTest#testElementAt(), on the second line of the method * Open a class file editor in the Java Perspective, and make it the active editor (I openned Vector.class) * Debug to the breakpoint * Try to inspect or display "i.intValue == 1" *...
resolved fixed
adb0fef
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T14:35:53Z
2001-10-18T13:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
import org.eclipse.swt.widgets.Menu; import org.eclipse.swt.widgets.Tree; import org.eclipse.swt.widgets.Widget; import org.eclipse.jface.action.Action; import org.eclipse.jface.action.IAction; import org.eclipse.jface.action.IMenuListener; import org.eclipse.jface.action.IMenuManager; import org.eclipse.jface.action.I...
5,075
Bug 5075 Class cast extception in JavaOutliner
* Using latest code (204++) * Using Junit as a test case * Put a breakpoint in VectorTest#testElementAt(), on the second line of the method * Open a class file editor in the Java Perspective, and make it the active editor (I openned Vector.class) * Debug to the breakpoint * Try to inspect or display "i.intValue == 1" *...
resolved fixed
adb0fef
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T14:35:53Z
2001-10-18T13:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
import org.eclipse.jdt.core.IJavaElement; import org.eclipse.jdt.core.IJavaElementDelta; import org.eclipse.jdt.core.IMember; import org.eclipse.jdt.core.IMethod; import org.eclipse.jdt.core.IParent; import org.eclipse.jdt.core.ISourceRange; import org.eclipse.jdt.core.ISourceReference; import org.eclipse.jdt.core.ITyp...
5,075
Bug 5075 Class cast extception in JavaOutliner
* Using latest code (204++) * Using Junit as a test case * Put a breakpoint in VectorTest#testElementAt(), on the second line of the method * Open a class file editor in the Java Perspective, and make it the active editor (I openned Vector.class) * Debug to the breakpoint * Try to inspect or display "i.intValue == 1" *...
resolved fixed
adb0fef
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T14:35:53Z
2001-10-18T13:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
/** * The element change listener of the java outline viewer. * @see IElementChangedListener */ class ElementChangedListener implements IElementChangedListener { public void elementChanged(final ElementChangedEvent e) { Display d= getControl().getDisplay(); if (d != null) { d.asy...
5,075
Bug 5075 Class cast extception in JavaOutliner
* Using latest code (204++) * Using Junit as a test case * Put a breakpoint in VectorTest#testElementAt(), on the second line of the method * Open a class file editor in the Java Perspective, and make it the active editor (I openned Vector.class) * Debug to the breakpoint * Try to inspect or display "i.intValue == 1" *...
resolved fixed
adb0fef
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T14:35:53Z
2001-10-18T13:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
return null; IJavaElement element= delta.getElement(); if (unit.equals(element)) return delta; if (element.getElementType() > IJavaElement.CLASS_FILE) return null; IJavaElementDelta[] children= delta.getAffectedChildren(); if (children == null || children.le...
5,075
Bug 5075 Class cast extception in JavaOutliner
* Using latest code (204++) * Using Junit as a test case * Put a breakpoint in VectorTest#testElementAt(), on the second line of the method * Open a class file editor in the Java Perspective, and make it the active editor (I openned Vector.class) * Debug to the breakpoint * Try to inspect or display "i.intValue == 1" *...
resolved fixed
adb0fef
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T14:35:53Z
2001-10-18T13:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
private ElementChangedListener fListener; private JavaOutlineErrorTickUpdater fErrorTickUpdater; protected boolean matches(IJavaElement element) { if (element.getElementType() == IJavaElement.METHOD) { String name= element.getElementName(); return (name != null && name.indexOf('<') >= 0); ...
5,075
Bug 5075 Class cast extception in JavaOutliner
* Using latest code (204++) * Using Junit as a test case * Put a breakpoint in VectorTest#testElementAt(), on the second line of the method * Open a class file editor in the Java Perspective, and make it the active editor (I openned Vector.class) * Debug to the breakpoint * Try to inspect or display "i.intValue == 1" *...
resolved fixed
adb0fef
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T14:35:53Z
2001-10-18T13:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
for (int i= 0; i < children.length; i++) { if (matches(children[i])) continue; v.addElement(children[i]); } IJavaElement[] result= new IJavaElement[v.size()]; v.copyInto(result); return result; } public Object[] getChildren(Object parent) { if (parent insta...
5,075
Bug 5075 Class cast extception in JavaOutliner
* Using latest code (204++) * Using Junit as a test case * Put a breakpoint in VectorTest#testElementAt(), on the second line of the method * Open a class file editor in the Java Perspective, and make it the active editor (I openned Vector.class) * Debug to the breakpoint * Try to inspect or display "i.intValue == 1" *...
resolved fixed
adb0fef
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T14:35:53Z
2001-10-18T13:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
return e.getParent(); } return null; } public boolean hasChildren(Object parent) { if (parent instanceof IParent) { IParent c= (IParent) parent; try { IJavaElement[] children= filter(c.getChildren()); return (children != null && children.length > 0); } catch (...
5,075
Bug 5075 Class cast extception in JavaOutliner
* Using latest code (204++) * Using Junit as a test case * Put a breakpoint in VectorTest#testElementAt(), on the second line of the method * Open a class file editor in the Java Perspective, and make it the active editor (I openned Vector.class) * Debug to the breakpoint * Try to inspect or display "i.intValue == 1" *...
resolved fixed
adb0fef
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T14:35:53Z
2001-10-18T13:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
} } /** * @see IContentProvider#inputChanged(Viewer, Object, Object) */ public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { if (oldInput == null && newInput != null) { if (fListener == null) fListener= new ElementChangedListener(); Ja...
5,075
Bug 5075 Class cast extception in JavaOutliner
* Using latest code (204++) * Using Junit as a test case * Put a breakpoint in VectorTest#testElementAt(), on the second line of the method * Open a class file editor in the Java Perspective, and make it the active editor (I openned Vector.class) * Debug to the breakpoint * Try to inspect or display "i.intValue == 1" *...
resolved fixed
adb0fef
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T14:35:53Z
2001-10-18T13:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
/** * Indicates an item which has been reused. At the point of * its reuse it has been expanded. This field is used to * communicate between <code>internalExpandToLevel</code> and * <code>reuseTreeItem</code>. */ private Item fReusedExpandedItem; public JavaOutlineViewer(Tree tree)...
5,075
Bug 5075 Class cast extception in JavaOutliner
* Using latest code (204++) * Using Junit as a test case * Put a breakpoint in VectorTest#testElementAt(), on the second line of the method * Open a class file editor in the Java Perspective, and make it the active editor (I openned Vector.class) * Debug to the breakpoint * Try to inspect or display "i.intValue == 1" *...
resolved fixed
adb0fef
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T14:35:53Z
2001-10-18T13:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
/** * Investigates the given element change event and if affected incrementally * updates the outline. */ public void reconcile(IJavaElementDelta delta) { if (getSorter() == null) { Widget w= findItem(fInput); if (w != null) update(w, delta); } else { refresh...
5,075
Bug 5075 Class cast extception in JavaOutliner
* Using latest code (204++) * Using Junit as a test case * Put a breakpoint in VectorTest#testElementAt(), on the second line of the method * Open a class file editor in the Java Perspective, and make it the active editor (I openned Vector.class) * Debug to the breakpoint * Try to inspect or display "i.intValue == 1" *...
resolved fixed
adb0fef
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T14:35:53Z
2001-10-18T13:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
} } super.internalExpandToLevel(node, level); } protected void reuseTreeItem(Item item, Object element) { Item[] c= getChildren(item); if (c != null && c.length > 0) { if (getExpanded(item)) fReusedExpandedItem= item; for (int k= 0; k < c...
5,075
Bug 5075 Class cast extception in JavaOutliner
* Using latest code (204++) * Using Junit as a test case * Put a breakpoint in VectorTest#testElementAt(), on the second line of the method * Open a class file editor in the Java Perspective, and make it the active editor (I openned Vector.class) * Debug to the breakpoint * Try to inspect or display "i.intValue == 1" *...
resolved fixed
adb0fef
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T14:35:53Z
2001-10-18T13:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
*/ protected void createTreeItem(Widget parent, Object element, int ix) { Item[] children= getChildren(parent); boolean expand= (parent instanceof Item && (children == null || children.length == 0)); Item item= newItem(parent, SWT.NULL, ix); updateItem(item, element); updatePlus(i...
5,075
Bug 5075 Class cast extception in JavaOutliner
* Using latest code (204++) * Using Junit as a test case * Put a breakpoint in VectorTest#testElementAt(), on the second line of the method * Open a class file editor in the Java Perspective, and make it the active editor (I openned Vector.class) * Debug to the breakpoint * Try to inspect or display "i.intValue == 1" *...
resolved fixed
adb0fef
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T14:35:53Z
2001-10-18T13:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
Item item; Object element; IJavaElement parent= delta.getElement(); IJavaElementDelta[] affected= delta.getAffectedChildren(); Item[] children= getChildren(w); boolean doUpdateParent= false; Vector deletions= new Vector(); Vector additions= new Vector(); go...
5,075
Bug 5075 Class cast extception in JavaOutliner
* Using latest code (204++) * Using Junit as a test case * Put a breakpoint in VectorTest#testElementAt(), on the second line of the method * Open a class file editor in the Java Perspective, and make it the active editor (I openned Vector.class) * Debug to the breakpoint * Try to inspect or display "i.intValue == 1" *...
resolved fixed
adb0fef
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T14:35:53Z
2001-10-18T13:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
if ((status & IJavaElementDelta.CHANGED) != 0) { int change= affected[j].getFlags(); doUpdateParent= doUpdateParent || mustUpdateParent(affected[j], affectedElement); if ((change & IJavaElementDelta.F_MODIFIERS) != 0) { if (filtered(parent, affectedElement)) del...
5,075
Bug 5075 Class cast extception in JavaOutliner
* Using latest code (204++) * Using Junit as a test case * Put a breakpoint in VectorTest#testElementAt(), on the second line of the method * Open a class file editor in the Java Perspective, and make it the active editor (I openned Vector.class) * Debug to the breakpoint * Try to inspect or display "i.intValue == 1" *...
resolved fixed
adb0fef
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T14:35:53Z
2001-10-18T13:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
IJavaElementDelta[] add= delta.getAddedChildren(); if (additions.size() > 0) { IJavaElementDelta[] tmp= new IJavaElementDelta[add.length + additions.size()]; System.arraycopy(add, 0, tmp, 0, add.length); for (int i= 0; i < additions.size(); i++) tmp[i + add.length]= (IJavaElementDelta) add...
5,075
Bug 5075 Class cast extception in JavaOutliner
* Using latest code (204++) * Using Junit as a test case * Put a breakpoint in VectorTest#testElementAt(), on the second line of the method * Open a class file editor in the Java Perspective, and make it the active editor (I openned Vector.class) * Debug to the breakpoint * Try to inspect or display "i.intValue == 1" *...
resolved fixed
adb0fef
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T14:35:53Z
2001-10-18T13:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
item= children[j]; r= (ISourceReference) item.getData(); if (r == null) { continue go2; } try { if (overlaps(r, start, end)) { reuseTreeItem(item, (Object) add[i].getElement()); continue ...
5,075
Bug 5075 Class cast extception in JavaOutliner
* Using latest code (204++) * Using Junit as a test case * Put a breakpoint in VectorTest#testElementAt(), on the second line of the method * Open a class file editor in the Java Perspective, and make it the active editor (I openned Vector.class) * Debug to the breakpoint * Try to inspect or display "i.intValue == 1" *...
resolved fixed
adb0fef
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T14:35:53Z
2001-10-18T13:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
} last= item; } if (last != null && deletions.contains(last)) { deletions.removeElement(last); reuseTreeItem(last, (Object) add[i].getElement()); } else { createTreeItem(w, (Object) add[i].getElement(), -1); } ...
5,075
Bug 5075 Class cast extception in JavaOutliner
* Using latest code (204++) * Using Junit as a test case * Put a breakpoint in VectorTest#testElementAt(), on the second line of the method * Open a class file editor in the Java Perspective, and make it the active editor (I openned Vector.class) * Debug to the breakpoint * Try to inspect or display "i.intValue == 1" *...
resolved fixed
adb0fef
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T14:35:53Z
2001-10-18T13:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
if (doUpdateParent) updateItem(w, delta.getElement()); } protected boolean overlaps(ISourceReference reference, int start, int end) { try { ISourceRange rng= reference.getSourceRange(); return start <= (rng.getOffset() + rng.getLength() - 1) && rng.getOffset() <= end; ...
5,075
Bug 5075 Class cast extception in JavaOutliner
* Using latest code (204++) * Using Junit as a test case * Put a breakpoint in VectorTest#testElementAt(), on the second line of the method * Open a class file editor in the Java Perspective, and make it the active editor (I openned Vector.class) * Debug to the breakpoint * Try to inspect or display "i.intValue == 1" *...
resolved fixed
adb0fef
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T14:35:53Z
2001-10-18T13:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
private JavaElementSorter fSorter= new JavaElementSorter(); public LexicalSortingAction() { super(); setText(JavaEditorMessages.getString("JavaOutlinePage.Sort.label")); JavaPluginImages.setLocalImageDescriptors(this, "alphab_sort_co.gif"); boolean checked= JavaPlugin.getDefault...
5,075
Bug 5075 Class cast extception in JavaOutliner
* Using latest code (204++) * Using Junit as a test case * Put a breakpoint in VectorTest#testElementAt(), on the second line of the method * Open a class file editor in the Java Perspective, and make it the active editor (I openned Vector.class) * Debug to the breakpoint * Try to inspect or display "i.intValue == 1" *...
resolved fixed
adb0fef
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T14:35:53Z
2001-10-18T13:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
public boolean select(Viewer viewer, Object parentElement, Object element) { return !(element instanceof IField); } }; class VisibilityFilter extends ViewerFilter { public final static int PUBLIC= 0; public final static int PROTECTED= 1; public final static int PRIVATE= 2; publ...
5,075
Bug 5075 Class cast extception in JavaOutliner
* Using latest code (204++) * Using Junit as a test case * Put a breakpoint in VectorTest#testElementAt(), on the second line of the method * Open a class file editor in the Java Perspective, and make it the active editor (I openned Vector.class) * Debug to the breakpoint * Try to inspect or display "i.intValue == 1" *...
resolved fixed
adb0fef
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T14:35:53Z
2001-10-18T13:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
if (type != null) { try { return type.isInterface(); } catch (JavaModelException x) { } } return false; } public boolean select(Viewer viewer, Object parentElement, Object element) { if ( !(element instanceof IMember)) return true; ...
5,075
Bug 5075 Class cast extception in JavaOutliner
* Using latest code (204++) * Using Junit as a test case * Put a breakpoint in VectorTest#testElementAt(), on the second line of the method * Open a class file editor in the Java Perspective, and make it the active editor (I openned Vector.class) * Debug to the breakpoint * Try to inspect or display "i.intValue == 1" *...
resolved fixed
adb0fef
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T14:35:53Z
2001-10-18T13:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
switch (fVisibility) { case PUBLIC: return Flags.isPublic(flags) || belongsToInterface(member); case PROTECTED: return Flags.isProtected(flags); case PRIVATE: return Flags.isPrivate(flags); case DEFAULT: { boolean dflt= !(Flags.isPublic(fl...
5,075
Bug 5075 Class cast extception in JavaOutliner
* Using latest code (204++) * Using Junit as a test case * Put a breakpoint in VectorTest#testElementAt(), on the second line of the method * Open a class file editor in the Java Perspective, and make it the active editor (I openned Vector.class) * Debug to the breakpoint * Try to inspect or display "i.intValue == 1" *...
resolved fixed
adb0fef
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T14:35:53Z
2001-10-18T13:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
private String fUncheckedTooltip; private String fPreferenceKey; public FilterAction(ViewerFilter filter, String label, String checkedDesc, String uncheckedDesc, String checkedTooltip, String uncheckedTooltip, String prefKey) { super(); fFilter= filter; setText(label); fChecked...
5,075
Bug 5075 Class cast extception in JavaOutliner
* Using latest code (204++) * Using Junit as a test case * Put a breakpoint in VectorTest#testElementAt(), on the second line of the method * Open a class file editor in the Java Perspective, and make it the active editor (I openned Vector.class) * Debug to the breakpoint * Try to inspect or display "i.intValue == 1" *...
resolved fixed
adb0fef
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T14:35:53Z
2001-10-18T13:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
setDescription(fCheckedDesc); } else { fOutlineViewer.removeFilter(fFilter); setToolTipText(fUncheckedTooltip); setDescription(fUncheckedDesc); } if (store) JavaPlugin.getDefault().getPreferenceStore().setValue(fPreferenceKey, on); } }; private IJavaEleme...
5,075
Bug 5075 Class cast extception in JavaOutliner
* Using latest code (204++) * Using Junit as a test case * Put a breakpoint in VectorTest#testElementAt(), on the second line of the method * Open a class file editor in the Java Perspective, and make it the active editor (I openned Vector.class) * Debug to the breakpoint * Try to inspect or display "i.intValue == 1" *...
resolved fixed
adb0fef
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T14:35:53Z
2001-10-18T13:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
fEditor= editor; } private void fireSelectionChanged(ISelection selection) { SelectionChangedEvent event= new SelectionChangedEvent(this, selection); Object[] listeners= fSelectionChangedListeners.getListeners(); for (int i= 0; i < listeners.length; ++i) ((ISelectionChangedListener) listeners[i]).selection...
5,075
Bug 5075 Class cast extception in JavaOutliner
* Using latest code (204++) * Using Junit as a test case * Put a breakpoint in VectorTest#testElementAt(), on the second line of the method * Open a class file editor in the Java Perspective, and make it the active editor (I openned Vector.class) * Debug to the breakpoint * Try to inspect or display "i.intValue == 1" *...
resolved fixed
adb0fef
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T14:35:53Z
2001-10-18T13:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
tree.setMenu(fMenu); fActionGroups= new ContextMenuGroup[] { new GenerateGroup(), new JavaSearchGroup(), new ReorgGroup() }; fOutlineViewer.setInput(fInput); fOutlineViewer.addSelectionChangedListener(new ISelectionChangedListener() { public void selectionChanged(SelectionChangedEvent e) { fireSe...
5,075
Bug 5075 Class cast extception in JavaOutliner
* Using latest code (204++) * Using Junit as a test case * Put a breakpoint in VectorTest#testElementAt(), on the second line of the method * Open a class file editor in the Java Perspective, and make it the active editor (I openned Vector.class) * Debug to the breakpoint * Try to inspect or display "i.intValue == 1" *...
resolved fixed
adb0fef
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T14:35:53Z
2001-10-18T13:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
fSelectionChangedListeners= null; if (fMenu != null && !fMenu.isDisposed()) { fMenu.dispose(); fMenu= null; } super.dispose(); } public Control getControl() { if (fOutlineViewer != null) return fOutlineViewer.getControl(); return null; } public void setInput(IJavaElement inputElement...
5,075
Bug 5075 Class cast extception in JavaOutliner
* Using latest code (204++) * Using Junit as a test case * Put a breakpoint in VectorTest#testElementAt(), on the second line of the method * Open a class file editor in the Java Perspective, and make it the active editor (I openned Vector.class) * Debug to the breakpoint * Try to inspect or display "i.intValue == 1" *...
resolved fixed
adb0fef
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T14:35:53Z
2001-10-18T13:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
fOutlineViewer.setSelection(s, true); } } public void setAction(String actionID, IAction action) { Assert.isNotNull(actionID); if (action == null) fActions.remove(actionID); else fActions.put(actionID, action); } public IAction getAction(String actionID) { Assert.isNotNull(actionID); return (I...
5,075
Bug 5075 Class cast extception in JavaOutliner
* Using latest code (204++) * Using Junit as a test case * Put a breakpoint in VectorTest#testElementAt(), on the second line of the method * Open a class file editor in the Java Perspective, and make it the active editor (I openned Vector.class) * Debug to the breakpoint * Try to inspect or display "i.intValue == 1" *...
resolved fixed
adb0fef
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T14:35:53Z
2001-10-18T13:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
subMenu.add(action); else menu.appendToGroup(group, action); } } } private void addRefactoring(IMenuManager menu){ MenuManager refactoring= new MenuManager(JavaEditorMessages.getString("JavaOutlinePage.ContextMenu.refactoring.label")); ContextMenuGroup.add(refactoring, new ContextMenuGroup[] {...
5,075
Bug 5075 Class cast extception in JavaOutliner
* Using latest code (204++) * Using Junit as a test case * Put a breakpoint in VectorTest#testElementAt(), on the second line of the method * Open a class file editor in the Java Perspective, and make it the active editor (I openned Vector.class) * Debug to the breakpoint * Try to inspect or display "i.intValue == 1" *...
resolved fixed
adb0fef
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T14:35:53Z
2001-10-18T13:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
protected void contextMenuAboutToShow(IMenuManager menu) { JavaPlugin.createStandardGroups(menu); if (OrganizeImportsAction.canActionBeAdded(getSelection())) { addAction(menu, IContextMenuConstants.GROUP_REORGANIZE, "OrganizeImports"); } addAction(menu, IContextMenuConstants.GROUP_OPEN, "OpenImportD...
5,075
Bug 5075 Class cast extception in JavaOutliner
* Using latest code (204++) * Using Junit as a test case * Put a breakpoint in VectorTest#testElementAt(), on the second line of the method * Open a class file editor in the Java Perspective, and make it the active editor (I openned Vector.class) * Debug to the breakpoint * Try to inspect or display "i.intValue == 1" *...
resolved fixed
adb0fef
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T14:35:53Z
2001-10-18T13:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
* @see Page#makeContributions(IMenuManager, IToolBarManager, IStatusLineManager) */ public void makeContributions(IMenuManager menuManager, IToolBarManager toolBarManager, IStatusLineManager statusLineManager) { if (statusLineManager != null) { StatusBarUpdater updater= new StatusBarUpdater(statusLineManager...
5,075
Bug 5075 Class cast extception in JavaOutliner
* Using latest code (204++) * Using Junit as a test case * Put a breakpoint in VectorTest#testElementAt(), on the second line of the method * Open a class file editor in the Java Perspective, and make it the active editor (I openned Vector.class) * Debug to the breakpoint * Try to inspect or display "i.intValue == 1" *...
resolved fixed
adb0fef
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T14:35:53Z
2001-10-18T13:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
} /** * @see ISelectionProvider#removeSelectionChangedListener(ISelectionChangedListener) */ public void removeSelectionChangedListener(ISelectionChangedListener listener) { fSelectionChangedListeners.remove(listener); } /** * @see ISelectionProvider#getSelection() */ public ISelection getSelection()...
5,075
Bug 5075 Class cast extception in JavaOutliner
* Using latest code (204++) * Using Junit as a test case * Put a breakpoint in VectorTest#testElementAt(), on the second line of the method * Open a class file editor in the Java Perspective, and make it the active editor (I openned Vector.class) * Debug to the breakpoint * Try to inspect or display "i.intValue == 1" *...
resolved fixed
adb0fef
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-18T14:35:53Z
2001-10-18T13:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
if (element.getElementType() == IJavaElement.TYPE) { IJavaElement parent= element.getParent(); int type= parent.getElementType(); return (type != IJavaElement.COMPILATION_UNIT && type != IJavaElement.CLASS_FILE); } return false; } /** * Handles key events in viewer. */ private void handleKe...
5,095
Bug 5095 template: toarray incorrect
its defintion should be: (${type}[]) ${collection}.toArray(new ${type}[${collection}.size()]); rather than (${type}[]) ${collection}.toArray(new ${type}[${collection}]);
resolved fixed
9a943d1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-19T12:16:52Z
2001-10-19T11:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/Template.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.text.template; import org.eclipse.jdt.internal.ui.JavaPluginImages; import org.eclipse.swt.graphics.Image; /** * A template consiting of a name and a pattern. */ public class Template {
5,095
Bug 5095 template: toarray incorrect
its defintion should be: (${type}[]) ${collection}.toArray(new ${type}[${collection}.size()]); rather than (${type}[]) ${collection}.toArray(new ${type}[${collection}]);
resolved fixed
9a943d1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-19T12:16:52Z
2001-10-19T11:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/Template.java
private String fName; private String fDescription; private String fContext; private String fPattern; private boolean fEnabled= true; public Template() { this("", "", "", ""); } /** * Creates a template. * @param name the name of the template. * @param description the description of the template. ...
5,095
Bug 5095 template: toarray incorrect
its defintion should be: (${type}[]) ${collection}.toArray(new ${type}[${collection}.size()]); rather than (${type}[]) ${collection}.toArray(new ${type}[${collection}]);
resolved fixed
9a943d1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-19T12:16:52Z
2001-10-19T11:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/Template.java
/** * Sets the description of the template. */ public void setDescription(String description) { fDescription= new String(description); } /** * Returns the description of the template. */ public String getDescription() { return new String(fDescription); } /** * Sets the context of the template. ...
5,095
Bug 5095 template: toarray incorrect
its defintion should be: (${type}[]) ${collection}.toArray(new ${type}[${collection}.size()]); rather than (${type}[]) ${collection}.toArray(new ${type}[${collection}]);
resolved fixed
9a943d1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-19T12:16:52Z
2001-10-19T11:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/Template.java
public void setName(String name) { fName= new String(name); } /** * Returns the name of the template. */ public String getName() { return new String(fName); } /** * Returns the image of the template. */ public Image getImage() { if (fContext.equals("javadoc") && fName.startsWith("<")) retu...
5,095
Bug 5095 template: toarray incorrect
its defintion should be: (${type}[]) ${collection}.toArray(new ${type}[${collection}.size()]); rather than (${type}[]) ${collection}.toArray(new ${type}[${collection}]);
resolved fixed
9a943d1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2001-10-19T12:16:52Z
2001-10-19T11:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/Template.java
return new String(fPattern); } /** * Sets the enable state of the template. */ public void setEnabled(boolean enable) { fEnabled= enable; } /** * Returns <code>true</code> if template is enabled, <code>false</code> otherwise. */ public boolean isEnabled() { return fEnabled; } /** * Returns...