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,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
|
package org.eclipse.jdt.internal.ui.javaeditor;
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
import java.lang.reflect.InvocationTargetException;
import java.util.Iterator;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IFolder;
import org.eclipse.core.resources.IMarker;
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
|
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IWorkspaceRoot;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.Path;
import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.IPackageFragment;
import org.eclipse.jdt.core.IPackageFragmentRoot;
import org.eclipse.jdt.core.JavaCore;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jdt.internal.ui.IJavaHelpContextIds;
import org.eclipse.jdt.internal.ui.JavaPlugin;
import org.eclipse.jdt.internal.ui.compare.JavaAddElementFromHistory;
import org.eclipse.jdt.internal.ui.compare.JavaReplaceWithEditionAction;
import org.eclipse.jdt.internal.ui.dialogs.AbstractElementListSelectionDialog;
import org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.BracketHighlighter.BracketPositionManager;
import org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.BracketHighlighter.HighlightBrackets;
import org.eclipse.jdt.internal.ui.refactoring.actions.SurroundWithTryCatchAction;
import org.eclipse.jdt.internal.ui.reorg.DeleteAction;
import org.eclipse.jdt.internal.ui.text.ContentAssistPreference;
import org.eclipse.jdt.internal.ui.text.JavaPairMatcher;
import org.eclipse.jdt.ui.IContextMenuConstants;
import org.eclipse.jdt.ui.IWorkingCopyManager;
import org.eclipse.jdt.ui.text.JavaTextTools;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.dialogs.Dialog;
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
|
import org.eclipse.jface.dialogs.ErrorDialog;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.dialogs.ProgressMonitorDialog;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.preference.PreferenceConverter;
import org.eclipse.jface.text.BadLocationException;
import org.eclipse.jface.text.BadPositionCategoryException;
import org.eclipse.jface.text.DefaultPositionUpdater;
import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.IPositionUpdater;
import org.eclipse.jface.text.IRegion;
import org.eclipse.jface.text.ITextInputListener;
import org.eclipse.jface.text.ITextListener;
import org.eclipse.jface.text.ITextOperationTarget;
import org.eclipse.jface.text.ITextSelection;
import org.eclipse.jface.text.Position;
import org.eclipse.jface.text.TextEvent;
import org.eclipse.jface.text.contentassist.ContentAssistant;
import org.eclipse.jface.text.contentassist.IContentAssistant;
import org.eclipse.jface.text.source.Annotation;
import org.eclipse.jface.text.source.IAnnotationModel;
import org.eclipse.jface.text.source.ISourceViewer;
import org.eclipse.jface.text.source.IVerticalRuler;
import org.eclipse.jface.text.source.SourceViewer;
import org.eclipse.jface.util.PropertyChangeEvent;
import org.eclipse.jface.viewers.ISelectionChangedListener;
import org.eclipse.jface.viewers.ISelectionProvider;
import org.eclipse.jface.viewers.SelectionChangedEvent;
import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.swt.custom.StyledText;
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
|
import org.eclipse.swt.events.KeyEvent;
import org.eclipse.swt.events.KeyListener;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.events.MouseListener;
import org.eclipse.swt.events.PaintEvent;
import org.eclipse.swt.events.PaintListener;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.GC;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.graphics.RGB;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IViewPart;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.actions.WorkspaceModifyOperation;
import org.eclipse.ui.dialogs.SaveAsDialog;
import org.eclipse.ui.part.FileEditorInput;
import org.eclipse.ui.texteditor.AbstractTextEditor;
import org.eclipse.ui.texteditor.IDocumentProvider;
import org.eclipse.ui.texteditor.ITextEditorActionConstants;
import org.eclipse.ui.texteditor.MarkerAnnotation;
import org.eclipse.ui.texteditor.MarkerUtilities;
import org.eclipse.ui.texteditor.TextOperationAction;
import org.eclipse.ui.views.tasklist.TaskList;
/**
* Java specific text editor.
*/
public class CompilationUnitEditor extends JavaEditor {
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
|
/**
* Responsible for highlighting matching pairs of brackets.
*/
class BracketHighlighter implements KeyListener, MouseListener, ISelectionChangedListener, ITextListener, ITextInputListener {
/**
* Highlights the brackets.
*/
class HighlightBrackets implements PaintListener {
private JavaPairMatcher fMatcher= new JavaPairMatcher(new char[] { '{', '}', '(', ')', '[', ']' });
private Position fBracketPosition= new Position(0, 0);
private int fAnchor;
private boolean fIsActive= false;
private StyledText fTextWidget;
private Color fColor;
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
|
public HighlightBrackets() {
fTextWidget= fSourceViewer.getTextWidget();
}
public void setHighlightColor(Color color) {
fColor= color;
}
public void dispose() {
if (fMatcher != null) {
fMatcher.dispose();
fMatcher= null;
}
fColor= null;
fTextWidget= null;
}
public void deactivate(boolean redraw) {
if (fIsActive) {
fIsActive= false;
fTextWidget.removePaintListener(this);
fManager.unmanage(fBracketPosition);
if (redraw)
handleDrawRequest(null);
}
}
public void run() {
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
|
Point selection= fSourceViewer.getSelectedRange();
if (selection.y > 0) {
deactivate(true);
return;
}
IRegion pair= fMatcher.match(fSourceViewer.getDocument(), selection.x);
if (pair == null) {
deactivate(true);
return;
}
if (fIsActive) {
if (pair.getOffset() != fBracketPosition.getOffset() ||
pair.getLength() != fBracketPosition.getLength() ||
fMatcher.getAnchor() != fAnchor) {
handleDrawRequest(null);
fBracketPosition.isDeleted= false;
fBracketPosition.offset= pair.getOffset();
fBracketPosition.length= pair.getLength();
fAnchor= fMatcher.getAnchor();
handleDrawRequest(null);
}
} else {
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
|
fIsActive= true;
fBracketPosition.isDeleted= false;
fBracketPosition.offset= pair.getOffset();
fBracketPosition.length= pair.getLength();
fAnchor= fMatcher.getAnchor();
fTextWidget.addPaintListener(this);
fManager.manage(fBracketPosition);
handleDrawRequest(null);
}
}
public void paintControl(PaintEvent event) {
if (fTextWidget != null)
handleDrawRequest(event.gc);
}
private void handleDrawRequest(GC gc) {
IRegion region= fSourceViewer.getVisibleRegion();
int offset= fBracketPosition.getOffset();
int length= fBracketPosition.getLength();
if (region.getOffset() <= offset && region.getOffset() + region.getLength() >= offset + length) {
offset -= region.getOffset();
if (fMatcher.RIGHT == fAnchor)
draw(gc, offset, 1);
else
draw(gc, offset + length -1, 1);
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
|
}
}
private void draw(GC gc, int offset, int length) {
if (gc != null) {
Point left= fTextWidget.getLocationAtOffset(offset);
Point right= fTextWidget.getLocationAtOffset(offset + length);
gc.setForeground(fColor);
gc.drawRectangle(left.x, left.y, right.x - left.x - 1, gc.getFontMetrics().getHeight() - 1);
} else {
fTextWidget.redrawRange(offset, length, true);
}
}
};
/**
* Manages the registration and updating of the bracket position.
*/
class BracketPositionManager {
private IDocument fDocument;
private IPositionUpdater fPositionUpdater;
private String fCategory;
public BracketPositionManager() {
fCategory= getClass().getName() + hashCode();
fPositionUpdater= new DefaultPositionUpdater(fCategory);
}
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
|
public void install(IDocument document) {
fDocument= document;
fDocument.addPositionCategory(fCategory);
fDocument.addPositionUpdater(fPositionUpdater);
}
public void dispose() {
uninstall(fDocument);
}
public void uninstall(IDocument document) {
if (document == fDocument && document != null) {
try {
fDocument.removePositionUpdater(fPositionUpdater);
fDocument.removePositionCategory(fCategory);
} catch (BadPositionCategoryException x) {
}
fDocument= null;
}
}
public void manage(Position position) {
try {
fDocument.addPosition(fCategory, position);
} catch (BadPositionCategoryException x) {
} catch (BadLocationException x) {
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
|
}
}
public void unmanage(Position position) {
try {
fDocument.removePosition(fCategory, position);
} catch (BadPositionCategoryException x) {
}
}
};
private BracketPositionManager fManager= new BracketPositionManager();
private HighlightBrackets fHighlightBrackets;
private ISourceViewer fSourceViewer;
private boolean fTextChanged= false;
public BracketHighlighter(ISourceViewer sourceViewer) {
fSourceViewer= sourceViewer;
fHighlightBrackets= new HighlightBrackets();
}
public void setHighlightColor(Color color) {
fHighlightBrackets.setHighlightColor(color);
}
public void install() {
fManager.install(fSourceViewer.getDocument());
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
|
fSourceViewer.addTextInputListener(this);
ISelectionProvider provider= fSourceViewer.getSelectionProvider();
provider.addSelectionChangedListener(this);
fSourceViewer.addTextListener(this);
StyledText text= fSourceViewer.getTextWidget();
text.addKeyListener(this);
text.addMouseListener(this);
}
public void dispose() {
if (fManager != null) {
fManager.dispose();
fManager= null;
}
if (fHighlightBrackets != null) {
fHighlightBrackets.dispose();
fHighlightBrackets= null;
}
if (fSourceViewer != null && fBracketHighlighter != null) {
fSourceViewer.removeTextInputListener(this);
ISelectionProvider provider= fSourceViewer.getSelectionProvider();
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
|
provider.removeSelectionChangedListener(this);
fSourceViewer.removeTextListener(this);
StyledText text= fSourceViewer.getTextWidget();
if (text != null && !text.isDisposed()) {
text.removeKeyListener(fBracketHighlighter);
text.removeMouseListener(fBracketHighlighter);
}
fSourceViewer= null;
}
}
/**
* @see KeyListener#keyPressed(KeyEvent)
*/
public void keyPressed(KeyEvent e) {
fTextChanged= false;
}
/**
* @see KeyListener#keyReleased(KeyEvent)
*/
public void keyReleased(KeyEvent e) {
if (!fTextChanged)
fHighlightBrackets.run();
}
/**
* @see MouseListener#mouseDoubleClick(MouseEvent)
*/
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
|
public void mouseDoubleClick(MouseEvent e) {
}
/**
* @see MouseListener#mouseDown(MouseEvent)
*/
public void mouseDown(MouseEvent e) {
}
/**
* @see MouseListener#mouseUp(MouseEvent)
*/
public void mouseUp(MouseEvent e) {
fHighlightBrackets.run();
}
/**
* @see ISelectionChangedListener#selectionChanged(SelectionChangedEvent)
*/
public void selectionChanged(SelectionChangedEvent event) {
fHighlightBrackets.run();
}
/**
* @see ITextListener#textChanged(TextEvent)
*/
public void textChanged(TextEvent event) {
fTextChanged= true;
Control control= fSourceViewer.getTextWidget();
if (control != null) {
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
|
control.getDisplay().asyncExec(new Runnable() {
public void run() {
if (fTextChanged && fHighlightBrackets != null)
fHighlightBrackets.run();
}
});
}
}
/**
* @see ITextInputListener#inputDocumentAboutToBeChanged(IDocument, IDocument)
*/
public void inputDocumentAboutToBeChanged(IDocument oldInput, IDocument newInput) {
if (oldInput != null) {
fHighlightBrackets.deactivate(false);
fManager.uninstall(oldInput);
}
}
/**
* @see ITextInputListener#inputDocumentChanged(IDocument, IDocument)
*/
public void inputDocumentChanged(IDocument oldInput, IDocument newInput) {
if (newInput != null)
fManager.install(newInput);
}
};
class InternalSourceViewer extends SourceViewer {
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
|
public InternalSourceViewer(Composite parent, IVerticalRuler ruler, int styles) {
super(parent, ruler, styles);
}
public IContentAssistant getContentAssistant() {
return fContentAssistant;
}
};
public final static String MATCHING_BRACKETS= "matchingBrackets";
public final static String MATCHING_BRACKETS_COLOR= "matchingBracketsColor";
protected ISelectionChangedListener fStatusLineClearer;
protected ISavePolicy fSavePolicy;
private JavaEditorErrorTickUpdater fJavaEditorErrorTickUpdater;
private BracketHighlighter fBracketHighlighter;
/**
* Creates a new compilation unit editor.
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
|
*/
public CompilationUnitEditor() {
super();
setDocumentProvider(JavaPlugin.getDefault().getCompilationUnitDocumentProvider());
setEditorContextMenuId("#CompilationUnitEditorContext");
setRulerContextMenuId("#CompilationUnitRulerContext");
setOutlinerContextMenuId("#CompilationUnitOutlinerContext");
setHelpContextId(IJavaHelpContextIds.COMPILATION_UNIT_EDITOR);
fSavePolicy= null;
fJavaEditorErrorTickUpdater= new JavaEditorErrorTickUpdater(this);
}
/**
* @see AbstractTextEditor#createActions()
*/
protected void createActions() {
super.createActions();
setAction("ContentAssistProposal", new TextOperationAction(JavaEditorMessages.getResourceBundle(), "ContentAssistProposal.", this, ISourceViewer.CONTENTASSIST_PROPOSALS));
setAction("AddImportOnSelection", new AddImportOnSelectionAction(this));
setAction("OrganizeImports", new OrganizeImportsAction(this));
setAction("Comment", new TextOperationAction(JavaEditorMessages.getResourceBundle(), "Comment.", this, ITextOperationTarget.PREFIX));
setAction("Uncomment", new TextOperationAction(JavaEditorMessages.getResourceBundle(), "Uncomment.", this, ITextOperationTarget.STRIP_PREFIX));
setAction("Format", new TextOperationAction(JavaEditorMessages.getResourceBundle(), "Format.", this, ISourceViewer.FORMAT));
setAction("ManageBreakpoints", new BreakpointRulerAction(getVerticalRuler(), this));
setAction("SurroundWithTryCatch", new SurroundWithTryCatchAction(this));
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
|
setAction(ITextEditorActionConstants.RULER_DOUBLE_CLICK, getAction("ManageBreakpoints"));
}
/**
* @see JavaEditor#getElementAt(int)
*/
protected IJavaElement getElementAt(int offset) {
IWorkingCopyManager manager= JavaPlugin.getDefault().getWorkingCopyManager();
ICompilationUnit unit= manager.getWorkingCopy(getEditorInput());
if (unit != null) {
synchronized (unit) {
try {
unit.reconcile();
return unit.getElementAt(offset);
} catch (JavaModelException x) {
}
}
}
return null;
}
/**
* @see JavaEditor#getCorrespondingElement(IJavaElement)
*/
protected IJavaElement getCorrespondingElement(IJavaElement element) {
try {
return EditorUtility.getWorkingCopy(element, true);
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
|
} catch (JavaModelException x) {
}
return null;
}
/**
* @see AbstractTextEditor#editorContextMenuAboutToShow(IMenuManager)
*/
public void editorContextMenuAboutToShow(IMenuManager menu) {
super.editorContextMenuAboutToShow(menu);
addAction(menu, IContextMenuConstants.GROUP_GENERATE, "ContentAssistProposal");
addAction(menu, IContextMenuConstants.GROUP_GENERATE, "AddImportOnSelection");
addAction(menu, IContextMenuConstants.GROUP_GENERATE, "OrganizeImports");
addAction(menu, IContextMenuConstants.GROUP_GENERATE, "SurroundWithTryCatch");
addAction(menu, ITextEditorActionConstants.GROUP_EDIT, "Comment");
addAction(menu, ITextEditorActionConstants.GROUP_EDIT, "Uncomment");
addAction(menu, ITextEditorActionConstants.GROUP_EDIT, "Format");
}
/**
* @see AbstractTextEditor#rulerContextMenuAboutToShow(IMenuManager)
*/
protected void rulerContextMenuAboutToShow(IMenuManager menu) {
super.rulerContextMenuAboutToShow(menu);
addAction(menu, "ManageBreakpoints");
}
/**
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
|
* @see JavaEditor#createOutlinePage()
*/
protected JavaOutlinePage createOutlinePage() {
JavaOutlinePage page= super.createOutlinePage();
page.setAction("OrganizeImports", new OrganizeImportsAction(this));
DeleteAction deleteElement= new DeleteAction(page);
page.setAction("DeleteElement", deleteElement);
return page;
}
/**
* @see JavaEditor#setOutlinePageInput(JavaOutlinePage, IEditorInput)
*/
protected void setOutlinePageInput(JavaOutlinePage page, IEditorInput input) {
if (page != null) {
IWorkingCopyManager manager= JavaPlugin.getDefault().getWorkingCopyManager();
page.setInput(manager.getWorkingCopy(input));
}
}
/**
* @see AbstractTextEditor#performSaveOperation(WorkspaceModifyOperation, IProgressMonitor)
*/
protected void performSaveOperation(WorkspaceModifyOperation operation, IProgressMonitor progressMonitor) {
IDocumentProvider p= getDocumentProvider();
if (p instanceof CompilationUnitDocumentProvider) {
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
|
CompilationUnitDocumentProvider cp= (CompilationUnitDocumentProvider) p;
cp.setSavePolicy(fSavePolicy);
}
try {
super.performSaveOperation(operation, progressMonitor);
} finally {
if (p instanceof CompilationUnitDocumentProvider) {
CompilationUnitDocumentProvider cp= (CompilationUnitDocumentProvider) p;
cp.setSavePolicy(null);
}
}
}
/**
* @see AbstractTextEditor#doSave(IProgressMonitor)
*/
public void doSave(IProgressMonitor progressMonitor) {
IDocumentProvider p= getDocumentProvider();
if (p == null)
return;
if (p.isDeleted(getEditorInput())) {
if (isSaveAsAllowed()) {
/*
* 1GEUSSR: ITPUI:ALL - User should never loose changes made in the editors.
* Changed Behavior to make sure that if called inside a regular save (because
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
|
* of deletion of input element) there is a way to report back to the caller.
*/
performSaveAs(progressMonitor);
} else {
/*
* 1GF5YOX: ITPJUI:ALL - Save of delete file claims it's still there
* Missing resources.
*/
Shell shell= getSite().getShell();
MessageDialog.openError(shell, JavaEditorMessages.getString("CompilationUnitEditor.error.saving.title1"), JavaEditorMessages.getString("CompilationUnitEditor.error.saving.message1"));
}
} else {
getStatusLineManager().setErrorMessage("");
IWorkingCopyManager manager= JavaPlugin.getDefault().getWorkingCopyManager();
ICompilationUnit unit= manager.getWorkingCopy(getEditorInput());
if (unit != null) {
synchronized (unit) {
performSaveOperation(createSaveOperation(false), progressMonitor);
}
} else
performSaveOperation(createSaveOperation(false), progressMonitor);
}
}
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
|
/**
* Jumps to the error next according to the given direction.
*/
public void gotoError(boolean forward) {
ISelectionProvider provider= getSelectionProvider();
if (fStatusLineClearer != null) {
provider.removeSelectionChangedListener(fStatusLineClearer);
fStatusLineClearer= null;
}
ITextSelection s= (ITextSelection) provider.getSelection();
IMarker nextError= getNextError(s.getOffset(), forward);
if (nextError != null) {
gotoMarker(nextError);
IWorkbenchPage page= getSite().getPage();
IViewPart view= view= page.findView("org.eclipse.ui.views.TaskList");
if (view instanceof TaskList) {
StructuredSelection ss= new StructuredSelection(nextError);
((TaskList) view).setSelection(ss, true);
}
getStatusLineManager().setErrorMessage(nextError.getAttribute(IMarker.MESSAGE, ""));
fStatusLineClearer= new ISelectionChangedListener() {
public void selectionChanged(SelectionChangedEvent event) {
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
|
getSelectionProvider().removeSelectionChangedListener(fStatusLineClearer);
fStatusLineClearer= null;
getStatusLineManager().setErrorMessage("");
}
};
provider.addSelectionChangedListener(fStatusLineClearer);
} else {
getStatusLineManager().setErrorMessage("");
}
}
private IMarker getNextError(int offset, boolean forward) {
IMarker nextError= null;
IDocument document= getDocumentProvider().getDocument(getEditorInput());
int endOfDocument= document.getLength();
int distance= 0;
IAnnotationModel model= getDocumentProvider().getAnnotationModel(getEditorInput());
Iterator e= model.getAnnotationIterator();
while (e.hasNext()) {
Annotation a= (Annotation) e.next();
if (a instanceof MarkerAnnotation) {
MarkerAnnotation ma= (MarkerAnnotation) a;
IMarker marker= ma.getMarker();
if (MarkerUtilities.isMarkerType(marker, IMarker.PROBLEM)) {
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
|
Position p= model.getPosition(a);
if (!p.includes(offset)) {
int currentDistance= 0;
if (forward) {
currentDistance= p.getOffset() - offset;
if (currentDistance < 0)
currentDistance= endOfDocument - offset + p.getOffset();
} else {
currentDistance= offset - p.getOffset();
if (currentDistance < 0)
currentDistance= offset + endOfDocument - p.getOffset();
}
if (nextError == null || currentDistance < distance) {
distance= currentDistance;
nextError= marker;
}
}
}
}
}
return nextError;
}
/**
* @see AbstractTextEditor#isSaveAsAllowed()
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
|
*/
public boolean isSaveAsAllowed() {
return true;
}
/*
* 1GF7WG9: ITPJUI:ALL - EXCEPTION: "Save As..." always fails
*/
protected IPackageFragment getPackage(IWorkspaceRoot root, IPath path) {
if (path.segmentCount() == 1) {
IProject project= root.getProject(path.toString());
if (project != null) {
IJavaProject jProject= JavaCore.create(project);
if (jProject != null) {
try {
IJavaElement element= jProject.findElement(new Path(""));
if (element instanceof IPackageFragment) {
IPackageFragment fragment= (IPackageFragment) element;
IJavaElement parent= fragment.getParent();
if (parent instanceof IPackageFragmentRoot) {
IPackageFragmentRoot pRoot= (IPackageFragmentRoot) parent;
if ( !pRoot.isArchive() && !pRoot.isExternal() && path.equals(pRoot.getPath()))
return fragment;
}
}
} catch (JavaModelException x) {
}
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
|
}
}
return null;
} else if (path.segmentCount() > 1) {
IFolder folder= root.getFolder(path);
IJavaElement element= JavaCore.create(folder);
if (element instanceof IPackageFragment)
return (IPackageFragment) element;
}
return null;
}
/*
* 1GEUSSR: ITPUI:ALL - User should never loose changes made in the editors.
* Changed behavior to make sure that if called inside a regular save (because
* of deletion of input element) there is a way to report back to the caller.
*/
protected void performSaveAs(IProgressMonitor progressMonitor) {
Shell shell= getSite().getShell();
SaveAsDialog dialog= new SaveAsDialog(shell);
if (dialog.open() == Dialog.CANCEL) {
if (progressMonitor != null)
progressMonitor.setCanceled(true);
return;
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
|
}
IPath filePath= dialog.getResult();
if (filePath == null) {
if (progressMonitor != null)
progressMonitor.setCanceled(true);
return;
}
filePath= filePath.removeTrailingSeparator();
final String fileName= filePath.lastSegment();
IPath folderPath= filePath.removeLastSegments(1);
if (folderPath == null) {
if (progressMonitor != null)
progressMonitor.setCanceled(true);
return;
}
IWorkspaceRoot root= ResourcesPlugin.getWorkspace().getRoot();
/*
* 1GF7WG9: ITPJUI:ALL - EXCEPTION: "Save As..." always fails
*/
final IPackageFragment fragment= getPackage(root, folderPath);
IFile file= root.getFile(filePath);
final FileEditorInput newInput= new FileEditorInput(file);
WorkspaceModifyOperation op= new WorkspaceModifyOperation() {
public void execute(final IProgressMonitor monitor) throws CoreException {
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
|
if (fragment != null) {
try {
IWorkingCopyManager manager= JavaPlugin.getDefault().getWorkingCopyManager();
ICompilationUnit unit= manager.getWorkingCopy(getEditorInput());
/*
* 1GJXY0L: ITPJUI:WINNT - NPE during save As in Java editor
* Introduced null check, just go on in the null case
*/
if (unit != null) {
/*
* 1GF5YOX: ITPJUI:ALL - Save of delete file claims it's still there
* Changed false to true.
*/
unit.copy(fragment, null, fileName, true, monitor);
return;
}
} catch (JavaModelException x) {
}
}
/*
* 1GF5YOX: ITPJUI:ALL - Save of delete file claims it's still there
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
|
* Changed false to true.
*/
getDocumentProvider().saveDocument(monitor, newInput, getDocumentProvider().getDocument(getEditorInput()), true);
}
};
boolean success= false;
try {
if (fragment == null)
getDocumentProvider().aboutToChange(newInput);
new ProgressMonitorDialog(shell).run(false, true, op);
setInput(newInput);
success= true;
} catch (InterruptedException x) {
} catch (InvocationTargetException x) {
/*
* 1GF5YOX: ITPJUI:ALL - Save of delete file claims it's still there
* Missing resources.
*/
Throwable t= x.getTargetException();
if (t instanceof CoreException) {
CoreException cx= (CoreException) t;
ErrorDialog.openError(shell, JavaEditorMessages.getString("CompilationUnitEditor.error.saving.title2"), JavaEditorMessages.getString("CompilationUnitEditor.error.saving.message2"), cx.getStatus());
} else {
MessageDialog.openError(shell, JavaEditorMessages.getString("CompilationUnitEditor.error.saving.title3"), JavaEditorMessages.getString("CompilationUnitEditor.error.saving.message3") + t.getMessage());
}
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
|
} finally {
if (fragment == null)
getDocumentProvider().changed(newInput);
if (progressMonitor != null)
progressMonitor.setCanceled(!success);
}
}
/**
* @see AbstractTextEditor#doSetInput(IEditorInput)
*/
protected void doSetInput(IEditorInput input) throws CoreException {
super.doSetInput(input);
fJavaEditorErrorTickUpdater.setAnnotationModel(getDocumentProvider().getAnnotationModel(input));
}
private void startBracketHighlighting() {
if (fBracketHighlighter == null) {
ISourceViewer sourceViewer= getSourceViewer();
fBracketHighlighter= new BracketHighlighter(sourceViewer);
fBracketHighlighter.setHighlightColor(getColor(MATCHING_BRACKETS_COLOR));
fBracketHighlighter.install();
}
}
private void stopBracketHighlighting() {
if (fBracketHighlighter != null) {
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
|
fBracketHighlighter.dispose();
fBracketHighlighter= null;
}
}
private boolean isBracketHighlightingEnabled() {
IPreferenceStore store= getPreferenceStore();
return store.getBoolean(MATCHING_BRACKETS);
}
private Color getColor(String key) {
RGB rgb= PreferenceConverter.getColor(getPreferenceStore(), key);
JavaTextTools textTools= JavaPlugin.getDefault().getJavaTextTools();
return textTools.getColorManager().getColor(rgb);
}
/**
* @see AbstractTextEditor#dispose()
*/
public void dispose() {
if (fJavaEditorErrorTickUpdater != null) {
fJavaEditorErrorTickUpdater.setAnnotationModel(null);
fJavaEditorErrorTickUpdater= null;
}
stopBracketHighlighting();
super.dispose();
}
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
|
/**
* @see AbstractTextEditor#createPartControl(Composite)
*/
public void createPartControl(Composite parent) {
super.createPartControl(parent);
if (isBracketHighlightingEnabled())
startBracketHighlighting();
}
/**
* @see AbstractTextEditor#handlePreferenceStoreChanged(PropertyChangeEvent)
*/
protected void handlePreferenceStoreChanged(PropertyChangeEvent event) {
try {
InternalSourceViewer isv= (InternalSourceViewer) getSourceViewer();
if (isv != null) {
String p= event.getProperty();
if (MATCHING_BRACKETS.equals(p)) {
if (isBracketHighlightingEnabled())
startBracketHighlighting();
else
stopBracketHighlighting();
return;
}
if (MATCHING_BRACKETS_COLOR.equals(p)) {
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
|
if (fBracketHighlighter != null)
fBracketHighlighter.setHighlightColor(getColor(MATCHING_BRACKETS_COLOR));
return;
}
IContentAssistant c= isv.getContentAssistant();
if (c instanceof ContentAssistant)
ContentAssistPreference.changeConfiguration((ContentAssistant) c, getPreferenceStore(), event);
}
} finally {
super.handlePreferenceStoreChanged(event);
}
}
/**
* @see AbstractTextEditor#affectsTextPresentation(PropertyChangeEvent)
*/
protected boolean affectsTextPresentation(PropertyChangeEvent event) {
String p= event.getProperty();
boolean affects=MATCHING_BRACKETS_COLOR.equals(p);
return affects ? affects : super.affectsTextPresentation(event);
}
/**
* @see AbstractTextEditor#createSourceViewer(Composite, IVerticalRuler, int)
*/
protected ISourceViewer createSourceViewer(Composite parent, IVerticalRuler ruler, int styles) {
return new InternalSourceViewer(parent, ruler, styles);
}
}
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/JavaSourceViewerConfiguration.java
|
package org.eclipse.jdt.ui.text;
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.text.DefaultInformationControl;
import org.eclipse.jface.text.DefaultTextDoubleClickStrategy;
import org.eclipse.jface.text.IAutoIndentStrategy;
import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.IInformationControl;
import org.eclipse.jface.text.IInformationControlCreator;
import org.eclipse.jface.text.ITextDoubleClickStrategy;
import org.eclipse.jface.text.ITextHover;
import org.eclipse.jface.text.contentassist.ContentAssistant;
import org.eclipse.jface.text.contentassist.IContentAssistant;
import org.eclipse.jface.text.formatter.ContentFormatter;
import org.eclipse.jface.text.formatter.IContentFormatter;
import org.eclipse.jface.text.formatter.IFormattingStrategy;
import org.eclipse.jface.text.information.IInformationPresenter;
import org.eclipse.jface.text.information.IInformationProvider;
import org.eclipse.jface.text.information.InformationPresenter;
import org.eclipse.jface.text.presentation.IPresentationReconciler;
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/JavaSourceViewerConfiguration.java
|
import org.eclipse.jface.text.presentation.PresentationReconciler;
import org.eclipse.jface.text.reconciler.IReconciler;
import org.eclipse.jface.text.reconciler.MonoReconciler;
import org.eclipse.jface.text.rules.RuleBasedDamagerRepairer;
import org.eclipse.jface.text.rules.RuleBasedScanner;
import org.eclipse.jface.text.source.IAnnotationHover;
import org.eclipse.jface.text.source.ISourceViewer;
import org.eclipse.jface.text.source.SourceViewerConfiguration;
import org.eclipse.ui.texteditor.ITextEditor;
import org.eclipse.jdt.internal.ui.JavaPlugin;
import org.eclipse.jdt.internal.ui.text.ContentAssistPreference;
import org.eclipse.jdt.internal.ui.text.HTMLTextPresenter;
import org.eclipse.jdt.internal.ui.text.JavaAnnotationHover;
import org.eclipse.jdt.internal.ui.text.JavaPartitionScanner;
import org.eclipse.jdt.internal.ui.text.java.JavaAutoIndentStrategy;
import org.eclipse.jdt.internal.ui.text.java.JavaCompletionProcessor;
import org.eclipse.jdt.internal.ui.text.java.JavaDoubleClickSelector;
import org.eclipse.jdt.internal.ui.text.java.JavaFormattingStrategy;
import org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy;
import org.eclipse.jdt.internal.ui.text.java.hover.JavaInformationProvider;
import org.eclipse.jdt.internal.ui.text.java.hover.JavaTextHover;
import org.eclipse.jdt.internal.ui.text.javadoc.JavaDocAutoIndentStrategy;
import org.eclipse.jdt.internal.ui.text.javadoc.JavaDocCompletionProcessor;
/**
* Configuration for a source viewer which shows Java code.
* <p>
* This class may be instantiated; it is not intended to be subclassed.
* </p>
*/
public class JavaSourceViewerConfiguration extends SourceViewerConfiguration {
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/JavaSourceViewerConfiguration.java
|
public final static String PREFERENCE_TAB_WIDTH= "org.eclipse.jdt.ui.editor.tab.width";
private JavaTextTools fJavaTextTools;
private ITextEditor fTextEditor;
/**
* Creates a new Java source viewer configuration for viewers in the given editor
* using the given Java tools.
*
* @param tools the Java tools to be used
* @param editor the editor in which the configured viewer(s) will reside
*/
public JavaSourceViewerConfiguration(JavaTextTools tools, ITextEditor editor) {
fJavaTextTools= tools;
fTextEditor= editor;
}
/**
* Returns the Java source code scanner for this configuration.
*
* @return the Java source code scanner
*/
protected RuleBasedScanner getCodeScanner() {
return fJavaTextTools.getCodeScanner();
}
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/JavaSourceViewerConfiguration.java
|
/**
* Returns the Java multiline comment scanner for this configuration.
*
* @return the Java multiline comment scanner
*/
protected RuleBasedScanner getMultilineCommentScanner() {
return fJavaTextTools.getMultilineCommentScanner();
}
/**
* Returns the Java singleline comment scanner for this configuration.
*
* @return the Java singleline comment scanner
*/
protected RuleBasedScanner getSinglelineCommentScanner() {
return fJavaTextTools.getSinglelineCommentScanner();
}
/**
* Returns the JavaDoc scanner for this configuration.
*
* @return the JavaDoc scanner
*/
protected RuleBasedScanner getJavaDocScanner() {
return fJavaTextTools.getJavaDocScanner();
}
/**
* Returns the color manager for this configuration.
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/JavaSourceViewerConfiguration.java
|
*
* @return the color manager
*/
protected IColorManager getColorManager() {
return fJavaTextTools.getColorManager();
}
/**
* Returns the editor in which the configured viewer(s) will reside.
*
* @return the enclosing editor
*/
protected ITextEditor getEditor() {
return fTextEditor;
}
/**
* Returns the preference store used for by this configuration to initialize
* the individula bits and pieces.
*/
protected IPreferenceStore getPreferenceStore() {
return JavaPlugin.getDefault().getPreferenceStore();
}
/*
* @see ISourceViewerConfiguration#getPresentationReconciler(ISourceViewer)
*/
public IPresentationReconciler getPresentationReconciler(ISourceViewer sourceViewer) {
PresentationReconciler reconciler= new PresentationReconciler();
RuleBasedDamagerRepairer dr= new RuleBasedDamagerRepairer(getCodeScanner());
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/JavaSourceViewerConfiguration.java
|
reconciler.setDamager(dr, IDocument.DEFAULT_CONTENT_TYPE);
reconciler.setRepairer(dr, IDocument.DEFAULT_CONTENT_TYPE);
dr= new RuleBasedDamagerRepairer(getJavaDocScanner());
reconciler.setDamager(dr, JavaPartitionScanner.JAVA_DOC);
reconciler.setRepairer(dr, JavaPartitionScanner.JAVA_DOC);
dr= new RuleBasedDamagerRepairer(getMultilineCommentScanner());
reconciler.setDamager(dr, JavaPartitionScanner.JAVA_MULTI_LINE_COMMENT);
reconciler.setRepairer(dr, JavaPartitionScanner.JAVA_MULTI_LINE_COMMENT);
dr= new RuleBasedDamagerRepairer(getSinglelineCommentScanner());
reconciler.setDamager(dr, JavaPartitionScanner.JAVA_SINGLE_LINE_COMMENT);
reconciler.setRepairer(dr, JavaPartitionScanner.JAVA_SINGLE_LINE_COMMENT);
return reconciler;
}
/*
* @see SourceViewerConfiguration#getContentAssistant(ISourceViewer)
*/
public IContentAssistant getContentAssistant(ISourceViewer sourceViewer) {
if (getEditor() != null) {
ContentAssistant assistant= new ContentAssistant();
assistant.setContentAssistProcessor(new JavaCompletionProcessor(getEditor()), IDocument.DEFAULT_CONTENT_TYPE);
assistant.setContentAssistProcessor(new JavaDocCompletionProcessor(getEditor()), JavaPartitionScanner.JAVA_DOC);
ContentAssistPreference.configure(assistant, getPreferenceStore());
assistant.setContextInformationPopupOrientation(assistant.CONTEXT_INFO_ABOVE);
assistant.setInformationControlCreator(getInformationControlCreator(sourceViewer));
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/JavaSourceViewerConfiguration.java
|
return assistant;
}
return null;
}
/*
* @see SourceViewerConfiguration#getReconciler(ISourceViewer)
*/
public IReconciler getReconciler(ISourceViewer sourceViewer) {
if (getEditor() != null && getEditor().isEditable()) {
MonoReconciler reconciler= new MonoReconciler(new JavaReconcilingStrategy(getEditor()), false);
reconciler.setDelay(500);
return reconciler;
}
return null;
}
/*
* @see SourceViewerConfiguration#getAutoIndentStrategy(ISourceViewer, String)
*/
public IAutoIndentStrategy getAutoIndentStrategy(ISourceViewer sourceViewer, String contentType) {
if (JavaPartitionScanner.JAVA_DOC.equals(contentType) ||
JavaPartitionScanner.JAVA_MULTI_LINE_COMMENT.equals(contentType))
return new JavaDocAutoIndentStrategy();
return new JavaAutoIndentStrategy();
}
/*
* @see SourceViewerConfiguration#getDoubleClickStrategy(ISourceViewer, String)
*/
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/JavaSourceViewerConfiguration.java
|
public ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer sourceViewer, String contentType) {
if (JavaPartitionScanner.JAVA_DOC.equals(contentType) ||
JavaPartitionScanner.JAVA_MULTI_LINE_COMMENT.equals(contentType) ||
JavaPartitionScanner.JAVA_SINGLE_LINE_COMMENT.equals(contentType))
return new DefaultTextDoubleClickStrategy();
return new JavaDoubleClickSelector();
}
/*
* @see SourceViewerConfiguration#getDefaultPrefix(ISourceViewer, String)
*/
public String[] getDefaultPrefixes(ISourceViewer sourceViewer, String contentType) {
return new String[] { "//", "" };
}
/*
* @see SourceViewerConfiguration#getIndentPrefixes(ISourceViewer, String)
*/
public String[] getIndentPrefixes(ISourceViewer sourceViewer, String contentType) {
return new String[] {"\t", " ", ""};
}
/*
* @see SourceViewerConfiguration#getTabWidth(ISourceViewer)
*/
public int getTabWidth(ISourceViewer sourceViewer) {
return getPreferenceStore().getInt(PREFERENCE_TAB_WIDTH);
}
/*
* @see SourceViewerConfiguration#getAnnotationHover(ISourceViewer)
*/
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer) {
return new JavaAnnotationHover();
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/JavaSourceViewerConfiguration.java
|
}
/*
* @see SourceViewerConfiguration#getTextHover(ISourceViewer, String)
*/
public ITextHover getTextHover(ISourceViewer sourceViewer, String contentType) {
return new JavaTextHover(getEditor());
}
/*
* @see SourceViewerConfiguration#getConfiguredContentTypes(ISourceViewer)
*/
public String[] getConfiguredContentTypes(ISourceViewer sourceViewer) {
return new String[] { IDocument.DEFAULT_CONTENT_TYPE, JavaPartitionScanner.JAVA_DOC, JavaPartitionScanner.JAVA_MULTI_LINE_COMMENT, JavaPartitionScanner.JAVA_SINGLE_LINE_COMMENT };
}
/*
* @see SourceViewerConfiguration#getContentFormatter(ISourceViewer)
*/
public IContentFormatter getContentFormatter(ISourceViewer sourceViewer) {
ContentFormatter formatter= new ContentFormatter();
IFormattingStrategy strategy= new JavaFormattingStrategy(sourceViewer);
formatter.setFormattingStrategy(strategy, IDocument.DEFAULT_CONTENT_TYPE);
formatter.enablePartitionAwareFormatting(false);
formatter.setPartitionManagingPositionCategories(fJavaTextTools.getPartitionManagingPositionCategories());
return formatter;
}
|
5,473 |
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
|
Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.
|
resolved fixed
|
abd307b
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-09T17:15:29Z | 2001-11-02T16:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/JavaSourceViewerConfiguration.java
|
/*
* @see SourceViewerConfiguration#getHoverControlCreator(ISourceViewer)
*/
public IInformationControlCreator getInformationControlCreator(ISourceViewer sourceViewer) {
return getInformationControlCreator(sourceViewer, true);
}
private IInformationControlCreator getInformationControlCreator(ISourceViewer sourceViewer, final boolean cutDown) {
return new IInformationControlCreator() {
public IInformationControl createInformationControl(Shell parent) {
int style= cutDown ? SWT.NONE : (SWT.V_SCROLL | SWT.H_SCROLL);
return new DefaultInformationControl(parent, style, new HTMLTextPresenter(cutDown));
}
};
}
/*
* @see SourceViewerConfiguration#getInformationPresenter(ISourceViewer)
*/
public IInformationPresenter getInformationPresenter(ISourceViewer sourceViewer) {
InformationPresenter presenter= new InformationPresenter(getInformationControlCreator(sourceViewer, false));
IInformationProvider provider= new JavaInformationProvider(getEditor());
presenter.setInformationProvider(provider, IDocument.DEFAULT_CONTENT_TYPE);
presenter.setInformationProvider(provider, JavaPartitionScanner.JAVA_DOC);
presenter.setSizeConstraints(60, 10, true, true);
return presenter;
}
}
|
7,411 |
Bug 7411 Cannot add breakpoint on super()
|
If you are in a constructor and you wish to breakpoint on "super()", it is currently not possible.
|
verified fixed
|
04e1230
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-10T20:31:54Z | 2002-01-09T23:46:40Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/BreakpointLocationVerifier.java
|
package org.eclipse.jdt.internal.ui.javaeditor;
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
import org.eclipse.jdt.internal.compiler.parser.InvalidInputException;
import org.eclipse.jdt.internal.compiler.parser.Scanner;
import org.eclipse.jdt.internal.compiler.parser.TerminalSymbols;
import org.eclipse.jface.text.BadLocationException;
import org.eclipse.jface.text.IDocument;
public class BreakpointLocationVerifier {
/**
* Returns the line number closest to the given line number that represents a
* valid location for a breakpoint in the given document, or -1 is a valid location
* cannot be found.
*/
public int getValidBreakpointLocation(IDocument doc, int lineNumber) {
Scanner scanner= new Scanner();
boolean found= false;
int start= 0, length= 0, token= 0;
while (!found) {
try {
start= doc.getLineOffset(lineNumber);
|
7,411 |
Bug 7411 Cannot add breakpoint on super()
|
If you are in a constructor and you wish to breakpoint on "super()", it is currently not possible.
|
verified fixed
|
04e1230
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-10T20:31:54Z | 2002-01-09T23:46:40Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/BreakpointLocationVerifier.java
|
length= doc.getLineLength(lineNumber);
char[] txt= doc.get(start, length).toCharArray();
scanner.setSourceBuffer(txt);
token= scanner.getNextToken();
while (token != TerminalSymbols.TokenNameEOF) {
if (token == TerminalSymbols.TokenNamebreak ||
token == TerminalSymbols.TokenNamecontinue ||
token == TerminalSymbols.TokenNameIdentifier ||
token == TerminalSymbols.TokenNamereturn ||
token == TerminalSymbols.TokenNamethis) {
found= true;
break;
} else {
token= scanner.getNextToken();
}
}
if (!found) {
lineNumber++;
}
} catch (BadLocationException ble) {
return -1;
} catch (InvalidInputException ie) {
return -1;
}
}
return lineNumber + 1;
}
}
|
7,471 |
Bug 7471 JavaModelException in type hierarchy
|
From 7442 (only the bottom part is relevant for this PR). Martin why are we logging this exception? It looks like a case that can happen and that we should handle. ==== I was debugging a new plug-in when the UI in the master workbench froze on me. I was playing around with the editor's title. I had implemented a getTitle() method, but then commented out the method and put in a setInitializationData method (which only does a super to the EditorPart implementation). I had set a breakpoint in my editor's setInitializationData method. The runtime hit the breakpoint, and I clicked on step into in the debugger. A dialog appeared prompting me for the source path for rt.jar (why? The code wasn't in rt.jar). It was impossible to give the dialog focus, and since it was modal it effectively froze my UI. I had two windows open at the time: my workbench and a debug window. In the workbench I had a Packages view and a Hierarchy view (sharing one pane, Hierarchy view on top) and an Outline view. The hierarchy view was showing the hierarchy for BOEditor (a subclass of EditorPart with no subclasses of its own). Note that getTitle() had been removed from the hierarchy view's methods list, as well as from the Outline's. I found the following stack trace in my .log file: Log: Thu Jan 10 12:29:34 EST 2002 4 org.eclipse.jdt.ui 1 Internal Error Java Model Exception: Java Model Status [getTitle does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:448) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java(Compiled Code)) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java(Compiled Code)) at org.eclipse.jdt.internal.core.SourceMethod.isConstructor (SourceMethod.java(Compiled Code)) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsViewer.findSimilarMethod (MethodsViewer.java:372) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsViewer.handleInvalidSelection (MethodsViewer.java:354) at org.eclipse.jface.viewers.StructuredViewer.preservingSelection (StructuredViewer.java(Compiled Code)) at org.eclipse.jface.viewers.StructuredViewer.refresh (StructuredViewer.java:623) at org.eclipse.jface.viewers.StructuredViewer.refresh (StructuredViewer.java:591) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsContentProvider.doTypeHierarchy Changed(MethodsContentProvider.java:183) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsContentProvider.access$0 (MethodsContentProvider.java:170) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsContentProvider$1.run (MethodsContentProvider.java:163) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java(Compiled Code)) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages (Synchronizer.java(Compiled Code)) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java (Compiled Code)) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java (Compiled Code)) at org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor.runEventLoop (EventLoopProgressMonitor.java(Compiled Code)) at org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor.subTask (EventLoopProgressMonitor.java(Compiled Code)) at org.eclipse.core.runtime.ProgressMonitorWrapper.subTask (ProgressMonitorWrapper.java(Compiled Code)) at org.eclipse.core.runtime.SubProgressMonitor.subTask (SubProgressMonitor.java(Compiled Code)) at org.eclipse.core.internal.resources.Workspace.endOperation (Workspace.java(Compiled Code)) at org.eclipse.core.internal.resources.Workspace.run (Workspace.java:1237) at org.eclipse.ui.actions.WorkspaceModifyOperation.run (WorkspaceModifyOperation.java:78) at org.eclipse.ui.texteditor.AbstractTextEditor.performSaveOperation (AbstractTextEditor.java:1485) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.performSaveOperatio n(CompilationUnitEditor.java:592) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.doSave (CompilationUnitEditor.java:640) at org.eclipse.ui.internal.EditorManager$9.run(EditorManager.java:785) at org.eclipse.jface.operation.ModalContext.runInCurrentThread (ModalContext.java:296) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:249) at org.eclipse.jface.dialogs.ProgressMonitorDialog.run (ProgressMonitorDialog.java:335) at org.eclipse.ui.internal.EditorManager.runProgressMonitorOperation (EditorManager.java:643) at org.eclipse.ui.internal.EditorManager.saveEditor (EditorManager.java:790) at org.eclipse.ui.internal.WorkbenchPage.saveEditor (WorkbenchPage.java:1309) at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:32) at org.eclipse.jface.action.Action.runWithEvent(Action.java:452) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java (Compiled Code)) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java (Compiled Code)) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java (Compiled Code)) at org.eclipse.ui.internal.Workbench.run(Workbench.java:798) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:821) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:151) at org.eclipse.core.launcher.Main.run(Main.java:502) at org.eclipse.core.launcher.Main.main(Main.java:362) 4 org.eclipse.jdt.core 969 getTitle does not exist.
|
resolved fixed
|
78fc002
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T11:44:20Z | 2002-01-11T09:06:40Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
|
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
package org.eclipse.jdt.internal.ui.typehierarchy;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Item;
import org.eclipse.swt.widgets.Menu;
import org.eclipse.swt.widgets.ScrollBar;
import org.eclipse.swt.widgets.Table;
import org.eclipse.jface.action.IMenuListener;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.MenuManager;
import org.eclipse.jface.action.Separator;
import org.eclipse.jface.action.ToolBarManager;
import org.eclipse.jface.viewers.DoubleClickEvent;
import org.eclipse.jface.viewers.IDoubleClickListener;
import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.jface.viewers.TableViewer;
|
7,471 |
Bug 7471 JavaModelException in type hierarchy
|
From 7442 (only the bottom part is relevant for this PR). Martin why are we logging this exception? It looks like a case that can happen and that we should handle. ==== I was debugging a new plug-in when the UI in the master workbench froze on me. I was playing around with the editor's title. I had implemented a getTitle() method, but then commented out the method and put in a setInitializationData method (which only does a super to the EditorPart implementation). I had set a breakpoint in my editor's setInitializationData method. The runtime hit the breakpoint, and I clicked on step into in the debugger. A dialog appeared prompting me for the source path for rt.jar (why? The code wasn't in rt.jar). It was impossible to give the dialog focus, and since it was modal it effectively froze my UI. I had two windows open at the time: my workbench and a debug window. In the workbench I had a Packages view and a Hierarchy view (sharing one pane, Hierarchy view on top) and an Outline view. The hierarchy view was showing the hierarchy for BOEditor (a subclass of EditorPart with no subclasses of its own). Note that getTitle() had been removed from the hierarchy view's methods list, as well as from the Outline's. I found the following stack trace in my .log file: Log: Thu Jan 10 12:29:34 EST 2002 4 org.eclipse.jdt.ui 1 Internal Error Java Model Exception: Java Model Status [getTitle does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:448) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java(Compiled Code)) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java(Compiled Code)) at org.eclipse.jdt.internal.core.SourceMethod.isConstructor (SourceMethod.java(Compiled Code)) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsViewer.findSimilarMethod (MethodsViewer.java:372) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsViewer.handleInvalidSelection (MethodsViewer.java:354) at org.eclipse.jface.viewers.StructuredViewer.preservingSelection (StructuredViewer.java(Compiled Code)) at org.eclipse.jface.viewers.StructuredViewer.refresh (StructuredViewer.java:623) at org.eclipse.jface.viewers.StructuredViewer.refresh (StructuredViewer.java:591) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsContentProvider.doTypeHierarchy Changed(MethodsContentProvider.java:183) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsContentProvider.access$0 (MethodsContentProvider.java:170) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsContentProvider$1.run (MethodsContentProvider.java:163) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java(Compiled Code)) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages (Synchronizer.java(Compiled Code)) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java (Compiled Code)) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java (Compiled Code)) at org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor.runEventLoop (EventLoopProgressMonitor.java(Compiled Code)) at org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor.subTask (EventLoopProgressMonitor.java(Compiled Code)) at org.eclipse.core.runtime.ProgressMonitorWrapper.subTask (ProgressMonitorWrapper.java(Compiled Code)) at org.eclipse.core.runtime.SubProgressMonitor.subTask (SubProgressMonitor.java(Compiled Code)) at org.eclipse.core.internal.resources.Workspace.endOperation (Workspace.java(Compiled Code)) at org.eclipse.core.internal.resources.Workspace.run (Workspace.java:1237) at org.eclipse.ui.actions.WorkspaceModifyOperation.run (WorkspaceModifyOperation.java:78) at org.eclipse.ui.texteditor.AbstractTextEditor.performSaveOperation (AbstractTextEditor.java:1485) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.performSaveOperatio n(CompilationUnitEditor.java:592) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.doSave (CompilationUnitEditor.java:640) at org.eclipse.ui.internal.EditorManager$9.run(EditorManager.java:785) at org.eclipse.jface.operation.ModalContext.runInCurrentThread (ModalContext.java:296) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:249) at org.eclipse.jface.dialogs.ProgressMonitorDialog.run (ProgressMonitorDialog.java:335) at org.eclipse.ui.internal.EditorManager.runProgressMonitorOperation (EditorManager.java:643) at org.eclipse.ui.internal.EditorManager.saveEditor (EditorManager.java:790) at org.eclipse.ui.internal.WorkbenchPage.saveEditor (WorkbenchPage.java:1309) at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:32) at org.eclipse.jface.action.Action.runWithEvent(Action.java:452) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java (Compiled Code)) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java (Compiled Code)) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java (Compiled Code)) at org.eclipse.ui.internal.Workbench.run(Workbench.java:798) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:821) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:151) at org.eclipse.core.launcher.Main.run(Main.java:502) at org.eclipse.core.launcher.Main.main(Main.java:362) 4 org.eclipse.jdt.core 969 getTitle does not exist.
|
resolved fixed
|
78fc002
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T11:44:20Z | 2002-01-11T09:06:40Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
|
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.ui.IMemento;
import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.IWorkbenchPartSite;
import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.core.IMethod;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jdt.ui.IContextMenuConstants;
import org.eclipse.jdt.ui.JavaElementLabelProvider;
import org.eclipse.jdt.internal.corext.util.JavaModelUtil;
import org.eclipse.jdt.internal.ui.IJavaHelpContextIds;
import org.eclipse.jdt.internal.ui.JavaPlugin;
import org.eclipse.jdt.internal.ui.JavaPluginImages;
import org.eclipse.jdt.internal.ui.actions.ContextMenuGroup;
import org.eclipse.jdt.internal.ui.actions.GenerateGroup;
import org.eclipse.jdt.internal.ui.actions.OpenJavaElementAction;
import org.eclipse.jdt.internal.ui.search.JavaSearchGroup;
import org.eclipse.jdt.internal.ui.util.ExceptionHandler;
import org.eclipse.jdt.internal.ui.util.SelectionUtil;
import org.eclipse.jdt.internal.ui.viewsupport.IProblemChangedListener;
import org.eclipse.jdt.internal.ui.viewsupport.JavaElementLabels;
import org.eclipse.jdt.internal.ui.viewsupport.JavaElementSorter;
import org.eclipse.jdt.internal.ui.viewsupport.MarkerErrorTickProvider;
import org.eclipse.jdt.internal.ui.viewsupport.ProblemItemMapper;
/**
* Method viewer shows a list of methods of a input type.
* Offers filter actions.
* No dependency to the type hierarchy view
*/
public class MethodsViewer extends TableViewer implements IProblemChangedListener {
|
7,471 |
Bug 7471 JavaModelException in type hierarchy
|
From 7442 (only the bottom part is relevant for this PR). Martin why are we logging this exception? It looks like a case that can happen and that we should handle. ==== I was debugging a new plug-in when the UI in the master workbench froze on me. I was playing around with the editor's title. I had implemented a getTitle() method, but then commented out the method and put in a setInitializationData method (which only does a super to the EditorPart implementation). I had set a breakpoint in my editor's setInitializationData method. The runtime hit the breakpoint, and I clicked on step into in the debugger. A dialog appeared prompting me for the source path for rt.jar (why? The code wasn't in rt.jar). It was impossible to give the dialog focus, and since it was modal it effectively froze my UI. I had two windows open at the time: my workbench and a debug window. In the workbench I had a Packages view and a Hierarchy view (sharing one pane, Hierarchy view on top) and an Outline view. The hierarchy view was showing the hierarchy for BOEditor (a subclass of EditorPart with no subclasses of its own). Note that getTitle() had been removed from the hierarchy view's methods list, as well as from the Outline's. I found the following stack trace in my .log file: Log: Thu Jan 10 12:29:34 EST 2002 4 org.eclipse.jdt.ui 1 Internal Error Java Model Exception: Java Model Status [getTitle does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:448) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java(Compiled Code)) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java(Compiled Code)) at org.eclipse.jdt.internal.core.SourceMethod.isConstructor (SourceMethod.java(Compiled Code)) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsViewer.findSimilarMethod (MethodsViewer.java:372) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsViewer.handleInvalidSelection (MethodsViewer.java:354) at org.eclipse.jface.viewers.StructuredViewer.preservingSelection (StructuredViewer.java(Compiled Code)) at org.eclipse.jface.viewers.StructuredViewer.refresh (StructuredViewer.java:623) at org.eclipse.jface.viewers.StructuredViewer.refresh (StructuredViewer.java:591) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsContentProvider.doTypeHierarchy Changed(MethodsContentProvider.java:183) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsContentProvider.access$0 (MethodsContentProvider.java:170) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsContentProvider$1.run (MethodsContentProvider.java:163) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java(Compiled Code)) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages (Synchronizer.java(Compiled Code)) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java (Compiled Code)) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java (Compiled Code)) at org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor.runEventLoop (EventLoopProgressMonitor.java(Compiled Code)) at org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor.subTask (EventLoopProgressMonitor.java(Compiled Code)) at org.eclipse.core.runtime.ProgressMonitorWrapper.subTask (ProgressMonitorWrapper.java(Compiled Code)) at org.eclipse.core.runtime.SubProgressMonitor.subTask (SubProgressMonitor.java(Compiled Code)) at org.eclipse.core.internal.resources.Workspace.endOperation (Workspace.java(Compiled Code)) at org.eclipse.core.internal.resources.Workspace.run (Workspace.java:1237) at org.eclipse.ui.actions.WorkspaceModifyOperation.run (WorkspaceModifyOperation.java:78) at org.eclipse.ui.texteditor.AbstractTextEditor.performSaveOperation (AbstractTextEditor.java:1485) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.performSaveOperatio n(CompilationUnitEditor.java:592) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.doSave (CompilationUnitEditor.java:640) at org.eclipse.ui.internal.EditorManager$9.run(EditorManager.java:785) at org.eclipse.jface.operation.ModalContext.runInCurrentThread (ModalContext.java:296) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:249) at org.eclipse.jface.dialogs.ProgressMonitorDialog.run (ProgressMonitorDialog.java:335) at org.eclipse.ui.internal.EditorManager.runProgressMonitorOperation (EditorManager.java:643) at org.eclipse.ui.internal.EditorManager.saveEditor (EditorManager.java:790) at org.eclipse.ui.internal.WorkbenchPage.saveEditor (WorkbenchPage.java:1309) at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:32) at org.eclipse.jface.action.Action.runWithEvent(Action.java:452) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java (Compiled Code)) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java (Compiled Code)) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java (Compiled Code)) at org.eclipse.ui.internal.Workbench.run(Workbench.java:798) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:821) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:151) at org.eclipse.core.launcher.Main.run(Main.java:502) at org.eclipse.core.launcher.Main.main(Main.java:362) 4 org.eclipse.jdt.core 969 getTitle does not exist.
|
resolved fixed
|
78fc002
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T11:44:20Z | 2002-01-11T09:06:40Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
|
private ProblemItemMapper fProblemItemMapper;
/**
* Sorter that uses the unmodified labelprovider (No declaring class names)
*/
private static class MethodsViewerSorter extends JavaElementSorter {
|
7,471 |
Bug 7471 JavaModelException in type hierarchy
|
From 7442 (only the bottom part is relevant for this PR). Martin why are we logging this exception? It looks like a case that can happen and that we should handle. ==== I was debugging a new plug-in when the UI in the master workbench froze on me. I was playing around with the editor's title. I had implemented a getTitle() method, but then commented out the method and put in a setInitializationData method (which only does a super to the EditorPart implementation). I had set a breakpoint in my editor's setInitializationData method. The runtime hit the breakpoint, and I clicked on step into in the debugger. A dialog appeared prompting me for the source path for rt.jar (why? The code wasn't in rt.jar). It was impossible to give the dialog focus, and since it was modal it effectively froze my UI. I had two windows open at the time: my workbench and a debug window. In the workbench I had a Packages view and a Hierarchy view (sharing one pane, Hierarchy view on top) and an Outline view. The hierarchy view was showing the hierarchy for BOEditor (a subclass of EditorPart with no subclasses of its own). Note that getTitle() had been removed from the hierarchy view's methods list, as well as from the Outline's. I found the following stack trace in my .log file: Log: Thu Jan 10 12:29:34 EST 2002 4 org.eclipse.jdt.ui 1 Internal Error Java Model Exception: Java Model Status [getTitle does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:448) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java(Compiled Code)) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java(Compiled Code)) at org.eclipse.jdt.internal.core.SourceMethod.isConstructor (SourceMethod.java(Compiled Code)) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsViewer.findSimilarMethod (MethodsViewer.java:372) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsViewer.handleInvalidSelection (MethodsViewer.java:354) at org.eclipse.jface.viewers.StructuredViewer.preservingSelection (StructuredViewer.java(Compiled Code)) at org.eclipse.jface.viewers.StructuredViewer.refresh (StructuredViewer.java:623) at org.eclipse.jface.viewers.StructuredViewer.refresh (StructuredViewer.java:591) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsContentProvider.doTypeHierarchy Changed(MethodsContentProvider.java:183) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsContentProvider.access$0 (MethodsContentProvider.java:170) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsContentProvider$1.run (MethodsContentProvider.java:163) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java(Compiled Code)) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages (Synchronizer.java(Compiled Code)) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java (Compiled Code)) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java (Compiled Code)) at org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor.runEventLoop (EventLoopProgressMonitor.java(Compiled Code)) at org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor.subTask (EventLoopProgressMonitor.java(Compiled Code)) at org.eclipse.core.runtime.ProgressMonitorWrapper.subTask (ProgressMonitorWrapper.java(Compiled Code)) at org.eclipse.core.runtime.SubProgressMonitor.subTask (SubProgressMonitor.java(Compiled Code)) at org.eclipse.core.internal.resources.Workspace.endOperation (Workspace.java(Compiled Code)) at org.eclipse.core.internal.resources.Workspace.run (Workspace.java:1237) at org.eclipse.ui.actions.WorkspaceModifyOperation.run (WorkspaceModifyOperation.java:78) at org.eclipse.ui.texteditor.AbstractTextEditor.performSaveOperation (AbstractTextEditor.java:1485) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.performSaveOperatio n(CompilationUnitEditor.java:592) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.doSave (CompilationUnitEditor.java:640) at org.eclipse.ui.internal.EditorManager$9.run(EditorManager.java:785) at org.eclipse.jface.operation.ModalContext.runInCurrentThread (ModalContext.java:296) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:249) at org.eclipse.jface.dialogs.ProgressMonitorDialog.run (ProgressMonitorDialog.java:335) at org.eclipse.ui.internal.EditorManager.runProgressMonitorOperation (EditorManager.java:643) at org.eclipse.ui.internal.EditorManager.saveEditor (EditorManager.java:790) at org.eclipse.ui.internal.WorkbenchPage.saveEditor (WorkbenchPage.java:1309) at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:32) at org.eclipse.jface.action.Action.runWithEvent(Action.java:452) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java (Compiled Code)) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java (Compiled Code)) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java (Compiled Code)) at org.eclipse.ui.internal.Workbench.run(Workbench.java:798) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:821) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:151) at org.eclipse.core.launcher.Main.run(Main.java:502) at org.eclipse.core.launcher.Main.main(Main.java:362) 4 org.eclipse.jdt.core 969 getTitle does not exist.
|
resolved fixed
|
78fc002
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T11:44:20Z | 2002-01-11T09:06:40Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
|
public MethodsViewerSorter() {
}
public int compare(Viewer viewer, Object e1, Object e2) {
int cat1 = category(e1);
int cat2 = category(e2);
if (cat1 != cat2)
return cat1 - cat2;
String name1= JavaElementLabels.getElementLabel((IJavaElement) e1, JavaElementLabels.ALL_DEFAULT);
String name2= JavaElementLabels.getElementLabel((IJavaElement) e2, JavaElementLabels.ALL_DEFAULT);
return getCollator().compare(name1, name2);
}
}
private static final String TAG_HIDEFIELDS= "hidefields";
private static final String TAG_HIDESTATIC= "hidestatic";
private static final String TAG_HIDENONPUBLIC= "hidenonpublic";
private static final String TAG_SHOWINHERITED= "showinherited";
private static final String TAG_VERTICAL_SCROLL= "mv_vertical_scroll";
private MethodsViewerFilterAction[] fFilterActions;
private MethodsViewerFilter fFilter;
|
7,471 |
Bug 7471 JavaModelException in type hierarchy
|
From 7442 (only the bottom part is relevant for this PR). Martin why are we logging this exception? It looks like a case that can happen and that we should handle. ==== I was debugging a new plug-in when the UI in the master workbench froze on me. I was playing around with the editor's title. I had implemented a getTitle() method, but then commented out the method and put in a setInitializationData method (which only does a super to the EditorPart implementation). I had set a breakpoint in my editor's setInitializationData method. The runtime hit the breakpoint, and I clicked on step into in the debugger. A dialog appeared prompting me for the source path for rt.jar (why? The code wasn't in rt.jar). It was impossible to give the dialog focus, and since it was modal it effectively froze my UI. I had two windows open at the time: my workbench and a debug window. In the workbench I had a Packages view and a Hierarchy view (sharing one pane, Hierarchy view on top) and an Outline view. The hierarchy view was showing the hierarchy for BOEditor (a subclass of EditorPart with no subclasses of its own). Note that getTitle() had been removed from the hierarchy view's methods list, as well as from the Outline's. I found the following stack trace in my .log file: Log: Thu Jan 10 12:29:34 EST 2002 4 org.eclipse.jdt.ui 1 Internal Error Java Model Exception: Java Model Status [getTitle does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:448) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java(Compiled Code)) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java(Compiled Code)) at org.eclipse.jdt.internal.core.SourceMethod.isConstructor (SourceMethod.java(Compiled Code)) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsViewer.findSimilarMethod (MethodsViewer.java:372) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsViewer.handleInvalidSelection (MethodsViewer.java:354) at org.eclipse.jface.viewers.StructuredViewer.preservingSelection (StructuredViewer.java(Compiled Code)) at org.eclipse.jface.viewers.StructuredViewer.refresh (StructuredViewer.java:623) at org.eclipse.jface.viewers.StructuredViewer.refresh (StructuredViewer.java:591) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsContentProvider.doTypeHierarchy Changed(MethodsContentProvider.java:183) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsContentProvider.access$0 (MethodsContentProvider.java:170) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsContentProvider$1.run (MethodsContentProvider.java:163) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java(Compiled Code)) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages (Synchronizer.java(Compiled Code)) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java (Compiled Code)) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java (Compiled Code)) at org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor.runEventLoop (EventLoopProgressMonitor.java(Compiled Code)) at org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor.subTask (EventLoopProgressMonitor.java(Compiled Code)) at org.eclipse.core.runtime.ProgressMonitorWrapper.subTask (ProgressMonitorWrapper.java(Compiled Code)) at org.eclipse.core.runtime.SubProgressMonitor.subTask (SubProgressMonitor.java(Compiled Code)) at org.eclipse.core.internal.resources.Workspace.endOperation (Workspace.java(Compiled Code)) at org.eclipse.core.internal.resources.Workspace.run (Workspace.java:1237) at org.eclipse.ui.actions.WorkspaceModifyOperation.run (WorkspaceModifyOperation.java:78) at org.eclipse.ui.texteditor.AbstractTextEditor.performSaveOperation (AbstractTextEditor.java:1485) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.performSaveOperatio n(CompilationUnitEditor.java:592) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.doSave (CompilationUnitEditor.java:640) at org.eclipse.ui.internal.EditorManager$9.run(EditorManager.java:785) at org.eclipse.jface.operation.ModalContext.runInCurrentThread (ModalContext.java:296) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:249) at org.eclipse.jface.dialogs.ProgressMonitorDialog.run (ProgressMonitorDialog.java:335) at org.eclipse.ui.internal.EditorManager.runProgressMonitorOperation (EditorManager.java:643) at org.eclipse.ui.internal.EditorManager.saveEditor (EditorManager.java:790) at org.eclipse.ui.internal.WorkbenchPage.saveEditor (WorkbenchPage.java:1309) at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:32) at org.eclipse.jface.action.Action.runWithEvent(Action.java:452) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java (Compiled Code)) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java (Compiled Code)) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java (Compiled Code)) at org.eclipse.ui.internal.Workbench.run(Workbench.java:798) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:821) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:151) at org.eclipse.core.launcher.Main.run(Main.java:502) at org.eclipse.core.launcher.Main.main(Main.java:362) 4 org.eclipse.jdt.core 969 getTitle does not exist.
|
resolved fixed
|
78fc002
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T11:44:20Z | 2002-01-11T09:06:40Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
|
private OpenJavaElementAction fOpen;
private ShowInheritedMembersAction fShowInheritedMembersAction;
private ContextMenuGroup[] fStandardGroups;
public MethodsViewer(Composite parent, IWorkbenchPart part) {
super(new Table(parent, SWT.MULTI));
fProblemItemMapper= new ProblemItemMapper();
JavaElementLabelProvider lprovider= new JavaElementLabelProvider(JavaElementLabelProvider.SHOW_DEFAULT);
lprovider.setErrorTickManager(new MarkerErrorTickProvider());
MethodsContentProvider contentProvider= new MethodsContentProvider();
setLabelProvider(lprovider);
setContentProvider(contentProvider);
fOpen= new OpenJavaElementAction(this);
addDoubleClickListener(new IDoubleClickListener() {
public void doubleClick(DoubleClickEvent event) {
fOpen.run();
}
});
fFilter= new MethodsViewerFilter();
String title= TypeHierarchyMessages.getString("MethodsViewer.hide_fields.label");
String helpContext= IJavaHelpContextIds.FILTER_FIELDS_ACTION;
MethodsViewerFilterAction hideFields= new MethodsViewerFilterAction(this, title, MethodsViewerFilter.FILTER_FIELDS, helpContext, false);
|
7,471 |
Bug 7471 JavaModelException in type hierarchy
|
From 7442 (only the bottom part is relevant for this PR). Martin why are we logging this exception? It looks like a case that can happen and that we should handle. ==== I was debugging a new plug-in when the UI in the master workbench froze on me. I was playing around with the editor's title. I had implemented a getTitle() method, but then commented out the method and put in a setInitializationData method (which only does a super to the EditorPart implementation). I had set a breakpoint in my editor's setInitializationData method. The runtime hit the breakpoint, and I clicked on step into in the debugger. A dialog appeared prompting me for the source path for rt.jar (why? The code wasn't in rt.jar). It was impossible to give the dialog focus, and since it was modal it effectively froze my UI. I had two windows open at the time: my workbench and a debug window. In the workbench I had a Packages view and a Hierarchy view (sharing one pane, Hierarchy view on top) and an Outline view. The hierarchy view was showing the hierarchy for BOEditor (a subclass of EditorPart with no subclasses of its own). Note that getTitle() had been removed from the hierarchy view's methods list, as well as from the Outline's. I found the following stack trace in my .log file: Log: Thu Jan 10 12:29:34 EST 2002 4 org.eclipse.jdt.ui 1 Internal Error Java Model Exception: Java Model Status [getTitle does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:448) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java(Compiled Code)) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java(Compiled Code)) at org.eclipse.jdt.internal.core.SourceMethod.isConstructor (SourceMethod.java(Compiled Code)) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsViewer.findSimilarMethod (MethodsViewer.java:372) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsViewer.handleInvalidSelection (MethodsViewer.java:354) at org.eclipse.jface.viewers.StructuredViewer.preservingSelection (StructuredViewer.java(Compiled Code)) at org.eclipse.jface.viewers.StructuredViewer.refresh (StructuredViewer.java:623) at org.eclipse.jface.viewers.StructuredViewer.refresh (StructuredViewer.java:591) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsContentProvider.doTypeHierarchy Changed(MethodsContentProvider.java:183) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsContentProvider.access$0 (MethodsContentProvider.java:170) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsContentProvider$1.run (MethodsContentProvider.java:163) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java(Compiled Code)) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages (Synchronizer.java(Compiled Code)) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java (Compiled Code)) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java (Compiled Code)) at org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor.runEventLoop (EventLoopProgressMonitor.java(Compiled Code)) at org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor.subTask (EventLoopProgressMonitor.java(Compiled Code)) at org.eclipse.core.runtime.ProgressMonitorWrapper.subTask (ProgressMonitorWrapper.java(Compiled Code)) at org.eclipse.core.runtime.SubProgressMonitor.subTask (SubProgressMonitor.java(Compiled Code)) at org.eclipse.core.internal.resources.Workspace.endOperation (Workspace.java(Compiled Code)) at org.eclipse.core.internal.resources.Workspace.run (Workspace.java:1237) at org.eclipse.ui.actions.WorkspaceModifyOperation.run (WorkspaceModifyOperation.java:78) at org.eclipse.ui.texteditor.AbstractTextEditor.performSaveOperation (AbstractTextEditor.java:1485) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.performSaveOperatio n(CompilationUnitEditor.java:592) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.doSave (CompilationUnitEditor.java:640) at org.eclipse.ui.internal.EditorManager$9.run(EditorManager.java:785) at org.eclipse.jface.operation.ModalContext.runInCurrentThread (ModalContext.java:296) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:249) at org.eclipse.jface.dialogs.ProgressMonitorDialog.run (ProgressMonitorDialog.java:335) at org.eclipse.ui.internal.EditorManager.runProgressMonitorOperation (EditorManager.java:643) at org.eclipse.ui.internal.EditorManager.saveEditor (EditorManager.java:790) at org.eclipse.ui.internal.WorkbenchPage.saveEditor (WorkbenchPage.java:1309) at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:32) at org.eclipse.jface.action.Action.runWithEvent(Action.java:452) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java (Compiled Code)) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java (Compiled Code)) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java (Compiled Code)) at org.eclipse.ui.internal.Workbench.run(Workbench.java:798) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:821) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:151) at org.eclipse.core.launcher.Main.run(Main.java:502) at org.eclipse.core.launcher.Main.main(Main.java:362) 4 org.eclipse.jdt.core 969 getTitle does not exist.
|
resolved fixed
|
78fc002
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T11:44:20Z | 2002-01-11T09:06:40Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
|
hideFields.setDescription(TypeHierarchyMessages.getString("MethodsViewer.hide_fields.description"));
hideFields.setToolTipChecked(TypeHierarchyMessages.getString("MethodsViewer.hide_fields.tooltip.checked"));
hideFields.setToolTipUnchecked(TypeHierarchyMessages.getString("MethodsViewer.hide_fields.tooltip.unchecked"));
JavaPluginImages.setLocalImageDescriptors(hideFields, "fields_co.gif");
title= TypeHierarchyMessages.getString("MethodsViewer.hide_static.label");
helpContext= IJavaHelpContextIds.FILTER_STATIC_ACTION;
MethodsViewerFilterAction hideStatic= new MethodsViewerFilterAction(this, title, MethodsViewerFilter.FILTER_STATIC, helpContext, false);
hideStatic.setDescription(TypeHierarchyMessages.getString("MethodsViewer.hide_static.description"));
hideStatic.setToolTipChecked(TypeHierarchyMessages.getString("MethodsViewer.hide_static.tooltip.checked"));
hideStatic.setToolTipUnchecked(TypeHierarchyMessages.getString("MethodsViewer.hide_static.tooltip.unchecked"));
JavaPluginImages.setLocalImageDescriptors(hideStatic, "static_co.gif");
title= TypeHierarchyMessages.getString("MethodsViewer.hide_nonpublic.label");
helpContext= IJavaHelpContextIds.FILTER_PUBLIC_ACTION;
MethodsViewerFilterAction hideNonPublic= new MethodsViewerFilterAction(this, title, MethodsViewerFilter.FILTER_NONPUBLIC, helpContext, false);
hideNonPublic.setDescription(TypeHierarchyMessages.getString("MethodsViewer.hide_nonpublic.description"));
hideNonPublic.setToolTipChecked(TypeHierarchyMessages.getString("MethodsViewer.hide_nonpublic.tooltip.checked"));
hideNonPublic.setToolTipUnchecked(TypeHierarchyMessages.getString("MethodsViewer.hide_nonpublic.tooltip.unchecked"));
JavaPluginImages.setLocalImageDescriptors(hideNonPublic, "public_co.gif");
fFilterActions= new MethodsViewerFilterAction[] { hideFields, hideStatic, hideNonPublic };
addFilter(fFilter);
fShowInheritedMembersAction= new ShowInheritedMembersAction(this, false);
showInheritedMethods(false);
|
7,471 |
Bug 7471 JavaModelException in type hierarchy
|
From 7442 (only the bottom part is relevant for this PR). Martin why are we logging this exception? It looks like a case that can happen and that we should handle. ==== I was debugging a new plug-in when the UI in the master workbench froze on me. I was playing around with the editor's title. I had implemented a getTitle() method, but then commented out the method and put in a setInitializationData method (which only does a super to the EditorPart implementation). I had set a breakpoint in my editor's setInitializationData method. The runtime hit the breakpoint, and I clicked on step into in the debugger. A dialog appeared prompting me for the source path for rt.jar (why? The code wasn't in rt.jar). It was impossible to give the dialog focus, and since it was modal it effectively froze my UI. I had two windows open at the time: my workbench and a debug window. In the workbench I had a Packages view and a Hierarchy view (sharing one pane, Hierarchy view on top) and an Outline view. The hierarchy view was showing the hierarchy for BOEditor (a subclass of EditorPart with no subclasses of its own). Note that getTitle() had been removed from the hierarchy view's methods list, as well as from the Outline's. I found the following stack trace in my .log file: Log: Thu Jan 10 12:29:34 EST 2002 4 org.eclipse.jdt.ui 1 Internal Error Java Model Exception: Java Model Status [getTitle does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:448) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java(Compiled Code)) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java(Compiled Code)) at org.eclipse.jdt.internal.core.SourceMethod.isConstructor (SourceMethod.java(Compiled Code)) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsViewer.findSimilarMethod (MethodsViewer.java:372) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsViewer.handleInvalidSelection (MethodsViewer.java:354) at org.eclipse.jface.viewers.StructuredViewer.preservingSelection (StructuredViewer.java(Compiled Code)) at org.eclipse.jface.viewers.StructuredViewer.refresh (StructuredViewer.java:623) at org.eclipse.jface.viewers.StructuredViewer.refresh (StructuredViewer.java:591) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsContentProvider.doTypeHierarchy Changed(MethodsContentProvider.java:183) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsContentProvider.access$0 (MethodsContentProvider.java:170) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsContentProvider$1.run (MethodsContentProvider.java:163) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java(Compiled Code)) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages (Synchronizer.java(Compiled Code)) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java (Compiled Code)) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java (Compiled Code)) at org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor.runEventLoop (EventLoopProgressMonitor.java(Compiled Code)) at org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor.subTask (EventLoopProgressMonitor.java(Compiled Code)) at org.eclipse.core.runtime.ProgressMonitorWrapper.subTask (ProgressMonitorWrapper.java(Compiled Code)) at org.eclipse.core.runtime.SubProgressMonitor.subTask (SubProgressMonitor.java(Compiled Code)) at org.eclipse.core.internal.resources.Workspace.endOperation (Workspace.java(Compiled Code)) at org.eclipse.core.internal.resources.Workspace.run (Workspace.java:1237) at org.eclipse.ui.actions.WorkspaceModifyOperation.run (WorkspaceModifyOperation.java:78) at org.eclipse.ui.texteditor.AbstractTextEditor.performSaveOperation (AbstractTextEditor.java:1485) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.performSaveOperatio n(CompilationUnitEditor.java:592) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.doSave (CompilationUnitEditor.java:640) at org.eclipse.ui.internal.EditorManager$9.run(EditorManager.java:785) at org.eclipse.jface.operation.ModalContext.runInCurrentThread (ModalContext.java:296) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:249) at org.eclipse.jface.dialogs.ProgressMonitorDialog.run (ProgressMonitorDialog.java:335) at org.eclipse.ui.internal.EditorManager.runProgressMonitorOperation (EditorManager.java:643) at org.eclipse.ui.internal.EditorManager.saveEditor (EditorManager.java:790) at org.eclipse.ui.internal.WorkbenchPage.saveEditor (WorkbenchPage.java:1309) at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:32) at org.eclipse.jface.action.Action.runWithEvent(Action.java:452) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java (Compiled Code)) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java (Compiled Code)) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java (Compiled Code)) at org.eclipse.ui.internal.Workbench.run(Workbench.java:798) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:821) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:151) at org.eclipse.core.launcher.Main.run(Main.java:502) at org.eclipse.core.launcher.Main.main(Main.java:362) 4 org.eclipse.jdt.core 969 getTitle does not exist.
|
resolved fixed
|
78fc002
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T11:44:20Z | 2002-01-11T09:06:40Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
|
fStandardGroups= new ContextMenuGroup[] {
new JavaSearchGroup(), new GenerateGroup()
};
setSorter(new MethodsViewerSorter());
}
/**
* Show inherited methods
*/
public void showInheritedMethods(boolean on) {
MethodsContentProvider cprovider= (MethodsContentProvider) getContentProvider();
try {
cprovider.showInheritedMethods(on);
fShowInheritedMembersAction.setChecked(on);
JavaElementLabelProvider lprovider= (JavaElementLabelProvider) getLabelProvider();
if (on) {
lprovider.turnOn(JavaElementLabelProvider.SHOW_POST_QUALIFIED);
} else {
lprovider.turnOff(JavaElementLabelProvider.SHOW_POST_QUALIFIED);
}
refresh();
} catch (JavaModelException e) {
ExceptionHandler.handle(e, getControl().getShell(), TypeHierarchyMessages.getString("MethodsViewer.toggle.error.title"), TypeHierarchyMessages.getString("MethodsViewer.toggle.error.message"));
}
}
|
7,471 |
Bug 7471 JavaModelException in type hierarchy
|
From 7442 (only the bottom part is relevant for this PR). Martin why are we logging this exception? It looks like a case that can happen and that we should handle. ==== I was debugging a new plug-in when the UI in the master workbench froze on me. I was playing around with the editor's title. I had implemented a getTitle() method, but then commented out the method and put in a setInitializationData method (which only does a super to the EditorPart implementation). I had set a breakpoint in my editor's setInitializationData method. The runtime hit the breakpoint, and I clicked on step into in the debugger. A dialog appeared prompting me for the source path for rt.jar (why? The code wasn't in rt.jar). It was impossible to give the dialog focus, and since it was modal it effectively froze my UI. I had two windows open at the time: my workbench and a debug window. In the workbench I had a Packages view and a Hierarchy view (sharing one pane, Hierarchy view on top) and an Outline view. The hierarchy view was showing the hierarchy for BOEditor (a subclass of EditorPart with no subclasses of its own). Note that getTitle() had been removed from the hierarchy view's methods list, as well as from the Outline's. I found the following stack trace in my .log file: Log: Thu Jan 10 12:29:34 EST 2002 4 org.eclipse.jdt.ui 1 Internal Error Java Model Exception: Java Model Status [getTitle does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:448) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java(Compiled Code)) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java(Compiled Code)) at org.eclipse.jdt.internal.core.SourceMethod.isConstructor (SourceMethod.java(Compiled Code)) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsViewer.findSimilarMethod (MethodsViewer.java:372) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsViewer.handleInvalidSelection (MethodsViewer.java:354) at org.eclipse.jface.viewers.StructuredViewer.preservingSelection (StructuredViewer.java(Compiled Code)) at org.eclipse.jface.viewers.StructuredViewer.refresh (StructuredViewer.java:623) at org.eclipse.jface.viewers.StructuredViewer.refresh (StructuredViewer.java:591) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsContentProvider.doTypeHierarchy Changed(MethodsContentProvider.java:183) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsContentProvider.access$0 (MethodsContentProvider.java:170) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsContentProvider$1.run (MethodsContentProvider.java:163) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java(Compiled Code)) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages (Synchronizer.java(Compiled Code)) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java (Compiled Code)) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java (Compiled Code)) at org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor.runEventLoop (EventLoopProgressMonitor.java(Compiled Code)) at org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor.subTask (EventLoopProgressMonitor.java(Compiled Code)) at org.eclipse.core.runtime.ProgressMonitorWrapper.subTask (ProgressMonitorWrapper.java(Compiled Code)) at org.eclipse.core.runtime.SubProgressMonitor.subTask (SubProgressMonitor.java(Compiled Code)) at org.eclipse.core.internal.resources.Workspace.endOperation (Workspace.java(Compiled Code)) at org.eclipse.core.internal.resources.Workspace.run (Workspace.java:1237) at org.eclipse.ui.actions.WorkspaceModifyOperation.run (WorkspaceModifyOperation.java:78) at org.eclipse.ui.texteditor.AbstractTextEditor.performSaveOperation (AbstractTextEditor.java:1485) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.performSaveOperatio n(CompilationUnitEditor.java:592) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.doSave (CompilationUnitEditor.java:640) at org.eclipse.ui.internal.EditorManager$9.run(EditorManager.java:785) at org.eclipse.jface.operation.ModalContext.runInCurrentThread (ModalContext.java:296) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:249) at org.eclipse.jface.dialogs.ProgressMonitorDialog.run (ProgressMonitorDialog.java:335) at org.eclipse.ui.internal.EditorManager.runProgressMonitorOperation (EditorManager.java:643) at org.eclipse.ui.internal.EditorManager.saveEditor (EditorManager.java:790) at org.eclipse.ui.internal.WorkbenchPage.saveEditor (WorkbenchPage.java:1309) at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:32) at org.eclipse.jface.action.Action.runWithEvent(Action.java:452) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java (Compiled Code)) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java (Compiled Code)) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java (Compiled Code)) at org.eclipse.ui.internal.Workbench.run(Workbench.java:798) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:821) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:151) at org.eclipse.core.launcher.Main.run(Main.java:502) at org.eclipse.core.launcher.Main.main(Main.java:362) 4 org.eclipse.jdt.core 969 getTitle does not exist.
|
resolved fixed
|
78fc002
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T11:44:20Z | 2002-01-11T09:06:40Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
|
/*
* @see Viewer#inputChanged(Object, Object)
*/
protected void inputChanged(Object input, Object oldInput) {
super.inputChanged(input, oldInput);
}
/**
* Returns <code>true</code> if inherited methods are shown.
*/
public boolean isShowInheritedMethods() {
return ((MethodsContentProvider) getContentProvider()).isShowInheritedMethods();
}
/**
* Filters the method list
*/
public void setMemberFilter(int filterProperty, boolean set) {
if (set) {
fFilter.addFilter(filterProperty);
} else {
fFilter.removeFilter(filterProperty);
}
for (int i= 0; i < fFilterActions.length; i++) {
if (fFilterActions[i].getFilterProperty() == filterProperty) {
fFilterActions[i].setChecked(set);
}
}
refresh();
}
/**
|
7,471 |
Bug 7471 JavaModelException in type hierarchy
|
From 7442 (only the bottom part is relevant for this PR). Martin why are we logging this exception? It looks like a case that can happen and that we should handle. ==== I was debugging a new plug-in when the UI in the master workbench froze on me. I was playing around with the editor's title. I had implemented a getTitle() method, but then commented out the method and put in a setInitializationData method (which only does a super to the EditorPart implementation). I had set a breakpoint in my editor's setInitializationData method. The runtime hit the breakpoint, and I clicked on step into in the debugger. A dialog appeared prompting me for the source path for rt.jar (why? The code wasn't in rt.jar). It was impossible to give the dialog focus, and since it was modal it effectively froze my UI. I had two windows open at the time: my workbench and a debug window. In the workbench I had a Packages view and a Hierarchy view (sharing one pane, Hierarchy view on top) and an Outline view. The hierarchy view was showing the hierarchy for BOEditor (a subclass of EditorPart with no subclasses of its own). Note that getTitle() had been removed from the hierarchy view's methods list, as well as from the Outline's. I found the following stack trace in my .log file: Log: Thu Jan 10 12:29:34 EST 2002 4 org.eclipse.jdt.ui 1 Internal Error Java Model Exception: Java Model Status [getTitle does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:448) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java(Compiled Code)) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java(Compiled Code)) at org.eclipse.jdt.internal.core.SourceMethod.isConstructor (SourceMethod.java(Compiled Code)) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsViewer.findSimilarMethod (MethodsViewer.java:372) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsViewer.handleInvalidSelection (MethodsViewer.java:354) at org.eclipse.jface.viewers.StructuredViewer.preservingSelection (StructuredViewer.java(Compiled Code)) at org.eclipse.jface.viewers.StructuredViewer.refresh (StructuredViewer.java:623) at org.eclipse.jface.viewers.StructuredViewer.refresh (StructuredViewer.java:591) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsContentProvider.doTypeHierarchy Changed(MethodsContentProvider.java:183) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsContentProvider.access$0 (MethodsContentProvider.java:170) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsContentProvider$1.run (MethodsContentProvider.java:163) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java(Compiled Code)) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages (Synchronizer.java(Compiled Code)) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java (Compiled Code)) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java (Compiled Code)) at org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor.runEventLoop (EventLoopProgressMonitor.java(Compiled Code)) at org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor.subTask (EventLoopProgressMonitor.java(Compiled Code)) at org.eclipse.core.runtime.ProgressMonitorWrapper.subTask (ProgressMonitorWrapper.java(Compiled Code)) at org.eclipse.core.runtime.SubProgressMonitor.subTask (SubProgressMonitor.java(Compiled Code)) at org.eclipse.core.internal.resources.Workspace.endOperation (Workspace.java(Compiled Code)) at org.eclipse.core.internal.resources.Workspace.run (Workspace.java:1237) at org.eclipse.ui.actions.WorkspaceModifyOperation.run (WorkspaceModifyOperation.java:78) at org.eclipse.ui.texteditor.AbstractTextEditor.performSaveOperation (AbstractTextEditor.java:1485) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.performSaveOperatio n(CompilationUnitEditor.java:592) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.doSave (CompilationUnitEditor.java:640) at org.eclipse.ui.internal.EditorManager$9.run(EditorManager.java:785) at org.eclipse.jface.operation.ModalContext.runInCurrentThread (ModalContext.java:296) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:249) at org.eclipse.jface.dialogs.ProgressMonitorDialog.run (ProgressMonitorDialog.java:335) at org.eclipse.ui.internal.EditorManager.runProgressMonitorOperation (EditorManager.java:643) at org.eclipse.ui.internal.EditorManager.saveEditor (EditorManager.java:790) at org.eclipse.ui.internal.WorkbenchPage.saveEditor (WorkbenchPage.java:1309) at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:32) at org.eclipse.jface.action.Action.runWithEvent(Action.java:452) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java (Compiled Code)) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java (Compiled Code)) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java (Compiled Code)) at org.eclipse.ui.internal.Workbench.run(Workbench.java:798) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:821) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:151) at org.eclipse.core.launcher.Main.run(Main.java:502) at org.eclipse.core.launcher.Main.main(Main.java:362) 4 org.eclipse.jdt.core 969 getTitle does not exist.
|
resolved fixed
|
78fc002
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T11:44:20Z | 2002-01-11T09:06:40Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
|
* Returns <code>true</code> if the given filter is set.
*/
public boolean hasMemberFilter(int filterProperty) {
return fFilter.hasFilter(filterProperty);
}
/**
* Saves the state of the filter actions
*/
public void saveState(IMemento memento) {
memento.putString(TAG_HIDEFIELDS, String.valueOf(hasMemberFilter(MethodsViewerFilter.FILTER_FIELDS)));
memento.putString(TAG_HIDESTATIC, String.valueOf(hasMemberFilter(MethodsViewerFilter.FILTER_STATIC)));
memento.putString(TAG_HIDENONPUBLIC, String.valueOf(hasMemberFilter(MethodsViewerFilter.FILTER_NONPUBLIC)));
memento.putString(TAG_SHOWINHERITED, String.valueOf(isShowInheritedMethods()));
ScrollBar bar= getTable().getVerticalBar();
int position= bar != null ? bar.getSelection() : 0;
memento.putString(TAG_VERTICAL_SCROLL, String.valueOf(position));
}
/**
* Restores the state of the filter actions
*/
public void restoreState(IMemento memento) {
boolean set= Boolean.valueOf(memento.getString(TAG_HIDEFIELDS)).booleanValue();
setMemberFilter(MethodsViewerFilter.FILTER_FIELDS, set);
set= Boolean.valueOf(memento.getString(TAG_HIDESTATIC)).booleanValue();
setMemberFilter(MethodsViewerFilter.FILTER_STATIC, set);
set= Boolean.valueOf(memento.getString(TAG_HIDENONPUBLIC)).booleanValue();
setMemberFilter(MethodsViewerFilter.FILTER_NONPUBLIC, set);
set= Boolean.valueOf(memento.getString(TAG_SHOWINHERITED)).booleanValue();
|
7,471 |
Bug 7471 JavaModelException in type hierarchy
|
From 7442 (only the bottom part is relevant for this PR). Martin why are we logging this exception? It looks like a case that can happen and that we should handle. ==== I was debugging a new plug-in when the UI in the master workbench froze on me. I was playing around with the editor's title. I had implemented a getTitle() method, but then commented out the method and put in a setInitializationData method (which only does a super to the EditorPart implementation). I had set a breakpoint in my editor's setInitializationData method. The runtime hit the breakpoint, and I clicked on step into in the debugger. A dialog appeared prompting me for the source path for rt.jar (why? The code wasn't in rt.jar). It was impossible to give the dialog focus, and since it was modal it effectively froze my UI. I had two windows open at the time: my workbench and a debug window. In the workbench I had a Packages view and a Hierarchy view (sharing one pane, Hierarchy view on top) and an Outline view. The hierarchy view was showing the hierarchy for BOEditor (a subclass of EditorPart with no subclasses of its own). Note that getTitle() had been removed from the hierarchy view's methods list, as well as from the Outline's. I found the following stack trace in my .log file: Log: Thu Jan 10 12:29:34 EST 2002 4 org.eclipse.jdt.ui 1 Internal Error Java Model Exception: Java Model Status [getTitle does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:448) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java(Compiled Code)) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java(Compiled Code)) at org.eclipse.jdt.internal.core.SourceMethod.isConstructor (SourceMethod.java(Compiled Code)) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsViewer.findSimilarMethod (MethodsViewer.java:372) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsViewer.handleInvalidSelection (MethodsViewer.java:354) at org.eclipse.jface.viewers.StructuredViewer.preservingSelection (StructuredViewer.java(Compiled Code)) at org.eclipse.jface.viewers.StructuredViewer.refresh (StructuredViewer.java:623) at org.eclipse.jface.viewers.StructuredViewer.refresh (StructuredViewer.java:591) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsContentProvider.doTypeHierarchy Changed(MethodsContentProvider.java:183) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsContentProvider.access$0 (MethodsContentProvider.java:170) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsContentProvider$1.run (MethodsContentProvider.java:163) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java(Compiled Code)) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages (Synchronizer.java(Compiled Code)) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java (Compiled Code)) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java (Compiled Code)) at org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor.runEventLoop (EventLoopProgressMonitor.java(Compiled Code)) at org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor.subTask (EventLoopProgressMonitor.java(Compiled Code)) at org.eclipse.core.runtime.ProgressMonitorWrapper.subTask (ProgressMonitorWrapper.java(Compiled Code)) at org.eclipse.core.runtime.SubProgressMonitor.subTask (SubProgressMonitor.java(Compiled Code)) at org.eclipse.core.internal.resources.Workspace.endOperation (Workspace.java(Compiled Code)) at org.eclipse.core.internal.resources.Workspace.run (Workspace.java:1237) at org.eclipse.ui.actions.WorkspaceModifyOperation.run (WorkspaceModifyOperation.java:78) at org.eclipse.ui.texteditor.AbstractTextEditor.performSaveOperation (AbstractTextEditor.java:1485) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.performSaveOperatio n(CompilationUnitEditor.java:592) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.doSave (CompilationUnitEditor.java:640) at org.eclipse.ui.internal.EditorManager$9.run(EditorManager.java:785) at org.eclipse.jface.operation.ModalContext.runInCurrentThread (ModalContext.java:296) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:249) at org.eclipse.jface.dialogs.ProgressMonitorDialog.run (ProgressMonitorDialog.java:335) at org.eclipse.ui.internal.EditorManager.runProgressMonitorOperation (EditorManager.java:643) at org.eclipse.ui.internal.EditorManager.saveEditor (EditorManager.java:790) at org.eclipse.ui.internal.WorkbenchPage.saveEditor (WorkbenchPage.java:1309) at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:32) at org.eclipse.jface.action.Action.runWithEvent(Action.java:452) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java (Compiled Code)) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java (Compiled Code)) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java (Compiled Code)) at org.eclipse.ui.internal.Workbench.run(Workbench.java:798) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:821) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:151) at org.eclipse.core.launcher.Main.run(Main.java:502) at org.eclipse.core.launcher.Main.main(Main.java:362) 4 org.eclipse.jdt.core 969 getTitle does not exist.
|
resolved fixed
|
78fc002
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T11:44:20Z | 2002-01-11T09:06:40Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
|
showInheritedMethods(set);
ScrollBar bar= getTable().getVerticalBar();
if (bar != null) {
Integer vScroll= memento.getInteger(TAG_VERTICAL_SCROLL);
if (vScroll != null) {
bar.setSelection(vScroll.intValue());
}
}
}
/**
* Attaches a contextmenu listener to the table
*/
public void initContextMenu(IMenuListener menuListener, String popupId, IWorkbenchPartSite viewSite) {
MenuManager menuMgr= new MenuManager();
menuMgr.setRemoveAllWhenShown(true);
menuMgr.addMenuListener(menuListener);
Menu menu= menuMgr.createContextMenu(getTable());
getTable().setMenu(menu);
viewSite.registerContextMenu(popupId, menuMgr, this);
}
/**
* Fills up the context menu with items for the method viewer
* Should be called by the creator of the context menu
*/
public void contributeToContextMenu(IMenuManager menu) {
if (fOpen.canActionBeAdded()) {
|
7,471 |
Bug 7471 JavaModelException in type hierarchy
|
From 7442 (only the bottom part is relevant for this PR). Martin why are we logging this exception? It looks like a case that can happen and that we should handle. ==== I was debugging a new plug-in when the UI in the master workbench froze on me. I was playing around with the editor's title. I had implemented a getTitle() method, but then commented out the method and put in a setInitializationData method (which only does a super to the EditorPart implementation). I had set a breakpoint in my editor's setInitializationData method. The runtime hit the breakpoint, and I clicked on step into in the debugger. A dialog appeared prompting me for the source path for rt.jar (why? The code wasn't in rt.jar). It was impossible to give the dialog focus, and since it was modal it effectively froze my UI. I had two windows open at the time: my workbench and a debug window. In the workbench I had a Packages view and a Hierarchy view (sharing one pane, Hierarchy view on top) and an Outline view. The hierarchy view was showing the hierarchy for BOEditor (a subclass of EditorPart with no subclasses of its own). Note that getTitle() had been removed from the hierarchy view's methods list, as well as from the Outline's. I found the following stack trace in my .log file: Log: Thu Jan 10 12:29:34 EST 2002 4 org.eclipse.jdt.ui 1 Internal Error Java Model Exception: Java Model Status [getTitle does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:448) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java(Compiled Code)) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java(Compiled Code)) at org.eclipse.jdt.internal.core.SourceMethod.isConstructor (SourceMethod.java(Compiled Code)) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsViewer.findSimilarMethod (MethodsViewer.java:372) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsViewer.handleInvalidSelection (MethodsViewer.java:354) at org.eclipse.jface.viewers.StructuredViewer.preservingSelection (StructuredViewer.java(Compiled Code)) at org.eclipse.jface.viewers.StructuredViewer.refresh (StructuredViewer.java:623) at org.eclipse.jface.viewers.StructuredViewer.refresh (StructuredViewer.java:591) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsContentProvider.doTypeHierarchy Changed(MethodsContentProvider.java:183) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsContentProvider.access$0 (MethodsContentProvider.java:170) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsContentProvider$1.run (MethodsContentProvider.java:163) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java(Compiled Code)) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages (Synchronizer.java(Compiled Code)) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java (Compiled Code)) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java (Compiled Code)) at org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor.runEventLoop (EventLoopProgressMonitor.java(Compiled Code)) at org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor.subTask (EventLoopProgressMonitor.java(Compiled Code)) at org.eclipse.core.runtime.ProgressMonitorWrapper.subTask (ProgressMonitorWrapper.java(Compiled Code)) at org.eclipse.core.runtime.SubProgressMonitor.subTask (SubProgressMonitor.java(Compiled Code)) at org.eclipse.core.internal.resources.Workspace.endOperation (Workspace.java(Compiled Code)) at org.eclipse.core.internal.resources.Workspace.run (Workspace.java:1237) at org.eclipse.ui.actions.WorkspaceModifyOperation.run (WorkspaceModifyOperation.java:78) at org.eclipse.ui.texteditor.AbstractTextEditor.performSaveOperation (AbstractTextEditor.java:1485) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.performSaveOperatio n(CompilationUnitEditor.java:592) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.doSave (CompilationUnitEditor.java:640) at org.eclipse.ui.internal.EditorManager$9.run(EditorManager.java:785) at org.eclipse.jface.operation.ModalContext.runInCurrentThread (ModalContext.java:296) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:249) at org.eclipse.jface.dialogs.ProgressMonitorDialog.run (ProgressMonitorDialog.java:335) at org.eclipse.ui.internal.EditorManager.runProgressMonitorOperation (EditorManager.java:643) at org.eclipse.ui.internal.EditorManager.saveEditor (EditorManager.java:790) at org.eclipse.ui.internal.WorkbenchPage.saveEditor (WorkbenchPage.java:1309) at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:32) at org.eclipse.jface.action.Action.runWithEvent(Action.java:452) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java (Compiled Code)) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java (Compiled Code)) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java (Compiled Code)) at org.eclipse.ui.internal.Workbench.run(Workbench.java:798) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:821) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:151) at org.eclipse.core.launcher.Main.run(Main.java:502) at org.eclipse.core.launcher.Main.main(Main.java:362) 4 org.eclipse.jdt.core 969 getTitle does not exist.
|
resolved fixed
|
78fc002
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T11:44:20Z | 2002-01-11T09:06:40Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
|
menu.appendToGroup(IContextMenuConstants.GROUP_OPEN, fOpen);
}
ContextMenuGroup.add(menu, fStandardGroups, this);
}
/**
* Fills up the tool bar with items for the method viewer
* Should be called by the creator of the tool bar
*/
public void contributeToToolBar(ToolBarManager tbm) {
tbm.add(fShowInheritedMembersAction);
tbm.add(new Separator());
tbm.add(fFilterActions[0]);
tbm.add(fFilterActions[1]);
tbm.add(fFilterActions[2]);
}
/*
* @see IProblemChangedListener#problemsChanged
*/
public void problemsChanged(final Set changed) {
Control control= getControl();
if (control != null && !control.isDisposed()) {
control.getDisplay().asyncExec(new Runnable() {
public void run() {
fProblemItemMapper.problemsChanged(changed, (ILabelProvider)getLabelProvider());
}
});
}
}
/*
|
7,471 |
Bug 7471 JavaModelException in type hierarchy
|
From 7442 (only the bottom part is relevant for this PR). Martin why are we logging this exception? It looks like a case that can happen and that we should handle. ==== I was debugging a new plug-in when the UI in the master workbench froze on me. I was playing around with the editor's title. I had implemented a getTitle() method, but then commented out the method and put in a setInitializationData method (which only does a super to the EditorPart implementation). I had set a breakpoint in my editor's setInitializationData method. The runtime hit the breakpoint, and I clicked on step into in the debugger. A dialog appeared prompting me for the source path for rt.jar (why? The code wasn't in rt.jar). It was impossible to give the dialog focus, and since it was modal it effectively froze my UI. I had two windows open at the time: my workbench and a debug window. In the workbench I had a Packages view and a Hierarchy view (sharing one pane, Hierarchy view on top) and an Outline view. The hierarchy view was showing the hierarchy for BOEditor (a subclass of EditorPart with no subclasses of its own). Note that getTitle() had been removed from the hierarchy view's methods list, as well as from the Outline's. I found the following stack trace in my .log file: Log: Thu Jan 10 12:29:34 EST 2002 4 org.eclipse.jdt.ui 1 Internal Error Java Model Exception: Java Model Status [getTitle does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:448) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java(Compiled Code)) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java(Compiled Code)) at org.eclipse.jdt.internal.core.SourceMethod.isConstructor (SourceMethod.java(Compiled Code)) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsViewer.findSimilarMethod (MethodsViewer.java:372) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsViewer.handleInvalidSelection (MethodsViewer.java:354) at org.eclipse.jface.viewers.StructuredViewer.preservingSelection (StructuredViewer.java(Compiled Code)) at org.eclipse.jface.viewers.StructuredViewer.refresh (StructuredViewer.java:623) at org.eclipse.jface.viewers.StructuredViewer.refresh (StructuredViewer.java:591) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsContentProvider.doTypeHierarchy Changed(MethodsContentProvider.java:183) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsContentProvider.access$0 (MethodsContentProvider.java:170) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsContentProvider$1.run (MethodsContentProvider.java:163) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java(Compiled Code)) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages (Synchronizer.java(Compiled Code)) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java (Compiled Code)) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java (Compiled Code)) at org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor.runEventLoop (EventLoopProgressMonitor.java(Compiled Code)) at org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor.subTask (EventLoopProgressMonitor.java(Compiled Code)) at org.eclipse.core.runtime.ProgressMonitorWrapper.subTask (ProgressMonitorWrapper.java(Compiled Code)) at org.eclipse.core.runtime.SubProgressMonitor.subTask (SubProgressMonitor.java(Compiled Code)) at org.eclipse.core.internal.resources.Workspace.endOperation (Workspace.java(Compiled Code)) at org.eclipse.core.internal.resources.Workspace.run (Workspace.java:1237) at org.eclipse.ui.actions.WorkspaceModifyOperation.run (WorkspaceModifyOperation.java:78) at org.eclipse.ui.texteditor.AbstractTextEditor.performSaveOperation (AbstractTextEditor.java:1485) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.performSaveOperatio n(CompilationUnitEditor.java:592) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.doSave (CompilationUnitEditor.java:640) at org.eclipse.ui.internal.EditorManager$9.run(EditorManager.java:785) at org.eclipse.jface.operation.ModalContext.runInCurrentThread (ModalContext.java:296) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:249) at org.eclipse.jface.dialogs.ProgressMonitorDialog.run (ProgressMonitorDialog.java:335) at org.eclipse.ui.internal.EditorManager.runProgressMonitorOperation (EditorManager.java:643) at org.eclipse.ui.internal.EditorManager.saveEditor (EditorManager.java:790) at org.eclipse.ui.internal.WorkbenchPage.saveEditor (WorkbenchPage.java:1309) at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:32) at org.eclipse.jface.action.Action.runWithEvent(Action.java:452) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java (Compiled Code)) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java (Compiled Code)) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java (Compiled Code)) at org.eclipse.ui.internal.Workbench.run(Workbench.java:798) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:821) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:151) at org.eclipse.core.launcher.Main.run(Main.java:502) at org.eclipse.core.launcher.Main.main(Main.java:362) 4 org.eclipse.jdt.core 969 getTitle does not exist.
|
resolved fixed
|
78fc002
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T11:44:20Z | 2002-01-11T09:06:40Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
|
* @see StructuredViewer#associate(Object, Item)
*/
protected void associate(Object element, Item item) {
if (item.getData() != element) {
fProblemItemMapper.addToMap(element, item);
}
super.associate(element, item);
}
/*
* @see StructuredViewer#disassociate(Item)
*/
protected void disassociate(Item item) {
fProblemItemMapper.removeFromMap(item.getData(), item);
super.disassociate(item);
}
/*
* @see StructuredViewer#handleInvalidSelection(ISelection, ISelection)
*/
protected void handleInvalidSelection(ISelection invalidSelection, ISelection newSelection) {
List oldSelections= SelectionUtil.toList(invalidSelection);
List newSelections= SelectionUtil.toList(newSelection);
if (!oldSelections.isEmpty()) {
ArrayList newSelectionElements= new ArrayList(newSelections);
try {
Object[] currElements= getFilteredChildren(getInput());
for (int i= 0; i < oldSelections.size(); i++) {
Object curr= oldSelections.get(i);
if (curr instanceof IMethod && !newSelections.contains(curr)) {
|
7,471 |
Bug 7471 JavaModelException in type hierarchy
|
From 7442 (only the bottom part is relevant for this PR). Martin why are we logging this exception? It looks like a case that can happen and that we should handle. ==== I was debugging a new plug-in when the UI in the master workbench froze on me. I was playing around with the editor's title. I had implemented a getTitle() method, but then commented out the method and put in a setInitializationData method (which only does a super to the EditorPart implementation). I had set a breakpoint in my editor's setInitializationData method. The runtime hit the breakpoint, and I clicked on step into in the debugger. A dialog appeared prompting me for the source path for rt.jar (why? The code wasn't in rt.jar). It was impossible to give the dialog focus, and since it was modal it effectively froze my UI. I had two windows open at the time: my workbench and a debug window. In the workbench I had a Packages view and a Hierarchy view (sharing one pane, Hierarchy view on top) and an Outline view. The hierarchy view was showing the hierarchy for BOEditor (a subclass of EditorPart with no subclasses of its own). Note that getTitle() had been removed from the hierarchy view's methods list, as well as from the Outline's. I found the following stack trace in my .log file: Log: Thu Jan 10 12:29:34 EST 2002 4 org.eclipse.jdt.ui 1 Internal Error Java Model Exception: Java Model Status [getTitle does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:448) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java(Compiled Code)) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java(Compiled Code)) at org.eclipse.jdt.internal.core.SourceMethod.isConstructor (SourceMethod.java(Compiled Code)) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsViewer.findSimilarMethod (MethodsViewer.java:372) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsViewer.handleInvalidSelection (MethodsViewer.java:354) at org.eclipse.jface.viewers.StructuredViewer.preservingSelection (StructuredViewer.java(Compiled Code)) at org.eclipse.jface.viewers.StructuredViewer.refresh (StructuredViewer.java:623) at org.eclipse.jface.viewers.StructuredViewer.refresh (StructuredViewer.java:591) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsContentProvider.doTypeHierarchy Changed(MethodsContentProvider.java:183) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsContentProvider.access$0 (MethodsContentProvider.java:170) at org.eclipse.jdt.internal.ui.typehierarchy.MethodsContentProvider$1.run (MethodsContentProvider.java:163) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java(Compiled Code)) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages (Synchronizer.java(Compiled Code)) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java (Compiled Code)) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java (Compiled Code)) at org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor.runEventLoop (EventLoopProgressMonitor.java(Compiled Code)) at org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor.subTask (EventLoopProgressMonitor.java(Compiled Code)) at org.eclipse.core.runtime.ProgressMonitorWrapper.subTask (ProgressMonitorWrapper.java(Compiled Code)) at org.eclipse.core.runtime.SubProgressMonitor.subTask (SubProgressMonitor.java(Compiled Code)) at org.eclipse.core.internal.resources.Workspace.endOperation (Workspace.java(Compiled Code)) at org.eclipse.core.internal.resources.Workspace.run (Workspace.java:1237) at org.eclipse.ui.actions.WorkspaceModifyOperation.run (WorkspaceModifyOperation.java:78) at org.eclipse.ui.texteditor.AbstractTextEditor.performSaveOperation (AbstractTextEditor.java:1485) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.performSaveOperatio n(CompilationUnitEditor.java:592) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.doSave (CompilationUnitEditor.java:640) at org.eclipse.ui.internal.EditorManager$9.run(EditorManager.java:785) at org.eclipse.jface.operation.ModalContext.runInCurrentThread (ModalContext.java:296) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:249) at org.eclipse.jface.dialogs.ProgressMonitorDialog.run (ProgressMonitorDialog.java:335) at org.eclipse.ui.internal.EditorManager.runProgressMonitorOperation (EditorManager.java:643) at org.eclipse.ui.internal.EditorManager.saveEditor (EditorManager.java:790) at org.eclipse.ui.internal.WorkbenchPage.saveEditor (WorkbenchPage.java:1309) at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:32) at org.eclipse.jface.action.Action.runWithEvent(Action.java:452) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java (Compiled Code)) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java (Compiled Code)) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java (Compiled Code)) at org.eclipse.ui.internal.Workbench.run(Workbench.java:798) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:821) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:151) at org.eclipse.core.launcher.Main.run(Main.java:502) at org.eclipse.core.launcher.Main.main(Main.java:362) 4 org.eclipse.jdt.core 969 getTitle does not exist.
|
resolved fixed
|
78fc002
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T11:44:20Z | 2002-01-11T09:06:40Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
|
IMethod method= (IMethod) curr;
IMethod similar= findSimilarMethod(method, currElements);
if (similar != null) {
newSelectionElements.add(similar);
}
}
}
newSelection= new StructuredSelection(newSelectionElements);
} catch (JavaModelException e) {
JavaPlugin.log(e);
}
}
setSelection(newSelection);
updateSelection(newSelection);
}
private IMethod findSimilarMethod(IMethod meth, Object[] elements) throws JavaModelException {
String name= meth.getElementName();
String[] paramTypes= meth.getParameterTypes();
boolean isConstructor= meth.isConstructor();
for (int i= 0; i < elements.length; i++) {
Object curr= elements[i];
if (curr instanceof IMethod && JavaModelUtil.isSameMethodSignature(name, paramTypes, isConstructor, (IMethod) curr)) {
return (IMethod) curr;
}
}
return null;
}
}
|
6,970 |
Bug 6970 Hierarchy tick marks out of sync
|
Build 20011211 - open org.eclipse.jface.actions.IAction - add method: public void setMenuCreator(IMenuCreator creator) { } - build - error mark shows up in task list and editor tab (method shouldn't have body), but not in hierarchy - make mod and save - hierarchy now shows tick - fix the problem and build - hierarchy still shows tick - make mod and save - hierarchy is now consistent
|
resolved fixed
|
7eb1810
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T12:59:38Z | 2001-12-14T22:46:40Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewer.java
|
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
package org.eclipse.jdt.internal.ui.typehierarchy;
|
6,970 |
Bug 6970 Hierarchy tick marks out of sync
|
Build 20011211 - open org.eclipse.jface.actions.IAction - add method: public void setMenuCreator(IMenuCreator creator) { } - build - error mark shows up in task list and editor tab (method shouldn't have body), but not in hierarchy - make mod and save - hierarchy now shows tick - fix the problem and build - hierarchy still shows tick - make mod and save - hierarchy is now consistent
|
resolved fixed
|
7eb1810
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T12:59:38Z | 2001-12-14T22:46:40Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewer.java
|
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Menu;
import org.eclipse.swt.widgets.Tree;
import org.eclipse.jface.action.IMenuListener;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.MenuManager;
import org.eclipse.jface.util.Assert;
import org.eclipse.jface.viewers.DoubleClickEvent;
import org.eclipse.jface.viewers.IContentProvider;
import org.eclipse.jface.viewers.IDoubleClickListener;
import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.ViewerSorter;
import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.IWorkbenchPartSite;
import org.eclipse.jdt.core.IMember;
import org.eclipse.jdt.core.IType;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jdt.ui.IContextMenuConstants;
import org.eclipse.jdt.internal.ui.actions.ContextMenuGroup;
import org.eclipse.jdt.internal.ui.actions.GenerateGroup;
import org.eclipse.jdt.internal.ui.actions.OpenJavaElementAction;
import org.eclipse.jdt.internal.ui.actions.ShowInPackageViewAction;
import org.eclipse.jdt.internal.ui.search.JavaSearchGroup;
import org.eclipse.jdt.internal.ui.viewsupport.IProblemChangedListener;
import org.eclipse.jdt.internal.ui.viewsupport.ProblemTreeViewer;
import org.eclipse.jdt.internal.ui.wizards.NewGroup;
public abstract class TypeHierarchyViewer extends ProblemTreeViewer implements IProblemChangedListener {
|
6,970 |
Bug 6970 Hierarchy tick marks out of sync
|
Build 20011211 - open org.eclipse.jface.actions.IAction - add method: public void setMenuCreator(IMenuCreator creator) { } - build - error mark shows up in task list and editor tab (method shouldn't have body), but not in hierarchy - make mod and save - hierarchy now shows tick - fix the problem and build - hierarchy still shows tick - make mod and save - hierarchy is now consistent
|
resolved fixed
|
7eb1810
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T12:59:38Z | 2001-12-14T22:46:40Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewer.java
|
private OpenJavaElementAction fOpen;
private ShowInPackageViewAction fShowInPackageViewAction;
private ContextMenuGroup[] fStandardGroups;
public TypeHierarchyViewer(Composite parent, IContentProvider contentProvider, ILabelProvider lprovider, IWorkbenchPart part) {
super(new Tree(parent, SWT.SINGLE));
setContentProvider(contentProvider);
setLabelProvider(lprovider);
setSorter(new ViewerSorter() {
public boolean isSorterProperty(Object element, Object property) {
return true;
}
public int category(Object element) {
if (element instanceof IType) {
try {
return (((IType)element).isInterface()) ? 2 : 1;
} catch (JavaModelException e) {
}
} else if (element instanceof IMember) {
return 0;
}
return 3;
}
});
|
6,970 |
Bug 6970 Hierarchy tick marks out of sync
|
Build 20011211 - open org.eclipse.jface.actions.IAction - add method: public void setMenuCreator(IMenuCreator creator) { } - build - error mark shows up in task list and editor tab (method shouldn't have body), but not in hierarchy - make mod and save - hierarchy now shows tick - fix the problem and build - hierarchy still shows tick - make mod and save - hierarchy is now consistent
|
resolved fixed
|
7eb1810
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T12:59:38Z | 2001-12-14T22:46:40Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewer.java
|
fOpen= new OpenJavaElementAction(this);
addDoubleClickListener(new IDoubleClickListener() {
public void doubleClick(DoubleClickEvent event) {
fOpen.run();
}
});
fShowInPackageViewAction= new ShowInPackageViewAction();
fStandardGroups= new ContextMenuGroup[] {
new JavaSearchGroup(), new NewGroup(), new GenerateGroup()
};
}
/**
* Attaches a contextmenu listener to the tree
*/
public void initContextMenu(IMenuListener menuListener, String popupId, IWorkbenchPartSite viewSite) {
MenuManager menuMgr= new MenuManager();
menuMgr.setRemoveAllWhenShown(true);
menuMgr.addMenuListener(menuListener);
Menu menu= menuMgr.createContextMenu(getTree());
getTree().setMenu(menu);
viewSite.registerContextMenu(popupId, menuMgr, this);
}
/**
* Fills up the context menu with items for the hierarchy viewer
* Should be called by the creator of the context menu
*/
public void contributeToContextMenu(IMenuManager menu) {
if (fOpen.canActionBeAdded()) {
|
6,970 |
Bug 6970 Hierarchy tick marks out of sync
|
Build 20011211 - open org.eclipse.jface.actions.IAction - add method: public void setMenuCreator(IMenuCreator creator) { } - build - error mark shows up in task list and editor tab (method shouldn't have body), but not in hierarchy - make mod and save - hierarchy now shows tick - fix the problem and build - hierarchy still shows tick - make mod and save - hierarchy is now consistent
|
resolved fixed
|
7eb1810
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T12:59:38Z | 2001-12-14T22:46:40Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewer.java
|
menu.appendToGroup(IContextMenuConstants.GROUP_OPEN, fOpen);
}
menu.appendToGroup(IContextMenuConstants.GROUP_SHOW, fShowInPackageViewAction);
ContextMenuGroup.add(menu, fStandardGroups, this);
}
/**
* Set the member filter
*/
public void setMemberFilter(IMember[] memberFilter) {
TypeHierarchyContentProvider contentProvider= getHierarchyContentProvider();
if (contentProvider != null) {
contentProvider.setMemberFilter(memberFilter);
}
}
/**
* Returns if method filtering is enabled.
*/
public boolean isMethodFiltering() {
TypeHierarchyContentProvider contentProvider= getHierarchyContentProvider();
if (contentProvider != null) {
return contentProvider.getMemberFilter() != null;
}
return false;
}
/**
|
6,970 |
Bug 6970 Hierarchy tick marks out of sync
|
Build 20011211 - open org.eclipse.jface.actions.IAction - add method: public void setMenuCreator(IMenuCreator creator) { } - build - error mark shows up in task list and editor tab (method shouldn't have body), but not in hierarchy - make mod and save - hierarchy now shows tick - fix the problem and build - hierarchy still shows tick - make mod and save - hierarchy is now consistent
|
resolved fixed
|
7eb1810
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T12:59:38Z | 2001-12-14T22:46:40Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewer.java
|
* Returns true if the hierarchy contains elements. Returns one of them
* With member filtering it is possible that no elements are visible
*/
public Object containsElements() {
TypeHierarchyContentProvider contentProvider= getHierarchyContentProvider();
if (contentProvider != null) {
Object[] elements= contentProvider.getElements(null);
if (elements.length > 0) {
return elements[0];
}
}
return null;
}
/**
* Returns true if the hierarchy contains elements. Returns one of them
* With member filtering it is possible that no elements are visible
*/
public IType getTreeRootType() {
TypeHierarchyContentProvider contentProvider= getHierarchyContentProvider();
if (contentProvider != null) {
Object[] elements= contentProvider.getElements(null);
if (elements.length > 0 && elements[0] instanceof IType) {
return (IType) elements[0];
}
}
return null;
}
|
6,970 |
Bug 6970 Hierarchy tick marks out of sync
|
Build 20011211 - open org.eclipse.jface.actions.IAction - add method: public void setMenuCreator(IMenuCreator creator) { } - build - error mark shows up in task list and editor tab (method shouldn't have body), but not in hierarchy - make mod and save - hierarchy now shows tick - fix the problem and build - hierarchy still shows tick - make mod and save - hierarchy is now consistent
|
resolved fixed
|
7eb1810
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T12:59:38Z | 2001-12-14T22:46:40Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewer.java
|
/**
* Returns true if the hierarchy contains element the element.
*/
public boolean isElementShown(Object element) {
return findItem(element) != null;
}
/**
* Updates the content of this viewer: refresh and expanding the tree in the way wanted.
*/
public abstract void updateContent();
/**
* Returns the title for the current view
*/
public abstract String getTitle();
/*
* @see StructuredViewer#setContentProvider
* Content provider must be of type TypeHierarchyContentProvider
*/
public void setContentProvider(IContentProvider cp) {
Assert.isTrue(cp instanceof TypeHierarchyContentProvider);
super.setContentProvider(cp);
}
protected TypeHierarchyContentProvider getHierarchyContentProvider() {
return (TypeHierarchyContentProvider)getContentProvider();
}
}
|
6,970 |
Bug 6970 Hierarchy tick marks out of sync
|
Build 20011211 - open org.eclipse.jface.actions.IAction - add method: public void setMenuCreator(IMenuCreator creator) { } - build - error mark shows up in task list and editor tab (method shouldn't have body), but not in hierarchy - make mod and save - hierarchy now shows tick - fix the problem and build - hierarchy still shows tick - make mod and save - hierarchy is now consistent
|
resolved fixed
|
7eb1810
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T12:59:38Z | 2001-12-14T22:46:40Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/ProblemTreeViewer.java
|
package org.eclipse.jdt.internal.ui.viewsupport;
import java.util.Set;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Item;
import org.eclipse.swt.widgets.Tree;
import org.eclipse.swt.widgets.Widget;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.internal.ui.JavaPlugin;
/**
* Extends a TreeViewer to allow more performance when showing error ticks.
* A <code>ProblemItemMapper</code> is contained that maps all items in
* the tree to underlying resource
*/
public class ProblemTreeViewer extends TreeViewer implements IProblemChangedListener {
|
6,970 |
Bug 6970 Hierarchy tick marks out of sync
|
Build 20011211 - open org.eclipse.jface.actions.IAction - add method: public void setMenuCreator(IMenuCreator creator) { } - build - error mark shows up in task list and editor tab (method shouldn't have body), but not in hierarchy - make mod and save - hierarchy now shows tick - fix the problem and build - hierarchy still shows tick - make mod and save - hierarchy is now consistent
|
resolved fixed
|
7eb1810
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T12:59:38Z | 2001-12-14T22:46:40Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/ProblemTreeViewer.java
|
private ProblemItemMapper fProblemItemMapper;
/*
* @see TreeViewer#TreeViewer(Composite)
*/
public ProblemTreeViewer(Composite parent) {
super(parent);
initMapper();
}
/*
* @see TreeViewer#TreeViewer(Composite, int)
*/
public ProblemTreeViewer(Composite parent, int style) {
super(parent, style);
initMapper();
}
/*
* @see TreeViewer#TreeViewer(Tree)
*/
public ProblemTreeViewer(Tree tree) {
super(tree);
initMapper();
}
private void initMapper() {
fProblemItemMapper= new ProblemItemMapper();
}
/*
* @see IProblemChangedListener#problemsChanged
|
6,970 |
Bug 6970 Hierarchy tick marks out of sync
|
Build 20011211 - open org.eclipse.jface.actions.IAction - add method: public void setMenuCreator(IMenuCreator creator) { } - build - error mark shows up in task list and editor tab (method shouldn't have body), but not in hierarchy - make mod and save - hierarchy now shows tick - fix the problem and build - hierarchy still shows tick - make mod and save - hierarchy is now consistent
|
resolved fixed
|
7eb1810
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T12:59:38Z | 2001-12-14T22:46:40Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/ProblemTreeViewer.java
|
*/
public void problemsChanged(final Set changed) {
Control control= getControl();
if (control != null && !control.isDisposed()) {
control.getDisplay().asyncExec(new Runnable() {
public void run() {
fProblemItemMapper.problemsChanged(changed, (ILabelProvider)getLabelProvider());
}
});
}
}
/*
* @see StructuredViewer#associate(Object, Item)
*/
protected void associate(Object element, Item item) {
if (item.getData() != element) {
fProblemItemMapper.addToMap(element, item);
}
super.associate(element, item);
}
/*
* @see StructuredViewer#disassociate(Item)
*/
protected void disassociate(Item item) {
fProblemItemMapper.removeFromMap(item.getData(), item);
super.disassociate(item);
}
}
|
7,481 |
Bug 7481 JME in compare
|
Java Model Exception: Java Model Status [B does not exist.] Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/core/runtime/CoreException.<init> (Lorg/eclipse/core/runtime/IStatus;)V org/eclipse/jdt/core/JavaModelException.<init> (Lorg/eclipse/jdt/core/IJavaModelStatus;)V org/eclipse/jdt/internal/core/JavaElement.newNotPresentException() Lorg/eclipse/jdt/core/JavaModelException; org/eclipse/jdt/internal/core/JavaElement.openHierarchy()V org/eclipse/jdt/internal/core/JavaElement.getElementInfo() Lorg/eclipse/jdt/internal/core/JavaElementInfo; org/eclipse/jdt/internal/core/SourceMethod.isConstructor()Z org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getMethodLabel (Lorg/eclipse/jdt/core/IMethod;ILjava/lang/StringBuffer;)V org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getElementLabel (Lorg/eclipse/jdt/core/IJavaElement;ILjava/lang/StringBuffer;)V org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getElementLabel (Lorg/eclipse/jdt/core/IJavaElement;I)Ljava/lang/String; org/eclipse/jdt/internal/ui/compare/JavaCompareUtilities.getJavaElementID (Lorg/eclipse/jdt/core/IJavaElement;)Ljava/lang/String; org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.hasEdition (Lorg/eclipse/jdt/core/IJavaElement;)Z org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.getEditionElement (Lorg/eclipse/jface/viewers/ISelection;)Lorg/eclipse/jdt/core/IMember; org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.isEnabled (Lorg/eclipse/jface/viewers/ISelection;)Z org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.selectionChanged (Lorg/eclipse/jface/action/IAction;Lorg/eclipse/jface/viewers/ISelection;)V org/eclipse/ui/internal/PluginAction.refreshEnablement()V org/eclipse/ui/internal/PluginAction.selectionChanged (Lorg/eclipse/jface/viewers/ISelection;)V org/eclipse/ui/internal/ObjectActionContributor.contributeObjectActions (Lorg/eclipse/ui/IWorkbenchPart;Lorg/eclipse/jface/action/IMenuManager;Lorg/ecli pse/jface/viewers/ISelectionProvider;)Z org/eclipse/ui/internal/ObjectActionContributorManager.contributeObjectActions (Lorg/eclipse/ui/IWorkbenchPart;Lorg/eclipse/jface/action/IMenuManager;Lorg/ecli pse/jface/viewers/ISelectionProvider;)Z org/eclipse/ui/internal/PopupMenuExtender.addObjectActions (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/ui/internal/PopupMenuExtender.menuAboutToShow (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/jface/action/MenuManager.fireAboutToShow (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/jface/action/MenuManager.handleAboutToShow()V org/eclipse/jface/action/MenuManager.access$0 (Lorg/eclipse/jface/action/MenuManager;)V org/eclipse/jface/action/MenuManager$1.menuShown (Lorg/eclipse/swt/events/MenuEvent;)V org/eclipse/swt/widgets/TypedListener.handleEvent (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/EventTable.sendEvent(Lorg/eclipse/swt/widgets/Event;) V org/eclipse/swt/widgets/Widget.sendEvent(ILorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/Widget.sendEvent(I)V org/eclipse/swt/widgets/Control.WM_INITMENUPOPUP(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Decorations.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.TrackPopupMenu (IIIIIILorg/eclipse/swt/internal/win32/RECT;)Z org/eclipse/swt/widgets/Menu.setVisible(Z)V org/eclipse/swt/widgets/Control.WM_CONTEXTMENU(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.CallWindowProcW(IIIII)I org/eclipse/swt/internal/win32/OS.CallWindowProc(IIIII)I org/eclipse/swt/widgets/Tree.callWindowProc(III)I org/eclipse/swt/widgets/Control.WM_RBUTTONUP(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.DispatchMessageW (Lorg/eclipse/swt/internal/win32/MSG;)I org/eclipse/swt/internal/win32/OS.DispatchMessage (Lorg/eclipse/swt/internal/win32/MSG;)I org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V
|
resolved fixed
|
ac7ffd4
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T15:04:57Z | 2002-01-11T11:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.java
|
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
package org.eclipse.jdt.internal.ui.compare;
import java.io.InputStream;
import java.util.*;
import org.eclipse.jface.text.*;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.jdt.core.*;
import org.eclipse.jdt.internal.compiler.*;
import org.eclipse.jdt.internal.compiler.impl.CompilerOptions;
import org.eclipse.jdt.internal.compiler.parser.*;
import org.eclipse.jdt.internal.core.JavaElement;
import org.eclipse.jdt.internal.ui.JavaPlugin;
import org.eclipse.jdt.internal.ui.viewsupport.JavaElementLabels;
import org.eclipse.compare.*;
import org.eclipse.compare.structuremergeviewer.*;
public class JavaStructureCreator implements IStructureCreator {
|
7,481 |
Bug 7481 JME in compare
|
Java Model Exception: Java Model Status [B does not exist.] Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/core/runtime/CoreException.<init> (Lorg/eclipse/core/runtime/IStatus;)V org/eclipse/jdt/core/JavaModelException.<init> (Lorg/eclipse/jdt/core/IJavaModelStatus;)V org/eclipse/jdt/internal/core/JavaElement.newNotPresentException() Lorg/eclipse/jdt/core/JavaModelException; org/eclipse/jdt/internal/core/JavaElement.openHierarchy()V org/eclipse/jdt/internal/core/JavaElement.getElementInfo() Lorg/eclipse/jdt/internal/core/JavaElementInfo; org/eclipse/jdt/internal/core/SourceMethod.isConstructor()Z org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getMethodLabel (Lorg/eclipse/jdt/core/IMethod;ILjava/lang/StringBuffer;)V org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getElementLabel (Lorg/eclipse/jdt/core/IJavaElement;ILjava/lang/StringBuffer;)V org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getElementLabel (Lorg/eclipse/jdt/core/IJavaElement;I)Ljava/lang/String; org/eclipse/jdt/internal/ui/compare/JavaCompareUtilities.getJavaElementID (Lorg/eclipse/jdt/core/IJavaElement;)Ljava/lang/String; org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.hasEdition (Lorg/eclipse/jdt/core/IJavaElement;)Z org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.getEditionElement (Lorg/eclipse/jface/viewers/ISelection;)Lorg/eclipse/jdt/core/IMember; org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.isEnabled (Lorg/eclipse/jface/viewers/ISelection;)Z org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.selectionChanged (Lorg/eclipse/jface/action/IAction;Lorg/eclipse/jface/viewers/ISelection;)V org/eclipse/ui/internal/PluginAction.refreshEnablement()V org/eclipse/ui/internal/PluginAction.selectionChanged (Lorg/eclipse/jface/viewers/ISelection;)V org/eclipse/ui/internal/ObjectActionContributor.contributeObjectActions (Lorg/eclipse/ui/IWorkbenchPart;Lorg/eclipse/jface/action/IMenuManager;Lorg/ecli pse/jface/viewers/ISelectionProvider;)Z org/eclipse/ui/internal/ObjectActionContributorManager.contributeObjectActions (Lorg/eclipse/ui/IWorkbenchPart;Lorg/eclipse/jface/action/IMenuManager;Lorg/ecli pse/jface/viewers/ISelectionProvider;)Z org/eclipse/ui/internal/PopupMenuExtender.addObjectActions (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/ui/internal/PopupMenuExtender.menuAboutToShow (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/jface/action/MenuManager.fireAboutToShow (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/jface/action/MenuManager.handleAboutToShow()V org/eclipse/jface/action/MenuManager.access$0 (Lorg/eclipse/jface/action/MenuManager;)V org/eclipse/jface/action/MenuManager$1.menuShown (Lorg/eclipse/swt/events/MenuEvent;)V org/eclipse/swt/widgets/TypedListener.handleEvent (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/EventTable.sendEvent(Lorg/eclipse/swt/widgets/Event;) V org/eclipse/swt/widgets/Widget.sendEvent(ILorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/Widget.sendEvent(I)V org/eclipse/swt/widgets/Control.WM_INITMENUPOPUP(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Decorations.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.TrackPopupMenu (IIIIIILorg/eclipse/swt/internal/win32/RECT;)Z org/eclipse/swt/widgets/Menu.setVisible(Z)V org/eclipse/swt/widgets/Control.WM_CONTEXTMENU(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.CallWindowProcW(IIIII)I org/eclipse/swt/internal/win32/OS.CallWindowProc(IIIII)I org/eclipse/swt/widgets/Tree.callWindowProc(III)I org/eclipse/swt/widgets/Control.WM_RBUTTONUP(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.DispatchMessageW (Lorg/eclipse/swt/internal/win32/MSG;)I org/eclipse/swt/internal/win32/OS.DispatchMessage (Lorg/eclipse/swt/internal/win32/MSG;)I org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V
|
resolved fixed
|
ac7ffd4
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T15:04:57Z | 2002-01-11T11:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.java
|
/**
* Used to bail out from ProblemFactory.
*/
private static class ParseError extends Error {
}
/**
* This problem factory aborts parsing on first error.
*/
static class ProblemFactory implements IProblemFactory {
public IProblem createProblem(char[] originatingFileName, int problemId, String[] arguments, int severity, int startPosition, int endPosition, int lineNumber) {
throw new ParseError();
}
public Locale getLocale() {
return Locale.getDefault();
}
public String getLocalizedMessage(int problemId, String[] problemArguments) {
return "" + problemId;
}
}
/**
* RewriteInfos are used temporarily when rewriting the diff tree
* in order to combine similar diff nodes ("smart folding").
*/
static class RewriteInfo {
|
7,481 |
Bug 7481 JME in compare
|
Java Model Exception: Java Model Status [B does not exist.] Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/core/runtime/CoreException.<init> (Lorg/eclipse/core/runtime/IStatus;)V org/eclipse/jdt/core/JavaModelException.<init> (Lorg/eclipse/jdt/core/IJavaModelStatus;)V org/eclipse/jdt/internal/core/JavaElement.newNotPresentException() Lorg/eclipse/jdt/core/JavaModelException; org/eclipse/jdt/internal/core/JavaElement.openHierarchy()V org/eclipse/jdt/internal/core/JavaElement.getElementInfo() Lorg/eclipse/jdt/internal/core/JavaElementInfo; org/eclipse/jdt/internal/core/SourceMethod.isConstructor()Z org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getMethodLabel (Lorg/eclipse/jdt/core/IMethod;ILjava/lang/StringBuffer;)V org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getElementLabel (Lorg/eclipse/jdt/core/IJavaElement;ILjava/lang/StringBuffer;)V org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getElementLabel (Lorg/eclipse/jdt/core/IJavaElement;I)Ljava/lang/String; org/eclipse/jdt/internal/ui/compare/JavaCompareUtilities.getJavaElementID (Lorg/eclipse/jdt/core/IJavaElement;)Ljava/lang/String; org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.hasEdition (Lorg/eclipse/jdt/core/IJavaElement;)Z org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.getEditionElement (Lorg/eclipse/jface/viewers/ISelection;)Lorg/eclipse/jdt/core/IMember; org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.isEnabled (Lorg/eclipse/jface/viewers/ISelection;)Z org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.selectionChanged (Lorg/eclipse/jface/action/IAction;Lorg/eclipse/jface/viewers/ISelection;)V org/eclipse/ui/internal/PluginAction.refreshEnablement()V org/eclipse/ui/internal/PluginAction.selectionChanged (Lorg/eclipse/jface/viewers/ISelection;)V org/eclipse/ui/internal/ObjectActionContributor.contributeObjectActions (Lorg/eclipse/ui/IWorkbenchPart;Lorg/eclipse/jface/action/IMenuManager;Lorg/ecli pse/jface/viewers/ISelectionProvider;)Z org/eclipse/ui/internal/ObjectActionContributorManager.contributeObjectActions (Lorg/eclipse/ui/IWorkbenchPart;Lorg/eclipse/jface/action/IMenuManager;Lorg/ecli pse/jface/viewers/ISelectionProvider;)Z org/eclipse/ui/internal/PopupMenuExtender.addObjectActions (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/ui/internal/PopupMenuExtender.menuAboutToShow (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/jface/action/MenuManager.fireAboutToShow (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/jface/action/MenuManager.handleAboutToShow()V org/eclipse/jface/action/MenuManager.access$0 (Lorg/eclipse/jface/action/MenuManager;)V org/eclipse/jface/action/MenuManager$1.menuShown (Lorg/eclipse/swt/events/MenuEvent;)V org/eclipse/swt/widgets/TypedListener.handleEvent (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/EventTable.sendEvent(Lorg/eclipse/swt/widgets/Event;) V org/eclipse/swt/widgets/Widget.sendEvent(ILorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/Widget.sendEvent(I)V org/eclipse/swt/widgets/Control.WM_INITMENUPOPUP(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Decorations.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.TrackPopupMenu (IIIIIILorg/eclipse/swt/internal/win32/RECT;)Z org/eclipse/swt/widgets/Menu.setVisible(Z)V org/eclipse/swt/widgets/Control.WM_CONTEXTMENU(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.CallWindowProcW(IIIII)I org/eclipse/swt/internal/win32/OS.CallWindowProc(IIIII)I org/eclipse/swt/widgets/Tree.callWindowProc(III)I org/eclipse/swt/widgets/Control.WM_RBUTTONUP(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.DispatchMessageW (Lorg/eclipse/swt/internal/win32/MSG;)I org/eclipse/swt/internal/win32/OS.DispatchMessage (Lorg/eclipse/swt/internal/win32/MSG;)I org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V
|
resolved fixed
|
ac7ffd4
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T15:04:57Z | 2002-01-11T11:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.java
|
boolean fIsOut= false;
JavaNode fAncestor= null;
JavaNode fLeft= null;
JavaNode fRight= null;
ArrayList fChildren= new ArrayList();
void add(IDiffElement diff) {
fChildren.add(diff);
}
void setDiff(ICompareInput diff) {
if (fIsOut)
return;
fIsOut= true;
JavaNode a= (JavaNode) diff.getAncestor();
JavaNode y= (JavaNode) diff.getLeft();
JavaNode m= (JavaNode) diff.getRight();
if (a != null) {
if (fAncestor != null)
return;
fAncestor= a;
}
if (y != null) {
|
7,481 |
Bug 7481 JME in compare
|
Java Model Exception: Java Model Status [B does not exist.] Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/core/runtime/CoreException.<init> (Lorg/eclipse/core/runtime/IStatus;)V org/eclipse/jdt/core/JavaModelException.<init> (Lorg/eclipse/jdt/core/IJavaModelStatus;)V org/eclipse/jdt/internal/core/JavaElement.newNotPresentException() Lorg/eclipse/jdt/core/JavaModelException; org/eclipse/jdt/internal/core/JavaElement.openHierarchy()V org/eclipse/jdt/internal/core/JavaElement.getElementInfo() Lorg/eclipse/jdt/internal/core/JavaElementInfo; org/eclipse/jdt/internal/core/SourceMethod.isConstructor()Z org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getMethodLabel (Lorg/eclipse/jdt/core/IMethod;ILjava/lang/StringBuffer;)V org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getElementLabel (Lorg/eclipse/jdt/core/IJavaElement;ILjava/lang/StringBuffer;)V org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getElementLabel (Lorg/eclipse/jdt/core/IJavaElement;I)Ljava/lang/String; org/eclipse/jdt/internal/ui/compare/JavaCompareUtilities.getJavaElementID (Lorg/eclipse/jdt/core/IJavaElement;)Ljava/lang/String; org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.hasEdition (Lorg/eclipse/jdt/core/IJavaElement;)Z org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.getEditionElement (Lorg/eclipse/jface/viewers/ISelection;)Lorg/eclipse/jdt/core/IMember; org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.isEnabled (Lorg/eclipse/jface/viewers/ISelection;)Z org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.selectionChanged (Lorg/eclipse/jface/action/IAction;Lorg/eclipse/jface/viewers/ISelection;)V org/eclipse/ui/internal/PluginAction.refreshEnablement()V org/eclipse/ui/internal/PluginAction.selectionChanged (Lorg/eclipse/jface/viewers/ISelection;)V org/eclipse/ui/internal/ObjectActionContributor.contributeObjectActions (Lorg/eclipse/ui/IWorkbenchPart;Lorg/eclipse/jface/action/IMenuManager;Lorg/ecli pse/jface/viewers/ISelectionProvider;)Z org/eclipse/ui/internal/ObjectActionContributorManager.contributeObjectActions (Lorg/eclipse/ui/IWorkbenchPart;Lorg/eclipse/jface/action/IMenuManager;Lorg/ecli pse/jface/viewers/ISelectionProvider;)Z org/eclipse/ui/internal/PopupMenuExtender.addObjectActions (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/ui/internal/PopupMenuExtender.menuAboutToShow (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/jface/action/MenuManager.fireAboutToShow (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/jface/action/MenuManager.handleAboutToShow()V org/eclipse/jface/action/MenuManager.access$0 (Lorg/eclipse/jface/action/MenuManager;)V org/eclipse/jface/action/MenuManager$1.menuShown (Lorg/eclipse/swt/events/MenuEvent;)V org/eclipse/swt/widgets/TypedListener.handleEvent (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/EventTable.sendEvent(Lorg/eclipse/swt/widgets/Event;) V org/eclipse/swt/widgets/Widget.sendEvent(ILorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/Widget.sendEvent(I)V org/eclipse/swt/widgets/Control.WM_INITMENUPOPUP(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Decorations.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.TrackPopupMenu (IIIIIILorg/eclipse/swt/internal/win32/RECT;)Z org/eclipse/swt/widgets/Menu.setVisible(Z)V org/eclipse/swt/widgets/Control.WM_CONTEXTMENU(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.CallWindowProcW(IIIII)I org/eclipse/swt/internal/win32/OS.CallWindowProc(IIIII)I org/eclipse/swt/widgets/Tree.callWindowProc(III)I org/eclipse/swt/widgets/Control.WM_RBUTTONUP(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.DispatchMessageW (Lorg/eclipse/swt/internal/win32/MSG;)I org/eclipse/swt/internal/win32/OS.DispatchMessage (Lorg/eclipse/swt/internal/win32/MSG;)I org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V
|
resolved fixed
|
ac7ffd4
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T15:04:57Z | 2002-01-11T11:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.java
|
if (fLeft != null)
return;
fLeft= y;
}
if (m != null) {
if (fRight != null)
return;
fRight= m;
}
fIsOut= false;
}
/**
* Returns true if some nodes could be successfully combined into one.
*/
boolean matches() {
return !fIsOut && fAncestor != null && fLeft != null && fRight != null;
}
}
public JavaStructureCreator() {
}
/**
* Returns the name that appears in the enclosing pane title bar.
*/
public String getName() {
return CompareMessages.getString("JavaStructureViewer.title");
}
|
7,481 |
Bug 7481 JME in compare
|
Java Model Exception: Java Model Status [B does not exist.] Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/core/runtime/CoreException.<init> (Lorg/eclipse/core/runtime/IStatus;)V org/eclipse/jdt/core/JavaModelException.<init> (Lorg/eclipse/jdt/core/IJavaModelStatus;)V org/eclipse/jdt/internal/core/JavaElement.newNotPresentException() Lorg/eclipse/jdt/core/JavaModelException; org/eclipse/jdt/internal/core/JavaElement.openHierarchy()V org/eclipse/jdt/internal/core/JavaElement.getElementInfo() Lorg/eclipse/jdt/internal/core/JavaElementInfo; org/eclipse/jdt/internal/core/SourceMethod.isConstructor()Z org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getMethodLabel (Lorg/eclipse/jdt/core/IMethod;ILjava/lang/StringBuffer;)V org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getElementLabel (Lorg/eclipse/jdt/core/IJavaElement;ILjava/lang/StringBuffer;)V org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getElementLabel (Lorg/eclipse/jdt/core/IJavaElement;I)Ljava/lang/String; org/eclipse/jdt/internal/ui/compare/JavaCompareUtilities.getJavaElementID (Lorg/eclipse/jdt/core/IJavaElement;)Ljava/lang/String; org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.hasEdition (Lorg/eclipse/jdt/core/IJavaElement;)Z org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.getEditionElement (Lorg/eclipse/jface/viewers/ISelection;)Lorg/eclipse/jdt/core/IMember; org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.isEnabled (Lorg/eclipse/jface/viewers/ISelection;)Z org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.selectionChanged (Lorg/eclipse/jface/action/IAction;Lorg/eclipse/jface/viewers/ISelection;)V org/eclipse/ui/internal/PluginAction.refreshEnablement()V org/eclipse/ui/internal/PluginAction.selectionChanged (Lorg/eclipse/jface/viewers/ISelection;)V org/eclipse/ui/internal/ObjectActionContributor.contributeObjectActions (Lorg/eclipse/ui/IWorkbenchPart;Lorg/eclipse/jface/action/IMenuManager;Lorg/ecli pse/jface/viewers/ISelectionProvider;)Z org/eclipse/ui/internal/ObjectActionContributorManager.contributeObjectActions (Lorg/eclipse/ui/IWorkbenchPart;Lorg/eclipse/jface/action/IMenuManager;Lorg/ecli pse/jface/viewers/ISelectionProvider;)Z org/eclipse/ui/internal/PopupMenuExtender.addObjectActions (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/ui/internal/PopupMenuExtender.menuAboutToShow (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/jface/action/MenuManager.fireAboutToShow (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/jface/action/MenuManager.handleAboutToShow()V org/eclipse/jface/action/MenuManager.access$0 (Lorg/eclipse/jface/action/MenuManager;)V org/eclipse/jface/action/MenuManager$1.menuShown (Lorg/eclipse/swt/events/MenuEvent;)V org/eclipse/swt/widgets/TypedListener.handleEvent (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/EventTable.sendEvent(Lorg/eclipse/swt/widgets/Event;) V org/eclipse/swt/widgets/Widget.sendEvent(ILorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/Widget.sendEvent(I)V org/eclipse/swt/widgets/Control.WM_INITMENUPOPUP(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Decorations.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.TrackPopupMenu (IIIIIILorg/eclipse/swt/internal/win32/RECT;)Z org/eclipse/swt/widgets/Menu.setVisible(Z)V org/eclipse/swt/widgets/Control.WM_CONTEXTMENU(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.CallWindowProcW(IIIII)I org/eclipse/swt/internal/win32/OS.CallWindowProc(IIIII)I org/eclipse/swt/widgets/Tree.callWindowProc(III)I org/eclipse/swt/widgets/Control.WM_RBUTTONUP(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.DispatchMessageW (Lorg/eclipse/swt/internal/win32/MSG;)I org/eclipse/swt/internal/win32/OS.DispatchMessage (Lorg/eclipse/swt/internal/win32/MSG;)I org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V
|
resolved fixed
|
ac7ffd4
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T15:04:57Z | 2002-01-11T11:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.java
|
/**
* Returns a tree of JavaNodes for the given input
* which must implement the IStreamContentAccessor interface.
* In case of error null is returned.
*/
public IStructureComparator getStructure(final Object input) {
String contents= null;
if (input instanceof IStreamContentAccessor) {
IStreamContentAccessor sca= (IStreamContentAccessor) input;
try {
contents= JavaCompareUtilities.readString(sca.getContents());
} catch (CoreException ex) {
JavaPlugin.log(ex);
return null;
}
}
if (contents != null) {
int n= contents.length();
char[] buffer= new char[n];
contents.getChars(0, n, buffer, 0);
Document doc= new Document(contents);
IDocumentPartitioner dp= JavaCompareUtilities.createJavaPartitioner();
if (dp != null) {
doc.setDocumentPartitioner(dp);
dp.connect(doc);
}
|
7,481 |
Bug 7481 JME in compare
|
Java Model Exception: Java Model Status [B does not exist.] Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/core/runtime/CoreException.<init> (Lorg/eclipse/core/runtime/IStatus;)V org/eclipse/jdt/core/JavaModelException.<init> (Lorg/eclipse/jdt/core/IJavaModelStatus;)V org/eclipse/jdt/internal/core/JavaElement.newNotPresentException() Lorg/eclipse/jdt/core/JavaModelException; org/eclipse/jdt/internal/core/JavaElement.openHierarchy()V org/eclipse/jdt/internal/core/JavaElement.getElementInfo() Lorg/eclipse/jdt/internal/core/JavaElementInfo; org/eclipse/jdt/internal/core/SourceMethod.isConstructor()Z org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getMethodLabel (Lorg/eclipse/jdt/core/IMethod;ILjava/lang/StringBuffer;)V org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getElementLabel (Lorg/eclipse/jdt/core/IJavaElement;ILjava/lang/StringBuffer;)V org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getElementLabel (Lorg/eclipse/jdt/core/IJavaElement;I)Ljava/lang/String; org/eclipse/jdt/internal/ui/compare/JavaCompareUtilities.getJavaElementID (Lorg/eclipse/jdt/core/IJavaElement;)Ljava/lang/String; org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.hasEdition (Lorg/eclipse/jdt/core/IJavaElement;)Z org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.getEditionElement (Lorg/eclipse/jface/viewers/ISelection;)Lorg/eclipse/jdt/core/IMember; org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.isEnabled (Lorg/eclipse/jface/viewers/ISelection;)Z org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.selectionChanged (Lorg/eclipse/jface/action/IAction;Lorg/eclipse/jface/viewers/ISelection;)V org/eclipse/ui/internal/PluginAction.refreshEnablement()V org/eclipse/ui/internal/PluginAction.selectionChanged (Lorg/eclipse/jface/viewers/ISelection;)V org/eclipse/ui/internal/ObjectActionContributor.contributeObjectActions (Lorg/eclipse/ui/IWorkbenchPart;Lorg/eclipse/jface/action/IMenuManager;Lorg/ecli pse/jface/viewers/ISelectionProvider;)Z org/eclipse/ui/internal/ObjectActionContributorManager.contributeObjectActions (Lorg/eclipse/ui/IWorkbenchPart;Lorg/eclipse/jface/action/IMenuManager;Lorg/ecli pse/jface/viewers/ISelectionProvider;)Z org/eclipse/ui/internal/PopupMenuExtender.addObjectActions (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/ui/internal/PopupMenuExtender.menuAboutToShow (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/jface/action/MenuManager.fireAboutToShow (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/jface/action/MenuManager.handleAboutToShow()V org/eclipse/jface/action/MenuManager.access$0 (Lorg/eclipse/jface/action/MenuManager;)V org/eclipse/jface/action/MenuManager$1.menuShown (Lorg/eclipse/swt/events/MenuEvent;)V org/eclipse/swt/widgets/TypedListener.handleEvent (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/EventTable.sendEvent(Lorg/eclipse/swt/widgets/Event;) V org/eclipse/swt/widgets/Widget.sendEvent(ILorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/Widget.sendEvent(I)V org/eclipse/swt/widgets/Control.WM_INITMENUPOPUP(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Decorations.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.TrackPopupMenu (IIIIIILorg/eclipse/swt/internal/win32/RECT;)Z org/eclipse/swt/widgets/Menu.setVisible(Z)V org/eclipse/swt/widgets/Control.WM_CONTEXTMENU(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.CallWindowProcW(IIIII)I org/eclipse/swt/internal/win32/OS.CallWindowProc(IIIII)I org/eclipse/swt/widgets/Tree.callWindowProc(III)I org/eclipse/swt/widgets/Control.WM_RBUTTONUP(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.DispatchMessageW (Lorg/eclipse/swt/internal/win32/MSG;)I org/eclipse/swt/internal/win32/OS.DispatchMessage (Lorg/eclipse/swt/internal/win32/MSG;)I org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V
|
resolved fixed
|
ac7ffd4
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T15:04:57Z | 2002-01-11T11:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.java
|
boolean isEditable= false;
if (input instanceof IEditableContent)
isEditable= ((IEditableContent) input).isEditable();
JavaNode root= new JavaNode(doc, isEditable) {
void nodeChanged(JavaNode node) {
save(this, input);
}
};
JavaParseTreeBuilder builder= new JavaParseTreeBuilder(root, buffer);
SourceElementParser parser= new SourceElementParser(builder, new ProblemFactory(), new CompilerOptions());
try {
parser.parseCompilationUnit(builder, false);
} catch (ParseError ex) {
return null;
}
return root;
}
return null;
}
IStructureComparator getStructure(InputStream is) {
String contents= JavaCompareUtilities.readString(is);
if (contents != null) {
|
7,481 |
Bug 7481 JME in compare
|
Java Model Exception: Java Model Status [B does not exist.] Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/core/runtime/CoreException.<init> (Lorg/eclipse/core/runtime/IStatus;)V org/eclipse/jdt/core/JavaModelException.<init> (Lorg/eclipse/jdt/core/IJavaModelStatus;)V org/eclipse/jdt/internal/core/JavaElement.newNotPresentException() Lorg/eclipse/jdt/core/JavaModelException; org/eclipse/jdt/internal/core/JavaElement.openHierarchy()V org/eclipse/jdt/internal/core/JavaElement.getElementInfo() Lorg/eclipse/jdt/internal/core/JavaElementInfo; org/eclipse/jdt/internal/core/SourceMethod.isConstructor()Z org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getMethodLabel (Lorg/eclipse/jdt/core/IMethod;ILjava/lang/StringBuffer;)V org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getElementLabel (Lorg/eclipse/jdt/core/IJavaElement;ILjava/lang/StringBuffer;)V org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getElementLabel (Lorg/eclipse/jdt/core/IJavaElement;I)Ljava/lang/String; org/eclipse/jdt/internal/ui/compare/JavaCompareUtilities.getJavaElementID (Lorg/eclipse/jdt/core/IJavaElement;)Ljava/lang/String; org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.hasEdition (Lorg/eclipse/jdt/core/IJavaElement;)Z org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.getEditionElement (Lorg/eclipse/jface/viewers/ISelection;)Lorg/eclipse/jdt/core/IMember; org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.isEnabled (Lorg/eclipse/jface/viewers/ISelection;)Z org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.selectionChanged (Lorg/eclipse/jface/action/IAction;Lorg/eclipse/jface/viewers/ISelection;)V org/eclipse/ui/internal/PluginAction.refreshEnablement()V org/eclipse/ui/internal/PluginAction.selectionChanged (Lorg/eclipse/jface/viewers/ISelection;)V org/eclipse/ui/internal/ObjectActionContributor.contributeObjectActions (Lorg/eclipse/ui/IWorkbenchPart;Lorg/eclipse/jface/action/IMenuManager;Lorg/ecli pse/jface/viewers/ISelectionProvider;)Z org/eclipse/ui/internal/ObjectActionContributorManager.contributeObjectActions (Lorg/eclipse/ui/IWorkbenchPart;Lorg/eclipse/jface/action/IMenuManager;Lorg/ecli pse/jface/viewers/ISelectionProvider;)Z org/eclipse/ui/internal/PopupMenuExtender.addObjectActions (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/ui/internal/PopupMenuExtender.menuAboutToShow (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/jface/action/MenuManager.fireAboutToShow (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/jface/action/MenuManager.handleAboutToShow()V org/eclipse/jface/action/MenuManager.access$0 (Lorg/eclipse/jface/action/MenuManager;)V org/eclipse/jface/action/MenuManager$1.menuShown (Lorg/eclipse/swt/events/MenuEvent;)V org/eclipse/swt/widgets/TypedListener.handleEvent (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/EventTable.sendEvent(Lorg/eclipse/swt/widgets/Event;) V org/eclipse/swt/widgets/Widget.sendEvent(ILorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/Widget.sendEvent(I)V org/eclipse/swt/widgets/Control.WM_INITMENUPOPUP(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Decorations.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.TrackPopupMenu (IIIIIILorg/eclipse/swt/internal/win32/RECT;)Z org/eclipse/swt/widgets/Menu.setVisible(Z)V org/eclipse/swt/widgets/Control.WM_CONTEXTMENU(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.CallWindowProcW(IIIII)I org/eclipse/swt/internal/win32/OS.CallWindowProc(IIIII)I org/eclipse/swt/widgets/Tree.callWindowProc(III)I org/eclipse/swt/widgets/Control.WM_RBUTTONUP(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.DispatchMessageW (Lorg/eclipse/swt/internal/win32/MSG;)I org/eclipse/swt/internal/win32/OS.DispatchMessage (Lorg/eclipse/swt/internal/win32/MSG;)I org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V
|
resolved fixed
|
ac7ffd4
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T15:04:57Z | 2002-01-11T11:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.java
|
int n= contents.length();
char[] buffer= new char[n];
contents.getChars(0, n, buffer, 0);
Document doc= new Document(contents);
IDocumentPartitioner dp= JavaCompareUtilities.createJavaPartitioner();
if (dp != null) {
doc.setDocumentPartitioner(dp);
dp.connect(doc);
}
JavaNode root= new JavaNode(doc, false);
JavaParseTreeBuilder builder= new JavaParseTreeBuilder(root, buffer);
SourceElementParser parser= new SourceElementParser(builder, new ProblemFactory(), new CompilerOptions());
try {
parser.parseCompilationUnit(builder, false);
} catch (ParseError ex) {
return null;
}
return root;
}
return null;
}
/**
* Returns true because this IStructureCreator knows how to save.
*/
|
7,481 |
Bug 7481 JME in compare
|
Java Model Exception: Java Model Status [B does not exist.] Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/core/runtime/CoreException.<init> (Lorg/eclipse/core/runtime/IStatus;)V org/eclipse/jdt/core/JavaModelException.<init> (Lorg/eclipse/jdt/core/IJavaModelStatus;)V org/eclipse/jdt/internal/core/JavaElement.newNotPresentException() Lorg/eclipse/jdt/core/JavaModelException; org/eclipse/jdt/internal/core/JavaElement.openHierarchy()V org/eclipse/jdt/internal/core/JavaElement.getElementInfo() Lorg/eclipse/jdt/internal/core/JavaElementInfo; org/eclipse/jdt/internal/core/SourceMethod.isConstructor()Z org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getMethodLabel (Lorg/eclipse/jdt/core/IMethod;ILjava/lang/StringBuffer;)V org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getElementLabel (Lorg/eclipse/jdt/core/IJavaElement;ILjava/lang/StringBuffer;)V org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getElementLabel (Lorg/eclipse/jdt/core/IJavaElement;I)Ljava/lang/String; org/eclipse/jdt/internal/ui/compare/JavaCompareUtilities.getJavaElementID (Lorg/eclipse/jdt/core/IJavaElement;)Ljava/lang/String; org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.hasEdition (Lorg/eclipse/jdt/core/IJavaElement;)Z org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.getEditionElement (Lorg/eclipse/jface/viewers/ISelection;)Lorg/eclipse/jdt/core/IMember; org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.isEnabled (Lorg/eclipse/jface/viewers/ISelection;)Z org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.selectionChanged (Lorg/eclipse/jface/action/IAction;Lorg/eclipse/jface/viewers/ISelection;)V org/eclipse/ui/internal/PluginAction.refreshEnablement()V org/eclipse/ui/internal/PluginAction.selectionChanged (Lorg/eclipse/jface/viewers/ISelection;)V org/eclipse/ui/internal/ObjectActionContributor.contributeObjectActions (Lorg/eclipse/ui/IWorkbenchPart;Lorg/eclipse/jface/action/IMenuManager;Lorg/ecli pse/jface/viewers/ISelectionProvider;)Z org/eclipse/ui/internal/ObjectActionContributorManager.contributeObjectActions (Lorg/eclipse/ui/IWorkbenchPart;Lorg/eclipse/jface/action/IMenuManager;Lorg/ecli pse/jface/viewers/ISelectionProvider;)Z org/eclipse/ui/internal/PopupMenuExtender.addObjectActions (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/ui/internal/PopupMenuExtender.menuAboutToShow (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/jface/action/MenuManager.fireAboutToShow (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/jface/action/MenuManager.handleAboutToShow()V org/eclipse/jface/action/MenuManager.access$0 (Lorg/eclipse/jface/action/MenuManager;)V org/eclipse/jface/action/MenuManager$1.menuShown (Lorg/eclipse/swt/events/MenuEvent;)V org/eclipse/swt/widgets/TypedListener.handleEvent (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/EventTable.sendEvent(Lorg/eclipse/swt/widgets/Event;) V org/eclipse/swt/widgets/Widget.sendEvent(ILorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/Widget.sendEvent(I)V org/eclipse/swt/widgets/Control.WM_INITMENUPOPUP(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Decorations.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.TrackPopupMenu (IIIIIILorg/eclipse/swt/internal/win32/RECT;)Z org/eclipse/swt/widgets/Menu.setVisible(Z)V org/eclipse/swt/widgets/Control.WM_CONTEXTMENU(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.CallWindowProcW(IIIII)I org/eclipse/swt/internal/win32/OS.CallWindowProc(IIIII)I org/eclipse/swt/widgets/Tree.callWindowProc(III)I org/eclipse/swt/widgets/Control.WM_RBUTTONUP(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.DispatchMessageW (Lorg/eclipse/swt/internal/win32/MSG;)I org/eclipse/swt/internal/win32/OS.DispatchMessage (Lorg/eclipse/swt/internal/win32/MSG;)I org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V
|
resolved fixed
|
ac7ffd4
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T15:04:57Z | 2002-01-11T11:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.java
|
public boolean canSave() {
return true;
}
public void save(IStructureComparator node, Object input) {
if (node instanceof JavaNode && input instanceof IEditableContent) {
IDocument document= ((JavaNode)node).getDocument();
IEditableContent bca= (IEditableContent) input;
bca.setContent(document.get().getBytes());
}
}
/**
* Returns the contents of the given node as a string.
* This string is used to test the content of a Java element
* for equality. Is is never shown in the UI, so any string representing
* the content will do.
* @param node must implement the IStreamContentAccessor interface
* @param ignoreWhiteSpace if true all Java white space (incl. comments) is removed from the contents.
*/
public String getContents(Object node, boolean ignoreWhiteSpace) {
if (! (node instanceof IStreamContentAccessor))
return null;
IStreamContentAccessor sca= (IStreamContentAccessor) node;
String content= null;
try {
content= JavaCompareUtilities.readString(sca.getContents());
} catch (CoreException ex) {
|
7,481 |
Bug 7481 JME in compare
|
Java Model Exception: Java Model Status [B does not exist.] Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/core/runtime/CoreException.<init> (Lorg/eclipse/core/runtime/IStatus;)V org/eclipse/jdt/core/JavaModelException.<init> (Lorg/eclipse/jdt/core/IJavaModelStatus;)V org/eclipse/jdt/internal/core/JavaElement.newNotPresentException() Lorg/eclipse/jdt/core/JavaModelException; org/eclipse/jdt/internal/core/JavaElement.openHierarchy()V org/eclipse/jdt/internal/core/JavaElement.getElementInfo() Lorg/eclipse/jdt/internal/core/JavaElementInfo; org/eclipse/jdt/internal/core/SourceMethod.isConstructor()Z org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getMethodLabel (Lorg/eclipse/jdt/core/IMethod;ILjava/lang/StringBuffer;)V org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getElementLabel (Lorg/eclipse/jdt/core/IJavaElement;ILjava/lang/StringBuffer;)V org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getElementLabel (Lorg/eclipse/jdt/core/IJavaElement;I)Ljava/lang/String; org/eclipse/jdt/internal/ui/compare/JavaCompareUtilities.getJavaElementID (Lorg/eclipse/jdt/core/IJavaElement;)Ljava/lang/String; org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.hasEdition (Lorg/eclipse/jdt/core/IJavaElement;)Z org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.getEditionElement (Lorg/eclipse/jface/viewers/ISelection;)Lorg/eclipse/jdt/core/IMember; org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.isEnabled (Lorg/eclipse/jface/viewers/ISelection;)Z org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.selectionChanged (Lorg/eclipse/jface/action/IAction;Lorg/eclipse/jface/viewers/ISelection;)V org/eclipse/ui/internal/PluginAction.refreshEnablement()V org/eclipse/ui/internal/PluginAction.selectionChanged (Lorg/eclipse/jface/viewers/ISelection;)V org/eclipse/ui/internal/ObjectActionContributor.contributeObjectActions (Lorg/eclipse/ui/IWorkbenchPart;Lorg/eclipse/jface/action/IMenuManager;Lorg/ecli pse/jface/viewers/ISelectionProvider;)Z org/eclipse/ui/internal/ObjectActionContributorManager.contributeObjectActions (Lorg/eclipse/ui/IWorkbenchPart;Lorg/eclipse/jface/action/IMenuManager;Lorg/ecli pse/jface/viewers/ISelectionProvider;)Z org/eclipse/ui/internal/PopupMenuExtender.addObjectActions (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/ui/internal/PopupMenuExtender.menuAboutToShow (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/jface/action/MenuManager.fireAboutToShow (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/jface/action/MenuManager.handleAboutToShow()V org/eclipse/jface/action/MenuManager.access$0 (Lorg/eclipse/jface/action/MenuManager;)V org/eclipse/jface/action/MenuManager$1.menuShown (Lorg/eclipse/swt/events/MenuEvent;)V org/eclipse/swt/widgets/TypedListener.handleEvent (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/EventTable.sendEvent(Lorg/eclipse/swt/widgets/Event;) V org/eclipse/swt/widgets/Widget.sendEvent(ILorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/Widget.sendEvent(I)V org/eclipse/swt/widgets/Control.WM_INITMENUPOPUP(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Decorations.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.TrackPopupMenu (IIIIIILorg/eclipse/swt/internal/win32/RECT;)Z org/eclipse/swt/widgets/Menu.setVisible(Z)V org/eclipse/swt/widgets/Control.WM_CONTEXTMENU(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.CallWindowProcW(IIIII)I org/eclipse/swt/internal/win32/OS.CallWindowProc(IIIII)I org/eclipse/swt/widgets/Tree.callWindowProc(III)I org/eclipse/swt/widgets/Control.WM_RBUTTONUP(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.DispatchMessageW (Lorg/eclipse/swt/internal/win32/MSG;)I org/eclipse/swt/internal/win32/OS.DispatchMessage (Lorg/eclipse/swt/internal/win32/MSG;)I org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V
|
resolved fixed
|
ac7ffd4
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T15:04:57Z | 2002-01-11T11:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.java
|
JavaPlugin.log(ex);
return null;
}
if (ignoreWhiteSpace) {
StringBuffer buf= new StringBuffer();
Scanner scanner= new Scanner(false, false);
scanner.setSourceBuffer(content.toCharArray());
try {
while (scanner.getNextToken() != TerminalSymbols.TokenNameEOF)
buf.append(content.substring(scanner.startPosition, scanner.currentPosition));
} catch (InvalidInputException ex) {
JavaPlugin.log(ex);
return null;
}
content= buf.toString();
}
return content;
}
/**
* Returns true since this IStructureCreator can rewrite the diff tree
* in order to fold certain combinations of additons and deletions.
*/
public boolean canRewriteTree() {
return true;
|
7,481 |
Bug 7481 JME in compare
|
Java Model Exception: Java Model Status [B does not exist.] Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/core/runtime/CoreException.<init> (Lorg/eclipse/core/runtime/IStatus;)V org/eclipse/jdt/core/JavaModelException.<init> (Lorg/eclipse/jdt/core/IJavaModelStatus;)V org/eclipse/jdt/internal/core/JavaElement.newNotPresentException() Lorg/eclipse/jdt/core/JavaModelException; org/eclipse/jdt/internal/core/JavaElement.openHierarchy()V org/eclipse/jdt/internal/core/JavaElement.getElementInfo() Lorg/eclipse/jdt/internal/core/JavaElementInfo; org/eclipse/jdt/internal/core/SourceMethod.isConstructor()Z org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getMethodLabel (Lorg/eclipse/jdt/core/IMethod;ILjava/lang/StringBuffer;)V org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getElementLabel (Lorg/eclipse/jdt/core/IJavaElement;ILjava/lang/StringBuffer;)V org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getElementLabel (Lorg/eclipse/jdt/core/IJavaElement;I)Ljava/lang/String; org/eclipse/jdt/internal/ui/compare/JavaCompareUtilities.getJavaElementID (Lorg/eclipse/jdt/core/IJavaElement;)Ljava/lang/String; org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.hasEdition (Lorg/eclipse/jdt/core/IJavaElement;)Z org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.getEditionElement (Lorg/eclipse/jface/viewers/ISelection;)Lorg/eclipse/jdt/core/IMember; org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.isEnabled (Lorg/eclipse/jface/viewers/ISelection;)Z org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.selectionChanged (Lorg/eclipse/jface/action/IAction;Lorg/eclipse/jface/viewers/ISelection;)V org/eclipse/ui/internal/PluginAction.refreshEnablement()V org/eclipse/ui/internal/PluginAction.selectionChanged (Lorg/eclipse/jface/viewers/ISelection;)V org/eclipse/ui/internal/ObjectActionContributor.contributeObjectActions (Lorg/eclipse/ui/IWorkbenchPart;Lorg/eclipse/jface/action/IMenuManager;Lorg/ecli pse/jface/viewers/ISelectionProvider;)Z org/eclipse/ui/internal/ObjectActionContributorManager.contributeObjectActions (Lorg/eclipse/ui/IWorkbenchPart;Lorg/eclipse/jface/action/IMenuManager;Lorg/ecli pse/jface/viewers/ISelectionProvider;)Z org/eclipse/ui/internal/PopupMenuExtender.addObjectActions (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/ui/internal/PopupMenuExtender.menuAboutToShow (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/jface/action/MenuManager.fireAboutToShow (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/jface/action/MenuManager.handleAboutToShow()V org/eclipse/jface/action/MenuManager.access$0 (Lorg/eclipse/jface/action/MenuManager;)V org/eclipse/jface/action/MenuManager$1.menuShown (Lorg/eclipse/swt/events/MenuEvent;)V org/eclipse/swt/widgets/TypedListener.handleEvent (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/EventTable.sendEvent(Lorg/eclipse/swt/widgets/Event;) V org/eclipse/swt/widgets/Widget.sendEvent(ILorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/Widget.sendEvent(I)V org/eclipse/swt/widgets/Control.WM_INITMENUPOPUP(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Decorations.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.TrackPopupMenu (IIIIIILorg/eclipse/swt/internal/win32/RECT;)Z org/eclipse/swt/widgets/Menu.setVisible(Z)V org/eclipse/swt/widgets/Control.WM_CONTEXTMENU(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.CallWindowProcW(IIIII)I org/eclipse/swt/internal/win32/OS.CallWindowProc(IIIII)I org/eclipse/swt/widgets/Tree.callWindowProc(III)I org/eclipse/swt/widgets/Control.WM_RBUTTONUP(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.DispatchMessageW (Lorg/eclipse/swt/internal/win32/MSG;)I org/eclipse/swt/internal/win32/OS.DispatchMessage (Lorg/eclipse/swt/internal/win32/MSG;)I org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V
|
resolved fixed
|
ac7ffd4
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T15:04:57Z | 2002-01-11T11:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.java
|
}
/**
* Tries to detect certain combinations of additons and deletions
* as renames or signature changes and foldes them into a single node.
*/
public void rewriteTree(Differencer differencer, IDiffContainer root) {
HashMap map= new HashMap(10);
Object[] children= root.getChildren();
for (int i= 0; i < children.length; i++) {
DiffNode diff= (DiffNode) children[i];
JavaNode jn= (JavaNode) diff.getId();
if (jn == null)
continue;
int type= jn.getTypeCode();
if (type == JavaNode.METHOD || type == JavaNode.CONSTRUCTOR) {
String name= jn.extractMethodName();
RewriteInfo nameInfo= (RewriteInfo) map.get(name);
if (nameInfo == null) {
nameInfo= new RewriteInfo();
map.put(name, nameInfo);
}
nameInfo.add(diff);
|
7,481 |
Bug 7481 JME in compare
|
Java Model Exception: Java Model Status [B does not exist.] Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/core/runtime/CoreException.<init> (Lorg/eclipse/core/runtime/IStatus;)V org/eclipse/jdt/core/JavaModelException.<init> (Lorg/eclipse/jdt/core/IJavaModelStatus;)V org/eclipse/jdt/internal/core/JavaElement.newNotPresentException() Lorg/eclipse/jdt/core/JavaModelException; org/eclipse/jdt/internal/core/JavaElement.openHierarchy()V org/eclipse/jdt/internal/core/JavaElement.getElementInfo() Lorg/eclipse/jdt/internal/core/JavaElementInfo; org/eclipse/jdt/internal/core/SourceMethod.isConstructor()Z org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getMethodLabel (Lorg/eclipse/jdt/core/IMethod;ILjava/lang/StringBuffer;)V org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getElementLabel (Lorg/eclipse/jdt/core/IJavaElement;ILjava/lang/StringBuffer;)V org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getElementLabel (Lorg/eclipse/jdt/core/IJavaElement;I)Ljava/lang/String; org/eclipse/jdt/internal/ui/compare/JavaCompareUtilities.getJavaElementID (Lorg/eclipse/jdt/core/IJavaElement;)Ljava/lang/String; org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.hasEdition (Lorg/eclipse/jdt/core/IJavaElement;)Z org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.getEditionElement (Lorg/eclipse/jface/viewers/ISelection;)Lorg/eclipse/jdt/core/IMember; org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.isEnabled (Lorg/eclipse/jface/viewers/ISelection;)Z org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.selectionChanged (Lorg/eclipse/jface/action/IAction;Lorg/eclipse/jface/viewers/ISelection;)V org/eclipse/ui/internal/PluginAction.refreshEnablement()V org/eclipse/ui/internal/PluginAction.selectionChanged (Lorg/eclipse/jface/viewers/ISelection;)V org/eclipse/ui/internal/ObjectActionContributor.contributeObjectActions (Lorg/eclipse/ui/IWorkbenchPart;Lorg/eclipse/jface/action/IMenuManager;Lorg/ecli pse/jface/viewers/ISelectionProvider;)Z org/eclipse/ui/internal/ObjectActionContributorManager.contributeObjectActions (Lorg/eclipse/ui/IWorkbenchPart;Lorg/eclipse/jface/action/IMenuManager;Lorg/ecli pse/jface/viewers/ISelectionProvider;)Z org/eclipse/ui/internal/PopupMenuExtender.addObjectActions (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/ui/internal/PopupMenuExtender.menuAboutToShow (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/jface/action/MenuManager.fireAboutToShow (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/jface/action/MenuManager.handleAboutToShow()V org/eclipse/jface/action/MenuManager.access$0 (Lorg/eclipse/jface/action/MenuManager;)V org/eclipse/jface/action/MenuManager$1.menuShown (Lorg/eclipse/swt/events/MenuEvent;)V org/eclipse/swt/widgets/TypedListener.handleEvent (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/EventTable.sendEvent(Lorg/eclipse/swt/widgets/Event;) V org/eclipse/swt/widgets/Widget.sendEvent(ILorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/Widget.sendEvent(I)V org/eclipse/swt/widgets/Control.WM_INITMENUPOPUP(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Decorations.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.TrackPopupMenu (IIIIIILorg/eclipse/swt/internal/win32/RECT;)Z org/eclipse/swt/widgets/Menu.setVisible(Z)V org/eclipse/swt/widgets/Control.WM_CONTEXTMENU(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.CallWindowProcW(IIIII)I org/eclipse/swt/internal/win32/OS.CallWindowProc(IIIII)I org/eclipse/swt/widgets/Tree.callWindowProc(III)I org/eclipse/swt/widgets/Control.WM_RBUTTONUP(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.DispatchMessageW (Lorg/eclipse/swt/internal/win32/MSG;)I org/eclipse/swt/internal/win32/OS.DispatchMessage (Lorg/eclipse/swt/internal/win32/MSG;)I org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V
|
resolved fixed
|
ac7ffd4
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T15:04:57Z | 2002-01-11T11:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.java
|
String argList= jn.extractArgumentList();
RewriteInfo argInfo= null;
if (argList != null && !argList.equals("()")) {
argInfo= (RewriteInfo) map.get(argList);
if (argInfo == null) {
argInfo= new RewriteInfo();
map.put(argList, argInfo);
}
argInfo.add(diff);
}
switch (diff.getKind() & Differencer.CHANGE_TYPE_MASK) {
case Differencer.ADDITION:
case Differencer.DELETION:
if (type != JavaNode.CONSTRUCTOR)
nameInfo.setDiff((ICompareInput)diff);
if (argInfo != null)
argInfo.setDiff((ICompareInput)diff);
break;
default:
break;
}
}
|
7,481 |
Bug 7481 JME in compare
|
Java Model Exception: Java Model Status [B does not exist.] Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/core/runtime/CoreException.<init> (Lorg/eclipse/core/runtime/IStatus;)V org/eclipse/jdt/core/JavaModelException.<init> (Lorg/eclipse/jdt/core/IJavaModelStatus;)V org/eclipse/jdt/internal/core/JavaElement.newNotPresentException() Lorg/eclipse/jdt/core/JavaModelException; org/eclipse/jdt/internal/core/JavaElement.openHierarchy()V org/eclipse/jdt/internal/core/JavaElement.getElementInfo() Lorg/eclipse/jdt/internal/core/JavaElementInfo; org/eclipse/jdt/internal/core/SourceMethod.isConstructor()Z org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getMethodLabel (Lorg/eclipse/jdt/core/IMethod;ILjava/lang/StringBuffer;)V org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getElementLabel (Lorg/eclipse/jdt/core/IJavaElement;ILjava/lang/StringBuffer;)V org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getElementLabel (Lorg/eclipse/jdt/core/IJavaElement;I)Ljava/lang/String; org/eclipse/jdt/internal/ui/compare/JavaCompareUtilities.getJavaElementID (Lorg/eclipse/jdt/core/IJavaElement;)Ljava/lang/String; org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.hasEdition (Lorg/eclipse/jdt/core/IJavaElement;)Z org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.getEditionElement (Lorg/eclipse/jface/viewers/ISelection;)Lorg/eclipse/jdt/core/IMember; org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.isEnabled (Lorg/eclipse/jface/viewers/ISelection;)Z org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.selectionChanged (Lorg/eclipse/jface/action/IAction;Lorg/eclipse/jface/viewers/ISelection;)V org/eclipse/ui/internal/PluginAction.refreshEnablement()V org/eclipse/ui/internal/PluginAction.selectionChanged (Lorg/eclipse/jface/viewers/ISelection;)V org/eclipse/ui/internal/ObjectActionContributor.contributeObjectActions (Lorg/eclipse/ui/IWorkbenchPart;Lorg/eclipse/jface/action/IMenuManager;Lorg/ecli pse/jface/viewers/ISelectionProvider;)Z org/eclipse/ui/internal/ObjectActionContributorManager.contributeObjectActions (Lorg/eclipse/ui/IWorkbenchPart;Lorg/eclipse/jface/action/IMenuManager;Lorg/ecli pse/jface/viewers/ISelectionProvider;)Z org/eclipse/ui/internal/PopupMenuExtender.addObjectActions (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/ui/internal/PopupMenuExtender.menuAboutToShow (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/jface/action/MenuManager.fireAboutToShow (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/jface/action/MenuManager.handleAboutToShow()V org/eclipse/jface/action/MenuManager.access$0 (Lorg/eclipse/jface/action/MenuManager;)V org/eclipse/jface/action/MenuManager$1.menuShown (Lorg/eclipse/swt/events/MenuEvent;)V org/eclipse/swt/widgets/TypedListener.handleEvent (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/EventTable.sendEvent(Lorg/eclipse/swt/widgets/Event;) V org/eclipse/swt/widgets/Widget.sendEvent(ILorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/Widget.sendEvent(I)V org/eclipse/swt/widgets/Control.WM_INITMENUPOPUP(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Decorations.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.TrackPopupMenu (IIIIIILorg/eclipse/swt/internal/win32/RECT;)Z org/eclipse/swt/widgets/Menu.setVisible(Z)V org/eclipse/swt/widgets/Control.WM_CONTEXTMENU(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.CallWindowProcW(IIIII)I org/eclipse/swt/internal/win32/OS.CallWindowProc(IIIII)I org/eclipse/swt/widgets/Tree.callWindowProc(III)I org/eclipse/swt/widgets/Control.WM_RBUTTONUP(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.DispatchMessageW (Lorg/eclipse/swt/internal/win32/MSG;)I org/eclipse/swt/internal/win32/OS.DispatchMessage (Lorg/eclipse/swt/internal/win32/MSG;)I org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V
|
resolved fixed
|
ac7ffd4
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T15:04:57Z | 2002-01-11T11:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.java
|
if (diff instanceof IDiffContainer)
rewriteTree(differencer, (IDiffContainer)diff);
}
Iterator it= map.keySet().iterator();
while (it.hasNext()) {
String name= (String) it.next();
RewriteInfo i= (RewriteInfo) map.get(name);
if (i.matches()) {
DiffNode d= (DiffNode) differencer.findDifferences(true, null, root, i.fAncestor, i.fLeft, i.fRight);
if (d != null) {
d.setDontExpand(true);
Iterator it2= i.fChildren.iterator();
while (it2.hasNext()) {
IDiffElement rd= (IDiffElement) it2.next();
root.removeToRoot(rd);
d.add(rd);
}
}
}
}
}
|
7,481 |
Bug 7481 JME in compare
|
Java Model Exception: Java Model Status [B does not exist.] Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/core/runtime/CoreException.<init> (Lorg/eclipse/core/runtime/IStatus;)V org/eclipse/jdt/core/JavaModelException.<init> (Lorg/eclipse/jdt/core/IJavaModelStatus;)V org/eclipse/jdt/internal/core/JavaElement.newNotPresentException() Lorg/eclipse/jdt/core/JavaModelException; org/eclipse/jdt/internal/core/JavaElement.openHierarchy()V org/eclipse/jdt/internal/core/JavaElement.getElementInfo() Lorg/eclipse/jdt/internal/core/JavaElementInfo; org/eclipse/jdt/internal/core/SourceMethod.isConstructor()Z org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getMethodLabel (Lorg/eclipse/jdt/core/IMethod;ILjava/lang/StringBuffer;)V org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getElementLabel (Lorg/eclipse/jdt/core/IJavaElement;ILjava/lang/StringBuffer;)V org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getElementLabel (Lorg/eclipse/jdt/core/IJavaElement;I)Ljava/lang/String; org/eclipse/jdt/internal/ui/compare/JavaCompareUtilities.getJavaElementID (Lorg/eclipse/jdt/core/IJavaElement;)Ljava/lang/String; org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.hasEdition (Lorg/eclipse/jdt/core/IJavaElement;)Z org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.getEditionElement (Lorg/eclipse/jface/viewers/ISelection;)Lorg/eclipse/jdt/core/IMember; org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.isEnabled (Lorg/eclipse/jface/viewers/ISelection;)Z org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.selectionChanged (Lorg/eclipse/jface/action/IAction;Lorg/eclipse/jface/viewers/ISelection;)V org/eclipse/ui/internal/PluginAction.refreshEnablement()V org/eclipse/ui/internal/PluginAction.selectionChanged (Lorg/eclipse/jface/viewers/ISelection;)V org/eclipse/ui/internal/ObjectActionContributor.contributeObjectActions (Lorg/eclipse/ui/IWorkbenchPart;Lorg/eclipse/jface/action/IMenuManager;Lorg/ecli pse/jface/viewers/ISelectionProvider;)Z org/eclipse/ui/internal/ObjectActionContributorManager.contributeObjectActions (Lorg/eclipse/ui/IWorkbenchPart;Lorg/eclipse/jface/action/IMenuManager;Lorg/ecli pse/jface/viewers/ISelectionProvider;)Z org/eclipse/ui/internal/PopupMenuExtender.addObjectActions (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/ui/internal/PopupMenuExtender.menuAboutToShow (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/jface/action/MenuManager.fireAboutToShow (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/jface/action/MenuManager.handleAboutToShow()V org/eclipse/jface/action/MenuManager.access$0 (Lorg/eclipse/jface/action/MenuManager;)V org/eclipse/jface/action/MenuManager$1.menuShown (Lorg/eclipse/swt/events/MenuEvent;)V org/eclipse/swt/widgets/TypedListener.handleEvent (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/EventTable.sendEvent(Lorg/eclipse/swt/widgets/Event;) V org/eclipse/swt/widgets/Widget.sendEvent(ILorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/Widget.sendEvent(I)V org/eclipse/swt/widgets/Control.WM_INITMENUPOPUP(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Decorations.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.TrackPopupMenu (IIIIIILorg/eclipse/swt/internal/win32/RECT;)Z org/eclipse/swt/widgets/Menu.setVisible(Z)V org/eclipse/swt/widgets/Control.WM_CONTEXTMENU(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.CallWindowProcW(IIIII)I org/eclipse/swt/internal/win32/OS.CallWindowProc(IIIII)I org/eclipse/swt/widgets/Tree.callWindowProc(III)I org/eclipse/swt/widgets/Control.WM_RBUTTONUP(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.DispatchMessageW (Lorg/eclipse/swt/internal/win32/MSG;)I org/eclipse/swt/internal/win32/OS.DispatchMessage (Lorg/eclipse/swt/internal/win32/MSG;)I org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V
|
resolved fixed
|
ac7ffd4
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T15:04:57Z | 2002-01-11T11:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.java
|
/**
* If selector is an IJavaElement this method tries to return an
* IStructureComparator object for it.
* In case of error or if the given selector cannot be found
* null is returned.
* @param selector the IJavaElement to extract
* @param input must implement the IStreamContentAccessor interface.
*/
public IStructureComparator locate(Object selector, Object input) {
if (!(selector instanceof IJavaElement))
return null;
IStructureComparator structure= getStructure(input);
if (structure == null)
return null;
String[] path= createPath((IJavaElement) selector);
return find(structure, path, 0);
}
static String[] createPath(IJavaElement je) {
List args= new ArrayList();
while (je != null) {
|
7,481 |
Bug 7481 JME in compare
|
Java Model Exception: Java Model Status [B does not exist.] Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/core/runtime/CoreException.<init> (Lorg/eclipse/core/runtime/IStatus;)V org/eclipse/jdt/core/JavaModelException.<init> (Lorg/eclipse/jdt/core/IJavaModelStatus;)V org/eclipse/jdt/internal/core/JavaElement.newNotPresentException() Lorg/eclipse/jdt/core/JavaModelException; org/eclipse/jdt/internal/core/JavaElement.openHierarchy()V org/eclipse/jdt/internal/core/JavaElement.getElementInfo() Lorg/eclipse/jdt/internal/core/JavaElementInfo; org/eclipse/jdt/internal/core/SourceMethod.isConstructor()Z org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getMethodLabel (Lorg/eclipse/jdt/core/IMethod;ILjava/lang/StringBuffer;)V org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getElementLabel (Lorg/eclipse/jdt/core/IJavaElement;ILjava/lang/StringBuffer;)V org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getElementLabel (Lorg/eclipse/jdt/core/IJavaElement;I)Ljava/lang/String; org/eclipse/jdt/internal/ui/compare/JavaCompareUtilities.getJavaElementID (Lorg/eclipse/jdt/core/IJavaElement;)Ljava/lang/String; org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.hasEdition (Lorg/eclipse/jdt/core/IJavaElement;)Z org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.getEditionElement (Lorg/eclipse/jface/viewers/ISelection;)Lorg/eclipse/jdt/core/IMember; org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.isEnabled (Lorg/eclipse/jface/viewers/ISelection;)Z org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.selectionChanged (Lorg/eclipse/jface/action/IAction;Lorg/eclipse/jface/viewers/ISelection;)V org/eclipse/ui/internal/PluginAction.refreshEnablement()V org/eclipse/ui/internal/PluginAction.selectionChanged (Lorg/eclipse/jface/viewers/ISelection;)V org/eclipse/ui/internal/ObjectActionContributor.contributeObjectActions (Lorg/eclipse/ui/IWorkbenchPart;Lorg/eclipse/jface/action/IMenuManager;Lorg/ecli pse/jface/viewers/ISelectionProvider;)Z org/eclipse/ui/internal/ObjectActionContributorManager.contributeObjectActions (Lorg/eclipse/ui/IWorkbenchPart;Lorg/eclipse/jface/action/IMenuManager;Lorg/ecli pse/jface/viewers/ISelectionProvider;)Z org/eclipse/ui/internal/PopupMenuExtender.addObjectActions (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/ui/internal/PopupMenuExtender.menuAboutToShow (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/jface/action/MenuManager.fireAboutToShow (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/jface/action/MenuManager.handleAboutToShow()V org/eclipse/jface/action/MenuManager.access$0 (Lorg/eclipse/jface/action/MenuManager;)V org/eclipse/jface/action/MenuManager$1.menuShown (Lorg/eclipse/swt/events/MenuEvent;)V org/eclipse/swt/widgets/TypedListener.handleEvent (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/EventTable.sendEvent(Lorg/eclipse/swt/widgets/Event;) V org/eclipse/swt/widgets/Widget.sendEvent(ILorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/Widget.sendEvent(I)V org/eclipse/swt/widgets/Control.WM_INITMENUPOPUP(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Decorations.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.TrackPopupMenu (IIIIIILorg/eclipse/swt/internal/win32/RECT;)Z org/eclipse/swt/widgets/Menu.setVisible(Z)V org/eclipse/swt/widgets/Control.WM_CONTEXTMENU(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.CallWindowProcW(IIIII)I org/eclipse/swt/internal/win32/OS.CallWindowProc(IIIII)I org/eclipse/swt/widgets/Tree.callWindowProc(III)I org/eclipse/swt/widgets/Control.WM_RBUTTONUP(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.DispatchMessageW (Lorg/eclipse/swt/internal/win32/MSG;)I org/eclipse/swt/internal/win32/OS.DispatchMessage (Lorg/eclipse/swt/internal/win32/MSG;)I org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V
|
resolved fixed
|
ac7ffd4
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T15:04:57Z | 2002-01-11T11:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.java
|
String name= JavaCompareUtilities.getJavaElementID(je);
if (name == null)
return null;
args.add(name);
if (je instanceof IWorkingCopy || je instanceof ICompilationUnit)
break;
je= je.getParent();
}
int n= args.size();
String[] path= new String[n];
for (int i= 0; i < n; i++)
path[i]= (String) args.get(n-1-i);
return path;
}
/**
* Recursivly extracts the given path from the tree.
*/
private static IStructureComparator find(IStructureComparator tree, String[] path, int index) {
if (tree != null) {
Object[] children= tree.getChildren();
if (children != null) {
for (int i= 0; i < children.length; i++) {
IStructureComparator child= (IStructureComparator) children[i];
if (child instanceof ITypedElement && child instanceof DocumentRangeNode) {
|
7,481 |
Bug 7481 JME in compare
|
Java Model Exception: Java Model Status [B does not exist.] Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/core/runtime/CoreException.<init> (Lorg/eclipse/core/runtime/IStatus;)V org/eclipse/jdt/core/JavaModelException.<init> (Lorg/eclipse/jdt/core/IJavaModelStatus;)V org/eclipse/jdt/internal/core/JavaElement.newNotPresentException() Lorg/eclipse/jdt/core/JavaModelException; org/eclipse/jdt/internal/core/JavaElement.openHierarchy()V org/eclipse/jdt/internal/core/JavaElement.getElementInfo() Lorg/eclipse/jdt/internal/core/JavaElementInfo; org/eclipse/jdt/internal/core/SourceMethod.isConstructor()Z org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getMethodLabel (Lorg/eclipse/jdt/core/IMethod;ILjava/lang/StringBuffer;)V org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getElementLabel (Lorg/eclipse/jdt/core/IJavaElement;ILjava/lang/StringBuffer;)V org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.getElementLabel (Lorg/eclipse/jdt/core/IJavaElement;I)Ljava/lang/String; org/eclipse/jdt/internal/ui/compare/JavaCompareUtilities.getJavaElementID (Lorg/eclipse/jdt/core/IJavaElement;)Ljava/lang/String; org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.hasEdition (Lorg/eclipse/jdt/core/IJavaElement;)Z org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.getEditionElement (Lorg/eclipse/jface/viewers/ISelection;)Lorg/eclipse/jdt/core/IMember; org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.isEnabled (Lorg/eclipse/jface/viewers/ISelection;)Z org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.selectionChanged (Lorg/eclipse/jface/action/IAction;Lorg/eclipse/jface/viewers/ISelection;)V org/eclipse/ui/internal/PluginAction.refreshEnablement()V org/eclipse/ui/internal/PluginAction.selectionChanged (Lorg/eclipse/jface/viewers/ISelection;)V org/eclipse/ui/internal/ObjectActionContributor.contributeObjectActions (Lorg/eclipse/ui/IWorkbenchPart;Lorg/eclipse/jface/action/IMenuManager;Lorg/ecli pse/jface/viewers/ISelectionProvider;)Z org/eclipse/ui/internal/ObjectActionContributorManager.contributeObjectActions (Lorg/eclipse/ui/IWorkbenchPart;Lorg/eclipse/jface/action/IMenuManager;Lorg/ecli pse/jface/viewers/ISelectionProvider;)Z org/eclipse/ui/internal/PopupMenuExtender.addObjectActions (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/ui/internal/PopupMenuExtender.menuAboutToShow (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/jface/action/MenuManager.fireAboutToShow (Lorg/eclipse/jface/action/IMenuManager;)V org/eclipse/jface/action/MenuManager.handleAboutToShow()V org/eclipse/jface/action/MenuManager.access$0 (Lorg/eclipse/jface/action/MenuManager;)V org/eclipse/jface/action/MenuManager$1.menuShown (Lorg/eclipse/swt/events/MenuEvent;)V org/eclipse/swt/widgets/TypedListener.handleEvent (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/EventTable.sendEvent(Lorg/eclipse/swt/widgets/Event;) V org/eclipse/swt/widgets/Widget.sendEvent(ILorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/Widget.sendEvent(I)V org/eclipse/swt/widgets/Control.WM_INITMENUPOPUP(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Decorations.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.TrackPopupMenu (IIIIIILorg/eclipse/swt/internal/win32/RECT;)Z org/eclipse/swt/widgets/Menu.setVisible(Z)V org/eclipse/swt/widgets/Control.WM_CONTEXTMENU(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.CallWindowProcW(IIIII)I org/eclipse/swt/internal/win32/OS.CallWindowProc(IIIII)I org/eclipse/swt/widgets/Tree.callWindowProc(III)I org/eclipse/swt/widgets/Control.WM_RBUTTONUP(II) Lorg/eclipse/swt/internal/win32/LRESULT; org/eclipse/swt/widgets/Control.windowProc(III)I org/eclipse/swt/widgets/Display.windowProc(IIII)I org/eclipse/swt/internal/win32/OS.DispatchMessageW (Lorg/eclipse/swt/internal/win32/MSG;)I org/eclipse/swt/internal/win32/OS.DispatchMessage (Lorg/eclipse/swt/internal/win32/MSG;)I org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V
|
resolved fixed
|
ac7ffd4
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T15:04:57Z | 2002-01-11T11:53:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.java
|
String n1= null;
if (child instanceof DocumentRangeNode)
n1= ((DocumentRangeNode)child).getId();
if (n1 == null)
n1= ((ITypedElement)child).getName();
String n2= path[index];
if (n1.equals(n2)) {
if (index == path.length-1)
return child;
IStructureComparator result= find(child, path, index+1);
if (result != null)
return result;
}
}
}
}
}
return null;
}
/**
* Returns true if the given IJavaElement maps to a JavaNode.
* The JavaHistoryAction uses this function to determine whether
* a selected Java element can be replaced by some piece of
* code from the local history.
*/
static boolean hasEdition(IJavaElement je) {
return JavaCompareUtilities.getJavaElementID(je) != null;
}
}
|
7,402 |
Bug 7402 Packages view sorts case senstive
|
If I have three folders aa Ba and ba They will be sorted in the order Bab aa ba But they should be in case insensitive order aa Bab ba
|
verified fixed
|
806c824
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T15:30:52Z | 2002-01-09T21:00:00Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/JavaElementSorter.java
|
package org.eclipse.jdt.internal.ui.viewsupport;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jface.viewers.ViewerSorter;
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IStorage;
import org.eclipse.jdt.core.Flags;
import org.eclipse.jdt.core.IClasspathEntry;
import org.eclipse.jdt.core.IField;
import org.eclipse.jdt.core.IInitializer;
import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.core.IMethod;
import org.eclipse.jdt.core.IPackageFragment;
import org.eclipse.jdt.core.IPackageFragmentRoot;
import org.eclipse.jdt.core.IType;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jdt.internal.ui.JavaPlugin;
import org.eclipse.jdt.internal.corext.util.JavaModelUtil;
/**
* Sorts Java elements:
* Package fragment roots are sorted as ordered in the classpath.
*/
public class JavaElementSorter extends ViewerSorter {
|
7,402 |
Bug 7402 Packages view sorts case senstive
|
If I have three folders aa Ba and ba They will be sorted in the order Bab aa ba But they should be in case insensitive order aa Bab ba
|
verified fixed
|
806c824
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T15:30:52Z | 2002-01-09T21:00:00Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/JavaElementSorter.java
|
private static final int CU_MEMBERS= 0;
private static final int INNER_TYPES= 1;
private static final int CONSTRUCTORS= 2;
private static final int STATIC_INIT= 3;
private static final int STATIC_METHODS= 4;
private static final int INIT= 5;
private static final int METHODS= 6;
private static final int STATIC_FIELDS= 7;
|
7,402 |
Bug 7402 Packages view sorts case senstive
|
If I have three folders aa Ba and ba They will be sorted in the order Bab aa ba But they should be in case insensitive order aa Bab ba
|
verified fixed
|
806c824
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T15:30:52Z | 2002-01-09T21:00:00Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/JavaElementSorter.java
|
private static final int FIELDS= 8;
private static final int JAVAELEMENTS= 9;
private static final int PACKAGEFRAGMENTROOTS= 10;
private static final int JAVAPROJECTS= 11;
private static final int RESOURCEPACKAGES= 12;
private static final int RESOURCEFOLDERS= 13;
private static final int RESOURCES= 14;
private static final int STORAGE= 15;
private static final int OTHERS= 20;
private IClasspathEntry[] fClassPath;
/*
* @see ViewerSorter#sort
*/
public void sort(Viewer v, Object[] property) {
fClassPath= null;
try {
super.sort(v, property);
} finally {
fClassPath= null;
}
}
/*
* @see ViewerSorter#isSorterProperty
*/
public boolean isSorterProperty(Object element, Object property) {
return true;
}
/*
|
7,402 |
Bug 7402 Packages view sorts case senstive
|
If I have three folders aa Ba and ba They will be sorted in the order Bab aa ba But they should be in case insensitive order aa Bab ba
|
verified fixed
|
806c824
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T15:30:52Z | 2002-01-09T21:00:00Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/JavaElementSorter.java
|
* @see ViewerSorter#category
*/
public int category(Object element) {
if (element instanceof IJavaElement) {
try {
IJavaElement je= (IJavaElement) element;
switch (je.getElementType()) {
case IJavaElement.METHOD: {
IMethod method= (IMethod) je;
if (method.isConstructor())
return CONSTRUCTORS;
int flags= method.getFlags();
return Flags.isStatic(flags) ? STATIC_METHODS : METHODS;
}
case IJavaElement.FIELD: {
int flags= ((IField) je).getFlags();
return Flags.isStatic(flags) ? STATIC_FIELDS : FIELDS;
}
case IJavaElement.INITIALIZER: {
int flags= ((IInitializer) je).getFlags();
return Flags.isStatic(flags) ? STATIC_INIT : INIT;
}
case IJavaElement.TYPE: {
if (((IType)element).getDeclaringType() != null) {
return INNER_TYPES;
|
7,402 |
Bug 7402 Packages view sorts case senstive
|
If I have three folders aa Ba and ba They will be sorted in the order Bab aa ba But they should be in case insensitive order aa Bab ba
|
verified fixed
|
806c824
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T15:30:52Z | 2002-01-09T21:00:00Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/JavaElementSorter.java
|
} else {
return CU_MEMBERS;
}
}
case IJavaElement.PACKAGE_DECLARATION:
return CU_MEMBERS;
case IJavaElement.IMPORT_CONTAINER:
return CU_MEMBERS;
case IJavaElement.PACKAGE_FRAGMENT:
IPackageFragment pack= (IPackageFragment) je;
if (!pack.hasChildren() && pack.getNonJavaResources().length > 0) {
return RESOURCEPACKAGES;
}
if (pack.getParent().getUnderlyingResource() instanceof IProject) {
return PACKAGEFRAGMENTROOTS;
}
break;
case IJavaElement.PACKAGE_FRAGMENT_ROOT:
return PACKAGEFRAGMENTROOTS;
case IJavaElement.JAVA_PROJECT:
return JAVAPROJECTS;
}
} catch (JavaModelException x) {
JavaPlugin.log(x);
}
return JAVAELEMENTS;
} else if (element instanceof IFile) {
return RESOURCES;
|
7,402 |
Bug 7402 Packages view sorts case senstive
|
If I have three folders aa Ba and ba They will be sorted in the order Bab aa ba But they should be in case insensitive order aa Bab ba
|
verified fixed
|
806c824
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T15:30:52Z | 2002-01-09T21:00:00Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/JavaElementSorter.java
|
} else if (element instanceof IContainer) {
return RESOURCEFOLDERS;
} else if (element instanceof IStorage) {
return STORAGE;
}
return OTHERS;
}
/*
* @see ViewerSorter#compare
*/
public int compare(Viewer viewer, Object e1, Object e2) {
int cat1= category(e1);
int cat2= category(e2);
if (cat1 != cat2)
return cat1 - cat2;
switch (cat1) {
case OTHERS:
return 0;
case CU_MEMBERS:
return 0;
case PACKAGEFRAGMENTROOTS:
int p1= getClassPathIndex(JavaModelUtil.getPackageFragmentRoot((IJavaElement)e1));
int p2= getClassPathIndex(JavaModelUtil.getPackageFragmentRoot((IJavaElement)e2));
if (p1 == p2) {
return ((IJavaElement)e1).getElementName().compareTo(((IJavaElement)e2).getElementName());
}
|
7,402 |
Bug 7402 Packages view sorts case senstive
|
If I have three folders aa Ba and ba They will be sorted in the order Bab aa ba But they should be in case insensitive order aa Bab ba
|
verified fixed
|
806c824
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T15:30:52Z | 2002-01-09T21:00:00Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/JavaElementSorter.java
|
return p1 - p2;
case STORAGE:
return ((IStorage)e1).getName().compareToIgnoreCase(((IStorage)e2).getName());
case RESOURCES:
case RESOURCEFOLDERS:
return ((IResource)e1).getName().compareToIgnoreCase(((IResource)e2).getName());
case RESOURCEPACKAGES:
case JAVAPROJECTS:
return ((IJavaElement)e1).getElementName().compareToIgnoreCase(((IJavaElement)e2).getElementName());
default:
return ((IJavaElement)e1).getElementName().compareTo(((IJavaElement)e2).getElementName());
}
}
private int getClassPathIndex(IPackageFragmentRoot root) {
try {
if (fClassPath == null)
fClassPath= root.getJavaProject().getResolvedClasspath(true);
} catch (JavaModelException e) {
return Integer.MAX_VALUE;
}
for (int i= 0; i < fClassPath.length; i++) {
if (fClassPath[i].getPath().equals(root.getPath()))
return i;
}
return Integer.MAX_VALUE;
}
};
|
6,410 |
Bug 6410 File unchanged but dirtied by code assist
|
1122. Open a Java file. Place the cursor inside the left-most parenthesis of a method call. For example, consider "I" to be the cursor below: Object o = anotherObject.method(I); Press Ctrl-Space. The file is dirtied but not changed, and code assist does not appear. If code assist has nothing to suggest, it should not dirty the file.
|
verified fixed
|
588ffa6
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T17:07:14Z | 2001-11-29T02:13:20Z |
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.jface.util.Assert;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.graphics.Point;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jdt.core.IImportContainer;
import org.eclipse.jdt.core.IImportDeclaration;
import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.core.ISourceRange;
import org.eclipse.jdt.core.IType;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jdt.internal.ui.JavaPlugin;
import org.eclipse.jdt.internal.corext.codemanipulation.ImportsStructure;
import org.eclipse.jdt.internal.ui.preferences.ImportOrganizePreferencePage;
import org.eclipse.jdt.internal.corext.util.JavaModelUtil;
import org.eclipse.jface.text.BadLocationException;
import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.contentassist.ICompletionProposal;
import org.eclipse.jface.text.contentassist.ICompletionProposalExtension;
import org.eclipse.jface.text.contentassist.IContextInformation;
public class JavaCompletionProposal implements ICompletionProposal, ICompletionProposalExtension {
|
6,410 |
Bug 6410 File unchanged but dirtied by code assist
|
1122. Open a Java file. Place the cursor inside the left-most parenthesis of a method call. For example, consider "I" to be the cursor below: Object o = anotherObject.method(I); Press Ctrl-Space. The file is dirtied but not changed, and code assist does not appear. If code assist has nothing to suggest, it should not dirty the file.
|
verified fixed
|
588ffa6
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T17:07:14Z | 2001-11-29T02:13:20Z |
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;
private IImportDeclaration fImportDeclaration;
private char[] fTriggerCharacters;
/**
* Creates a new completion proposal. All fields are initialized based on the provided information.
*
* @param replacementString the actual string to be inserted into the document
* @param replacementOffset the offset of the text to be replaced
* @param replacementLength the length of the text to be replaced
* @param image the image to display for this proposal
* @param displayString the string to be displayed for the proposal
* If set to <code>null</code>, the replacement string will be taken as display string.
*/
public JavaCompletionProposal(String replacementString, int replacementOffset, int replacementLength, Image image, String displayString) {
Assert.isNotNull(replacementString);
Assert.isTrue(replacementOffset >= 0);
Assert.isTrue(replacementLength >= 0);
fReplacementString= replacementString;
fReplacementOffset= replacementOffset;
fReplacementLength= replacementLength;
fImage= image;
|
6,410 |
Bug 6410 File unchanged but dirtied by code assist
|
1122. Open a Java file. Place the cursor inside the left-most parenthesis of a method call. For example, consider "I" to be the cursor below: Object o = anotherObject.method(I); Press Ctrl-Space. The file is dirtied but not changed, and code assist does not appear. If code assist has nothing to suggest, it should not dirty the file.
|
verified fixed
|
588ffa6
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T17:07:14Z | 2001-11-29T02:13:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProposal.java
|
fDisplayString= displayString != null ? displayString : replacementString;
fCursorPosition= replacementString.length();
fContextInformation= null;
fContextInformationPosition= -1;
fImportDeclaration= null;
fTriggerCharacters= null;
fProposalInfo= null;
}
/**
* Sets the context information.
* @param contentInformation The context information associated with this proposal
*/
public void setContextInformation(IContextInformation contextInformation) {
fContextInformation= contextInformation;
fContextInformationPosition= (fContextInformation != null ? fCursorPosition : -1);
}
/**
* 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 importDeclaration) {
fImportDeclaration= importDeclaration;
}
/**
* Sets the trigger characters.
|
6,410 |
Bug 6410 File unchanged but dirtied by code assist
|
1122. Open a Java file. Place the cursor inside the left-most parenthesis of a method call. For example, consider "I" to be the cursor below: Object o = anotherObject.method(I); Press Ctrl-Space. The file is dirtied but not changed, and code assist does not appear. If code assist has nothing to suggest, it should not dirty the file.
|
verified fixed
|
588ffa6
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T17:07:14Z | 2001-11-29T02:13:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProposal.java
|
* @param triggerCharacters The set of characters which can trigger the application of this completion proposal
*/
public void setTriggerCharacters(char[] triggerCharacters) {
fTriggerCharacters= triggerCharacters;
}
/**
* Sets the proposal info.
* @param additionalProposalInfo The additional information associated with this proposal or <code>null</code>
*/
public void setProposalInfo(ProposalInfo proposalInfo) {
fProposalInfo= proposalInfo;
}
/**
* Sets the cursor position relative to the insertion offset. By default this is the length of the completion string
* (Cursor positioned after the completion)
* @param cursorPosition The cursorPosition to set
*/
public void setCursorPosition(int cursorPosition) {
Assert.isTrue(cursorPosition >= 0);
fCursorPosition= cursorPosition;
fContextInformationPosition= (fContextInformation != null ? fCursorPosition : -1);
}
protected void applyImports(IDocument document) {
if (fImportDeclaration == null) {
return;
}
|
6,410 |
Bug 6410 File unchanged but dirtied by code assist
|
1122. Open a Java file. Place the cursor inside the left-most parenthesis of a method call. For example, consider "I" to be the cursor below: Object o = anotherObject.method(I); Press Ctrl-Space. The file is dirtied but not changed, and code assist does not appear. If code assist has nothing to suggest, it should not dirty the file.
|
verified fixed
|
588ffa6
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T17:07:14Z | 2001-11-29T02:13:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProposal.java
|
ICompilationUnit cu= (ICompilationUnit) JavaModelUtil.findElementOfKind(fImportDeclaration, IJavaElement.COMPILATION_UNIT);
if (cu != null) {
try {
IType[] types= cu.getTypes();
if (types.length == 0 || types[0].getSourceRange().getOffset() > fReplacementOffset) {
return;
}
String[] prefOrder= ImportOrganizePreferencePage.getImportOrderPreference();
int threshold= ImportOrganizePreferencePage.getImportNumberThreshold();
ImportsStructure impStructure= new ImportsStructure(cu, prefOrder, threshold, true);
impStructure.addImport(fImportDeclaration.getElementName());
impStructure.create(false, null);
} catch (CoreException e) {
JavaPlugin.log(e);
}
}
}
/*
* @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;
|
6,410 |
Bug 6410 File unchanged but dirtied by code assist
|
1122. Open a Java file. Place the cursor inside the left-most parenthesis of a method call. For example, consider "I" to be the cursor below: Object o = anotherObject.method(I); Press Ctrl-Space. The file is dirtied but not changed, and code assist does not appear. If code assist has nothing to suggest, it should not dirty the file.
|
verified fixed
|
588ffa6
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T17:07:14Z | 2001-11-29T02:13:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProposal.java
|
if (trigger == (char) 0) {
document.replace(fReplacementOffset, fReplacementLength, fReplacementString);
} else {
StringBuffer buffer= new StringBuffer(fReplacementString);
if ((fReplacementLength < buffer.length() && buffer.charAt(fReplacementLength) != trigger)) {
buffer.insert(fCursorPosition, trigger);
++fCursorPosition;
}
document.replace(fReplacementOffset, fReplacementLength, buffer.toString());
}
int oldLen= document.getLength();
applyImports(document);
fReplacementOffset += document.getLength() - oldLen;
} catch (BadLocationException x) {
}
}
/*
* @see ICompletionProposal#apply
*/
public void apply(IDocument document) {
apply(document, (char) 0, fReplacementOffset + fReplacementLength);
}
|
6,410 |
Bug 6410 File unchanged but dirtied by code assist
|
1122. Open a Java file. Place the cursor inside the left-most parenthesis of a method call. For example, consider "I" to be the cursor below: Object o = anotherObject.method(I); Press Ctrl-Space. The file is dirtied but not changed, and code assist does not appear. If code assist has nothing to suggest, it should not dirty the file.
|
verified fixed
|
588ffa6
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T17:07:14Z | 2001-11-29T02:13:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProposal.java
|
/*
* @see ICompletionProposal#getSelection
*/
public Point getSelection(IDocument document) {
return new Point(fReplacementOffset + fCursorPosition, 0);
}
/*
* @see ICompletionProposal#getContextInformation()
*/
public IContextInformation getContextInformation() {
return fContextInformation;
}
/*
* @see ICompletionProposal#getImage()
*/
public Image getImage() {
return fImage;
}
/*
* @see ICompletionProposal#getDisplayString()
*/
public String getDisplayString() {
return fDisplayString;
}
/*
* @see ICompletionProposal#getAdditionalProposalInfo()
*/
public String getAdditionalProposalInfo() {
if (fProposalInfo != null) {
return fProposalInfo.getInfo();
|
6,410 |
Bug 6410 File unchanged but dirtied by code assist
|
1122. Open a Java file. Place the cursor inside the left-most parenthesis of a method call. For example, consider "I" to be the cursor below: Object o = anotherObject.method(I); Press Ctrl-Space. The file is dirtied but not changed, and code assist does not appear. If code assist has nothing to suggest, it should not dirty the file.
|
verified fixed
|
588ffa6
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T17:07:14Z | 2001-11-29T02:13:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProposal.java
|
}
return null;
}
/*
* @see ICompletionProposalExtension#getTriggerCharacters()
*/
public char[] getTriggerCharacters() {
return fTriggerCharacters;
}
/*
* @see ICompletionProposalExtension#getContextInformationPosition()
*/
public int getContextInformationPosition() {
return fReplacementOffset + fContextInformationPosition;
}
/**
* 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(replacementOffset >= 0);
|
6,410 |
Bug 6410 File unchanged but dirtied by code assist
|
1122. Open a Java file. Place the cursor inside the left-most parenthesis of a method call. For example, consider "I" to be the cursor below: Object o = anotherObject.method(I); Press Ctrl-Space. The file is dirtied but not changed, and code assist does not appear. If code assist has nothing to suggest, it should not dirty the file.
|
verified fixed
|
588ffa6
|
JDT
|
https://github.com/eclipse-jdt/eclipse.jdt.ui
|
eclipse-jdt/eclipse.jdt.ui
|
java
| null | null | null | 2002-01-11T17:07:14Z | 2001-11-29T02:13:20Z |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProposal.java
|
fReplacementOffset= replacementOffset;
}
/**
* Gets the replacement length.
* @return Returns a int
*/
public int getReplacementLength() {
return fReplacementLength;
}
/**
* Sets the replacement length.
* @param replacementLength The replacementLength to set
*/
public void setReplacementLength(int replacementLength) {
Assert.isTrue(replacementLength >= 0);
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 setReplacementString(String replacementString) {
fReplacementString= replacementString;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.