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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
21,173 | Bug 21173 Can't create new Project because empty string in "New Project" Preference [2.0.1] | In the Java->New Project tab of Preferences I chose the folders radio button and leave the Source folder name empty, and the output location name to be "output". My intent is to have my source come off the main tree with an initial branch to be output. Like this: myProject (root) -- com -- ibm ... -- output -- com -- i... | verified fixed | f3785fc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-12T10:04:33Z | 2002-07-01T21:46:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java | if (res[0] == 0) {
return true;
} else if (res[0] == 1) {
return false;
}
throw new InterruptedException();
}
};
}
private IContainer chooseContainer() {
Class[] acceptedClasses= new Class[] { IProject.class, IFolder.class };
ISelectionStatusValidator validator= new TypedElement... |
21,173 | Bug 21173 Can't create new Project because empty string in "New Project" Preference [2.0.1] | In the Java->New Project tab of Preferences I chose the folders radio button and leave the Source folder name empty, and the output location name to be "output". My intent is to have my source come off the main tree with an initial branch to be output. Like this: myProject (root) -- com -- ibm ... -- output -- com -- i... | verified fixed | f3785fc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-12T10:04:33Z | 2002-07-01T21:46:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java | ElementTreeSelectionDialog dialog= new ElementTreeSelectionDialog(getShell(), lp, cp);
dialog.setTitle(NewWizardMessages.getString("BuildPathsBlock.ChooseOutputFolderDialog.title"));
dialog.setValidator(validator);
dialog.setMessage(NewWizardMessages.getString("BuildPathsBlock.ChooseOutputFolderDialog.descriptio... |
21,198 | Bug 21198 On JavaEditor dont use == in the isActivePart() method but instead use .equals(Object) | The class JavaEditor does an == check inside isActivePart(). This means that if the part is embedded inside another one then the check fails. Rather than this can it use .equals instead and dispatch this to the other part that can specialize accordingly, e.g. instead of the current method protected boolean isActivePart... | verified fixed | 3322182 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-12T10:20:10Z | 2002-07-03T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java | package org.eclipse.jdt.internal.ui.javaeditor;
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.eclipse.swt.custom.BidiSegmentEvent;
import org.eclipse.swt.custom.BidiSegmentListener;
import org.eclipse.swt.cu... |
21,198 | Bug 21198 On JavaEditor dont use == in the isActivePart() method but instead use .equals(Object) | The class JavaEditor does an == check inside isActivePart(). This means that if the part is embedded inside another one then the check fails. Rather than this can it use .equals instead and dispatch this to the other part that can specialize accordingly, e.g. instead of the current method protected boolean isActivePart... | verified fixed | 3322182 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-12T10:20:10Z | 2002-07-03T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java | import org.eclipse.jface.preference.PreferenceConverter;
import org.eclipse.jface.text.BadLocationException;
import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.IRegion;
import org.eclipse.jface.text.ITextSelection;
import org.eclipse.jface.text.ITypedRegion;
import org.eclipse.jface.text.source.Anno... |
21,198 | Bug 21198 On JavaEditor dont use == in the isActivePart() method but instead use .equals(Object) | The class JavaEditor does an == check inside isActivePart(). This means that if the part is embedded inside another one then the check fails. Rather than this can it use .equals instead and dispatch this to the other part that can specialize accordingly, e.g. instead of the current method protected boolean isActivePart... | verified fixed | 3322182 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-12T10:20:10Z | 2002-07-03T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java | import org.eclipse.ui.texteditor.TextOperationAction;
import org.eclipse.ui.views.contentoutline.IContentOutlinePage;
import org.eclipse.jdt.core.IClassFile;
import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jdt.core.IImportDeclaration;
import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.cor... |
21,198 | Bug 21198 On JavaEditor dont use == in the isActivePart() method but instead use .equals(Object) | The class JavaEditor does an == check inside isActivePart(). This means that if the part is embedded inside another one then the check fails. Rather than this can it use .equals instead and dispatch this to the other part that can specialize accordingly, e.g. instead of the current method protected boolean isActivePart... | verified fixed | 3322182 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-12T10:20:10Z | 2002-07-03T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java | /**
* "Smart" runnable for updating the outline page's selection.
*/
class OutlinePageSelectionUpdater implements Runnable {
private boolean fPosted= false;
public OutlinePageSelectionUpdater() {
}
/*
* @see Runnable#run()
*/
public void run() {
synchronizeOutlinePageSelection();
... |
21,198 | Bug 21198 On JavaEditor dont use == in the isActivePart() method but instead use .equals(Object) | The class JavaEditor does an == check inside isActivePart(). This means that if the part is embedded inside another one then the check fails. Rather than this can it use .equals instead and dispatch this to the other part that can specialize accordingly, e.g. instead of the current method protected boolean isActivePart... | verified fixed | 3322182 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-12T10:20:10Z | 2002-07-03T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java | shell.getDisplay().asyncExec(this);
}
}
};
class SelectionChangedListener implements ISelectionChangedListener {
public void selectionChanged(SelectionChangedEvent event) {
doSelectionChanged(event);
}
};
public final static String LINE_NUMBER_RULER= "lineNumberRuler";
public final static S... |
21,198 | Bug 21198 On JavaEditor dont use == in the isActivePart() method but instead use .equals(Object) | The class JavaEditor does an == check inside isActivePart(). This means that if the part is embedded inside another one then the check fails. Rather than this can it use .equals instead and dispatch this to the other part that can specialize accordingly, e.g. instead of the current method protected boolean isActivePart... | verified fixed | 3322182 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-12T10:20:10Z | 2002-07-03T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java | private DefaultEncodingSupport fEncodingSupport;
protected CompositeActionGroup fActionGroups;
private CompositeActionGroup fContextMenuGroup;
/**
* Returns the most narrow java element including the given offset
*
* @param offset the offset inside of the requested element
*/
abstract protected IJavaE... |
21,198 | Bug 21198 On JavaEditor dont use == in the isActivePart() method but instead use .equals(Object) | The class JavaEditor does an == check inside isActivePart(). This means that if the part is embedded inside another one then the check fails. Rather than this can it use .equals instead and dispatch this to the other part that can specialize accordingly, e.g. instead of the current method protected boolean isActivePart... | verified fixed | 3322182 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-12T10:20:10Z | 2002-07-03T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java | setSourceViewerConfiguration(new JavaSourceViewerConfiguration(textTools, this));
setRangeIndicator(new DefaultRangeIndicator());
setPreferenceStore(JavaPlugin.getDefault().getPreferenceStore());
if (JavaEditorPreferencePage.synchronizeOutlineOnCursorMove())
fUpdater= new OutlinePageSelectionUpdater();
}
... |
21,198 | Bug 21198 On JavaEditor dont use == in the isActivePart() method but instead use .equals(Object) | The class JavaEditor does an == check inside isActivePart(). This means that if the part is embedded inside another one then the check fails. Rather than this can it use .equals instead and dispatch this to the other part that can specialize accordingly, e.g. instead of the current method protected boolean isActivePart... | verified fixed | 3322182 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-12T10:20:10Z | 2002-07-03T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java | /*
* @see AbstractTextEditor#affectsTextPresentation(PropertyChangeEvent)
*/
protected boolean affectsTextPresentation(PropertyChangeEvent event) {
JavaTextTools textTools= JavaPlugin.getDefault().getJavaTextTools();
return textTools.affectsBehavior(event);
}
/**
* Sets the outliner's context menu ID.
... |
21,198 | Bug 21198 On JavaEditor dont use == in the isActivePart() method but instead use .equals(Object) | The class JavaEditor does an == check inside isActivePart(). This means that if the part is embedded inside another one then the check fails. Rather than this can it use .equals instead and dispatch this to the other part that can specialize accordingly, e.g. instead of the current method protected boolean isActivePart... | verified fixed | 3322182 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-12T10:20:10Z | 2002-07-03T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java | ActionContext context= new ActionContext(getSelectionProvider().getSelection());
fContextMenuGroup.setContext(context);
fContextMenuGroup.fillContextMenu(menu);
fContextMenuGroup.setContext(null);
}
/**
* Creates the outline page used with this editor.
*/
protected JavaOutlinePage createOutlinePage() ... |
21,198 | Bug 21198 On JavaEditor dont use == in the isActivePart() method but instead use .equals(Object) | The class JavaEditor does an == check inside isActivePart(). This means that if the part is embedded inside another one then the check fails. Rather than this can it use .equals instead and dispatch this to the other part that can specialize accordingly, e.g. instead of the current method protected boolean isActivePart... | verified fixed | 3322182 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-12T10:20:10Z | 2002-07-03T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java | /**
* Synchronizes the outliner selection with the actual cursor
* position in the editor.
*/
public void synchronizeOutlinePageSelection() {
if (isEditingScriptRunning())
return;
ISourceViewer sourceViewer= getSourceViewer();
if (sourceViewer == null || fOutlinePage == null)
return;
Styl... |
21,198 | Bug 21198 On JavaEditor dont use == in the isActivePart() method but instead use .equals(Object) | The class JavaEditor does an == check inside isActivePart(). This means that if the part is embedded inside another one then the check fails. Rather than this can it use .equals instead and dispatch this to the other part that can specialize accordingly, e.g. instead of the current method protected boolean isActivePart... | verified fixed | 3322182 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-12T10:20:10Z | 2002-07-03T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java | /*
* Get the desktop's StatusLineManager
*/
protected IStatusLineManager getStatusLineManager() {
IEditorActionBarContributor contributor= getEditorSite().getActionBarContributor();
if (contributor instanceof EditorActionBarContributor) {
return ((EditorActionBarContributor) contributor).getActionBars().get... |
21,198 | Bug 21198 On JavaEditor dont use == in the isActivePart() method but instead use .equals(Object) | The class JavaEditor does an == check inside isActivePart(). This means that if the part is embedded inside another one then the check fails. Rather than this can it use .equals instead and dispatch this to the other part that can specialize accordingly, e.g. instead of the current method protected boolean isActivePart... | verified fixed | 3322182 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-12T10:20:10Z | 2002-07-03T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java | if (reference != null) {
StyledText textWidget= null;
ISourceViewer sourceViewer= getSourceViewer();
if (sourceViewer != null)
textWidget= sourceViewer.getTextWidget();
if (textWidget == null)
return;
try {
ISourceRange range= reference.getSourceRange();
if (range =... |
21,198 | Bug 21198 On JavaEditor dont use == in the isActivePart() method but instead use .equals(Object) | The class JavaEditor does an == check inside isActivePart(). This means that if the part is embedded inside another one then the check fails. Rather than this can it use .equals instead and dispatch this to the other part that can specialize accordingly, e.g. instead of the current method protected boolean isActivePart... | verified fixed | 3322182 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-12T10:20:10Z | 2002-07-03T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java | length= -1;
if (reference instanceof IMember) {
range= ((IMember) reference).getNameRange();
if (range != null) {
offset= range.getOffset();
length= range.getLength();
}
} else if (reference instanceof IImportDeclaration) {
String name= ((IImportDeclaration) reference).getEl... |
21,198 | Bug 21198 On JavaEditor dont use == in the isActivePart() method but instead use .equals(Object) | The class JavaEditor does an == check inside isActivePart(). This means that if the part is embedded inside another one then the check fails. Rather than this can it use .equals instead and dispatch this to the other part that can specialize accordingly, e.g. instead of the current method protected boolean isActivePart... | verified fixed | 3322182 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-12T10:20:10Z | 2002-07-03T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java | } catch (IllegalArgumentException x) {
} finally {
if (textWidget != null)
textWidget.setRedraw(true);
}
} else if (moveCursor) {
resetHighlightRange();
}
}
public void setSelection(IJavaElement element) {
if (element == null || element instanceof ICompilationUnit || element instance... |
21,198 | Bug 21198 On JavaEditor dont use == in the isActivePart() method but instead use .equals(Object) | The class JavaEditor does an == check inside isActivePart(). This means that if the part is embedded inside another one then the check fails. Rather than this can it use .equals instead and dispatch this to the other part that can specialize accordingly, e.g. instead of the current method protected boolean isActivePart... | verified fixed | 3322182 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-12T10:20:10Z | 2002-07-03T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java | fOutlinePage.select(reference);
fOutlinePage.addSelectionChangedListener(fSelectionChangedListener);
}
}
}
public synchronized void editingScriptStarted() {
++ fIgnoreOutlinePageSelection;
}
public synchronized void editingScriptEnded() {
-- fIgnoreOutlinePageSelection;
}
public synchronized bo... |
21,198 | Bug 21198 On JavaEditor dont use == in the isActivePart() method but instead use .equals(Object) | The class JavaEditor does an == check inside isActivePart(). This means that if the part is embedded inside another one then the check fails. Rather than this can it use .equals instead and dispatch this to the other part that can specialize accordingly, e.g. instead of the current method protected boolean isActivePart... | verified fixed | 3322182 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-12T10:20:10Z | 2002-07-03T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java | }
if (!isActivePart() && JavaPlugin.getActivePage() != null)
JavaPlugin.getActivePage().bringToTop(this);
try {
editingScriptStarted();
setSelection(reference, !isActivePart());
} finally {
editingScriptEnded();
}
}
/*
* @see AbstractTextEditor#adjustHighlightRange(int, int)
*/
protecte... |
21,198 | Bug 21198 On JavaEditor dont use == in the isActivePart() method but instead use .equals(Object) | The class JavaEditor does an == check inside isActivePart(). This means that if the part is embedded inside another one then the check fails. Rather than this can it use .equals instead and dispatch this to the other part that can specialize accordingly, e.g. instead of the current method protected boolean isActivePart... | verified fixed | 3322182 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-12T10:20:10Z | 2002-07-03T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java | }
element= element.getParent();
}
} catch (JavaModelException x) {
JavaPlugin.getDefault().log(x.getStatus());
}
resetHighlightRange();
}
protected boolean isActivePart() {
IWorkbenchWindow window= getSite().getWorkbenchWindow();
IPartService service= window.getPartService();
return (... |
21,198 | Bug 21198 On JavaEditor dont use == in the isActivePart() method but instead use .equals(Object) | The class JavaEditor does an == check inside isActivePart(). This means that if the part is embedded inside another one then the check fails. Rather than this can it use .equals instead and dispatch this to the other part that can specialize accordingly, e.g. instead of the current method protected boolean isActivePart... | verified fixed | 3322182 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-12T10:20:10Z | 2002-07-03T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java | * @see StatusTextEditor#getStatusBanner(IStatus)
*/
protected String getStatusBanner(IStatus status) {
if (fEncodingSupport != null) {
String message= fEncodingSupport.getStatusBanner(status);
if (message != null)
return message;
}
return super.getStatusBanner(status);
}
/*
* @see StatusTextEdi... |
21,198 | Bug 21198 On JavaEditor dont use == in the isActivePart() method but instead use .equals(Object) | The class JavaEditor does an == check inside isActivePart(). This means that if the part is embedded inside another one then the check fails. Rather than this can it use .equals instead and dispatch this to the other part that can specialize accordingly, e.g. instead of the current method protected boolean isActivePart... | verified fixed | 3322182 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-12T10:20:10Z | 2002-07-03T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java | setOutlinePageInput(fOutlinePage, input);
}
/*
* @see IWorkbenchPart#dispose()
*/
public void dispose() {
if (fEncodingSupport != null) {
fEncodingSupport.dispose();
fEncodingSupport= null;
}
super.dispose();
}
protected void createActions() {
super.createActions();
ActionGroup oeg, ov... |
21,198 | Bug 21198 On JavaEditor dont use == in the isActivePart() method but instead use .equals(Object) | The class JavaEditor does an == check inside isActivePart(). This means that if the part is embedded inside another one then the check fails. Rather than this can it use .equals instead and dispatch this to the other part that can specialize accordingly, e.g. instead of the current method protected boolean isActivePart... | verified fixed | 3322182 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-12T10:20:10Z | 2002-07-03T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java | fEncodingSupport= new DefaultEncodingSupport();
fEncodingSupport.initialize(this);
}
private boolean isTextSelectionEmpty() {
ISelection selection= getSelectionProvider().getSelection();
if (!(selection instanceof ITextSelection))
return true;
return ((ITextSelection)selection).getLength() == 0;
}
p... |
21,198 | Bug 21198 On JavaEditor dont use == in the isActivePart() method but instead use .equals(Object) | The class JavaEditor does an == check inside isActivePart(). This means that if the part is embedded inside another one then the check fails. Rather than this can it use .equals instead and dispatch this to the other part that can specialize accordingly, e.g. instead of the current method protected boolean isActivePart... | verified fixed | 3322182 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-12T10:20:10Z | 2002-07-03T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java | sourceViewer.getTextWidget().setTabs(((Integer) value).intValue());
} else if (value instanceof String) {
sourceViewer.getTextWidget().setTabs(Integer.parseInt((String) value));
}
return;
}
if (LINE_NUMBER_RULER.equals(property)) {
if (isLineNumberRulerVisible())
showLineNumberRuler(... |
21,198 | Bug 21198 On JavaEditor dont use == in the isActivePart() method but instead use .equals(Object) | The class JavaEditor does an == check inside isActivePart(). This means that if the part is embedded inside another one then the check fails. Rather than this can it use .equals instead and dispatch this to the other part that can specialize accordingly, e.g. instead of the current method protected boolean isActivePart... | verified fixed | 3322182 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-12T10:20:10Z | 2002-07-03T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java | * Shows the line number ruler column.
*/
private void showLineNumberRuler() {
IVerticalRuler v= getVerticalRuler();
if (v instanceof CompositeRuler) {
CompositeRuler c= (CompositeRuler) v;
c.addDecorator(1, createLineNumberRulerColumn());
}
}
/**
* Hides the line number ruler column.
*/
private ... |
21,198 | Bug 21198 On JavaEditor dont use == in the isActivePart() method but instead use .equals(Object) | The class JavaEditor does an == check inside isActivePart(). This means that if the part is embedded inside another one then the check fails. Rather than this can it use .equals instead and dispatch this to the other part that can specialize accordingly, e.g. instead of the current method protected boolean isActivePart... | verified fixed | 3322182 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-12T10:20:10Z | 2002-07-03T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java | /**
* Returns a segmentation of the line of the given document appropriate for bidi rendering.
* The default implementation returns only the string literals of a java code line as segments.
*
* @param document the document
* @param lineOffset the offset of the line
* @return the line's bidi segmentation
... |
21,198 | Bug 21198 On JavaEditor dont use == in the isActivePart() method but instead use .equals(Object) | The class JavaEditor does an == check inside isActivePart(). This means that if the part is embedded inside another one then the check fails. Rather than this can it use .equals instead and dispatch this to the other part that can specialize accordingly, e.g. instead of the current method protected boolean isActivePart... | verified fixed | 3322182 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-12T10:20:10Z | 2002-07-03T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java | ITypedRegion segment= (ITypedRegion) segmentation.get(i);
if (i == 0)
segments[j++]= 0;
int offset= segment.getOffset() - lineOffset;
if (offset > segments[j - 1])
segments[j++]= offset;
if (offset + segment.getLength() >= line.getLength())
break;
segments[j++]= offset + se... |
21,198 | Bug 21198 On JavaEditor dont use == in the isActivePart() method but instead use .equals(Object) | The class JavaEditor does an == check inside isActivePart(). This means that if the part is embedded inside another one then the check fails. Rather than this can it use .equals instead and dispatch this to the other part that can specialize accordingly, e.g. instead of the current method protected boolean isActivePart... | verified fixed | 3322182 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-12T10:20:10Z | 2002-07-03T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java | * @return the line's bidi segmentation
*/
protected int[] getBidiLineSegments(int lineOffset, String line) {
IDocumentProvider provider= getDocumentProvider();
if (provider != null) {
IDocument document= provider.getDocument(getEditorInput());
if (document != null)
try {
return getBidiLineSegments... |
21,198 | Bug 21198 On JavaEditor dont use == in the isActivePart() method but instead use .equals(Object) | The class JavaEditor does an == check inside isActivePart(). This means that if the part is embedded inside another one then the check fails. Rather than this can it use .equals instead and dispatch this to the other part that can specialize accordingly, e.g. instead of the current method protected boolean isActivePart... | verified fixed | 3322182 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-12T10:20:10Z | 2002-07-03T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java | JavaTextTools textTools= JavaPlugin.getDefault().getJavaTextTools();
IColorManager manager= textTools.getColorManager();
IPreferenceStore store= getPreferenceStore();
if (store != null) {
RGB rgb= null;
if (store.contains(LINE_NUMBER_COLOR)) {
if (store.isDefault(LINE_NUMBER_COLOR))
rg... |
21,198 | Bug 21198 On JavaEditor dont use == in the isActivePart() method but instead use .equals(Object) | The class JavaEditor does an == check inside isActivePart(). This means that if the part is embedded inside another one then the check fails. Rather than this can it use .equals instead and dispatch this to the other part that can specialize accordingly, e.g. instead of the current method protected boolean isActivePart... | verified fixed | 3322182 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-12T10:20:10Z | 2002-07-03T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java | /**
* Creates a new line number ruler column that is appropriately initialized.
*/
protected IVerticalRulerColumn createLineNumberRulerColumn() {
fLineNumberRulerColumn= new LineNumberRulerColumn();
initializeLineNumberRulerColumn(fLineNumberRulerColumn);
return fLineNumberRulerColumn;
}
/*
* @see Abst... |
19,702 | Bug 19702 Feature: Have comment/uncomment actions in context menu [code manipulation] [editor] | Build F2. The source Comment action is no longer available from the right-click context menu. It is available from the Source pull-down menu, as well as the keyboard shortcut, but I think it is much more efficient and usable to have it in the context menu as in previous builds. The reasoning being that generally when y... | verified fixed | f2b70d4 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-13T09:16:34Z | 2002-06-08T04:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/GenerateActionGroup.java | /*******************************************************************************
* Copyright (c) 2002 International Business Machines Corp. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v0.5
* which accompanies this... |
19,702 | Bug 19702 Feature: Have comment/uncomment actions in context menu [code manipulation] [editor] | Build F2. The source Comment action is no longer available from the right-click context menu. It is available from the Source pull-down menu, as well as the keyboard shortcut, but I think it is much more efficient and usable to have it in the context menu as in previous builds. The reasoning being that generally when y... | verified fixed | f2b70d4 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-13T09:16:34Z | 2002-06-08T04:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/GenerateActionGroup.java | import org.eclipse.jface.action.Separator;
import org.eclipse.jface.util.Assert;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.ISelectionChangedListener;
import org.eclipse.jface.viewers.ISelectionProvider;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.ui.IAct... |
19,702 | Bug 19702 Feature: Have comment/uncomment actions in context menu [code manipulation] [editor] | Build F2. The source Comment action is no longer available from the right-click context menu. It is available from the Source pull-down menu, as well as the keyboard shortcut, but I think it is much more efficient and usable to have it in the context menu as in previous builds. The reasoning being that generally when y... | verified fixed | f2b70d4 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-13T09:16:34Z | 2002-06-08T04:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/GenerateActionGroup.java | private boolean fEditorIsOwner;
private IWorkbenchSite fSite;
private String fGroupName= IContextMenuConstants.GROUP_SOURCE;
private List fRegisteredSelectionListeners;
private AddImportOnSelectionAction fAddImport;
private OverrideMethodsAction fOverrideMethods;
private AddGetterSetterAction fAddGetterSetter;
... |
19,702 | Bug 19702 Feature: Have comment/uncomment actions in context menu [code manipulation] [editor] | Build F2. The source Comment action is no longer available from the right-click context menu. It is available from the Source pull-down menu, as well as the keyboard shortcut, but I think it is much more efficient and usable to have it in the context menu as in previous builds. The reasoning being that generally when y... | verified fixed | f2b70d4 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-13T09:16:34Z | 2002-06-08T04:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/GenerateActionGroup.java | ISelectionProvider provider= fSite.getSelectionProvider();
ISelection selection= provider.getSelection();
fAddImport= new AddImportOnSelectionAction(editor);
fAddImport.setActionDefinitionId(IJavaEditorActionDefinitionIds.ADD_IMPORT);
fAddImport.update();
editor.setAction("AddImport", fAddImport);
fOrga... |
19,702 | Bug 19702 Feature: Have comment/uncomment actions in context menu [code manipulation] [editor] | Build F2. The source Comment action is no longer available from the right-click context menu. It is available from the Source pull-down menu, as well as the keyboard shortcut, but I think it is much more efficient and usable to have it in the context menu as in previous builds. The reasoning being that generally when y... | verified fixed | f2b70d4 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-13T09:16:34Z | 2002-06-08T04:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/GenerateActionGroup.java | fSurroundWithTryCatch.setActionDefinitionId(IJavaEditorActionDefinitionIds.SURROUND_WITH_TRY_CATCH);
fSurroundWithTryCatch.update(selection);
provider.addSelectionChangedListener(fSurroundWithTryCatch);
editor.setAction("SurroundWithTryCatch", fSurroundWithTryCatch);
fExternalizeStrings= new ExternalizeSt... |
19,702 | Bug 19702 Feature: Have comment/uncomment actions in context menu [code manipulation] [editor] | Build F2. The source Comment action is no longer available from the right-click context menu. It is available from the Source pull-down menu, as well as the keyboard shortcut, but I think it is much more efficient and usable to have it in the context menu as in previous builds. The reasoning being that generally when y... | verified fixed | f2b70d4 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-13T09:16:34Z | 2002-06-08T04:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/GenerateActionGroup.java | this(page.getSite());
}
/**
* Creates a new <code>GenerateActionGroup</code>. The group
* requires that the selection provided by the part's selection provider
* is of type <code>org.eclipse.jface.viewers.IStructuredSelection</code>.
*
* @param part the view part that owns this action group
*/
public ... |
19,702 | Bug 19702 Feature: Have comment/uncomment actions in context menu [code manipulation] [editor] | Build F2. The source Comment action is no longer available from the right-click context menu. It is available from the Source pull-down menu, as well as the keyboard shortcut, but I think it is much more efficient and usable to have it in the context menu as in previous builds. The reasoning being that generally when y... | verified fixed | f2b70d4 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-13T09:16:34Z | 2002-06-08T04:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/GenerateActionGroup.java | fAddUnimplementedConstructors.update(selection);
fAddJavaDocStub.update(selection);
fExternalizeStrings.update(selection);
fFindStringsToExternalize.update(selection);
fAddTaskAction.update(selection);
fOrganizeImports.update(selection);
if (selection instanceof IStructuredSelection) {
IStructuredSelect... |
19,702 | Bug 19702 Feature: Have comment/uncomment actions in context menu [code manipulation] [editor] | Build F2. The source Comment action is no longer available from the right-click context menu. It is available from the Source pull-down menu, as well as the keyboard shortcut, but I think it is much more efficient and usable to have it in the context menu as in previous builds. The reasoning being that generally when y... | verified fixed | f2b70d4 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-13T09:16:34Z | 2002-06-08T04:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/GenerateActionGroup.java | /*
* The state of the editor owning this action group has changed.
* This method does nothing if the group's owner isn't an
* editor.
*/
/**
* Note: This method is for internal use only. Clients should not call this method.
*/
public void editorStateChanged() {
Assert.isTrue(fEditorIsOwner);
fAddImpo... |
19,702 | Bug 19702 Feature: Have comment/uncomment actions in context menu [code manipulation] [editor] | Build F2. The source Comment action is no longer available from the right-click context menu. It is available from the Source pull-down menu, as well as the keyboard shortcut, but I think it is much more efficient and usable to have it in the context menu as in previous builds. The reasoning being that generally when y... | verified fixed | f2b70d4 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-13T09:16:34Z | 2002-06-08T04:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/GenerateActionGroup.java | setGlobalActionHandlers(actionBar);
}
/* (non-Javadoc)
* Method declared in ActionGroup
*/
public void fillContextMenu(IMenuManager menu) {
super.fillContextMenu(menu);
if (fEditorIsOwner) {
IMenuManager subMenu= createEditorSubMenu(menu);
if (subMenu != null)
menu.appendToGroup(fGroupName, subMe... |
19,702 | Bug 19702 Feature: Have comment/uncomment actions in context menu [code manipulation] [editor] | Build F2. The source Comment action is no longer available from the right-click context menu. It is available from the Source pull-down menu, as well as the keyboard shortcut, but I think it is much more efficient and usable to have it in the context menu as in previous builds. The reasoning being that generally when y... | verified fixed | f2b70d4 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-13T09:16:34Z | 2002-06-08T04:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/GenerateActionGroup.java | added+= addAction(result, fAddUnimplementedConstructors);
added+= addAction(result, fAddJavaDocStub);
added+= addAction(result, fAddBookmark);
result.add(new Separator());
added+= addAction(result, fSurroundWithTryCatch);
added+= addAction(result, fExternalizeStrings);
if (added == 0)
result= null;
r... |
19,702 | Bug 19702 Feature: Have comment/uncomment actions in context menu [code manipulation] [editor] | Build F2. The source Comment action is no longer available from the right-click context menu. It is available from the Source pull-down menu, as well as the keyboard shortcut, but I think it is much more efficient and usable to have it in the context menu as in previous builds. The reasoning being that generally when y... | verified fixed | f2b70d4 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-13T09:16:34Z | 2002-06-08T04:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/GenerateActionGroup.java | actionBar.setGlobalActionHandler(JdtActionConstants.ADD_JAVA_DOC_COMMENT, fAddJavaDocStub);
actionBar.setGlobalActionHandler(JdtActionConstants.EXTERNALIZE_STRINGS, fExternalizeStrings);
actionBar.setGlobalActionHandler(JdtActionConstants.FIND_STRINGS_TO_EXTERNALIZE, fFindStringsToExternalize);
actionBar.setGloba... |
20,017 | Bug 20017 Self Encapsulate does not work correctly when "this.field = value" is used before refactoring [refactoring] | As an example I start with this class: public class Test { private Object obj; public Test (Object obj) { this.obj = obj; } } Then apply the "Self Encapsulate" refactoring on the obj field, which results: public class Test { private Object obj; public Test (Object obj) { this.getObj() = obj; } private void setObj(Objec... | resolved fixed | 698c0fe | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-13T13:51:56Z | 2002-06-12T13:53:20Z | org.eclipse.jdt.ui.tests.refactoring/resources/SefWorkSpace/SefTests/A.java | public class A {
static String value;
List l;
void foo() {
value= "d";
}
} |
20,677 | Bug 20677 close/open project: incorrect compile order | eclipse-SDK-20020612 ibm jdk1.3.1 I closed 20 projects in the java perspective, choosing the projects from the package view. The 20 projects I closed were org.eclipse.swt.* and org.eclipse.jdt.* I closed all 20 projects simultaneously using the project>close menu. I then re-openned all 20 projects simultaneously using ... | resolved fixed | d22851a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-13T14:36:36Z | 2002-06-19T18:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/WorkbenchRunnableAdapter.java | package org.eclipse.jdt.internal.ui.actions;
import java.lang.reflect.InvocationTargetException;
import org.eclipse.core.resources.IWorkspaceRunnable;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.OperationCanceledException;
import org.e... |
20,677 | Bug 20677 close/open project: incorrect compile order | eclipse-SDK-20020612 ibm jdk1.3.1 I closed 20 projects in the java perspective, choosing the projects from the package view. The 20 projects I closed were org.eclipse.swt.* and org.eclipse.jdt.* I closed all 20 projects simultaneously using the project>close menu. I then re-openned all 20 projects simultaneously using ... | resolved fixed | d22851a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-13T14:36:36Z | 2002-06-19T18:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/WorkbenchRunnableAdapter.java | private IWorkspaceRunnable fWorkspaceRunnable;
public WorkbenchRunnableAdapter(IWorkspaceRunnable runnable) {
fWorkspaceRunnable= runnable;
}
/*
* @see IRunnableWithProgress#run(IProgressMonitor)
*/
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
try {
... |
20,677 | Bug 20677 close/open project: incorrect compile order | eclipse-SDK-20020612 ibm jdk1.3.1 I closed 20 projects in the java perspective, choosing the projects from the package view. The 20 projects I closed were org.eclipse.swt.* and org.eclipse.jdt.* I closed all 20 projects simultaneously using the project>close menu. I then re-openned all 20 projects simultaneously using ... | resolved fixed | d22851a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-13T14:36:36Z | 2002-06-19T18:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OpenProjectAction.java | /*******************************************************************************
* Copyright (c) 2002 International Business Machines Corp. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v0.5
* which accompanies this... |
20,677 | Bug 20677 close/open project: incorrect compile order | eclipse-SDK-20020612 ibm jdk1.3.1 I closed 20 projects in the java perspective, choosing the projects from the package view. The 20 projects I closed were org.eclipse.swt.* and org.eclipse.jdt.* I closed all 20 projects simultaneously using the project>close menu. I then re-openned all 20 projects simultaneously using ... | resolved fixed | d22851a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-13T14:36:36Z | 2002-06-19T18:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OpenProjectAction.java | import org.eclipse.core.resources.IResourceChangeEvent;
import org.eclipse.core.resources.IResourceChangeListener;
import org.eclipse.core.resources.IResourceDelta;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import ... |
20,677 | Bug 20677 close/open project: incorrect compile order | eclipse-SDK-20020612 ibm jdk1.3.1 I closed 20 projects in the java perspective, choosing the projects from the package view. The 20 projects I closed were org.eclipse.swt.* and org.eclipse.jdt.* I closed all 20 projects simultaneously using the project>close menu. I then re-openned all 20 projects simultaneously using ... | resolved fixed | d22851a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-13T14:36:36Z | 2002-06-19T18:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OpenProjectAction.java | private IWorkbenchSite fSite;
/**
* Creates a new <code>OpenProjectAction</code>.
*
* @param site the site providing context information for this action
*/
public OpenProjectAction(IWorkbenchSite site) {
Assert.isNotNull(site);
fSite= site;
setEnabled(hasCloseProjects()); |
20,677 | Bug 20677 close/open project: incorrect compile order | eclipse-SDK-20020612 ibm jdk1.3.1 I closed 20 projects in the java perspective, choosing the projects from the package view. The 20 projects I closed were org.eclipse.swt.* and org.eclipse.jdt.* I closed all 20 projects simultaneously using the project>close menu. I then re-openned all 20 projects simultaneously using ... | resolved fixed | d22851a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-13T14:36:36Z | 2002-06-19T18:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OpenProjectAction.java | WorkbenchHelp.setHelp(this, IJavaHelpContextIds.OPEN_PROJECT_ACTION);
}
/*
* @see IResourceChangeListener#resourceChanged(IResourceChangeEvent)
*/
public void resourceChanged(IResourceChangeEvent event) {
IResourceDelta delta = event.getDelta();
if (delta != null) {
IResourceDelta[] projDeltas = delta.g... |
20,677 | Bug 20677 close/open project: incorrect compile order | eclipse-SDK-20020612 ibm jdk1.3.1 I closed 20 projects in the java perspective, choosing the projects from the package view. The 20 projects I closed were org.eclipse.swt.* and org.eclipse.jdt.* I closed all 20 projects simultaneously using the project>close menu. I then re-openned all 20 projects simultaneously using ... | resolved fixed | d22851a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-13T14:36:36Z | 2002-06-19T18:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OpenProjectAction.java | if (result != Dialog.OK)
return;
final Object[] projects= dialog.getResult();
final List nonJavaProjects= new ArrayList(3);
IRunnableWithProgress runnable= createRunnable(projects, nonJavaProjects);
ProgressMonitorDialog pd= new ProgressMonitorDialog(fSite.getShell());
try {
pd.run(true, true, runnable)... |
20,677 | Bug 20677 close/open project: incorrect compile order | eclipse-SDK-20020612 ibm jdk1.3.1 I closed 20 projects in the java perspective, choosing the projects from the package view. The 20 projects I closed were org.eclipse.swt.* and org.eclipse.jdt.* I closed all 20 projects simultaneously using the project>close menu. I then re-openned all 20 projects simultaneously using ... | resolved fixed | d22851a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-13T14:36:36Z | 2002-06-19T18:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OpenProjectAction.java | }
} catch (CoreException e) {
if (errorStatus == null)
errorStatus = new MultiStatus(JavaPlugin.getPluginId(), IStatus.ERROR, ActionMessages.getString("OpenProjectAction.error.message"), e);
errorStatus.merge(e.getStatus());
}
}
monitor.done();
if (errorStatus != null)
t... |
20,677 | Bug 20677 close/open project: incorrect compile order | eclipse-SDK-20020612 ibm jdk1.3.1 I closed 20 projects in the java perspective, choosing the projects from the package view. The 20 projects I closed were org.eclipse.swt.* and org.eclipse.jdt.* I closed all 20 projects simultaneously using the project>close menu. I then re-openned all 20 projects simultaneously using ... | resolved fixed | d22851a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-13T14:36:36Z | 2002-06-19T18:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OpenProjectAction.java | public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
}
});
warningDialog.setLabelProvider(new JavaElementLabelProvider());
warningDialog.setInput(nonJavaProjects);
warningDialog.open();
}
}
private Object[] getClosedProjects() {
IProject[] projects= ResourcesPlugin.getWork... |
3,582 | Bug 3582 extract method: constructor //reminder (1GEYNSB) | AK (6/7/01 7:21:46 PM) just a reminder: DB knows well about it class A{ A(){ this(8 + 9); } A(int i){} } if you want to extract anything from the super or this call in the constructor you have to make the new method static. it's a special case. NOTES: EG (6/7/2001 11:14:08 AM) defer DB (09.08.2001 11:34:32) Currently y... | resolved fixed | ce575ee | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-13T16:03:18Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui.tests.refactoring/resources/ExtractMethodWorkSpace/ExtractMethodTests/A.java | public class A{
public A(int i) {
}
public void foo() {
A a= new A(10);
}
} |
22,467 | Bug 22467 TextEdits: replace != delete + insert | see TextBufferTest.testReplaceAndInsert1 | resolved fixed | 29f00f2 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-15T12:57:11Z | 2002-08-15T14:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java | /*
* Copyright (c) 2002 IBM Corp. All rights reserved.
* This file is made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*/
package org.eclipse.jdt.ui.tests.core;
import junit.framework.Test;
impor... |
22,467 | Bug 22467 TextEdits: replace != delete + insert | see TextBufferTest.testReplaceAndInsert1 | resolved fixed | 29f00f2 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-15T12:57:11Z | 2002-08-15T14:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java | private static final Class THIS= TextBufferTest.class;
private TextBuffer fBuffer;
private TextBufferEditor fEditor;
public TextBufferTest(String name) {
super(name);
}
public static void main(String[] args) {
TestPluginLauncher.run(TestPluginLauncher.getLocationFromProperties(), THIS, args);
}
public ... |
22,467 | Bug 22467 TextEdits: replace != delete + insert | see TextBufferTest.testReplaceAndInsert1 | resolved fixed | 29f00f2 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-15T12:57:11Z | 2002-08-15T14:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java | result.addTestSuite(THIS);
result.addTestSuite(THIS);
result.addTestSuite(THIS);
result.addTestSuite(THIS);
result.addTestSuite(THIS);
}
return result;
}
protected void setUp() throws Exception {
fBuffer= TextBuffer.create("0123456789");
fEditor= new TextBufferEditor(fBuffer);
}
protected... |
22,467 | Bug 22467 TextEdits: replace != delete + insert | see TextBufferTest.testReplaceAndInsert1 | resolved fixed | 29f00f2 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-15T12:57:11Z | 2002-08-15T14:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java | assertTrue(!fEditor.canPerformEdits());
}
public void testOverlap3() throws Exception {
fEditor.add(SimpleTextEdit.createReplace(0, 2, "01"));
fEditor.add(SimpleTextEdit.createReplace(1, 1, "1"));
assertTrue(!fEditor.canPerformEdits());
}
public void testOverlap4() throws Exception {
fEditor.add... |
22,467 | Bug 22467 TextEdits: replace != delete + insert | see TextBufferTest.testReplaceAndInsert1 | resolved fixed | 29f00f2 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-15T12:57:11Z | 2002-08-15T14:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java | public void testOverlap7() throws Exception {
boolean catched= false;
try {
new MoveTextEdit(2,5,3);
} catch (Exception e) {
catched= true;
}
assertTrue(catched);
}
public void testOverlap8() throws Exception {
boolean catched= false;
try {
new MoveTextEdit(2,5,6);
} catch (Exception e) {
... |
22,467 | Bug 22467 TextEdits: replace != delete + insert | see TextBufferTest.testReplaceAndInsert1 | resolved fixed | 29f00f2 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-15T12:57:11Z | 2002-08-15T14:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java | SimpleTextEdit e1= SimpleTextEdit.createInsert(2, "yy");
SimpleTextEdit e2= SimpleTextEdit.createReplace(2, 3, "3456");
fEditor.add(e1);
fEditor.add(e2);
assertTrue(fEditor.canPerformEdits());
UndoMemento undo= fEditor.performEdits(null);
assert(e1.getTextRange(), 2, 2);
assert(e2.getTextRange(), 4, 4);
... |
22,467 | Bug 22467 TextEdits: replace != delete + insert | see TextBufferTest.testReplaceAndInsert1 | resolved fixed | 29f00f2 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-15T12:57:11Z | 2002-08-15T14:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java | public void testInsert3() throws Exception {
SimpleTextEdit e1= SimpleTextEdit.createReplace(0, 2, "011");
SimpleTextEdit e2= SimpleTextEdit.createInsert(2, "xx");
SimpleTextEdit e3= SimpleTextEdit.createReplace(2, 2, "2");
fEditor.add(e1);
fEditor.add(e2);
fEditor.add(e3);
assertTrue(fEditor.canPerfor... |
22,467 | Bug 22467 TextEdits: replace != delete + insert | see TextBufferTest.testReplaceAndInsert1 | resolved fixed | 29f00f2 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-15T12:57:11Z | 2002-08-15T14:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java | assert(e1.getTextRange(), 0, 0);
}
public void testInsert5() throws Exception {
SimpleTextEdit e1= SimpleTextEdit.createInsert(10, "xx");
fEditor.add(e1);
assertTrue(fEditor.canPerformEdits());
UndoMemento undo= fEditor.performEdits(null);
assertEquals("Buffer length", 12, fBuffer.getLength());
assert(e... |
22,467 | Bug 22467 TextEdits: replace != delete + insert | see TextBufferTest.testReplaceAndInsert1 | resolved fixed | 29f00f2 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-15T12:57:11Z | 2002-08-15T14:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java | fEditor.add(e1);
fEditor.add(e2);
fEditor.add(e3);
assertTrue("Can perform edits", fEditor.canPerformEdits());
UndoMemento undo= fEditor.performEdits(null);
assert(e1.getTextRange(), 3, 0);
assert(e2.getTextRange(), 3, 0);
assert(e3.getTextRange(), 3, 0);
assertEquals("Buffer content", "0126789", fBuffe... |
22,467 | Bug 22467 TextEdits: replace != delete + insert | see TextBufferTest.testReplaceAndInsert1 | resolved fixed | 29f00f2 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-15T12:57:11Z | 2002-08-15T14:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java | public void testMove1() throws Exception {
MoveTextEdit e1= new MoveTextEdit(2, 2, 5);
fEditor.add(e1);
assertTrue(fEditor.canPerformEdits());
UndoMemento undo= fEditor.performEdits(null);
assertEquals("Buffer content", "0142356789", fBuffer.getContent());
assert(e1.getTargetRange(), 3, 2);
assert(e1.getS... |
22,467 | Bug 22467 TextEdits: replace != delete + insert | see TextBufferTest.testReplaceAndInsert1 | resolved fixed | 29f00f2 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-15T12:57:11Z | 2002-08-15T14:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java | assertTrue(fEditor.canPerformEdits());
UndoMemento undo= fEditor.performEdits(null);
assertEquals("Buffer content", "01x5623789", fBuffer.getContent());
assert(e1.getTargetRange(), 5, 2);
assert(e1.getSourceRange(), 2, 0);
assert(e2.getTextRange(), 2, 1);
doUndo(undo);
assert(e1.getSourceRange(), 2, 2);
... |
22,467 | Bug 22467 TextEdits: replace != delete + insert | see TextBufferTest.testReplaceAndInsert1 | resolved fixed | 29f00f2 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-15T12:57:11Z | 2002-08-15T14:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java | MoveTextEdit e1= new MoveTextEdit(2, 1, 3);
SimpleTextEdit e2= SimpleTextEdit.createReplace(2,1,"x");
fEditor.add(e1);
fEditor.add(e2);
assertTrue(fEditor.canPerformEdits());
UndoMemento undo= fEditor.performEdits(null);
assert(e1.getTargetRange(), 2, 1);
assert(e1.getSourceRange(), 3, 0);
assert(e2.get... |
22,467 | Bug 22467 TextEdits: replace != delete + insert | see TextBufferTest.testReplaceAndInsert1 | resolved fixed | 29f00f2 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-15T12:57:11Z | 2002-08-15T14:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java | assert(e1.getSourceRange(), 2, 1);
assert(e1.getTargetRange(), 3, 0);
assert(e2.getTextRange(), 2, 1);
}
public void testMove7() throws Exception {
MoveTextEdit e1= new MoveTextEdit(2, 3, 7);
SimpleTextEdit e2= SimpleTextEdit.createReplace(3, 1, "x");
fEditor.add(e1);
fEditor.add(e2);
assertTrue(fEdit... |
22,467 | Bug 22467 TextEdits: replace != delete + insert | see TextBufferTest.testReplaceAndInsert1 | resolved fixed | 29f00f2 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-15T12:57:11Z | 2002-08-15T14:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java | assert(e1.getTargetRange(), 1, 3);
assert(e1.getSourceRange(), 8, 0);
assert(e2.getTextRange(), 2, 1);
doUndo(undo);
assert(e1.getSourceRange(), 5, 3);
assert(e1.getTargetRange(), 1, 0);
assert(e2.getTextRange(), 6, 1);
}
public void testMove9() throws Exception {
MoveTextEdit e1= new MoveTextEdit(1,... |
22,467 | Bug 22467 TextEdits: replace != delete + insert | see TextBufferTest.testReplaceAndInsert1 | resolved fixed | 29f00f2 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-15T12:57:11Z | 2002-08-15T14:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java | MoveTextEdit e2= new MoveTextEdit(5, 2, 1);
fEditor.add(e1);
fEditor.add(e2);
assertTrue("Can perform edits", fEditor.canPerformEdits());
UndoMemento undo= fEditor.performEdits(null);
assertEquals("Buffer content", "0561472389", fBuffer.getContent());
doUndo(undo);
}
public void testSwap1() throws Exc... |
22,467 | Bug 22467 TextEdits: replace != delete + insert | see TextBufferTest.testReplaceAndInsert1 | resolved fixed | 29f00f2 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-15T12:57:11Z | 2002-08-15T14:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java | SwapTextEdit e1= new SwapTextEdit(1, 1, 3, 1);
SwapTextEdit e2= new SwapTextEdit(5, 1, 7, 1);
SwapTextEdit e3= new SwapTextEdit(1, 3, 5, 3);
fEditor.add(e1);
fEditor.add(e2);
fEditor.add(e3);
assertTrue("Can perform edits", fEditor.canPerformEdits());
UndoMemento undo= fEditor.performEdits(null);
assert... |
22,467 | Bug 22467 TextEdits: replace != delete + insert | see TextBufferTest.testReplaceAndInsert1 | resolved fixed | 29f00f2 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-15T12:57:11Z | 2002-08-15T14:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java | }
public void testReplaceAndInsert2() throws Exception {
SimpleTextEdit e1= SimpleTextEdit.createDelete(0, 2);
fEditor.add(e1);
SimpleTextEdit e11= SimpleTextEdit.createInsert(0, "xx");
fEditor.add(e11);
SimpleTextEdit e2= SimpleTextEdit.createInsert(0, "y");
fEditor.add(e2);
assertTrue(fEditor.canP... |
19,278 | Bug 19278 jar source attachment: jar icon not refreshed [package explorer] [browsing] | F2 .a jar with no source attached .attach source the icon is still suggesting that no source is attached | resolved fixed | 5b0b955 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-19T10:29:15Z | 2002-06-05T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingContentProvider.java | /*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
package org.eclipse.jdt.internal.ui.browsing;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import org.eclipse.core.resources.IResource;
import org.eclipse.swt.widg... |
19,278 | Bug 19278 jar source attachment: jar icon not refreshed [package explorer] [browsing] | F2 .a jar with no source attached .attach source the icon is still suggesting that no source is attached | resolved fixed | 5b0b955 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-19T10:29:15Z | 2002-06-05T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingContentProvider.java | import org.eclipse.jface.viewers.TableViewer;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jdt.core.ElementChangedEvent;
import org.eclipse.jdt.core.IClassFile;
import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jdt.core.IElementChangedListener;
import org.eclipse.jdt.core.IImportContainer;... |
19,278 | Bug 19278 jar source attachment: jar icon not refreshed [package explorer] [browsing] | F2 .a jar with no source attached .attach source the icon is still suggesting that no source is attached | resolved fixed | 5b0b955 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-19T10:29:15Z | 2002-06-05T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingContentProvider.java | public JavaBrowsingContentProvider(boolean provideMembers, JavaBrowsingPart browsingPart) {
super(provideMembers, reconcileJavaViews());
fBrowsingPart= browsingPart;
fViewer= fBrowsingPart.getViewer();
JavaCore.addElementChangedListener(this);
}
private static boolean reconcileJavaViews() {
return JavaBaseP... |
19,278 | Bug 19278 jar source attachment: jar icon not refreshed [package explorer] [browsing] | F2 .a jar with no source attached .attach source the icon is still suggesting that no source is attached | resolved fixed | 5b0b955 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-19T10:29:15Z | 2002-06-05T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingContentProvider.java | return getChildren((IType)element);
if (fProvideMembers && element instanceof ISourceReference && element instanceof IParent)
return removeImportAndPackageDeclarations(super.getChildren(element));
if (element instanceof IJavaProject)
return getPackageFragmentRoots((IJavaProject)element);
return super.... |
19,278 | Bug 19278 jar source attachment: jar icon not refreshed [package explorer] [browsing] | F2 .a jar with no source attached .attach source the icon is still suggesting that no source is attached | resolved fixed | 5b0b955 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-19T10:29:15Z | 2002-06-05T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingContentProvider.java | sourceRefs= (ISourceReference[])topLevelClassFile.toArray(new ISourceReference[topLevelClassFile.size()]);
}
Object[] result= new Object[0];
for (int i= 0; i < sourceRefs.length; i++)
result= concatenate(result, removeImportAndPackageDeclarations(getChildren(sourceRefs[i])));
return concatenate(result, fragm... |
19,278 | Bug 19278 jar source attachment: jar icon not refreshed [package explorer] [browsing] | F2 .a jar with no source attached .attach source the icon is still suggesting that no source is attached | resolved fixed | 5b0b955 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-19T10:29:15Z | 2002-06-05T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingContentProvider.java | if (type.getDeclaringType() != null)
return type.getChildren();
IJavaElement[] members= parent.getChildren();
ArrayList tempResult= new ArrayList(members.length);
for (int i= 0; i < members.length; i++)
if ((members[i] instanceof IImportContainer))
tempResult.add(members[i]);
tempResult.addAll(Ar... |
19,278 | Bug 19278 jar source attachment: jar icon not refreshed [package explorer] [browsing] | F2 .a jar with no source attached .attach source the icon is still suggesting that no source is attached | resolved fixed | 5b0b955 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-19T10:29:15Z | 2002-06-05T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingContentProvider.java | return concatenate(list.toArray(), project.getNonJavaResources());
}
/* (non-Javadoc)
* Method declared on IContentProvider.
*/
public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
super.inputChanged(viewer, oldInput, newInput);
if (newInput instanceof Collection) {
Collection... |
19,278 | Bug 19278 jar source attachment: jar icon not refreshed [package explorer] [browsing] | F2 .a jar with no source attached .attach source the icon is still suggesting that no source is attached | resolved fixed | 5b0b955 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-19T10:29:15Z | 2002-06-05T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingContentProvider.java | public void elementChanged(final ElementChangedEvent event) {
try {
processDelta(event.getDelta());
} catch(JavaModelException e) {
JavaPlugin.getDefault().log(e.getStatus());
}
}
/**
* Processes a delta recursively. When more than two children are affected the
* tree is fully refreshed starting at t... |
19,278 | Bug 19278 jar source attachment: jar icon not refreshed [package explorer] [browsing] | F2 .a jar with no source attached .attach source the icon is still suggesting that no source is attached | resolved fixed | 5b0b955 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-19T10:29:15Z | 2002-06-05T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingContentProvider.java | } else if (element instanceof ICompilationUnit && !((ICompilationUnit)element).isWorkingCopy()) {
postRefresh(null);
} else if (element instanceof ICompilationUnit && ((ICompilationUnit)element).isWorkingCopy()) {
if (getProvideWorkingCopy())
postRefresh(null);
} else if (parent instanceof ICom... |
19,278 | Bug 19278 jar source attachment: jar icon not refreshed [package explorer] [browsing] | F2 .a jar with no source attached .attach source the icon is still suggesting that no source is attached | resolved fixed | 5b0b955 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-19T10:29:15Z | 2002-06-05T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingContentProvider.java | if (kind == IJavaElementDelta.ADDED && delta.getMovedFromElement() != null && element instanceof ICompilationUnit)
return;
if (kind == IJavaElementDelta.ADDED) {
if (fBrowsingPart.isValidElement(element)) {
Object parent= internalGetParent(element);
if (element instanceof IClassFile) {
postA... |
19,278 | Bug 19278 jar source attachment: jar icon not refreshed [package explorer] [browsing] | F2 .a jar with no source attached .attach source the icon is still suggesting that no source is attached | resolved fixed | 5b0b955 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-19T10:29:15Z | 2002-06-05T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingContentProvider.java | if (fBrowsingPart.isValidElement(element)) {
postRefresh(element);
}
}
if (isClassPathChange(delta))
postRefresh(null);
if ((flags & IJavaElementDelta.F_ARCHIVE_CONTENT_CHANGED) != 0 && fInput instanceof IJavaElement) {
IPackageFragmentRoot pkgRoot= (IPackageFragmentRoot)element;
IJavaElement... |
19,278 | Bug 19278 jar source attachment: jar icon not refreshed [package explorer] [browsing] | F2 .a jar with no source attached .attach source the icon is still suggesting that no source is attached | resolved fixed | 5b0b955 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-19T10:29:15Z | 2002-06-05T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingContentProvider.java | }
}
for (int i= 0; i < affectedChildren.length; i++) {
processDelta(affectedChildren[i]);
}
}
private boolean isOnClassPath(ICompilationUnit element) throws JavaModelException {
IJavaProject project= element.getJavaProject();
if (project == null || !project.exists())
return false;
return project.isO... |
19,278 | Bug 19278 jar source attachment: jar icon not refreshed [package explorer] [browsing] | F2 .a jar with no source attached .attach source the icon is still suggesting that no source is attached | resolved fixed | 5b0b955 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-19T10:29:15Z | 2002-06-05T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingContentProvider.java | if (ctrl != null && !ctrl.isDisposed())
fViewer.refresh(root);
}
});
}
private void postAdd(final Object parent, final Object element) {
postAdd(parent, new Object[] {element});
}
private void postAdd(final Object parent, final Object[] elements) {
if (elements.length <= 0)
return;
postRunn... |
19,278 | Bug 19278 jar source attachment: jar icon not refreshed [package explorer] [browsing] | F2 .a jar with no source attached .attach source the icon is still suggesting that no source is attached | resolved fixed | 5b0b955 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-19T10:29:15Z | 2002-06-05T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingContentProvider.java | ((TableViewer)fViewer).add(elements);
if (fViewer.testFindItem(elements[0]) != null)
fBrowsingPart.adjustInputAndSetSelection((IJavaElement)elements[0]);
ctrl.setRedraw(true);
}
}
});
}
private void postRemove(final Object element) {
postRemove(new Object[] {element});
}
private void post... |
19,278 | Bug 19278 jar source attachment: jar icon not refreshed [package explorer] [browsing] | F2 .a jar with no source attached .attach source the icon is still suggesting that no source is attached | resolved fixed | 5b0b955 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-19T10:29:15Z | 2002-06-05T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingContentProvider.java | }
private void postAdjustInputAndSetSelection(final Object element) {
postRunnable(new Runnable() {
public void run() {
Control ctrl= fViewer.getControl();
if (ctrl != null && !ctrl.isDisposed()) {
ctrl.setRedraw(false);
fBrowsingPart.adjustInputAndSetSelection((IJavaElement)element);
ctrl.... |
19,278 | Bug 19278 jar source attachment: jar icon not refreshed [package explorer] [browsing] | F2 .a jar with no source attached .attach source the icon is still suggesting that no source is attached | resolved fixed | 5b0b955 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-19T10:29:15Z | 2002-06-05T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingContentProvider.java | * <p>
* Note: This method will return a working copy if the
* parent is a working copy. The super class implementation
* returns the original element instead.
* </p>
*/
protected Object internalGetParent(Object element) {
if (element instanceof IJavaProject) {
return ((IJavaProject)element).getJavaMode... |
19,278 | Bug 19278 jar source attachment: jar icon not refreshed [package explorer] [browsing] | F2 .a jar with no source attached .attach source the icon is still suggesting that no source is attached | resolved fixed | 5b0b955 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-19T10:29:15Z | 2002-06-05T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerContentProvider.java | /*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
package org.eclipse.jdt.internal.ui.packageview;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IResourceDelta;
import org.eclipse.swt.widgets.Control;
import org.eclipse.jface.viewers.IBasicPropertyConstants;
import o... |
19,278 | Bug 19278 jar source attachment: jar icon not refreshed [package explorer] [browsing] | F2 .a jar with no source attached .attach source the icon is still suggesting that no source is attached | resolved fixed | 5b0b955 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-19T10:29:15Z | 2002-06-05T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerContentProvider.java | import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jdt.core.ElementChangedEvent;
import org.eclipse.jdt.core.IClassFile;
import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jdt.core.IElementChangedListener;
import org.eclipse.jdt.core.IJavaElement;
impo... |
19,278 | Bug 19278 jar source attachment: jar icon not refreshed [package explorer] [browsing] | F2 .a jar with no source attached .attach source the icon is still suggesting that no source is attached | resolved fixed | 5b0b955 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-19T10:29:15Z | 2002-06-05T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerContentProvider.java | public void dispose() {
super.dispose();
JavaCore.removeElementChangedListener(this);
}
/* (non-Javadoc)
* Method declared on IContentProvider.
*/
public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
super.inputChanged(viewer, oldInput, newInput);
fViewer= (TreeViewer)viewer;
if ... |
19,278 | Bug 19278 jar source attachment: jar icon not refreshed [package explorer] [browsing] | F2 .a jar with no source attached .attach source the icon is still suggesting that no source is attached | resolved fixed | 5b0b955 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-19T10:29:15Z | 2002-06-05T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerContentProvider.java | * Method declared on IElementChangedListener.
*/
public void elementChanged(final ElementChangedEvent event) {
try {
processDelta(event.getDelta());
} catch(JavaModelException e) {
JavaPlugin.log(e);
}
}
/**
* Processes a delta recursively. When more than two children are affected the
* tree is f... |
19,278 | Bug 19278 jar source attachment: jar icon not refreshed [package explorer] [browsing] | F2 .a jar with no source attached .attach source the icon is still suggesting that no source is attached | resolved fixed | 5b0b955 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-19T10:29:15Z | 2002-06-05T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerContentProvider.java | if (isWorkingCopy(element)) {
refreshWorkingCopy((IWorkingCopy)element);
return;
}
Object parent= internalGetParent(element);
postRemove(element);
if (parent instanceof IPackageFragment)
updatePackageIcon((IPackageFragment)parent);
if (isPackageFragmentEmpty(element.getParent()))... |
19,278 | Bug 19278 jar source attachment: jar icon not refreshed [package explorer] [browsing] | F2 .a jar with no source attached .attach source the icon is still suggesting that no source is attached | resolved fixed | 5b0b955 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-19T10:29:15Z | 2002-06-05T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerContentProvider.java | if (parent.equals(fInput)) {
postRefresh(parent);
} else {
if (fViewer.testFindItem(parent) == null)
postRefresh(grandparent);
else {
postRefresh(parent);
}
}
} else {
postAdd(parent, element);
}
}
if (element instanceof ICompilationUnit) {
if (getProvid... |
19,278 | Bug 19278 jar source attachment: jar icon not refreshed [package explorer] [browsing] | F2 .a jar with no source attached .attach source the icon is still suggesting that no source is attached | resolved fixed | 5b0b955 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-19T10:29:15Z | 2002-06-05T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerContentProvider.java | return;
if (element instanceof IPackageFragmentRoot && ((flags & IJavaElementDelta.F_ARCHIVE_CONTENT_CHANGED) != 0))
postRefresh(element);
if (isClassPathChange(delta)) {
postRefresh(element.getJavaProject());
}
if (delta.getResourceDeltas() != null) {
IResourceDelta[] rd= delta.get... |
19,278 | Bug 19278 jar source attachment: jar icon not refreshed [package explorer] [browsing] | F2 .a jar with no source attached .attach source the icon is still suggesting that no source is attached | resolved fixed | 5b0b955 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-19T10:29:15Z | 2002-06-05T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerContentProvider.java | return;
}
if (element instanceof IPackageFragmentRoot)
postRefresh(skipProjectPackageFragmentRoot((IPackageFragmentRoot)element));
else
postRefresh(element);
return;
}
for (int i= 0; i < affectedChildren.length; i++) {
processDelta(affectedChildren[i]);
}
}
private boolean isOnClassPa... |
19,278 | Bug 19278 jar source attachment: jar icon not refreshed [package explorer] [browsing] | F2 .a jar with no source attached .attach source the icon is still suggesting that no source is attached | resolved fixed | 5b0b955 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-19T10:29:15Z | 2002-06-05T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerContentProvider.java | if (ctrl != null && !ctrl.isDisposed()) {
if (fViewer.testFindItem(addedElement) != null)
fViewer.setSelection(selection);
}
}
});
}
}
private IJavaElement findAddedElement(IJavaElementDelta delta) {
if (delta.getKind() == IJavaElementDelta.ADDED)
return delta.getElem... |
19,278 | Bug 19278 jar source attachment: jar icon not refreshed [package explorer] [browsing] | F2 .a jar with no source attached .attach source the icon is still suggesting that no source is attached | resolved fixed | 5b0b955 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-19T10:29:15Z | 2002-06-05T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerContentProvider.java | return (element instanceof IWorkingCopy) && ((IWorkingCopy)element).isWorkingCopy();
}
/**
* Updates the package icon
*/
private void updatePackageIcon(final IJavaElement element) {
postRunnable(new Runnable() {
public void run() {
Control ctrl= fViewer.getControl();
if (ctrl != null && !ct... |
19,278 | Bug 19278 jar source attachment: jar icon not refreshed [package explorer] [browsing] | F2 .a jar with no source attached .attach source the icon is still suggesting that no source is attached | resolved fixed | 5b0b955 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-19T10:29:15Z | 2002-06-05T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerContentProvider.java | postRefresh(internalGetParent(parent));
else
postRemove(resource);
}
if ((status & IResourceDelta.ADDED) != 0) {
if (parent instanceof IPackageFragment)
postRefresh(internalGetParent(parent));
else
postAdd(parent, resource);
}
IResourceDelta[] affectedChildren= delta.getAffectedChild... |
19,278 | Bug 19278 jar source attachment: jar icon not refreshed [package explorer] [browsing] | F2 .a jar with no source attached .attach source the icon is still suggesting that no source is attached | resolved fixed | 5b0b955 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-19T10:29:15Z | 2002-06-05T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerContentProvider.java | });
}
private void postAdd(final Object parent, final Object element) {
postRunnable(new Runnable() {
public void run() {
Control ctrl= fViewer.getControl();
if (ctrl != null && !ctrl.isDisposed())
fViewer.add(parent, element);
}
});
}
private void postRemove(final Object element) {
... |
22,380 | Bug 22380 "No Source" class file editor does not fetch keyboard focus | Build N20020813 Test Case: 1. From the package explorer open a class from a JAR without attached source 2. Activate the editor 3. Select something in another view (note: selection is blue) 4. Activate the class file editor by clicking on the tab ==> selection in other view remains blue but should be gray. Suggest to se... | resolved fixed | c6c96b9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-20T12:52:48Z | 2002-08-13T12:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/ClassFileEditor.java | package org.eclipse.jdt.internal.ui.javaeditor;
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.ScrolledComposite;
import org.eclipse.swt.custom.StackLayout;
impo... |
22,380 | Bug 22380 "No Source" class file editor does not fetch keyboard focus | Build N20020813 Test Case: 1. From the package explorer open a class from a JAR without attached source 2. Activate the editor 3. Select something in another view (note: selection is blue) 4. Activate the class file editor by clicking on the tab ==> selection in other view remains blue but should be gray. Suggest to se... | resolved fixed | c6c96b9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-20T12:52:48Z | 2002-08-13T12:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/ClassFileEditor.java | import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.D... |
22,380 | Bug 22380 "No Source" class file editor does not fetch keyboard focus | Build N20020813 Test Case: 1. From the package explorer open a class from a JAR without attached source 2. Activate the editor 3. Select something in another view (note: selection is blue) 4. Activate the class file editor by clicking on the tab ==> selection in other view remains blue but should be gray. Suggest to se... | resolved fixed | c6c96b9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-20T12:52:48Z | 2002-08-13T12:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/ClassFileEditor.java | import org.eclipse.jdt.core.IClasspathEntry;
import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.core.IJavaModelStatusConstants;
import org.eclipse.jdt.core.IPackageFragmentRoot;
import org.eclipse.jdt.core.JavaCore;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jdt.core.ToolFactory;
i... |
22,380 | Bug 22380 "No Source" class file editor does not fetch keyboard focus | Build N20020813 Test Case: 1. From the package explorer open a class from a JAR without attached source 2. Activate the editor 3. Select something in another view (note: selection is blue) 4. Activate the class file editor by clicking on the tab ==> selection in other view remains blue but should be gray. Suggest to se... | resolved fixed | c6c96b9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-08-20T12:52:48Z | 2002-08-13T12:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/ClassFileEditor.java | private Color fSeparatorColor;
private List fBannerLabels= new ArrayList();
private List fHeaderLabels= new ArrayList();
private Font fFont;
/**
* Creates a source attachment form for a class file.
*/
public SourceAttachmentForm(IClassFile file) {
fFile= file;
}
/**
* Return... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.