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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
16,843 | Bug 16843 Not present exception closing java editor that is outside classpath | Build 20020521 1. Create java project 'Proj' with source folder 'src' 2. Create folder 'p' directly under 'Proj' (i.e. outside build path) 3. Create file 'X.java' under 'Proj/p' 4. Open X.java in java editor 5. Close it Observe: You get the following message printed to the log: !ENTRY org.eclipse.jdt.ui 4 1 May 22, 200... | verified fixed | 2ae271f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T08:29:08Z | 2002-05-22T15:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingContentProvider.java | IPackageFragmentRoot[] roots= project.getPackageFragmentRoots();
List list= new ArrayList(roots.length);
for (int i= 0; i < roots.length; i++) {
IPackageFragmentRoot root= (IPackageFragmentRoot)roots[i];
if (!root.isExternal()) {
Object[] children= root.getChildren();
for (int k= 0; k < children... |
16,843 | Bug 16843 Not present exception closing java editor that is outside classpath | Build 20020521 1. Create java project 'Proj' with source folder 'src' 2. Create folder 'p' directly under 'Proj' (i.e. outside build path) 3. Create file 'X.java' under 'Proj/p' 4. Open X.java in java editor 5. Close it Observe: You get the following message printed to the log: !ENTRY org.eclipse.jdt.ui 4 1 May 22, 200... | verified fixed | 2ae271f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T08:29:08Z | 2002-05-22T15:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingContentProvider.java | newInput= null;
}
fInput= newInput;
}
/* (non-Javadoc)
* Method declared on IContentProvider.
*/
public void dispose() {
super.dispose();
JavaCore.removeElementChangedListener(this);
}
/* (non-Javadoc)
* Method declared on IElementChangedListener.
*/
public void elementChanged(final ElementCha... |
16,843 | Bug 16843 Not present exception closing java editor that is outside classpath | Build 20020521 1. Create java project 'Proj' with source folder 'src' 2. Create folder 'p' directly under 'Proj' (i.e. outside build path) 3. Create file 'X.java' under 'Proj/p' 4. Open X.java in java editor 5. Close it Observe: You get the following message printed to the log: !ENTRY org.eclipse.jdt.ui 4 1 May 22, 200... | verified fixed | 2ae271f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T08:29:08Z | 2002-05-22T15:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingContentProvider.java | int flags= delta.getFlags();
IJavaElement element= delta.getElement();
if (!getProvideWorkingCopy() && element instanceof IWorkingCopy && ((IWorkingCopy)element).isWorkingCopy()) {
return;
}
if (((flags & IJavaElementDelta.F_CLOSED) != 0) || ((flags & IJavaElementDelta.F_OPENED) != 0)) {
postRefresh(el... |
16,843 | Bug 16843 Not present exception closing java editor that is outside classpath | Build 20020521 1. Create java project 'Proj' with source folder 'src' 2. Create folder 'p' directly under 'Proj' (i.e. outside build path) 3. Create file 'X.java' under 'Proj/p' 4. Open X.java in java editor 5. Close it Observe: You get the following message printed to the log: !ENTRY org.eclipse.jdt.ui 4 1 May 22, 200... | verified fixed | 2ae271f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T08:29:08Z | 2002-05-22T15:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingContentProvider.java | }
if (fBrowsingPart.isAncestorOf(element, fInput)) {
if (element instanceof IWorkingCopy && ((IWorkingCopy)element).isWorkingCopy()) {
postAdjustInputAndSetSelection(((IWorkingCopy)element).getOriginal((IJavaElement)fInput));
} else
postAdjustInputAndSetSelection(null);
}
return... |
16,843 | Bug 16843 Not present exception closing java editor that is outside classpath | Build 20020521 1. Create java project 'Proj' with source folder 'src' 2. Create folder 'p' directly under 'Proj' (i.e. outside build path) 3. Create file 'X.java' under 'Proj/p' 4. Open X.java in java editor 5. Close it Observe: You get the following message printed to the log: !ENTRY org.eclipse.jdt.ui 4 1 May 22, 200... | verified fixed | 2ae271f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T08:29:08Z | 2002-05-22T15:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingContentProvider.java | IJavaElement newInput= fBrowsingPart.findInputForJavaElement(element);
if (newInput != null)
postAdjustInputAndSetSelection(element);
} else if (element instanceof IType && fBrowsingPart.isValidInput(element)) {
IJavaElement cu1= element.getAncestor(IJavaElement.COMPILATION_UNIT);
IJavaElement cu2= ... |
16,843 | Bug 16843 Not present exception closing java editor that is outside classpath | Build 20020521 1. Create java project 'Proj' with source folder 'src' 2. Create folder 'p' directly under 'Proj' (i.e. outside build path) 3. Create file 'X.java' under 'Proj/p' 4. Open X.java in java editor 5. Close it Observe: You get the following message printed to the log: !ENTRY org.eclipse.jdt.ui 4 1 May 22, 200... | verified fixed | 2ae271f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T08:29:08Z | 2002-05-22T15:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingContentProvider.java | }
}
if (element instanceof IPackageFragmentRoot && fBrowsingPart.isValidElement(element)) {
postRefresh(skipProjectPackageFragmentRoot((IPackageFragmentRoot)element));
return;
}
}
for (int i= 0; i < affectedChildren.length; i++) {
processDelta(affectedChildren[i]);
}
}
/**
* Updates ... |
16,843 | Bug 16843 Not present exception closing java editor that is outside classpath | Build 20020521 1. Create java project 'Proj' with source folder 'src' 2. Create folder 'p' directly under 'Proj' (i.e. outside build path) 3. Create file 'X.java' under 'Proj/p' 4. Open X.java in java editor 5. Close it Observe: You get the following message printed to the log: !ENTRY org.eclipse.jdt.ui 4 1 May 22, 200... | verified fixed | 2ae271f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T08:29:08Z | 2002-05-22T15:06:40Z | 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... |
16,843 | Bug 16843 Not present exception closing java editor that is outside classpath | Build 20020521 1. Create java project 'Proj' with source folder 'src' 2. Create folder 'p' directly under 'Proj' (i.e. outside build path) 3. Create file 'X.java' under 'Proj/p' 4. Open X.java in java editor 5. Close it Observe: You get the following message printed to the log: !ENTRY org.eclipse.jdt.ui 4 1 May 22, 200... | verified fixed | 2ae271f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T08:29:08Z | 2002-05-22T15:06:40Z | 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... |
16,843 | Bug 16843 Not present exception closing java editor that is outside classpath | Build 20020521 1. Create java project 'Proj' with source folder 'src' 2. Create folder 'p' directly under 'Proj' (i.e. outside build path) 3. Create file 'X.java' under 'Proj/p' 4. Open X.java in java editor 5. Close it Observe: You get the following message printed to the log: !ENTRY org.eclipse.jdt.ui 4 1 May 22, 200... | verified fixed | 2ae271f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T08:29:08Z | 2002-05-22T15:06:40Z | 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.... |
16,843 | Bug 16843 Not present exception closing java editor that is outside classpath | Build 20020521 1. Create java project 'Proj' with source folder 'src' 2. Create folder 'p' directly under 'Proj' (i.e. outside build path) 3. Create file 'X.java' under 'Proj/p' 4. Open X.java in java editor 5. Close it Observe: You get the following message printed to the log: !ENTRY org.eclipse.jdt.ui 4 1 May 22, 200... | verified fixed | 2ae271f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T08:29:08Z | 2002-05-22T15:06:40Z | 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... |
16,843 | Bug 16843 Not present exception closing java editor that is outside classpath | Build 20020521 1. Create java project 'Proj' with source folder 'src' 2. Create folder 'p' directly under 'Proj' (i.e. outside build path) 3. Create file 'X.java' under 'Proj/p' 4. Open X.java in java editor 5. Close it Observe: You get the following message printed to the log: !ENTRY org.eclipse.jdt.ui 4 1 May 22, 200... | verified fixed | 2ae271f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T08:29:08Z | 2002-05-22T15:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaElementContentProvider.java | /*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
package org.eclipse.jdt.ui;
import org.eclipse.core.resources.*;
import org.eclipse.jdt.core.*;
import org.eclipse.jdt.internal.ui.*;
import org.eclipse.jdt.internal.ui.viewsupport.*;
import org.eclipse.jface.viewers.*;
import org.eclipse.swt.widgets... |
16,843 | Bug 16843 Not present exception closing java editor that is outside classpath | Build 20020521 1. Create java project 'Proj' with source folder 'src' 2. Create folder 'p' directly under 'Proj' (i.e. outside build path) 3. Create file 'X.java' under 'Proj/p' 4. Open X.java in java editor 5. Close it Observe: You get the following message printed to the log: !ENTRY org.eclipse.jdt.ui 4 1 May 22, 200... | verified fixed | 2ae271f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T08:29:08Z | 2002-05-22T15:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaElementContentProvider.java | protected TreeViewer fViewer;
protected Object fInput;
/* (non-Javadoc)
* Method declared on IContentProvider.
*/
public void dispose() {
super.dispose();
JavaCore.removeElementChangedListener(this);
}
/* (non-Javadoc)
* Method declared on IContentProvider.
*/
public void inputChanged(Viewer viewer,... |
16,843 | Bug 16843 Not present exception closing java editor that is outside classpath | Build 20020521 1. Create java project 'Proj' with source folder 'src' 2. Create folder 'p' directly under 'Proj' (i.e. outside build path) 3. Create file 'X.java' under 'Proj/p' 4. Open X.java in java editor 5. Close it Observe: You get the following message printed to the log: !ENTRY org.eclipse.jdt.ui 4 1 May 22, 200... | verified fixed | 2ae271f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T08:29:08Z | 2002-05-22T15:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaElementContentProvider.java | * Creates a new content provider for Java elements.
*/
public JavaElementContentProvider(boolean provideMembers, boolean provideWorkingCopy) {
super(provideMembers, provideWorkingCopy);
}
/* (non-Javadoc)
* Method declared on IElementChangedListener.
*/
public void elementChanged(final ElementChangedEvent... |
16,843 | Bug 16843 Not present exception closing java editor that is outside classpath | Build 20020521 1. Create java project 'Proj' with source folder 'src' 2. Create folder 'p' directly under 'Proj' (i.e. outside build path) 3. Create file 'X.java' under 'Proj/p' 4. Open X.java in java editor 5. Close it Observe: You get the following message printed to the log: !ENTRY org.eclipse.jdt.ui 4 1 May 22, 200... | verified fixed | 2ae271f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T08:29:08Z | 2002-05-22T15:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaElementContentProvider.java | if (((flags & IJavaElementDelta.F_CLOSED) != 0) || ((flags & IJavaElementDelta.F_OPENED) != 0)) {
postRefresh(element);
return;
}
if (kind == IJavaElementDelta.REMOVED) {
Object parent= internalGetParent(element);
postRemove(element);
if (parent instanceof IPackageFragment)
updatePackageIc... |
16,843 | Bug 16843 Not present exception closing java editor that is outside classpath | Build 20020521 1. Create java project 'Proj' with source folder 'src' 2. Create folder 'p' directly under 'Proj' (i.e. outside build path) 3. Create file 'X.java' under 'Proj/p' 4. Open X.java in java editor 5. Close it Observe: You get the following message printed to the log: !ENTRY org.eclipse.jdt.ui 4 1 May 22, 200... | verified fixed | 2ae271f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T08:29:08Z | 2002-05-22T15:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaElementContentProvider.java | if (fViewer.testFindItem(parent) == null)
postRefresh(grandparent);
else {
postRefresh(parent);
}
}
} else {
postAdd(parent, element);
}
}
if (element instanceof ICompilationUnit) {
if (getProvideWorkingCopy()) {
IJavaElement original= ((IWorkingCopy)element).getO... |
16,843 | Bug 16843 Not present exception closing java editor that is outside classpath | Build 20020521 1. Create java project 'Proj' with source folder 'src' 2. Create folder 'p' directly under 'Proj' (i.e. outside build path) 3. Create file 'X.java' under 'Proj/p' 4. Open X.java in java editor 5. Close it Observe: You get the following message printed to the log: !ENTRY org.eclipse.jdt.ui 4 1 May 22, 200... | verified fixed | 2ae271f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T08:29:08Z | 2002-05-22T15:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaElementContentProvider.java | if (delta.getResourceDeltas() != null) {
IResourceDelta[] rd= delta.getResourceDeltas();
for (int i= 0; i < rd.length; i++) {
processResourceDelta(rd[i], element);
}
}
IJavaElementDelta[] affectedChildren= delta.getAffectedChildren();
if (affectedChildren.length > 1) {
if (element instanceo... |
16,843 | Bug 16843 Not present exception closing java editor that is outside classpath | Build 20020521 1. Create java project 'Proj' with source folder 'src' 2. Create folder 'p' directly under 'Proj' (i.e. outside build path) 3. Create file 'X.java' under 'Proj/p' 4. Open X.java in java editor 5. Close it Observe: You get the following message printed to the log: !ENTRY org.eclipse.jdt.ui 4 1 May 22, 200... | verified fixed | 2ae271f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T08:29:08Z | 2002-05-22T15:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaElementContentProvider.java | }
}
/**
* Updates the package icon
*/
private void updatePackageIcon(final IJavaElement element) {
postRunnable(new Runnable() {
public void run() {
Control ctrl= fViewer.getControl();
if (ctrl != null && !ctrl.isDisposed())
fViewer.update(element, new String[]{IBasicPropertyConstants... |
16,843 | Bug 16843 Not present exception closing java editor that is outside classpath | Build 20020521 1. Create java project 'Proj' with source folder 'src' 2. Create folder 'p' directly under 'Proj' (i.e. outside build path) 3. Create file 'X.java' under 'Proj/p' 4. Open X.java in java editor 5. Close it Observe: You get the following message printed to the log: !ENTRY org.eclipse.jdt.ui 4 1 May 22, 200... | verified fixed | 2ae271f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T08:29:08Z | 2002-05-22T15:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaElementContentProvider.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... |
16,843 | Bug 16843 Not present exception closing java editor that is outside classpath | Build 20020521 1. Create java project 'Proj' with source folder 'src' 2. Create folder 'p' directly under 'Proj' (i.e. outside build path) 3. Create file 'X.java' under 'Proj/p' 4. Open X.java in java editor 5. Close it Observe: You get the following message printed to the log: !ENTRY org.eclipse.jdt.ui 4 1 May 22, 200... | verified fixed | 2ae271f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T08:29:08Z | 2002-05-22T15:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaElementContentProvider.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) {
... |
17,703 | Bug 17703 Edit-Add Task action should use Workbench dialog as Java Editor does | F1 - select CU in packages view - execute File->Add Task observe: you get a different dialog than executing the action from the Java editors ruler context menu | verified fixed | 05a77e6 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T12:29:17Z | 2002-05-24T14:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/AddTaskAction.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... |
17,703 | Bug 17703 Edit-Add Task action should use Workbench dialog as Java Editor does | F1 - select CU in packages view - execute File->Add Task observe: you get a different dialog than executing the action from the Java editors ruler context menu | verified fixed | 05a77e6 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T12:29:17Z | 2002-05-24T14:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/AddTaskAction.java | public AddTaskAction(IWorkbenchSite site) {
super(site);
setEnabled(false);
}
protected void selectionChanged(IStructuredSelection selection) {
setEnabled(getElement(selection) != null);
}
protected void run(IStructuredSelection selection) {
IResource resource= getElement(selection); |
17,703 | Bug 17703 Edit-Add Task action should use Workbench dialog as Java Editor does | F1 - select CU in packages view - execute File->Add Task observe: you get a different dialog than executing the action from the Java editors ruler context menu | verified fixed | 05a77e6 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T12:29:17Z | 2002-05-24T14:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/AddTaskAction.java | if (resource == null)
return;
InputDialog dialog= new InputDialog(getShell(), getDialogTitle(), ActionMessages.getString("AddTaskAction.inputDialog.message"), "", null);
if (dialog.open() == IDialogConstants.CANCEL_ID)
return;
String message= dialog.getValue().trim();
Map attributes= new HashMap(2);
... |
12,523 | Bug 12523 Paste in Packages does not accept files on the clipboard | I created a FileTransfer in another view that contains file paths and placed it on the clipboard using SWT DND Clipboard object. Resource navigator recognized this and allowed me to paste the files into the project, but Packages 'Paste' didn't. | verified fixed | 1bc4d43 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T13:04:06Z | 2002-03-31T18:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/PasteResourcesFromClipboardAction.java | package org.eclipse.jdt.internal.ui.reorg;
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.swt.dnd.Clipboard;
import org.eclipse.jface.viewers.IStructuredSelecti... |
12,523 | Bug 12523 Paste in Packages does not accept files on the clipboard | I created a FileTransfer in another view that contains file paths and placed it on the clipboard using SWT DND Clipboard object. Resource navigator recognized this and allowed me to paste the files into the project, but Packages 'Paste' didn't. | verified fixed | 1bc4d43 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T13:04:06Z | 2002-03-31T18:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/PasteResourcesFromClipboardAction.java | protected PasteResourcesFromClipboardAction(IWorkbenchSite site, Clipboard clipboard) {
super(site);
Assert.isNotNull(clipboard);
fClipboard= clipboard;
}
protected void selectionChanged(IStructuredSelection selection) {
setEnabled(canOperateOn(selection));
}
public void run(IStructuredSelection selecti... |
12,523 | Bug 12523 Paste in Packages does not accept files on the clipboard | I created a FileTransfer in another view that contains file paths and placed it on the clipboard using SWT DND Clipboard object. Resource navigator recognized this and allowed me to paste the files into the project, but Packages 'Paste' didn't. | verified fixed | 1bc4d43 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T13:04:06Z | 2002-03-31T18:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/PasteResourcesFromClipboardAction.java | }
private boolean canOperateOn(IStructuredSelection selection){
IResource[] resourceData= getClipboardResources();
if (resourceData == null || resourceData.length == 0)
return false;
if (ClipboardActionUtil.isOneOpenProject(resourceData))
return true;
if (selection.size() != 1)
return false... |
12,523 | Bug 12523 Paste in Packages does not accept files on the clipboard | I created a FileTransfer in another view that contains file paths and placed it on the clipboard using SWT DND Clipboard object. Resource navigator recognized this and allowed me to paste the files into the project, but Packages 'Paste' didn't. | verified fixed | 1bc4d43 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T13:04:06Z | 2002-03-31T18:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/PasteResourcesFromClipboardAction.java | private static boolean canActivateCopyRefactoring(IResource[] resourceData, IResource selectedResource) {
try{
CopyRefactoring ref= createCopyRefactoring(resourceData);
if (! ref.checkActivation(new NullProgressMonitor()).isOK())
return false;
return ref.isValidDestination(ClipboardActionUtil.tryConverti... |
17,045 | Bug 17045 Import/Export should always be on context menu of Packages view (or never) | Build 20020521 The Packages view does only include Import when a container is selected. It only includes Export when a container or file is selected. When the selection is empty, neither appear. The Navigator always includes Import/Export on the context menu. Filtering these action based on the selection makes too many... | verified fixed | 7b82915 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T15:14:31Z | 2002-05-22T20:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ImportActionGroup.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... |
17,045 | Bug 17045 Import/Export should always be on context menu of Packages view (or never) | Build 20020521 The Packages view does only include Import when a container is selected. It only includes Export when a container or file is selected. When the selection is empty, neither appear. The Navigator always includes Import/Export on the context menu. Filtering these action based on the selection makes too many... | verified fixed | 7b82915 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T15:14:31Z | 2002-05-22T20:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ImportActionGroup.java | import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.ui.IContextMenuConstants;
/**
* Action group to add the Import and Export action to a view part's
* context menu.
*
* @sine 2.0
*/
public class ImportActionGroup extends ActionGroup {
private static final S... |
17,045 | Bug 17045 Import/Export should always be on context menu of Packages view (or never) | Build 20020521 The Packages view does only include Import when a container is selected. It only includes Export when a container or file is selected. When the selection is empty, neither appear. The Navigator always includes Import/Export on the context menu. Filtering these action based on the selection makes too many... | verified fixed | 7b82915 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T15:14:31Z | 2002-05-22T20:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ImportActionGroup.java | * Method declared in ActionGroup
*/
public void fillContextMenu(IMenuManager menu) {
IStructuredSelection selection= getStructuredSelection();
if (selection == null)
return;
int mode= checkSelection(selection);
if ((mode & FAILED) == 0) {
menu.appendToGroup(IContextMenuConstants.GROUP_REORGANIZE, n... |
17,045 | Bug 17045 Import/Export should always be on context menu of Packages view (or never) | Build 20020521 The Packages view does only include Import when a container is selected. It only includes Export when a container or file is selected. When the selection is empty, neither appear. The Navigator always includes Import/Export on the context menu. Filtering these action based on the selection makes too many... | verified fixed | 7b82915 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T15:14:31Z | 2002-05-22T20:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ImportActionGroup.java | private int checkSelection(IStructuredSelection selection) {
int result= 0;
for (Iterator iter= selection.iterator(); iter.hasNext();) {
Object element= (Object) iter.next();
if (element instanceof IJavaElement) {
int type= ((IJavaElement)element).getElementType();
switch (type) {
case IJavaEleme... |
17,168 | Bug 17168 Packages view: Open in context menu for * imports | Test pass 1 - JUnit setup - open AboutDialog - select java.awt.event.* - open context menu observe: Open is in context menu, although it can't be applied. | verified fixed | 3ffec79 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T15:28:22Z | 2002-05-23T10:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OpenAction.java | /*******************************************************************************
* Copyright (c) 2000, 2002 International Business Machines Corp. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v0.5
* which accompanie... |
17,168 | Bug 17168 Packages view: Open in context menu for * imports | Test pass 1 - JUnit setup - open AboutDialog - select java.awt.event.* - open context menu observe: Open is in context menu, although it can't be applied. | verified fixed | 3ffec79 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T15:28:22Z | 2002-05-23T10:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OpenAction.java | import org.eclipse.ui.part.EditorActionBarContributor;
import org.eclipse.jdt.core.IImportDeclaration;
import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.core.ISourceReference;
import org.eclipse.jdt.core.IType;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jdt.core.Signature;
import ... |
17,168 | Bug 17168 Packages view: Open in context menu for * imports | Test pass 1 - JUnit setup - open AboutDialog - select java.awt.event.* - open context menu observe: Open is in context menu, although it can't be applied. | verified fixed | 3ffec79 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T15:28:22Z | 2002-05-23T10:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OpenAction.java | private JavaEditor fEditor;
/**
* Creates a new <code>OpenAction</code>.
*
* @param site the site providing context information for this action
*/
public OpenAction(IWorkbenchSite site) {
super(site);
setText(ActionMessages.getString("OpenAction.label"));
setToolTipText(ActionMessages.getString("Ope... |
17,168 | Bug 17168 Packages view: Open in context menu for * imports | Test pass 1 - JUnit setup - open AboutDialog - select java.awt.event.* - open context menu observe: Open is in context menu, although it can't be applied. | verified fixed | 3ffec79 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T15:28:22Z | 2002-05-23T10:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OpenAction.java | this(editor.getEditorSite());
fEditor= editor;
setText(ActionMessages.getString("OpenAction.declaration.label"));
setEnabled(SelectionConverter.canOperateOn(fEditor));
}
/* (non-Javadoc)
* Method declared on SelectionDispatchAction.
*/
protected void selectionChanged(ITextSelection selection) {
}
/* (... |
17,168 | Bug 17168 Packages view: Open in context menu for * imports | Test pass 1 - JUnit setup - open AboutDialog - select java.awt.event.* - open context menu observe: Open is in context menu, although it can't be applied. | verified fixed | 3ffec79 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T15:28:22Z | 2002-05-23T10:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OpenAction.java | continue;
return false;
}
return true;
}
/* (non-Javadoc)
* Method declared on SelectionDispatchAction.
*/
protected void run(ITextSelection selection) {
try {
IJavaElement element= SelectionConverter.codeResolve(fEditor, getShell(), getDialogTitle(),
ActionMessages.getString("OpenAction.selec... |
17,168 | Bug 17168 Packages view: Open in context menu for * imports | Test pass 1 - JUnit setup - open AboutDialog - select java.awt.event.* - open context menu observe: Open is in context menu, although it can't be applied. | verified fixed | 3ffec79 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T15:28:22Z | 2002-05-23T10:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OpenAction.java | }
}
/* (non-Javadoc)
* Method declared on SelectionDispatchAction.
*/
protected void run(IStructuredSelection selection) {
if (!checkEnabled(selection))
return;
run(selection.toArray());
}
private void run(Object[] elements) {
if (elements == null)
return;
for (int i= 0; i < elements.length; ... |
17,168 | Bug 17168 Packages view: Open in context menu for * imports | Test pass 1 - JUnit setup - open AboutDialog - select java.awt.event.* - open context menu observe: Open is in context menu, although it can't be applied. | verified fixed | 3ffec79 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T15:28:22Z | 2002-05-23T10:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OpenAction.java | } catch (PartInitException x) {
String name= null;
if (element instanceof IJavaElement) {
name= ((IJavaElement) element).getElementName();
} else if (element instanceof IStorage) {
name= ((IStorage) element).getName();
} else if (element instanceof IResource) {
name= ((IReso... |
17,168 | Bug 17168 Packages view: Open in context menu for * imports | Test pass 1 - JUnit setup - open AboutDialog - select java.awt.event.* - open context menu observe: Open is in context menu, although it can't be applied. | verified fixed | 3ffec79 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T15:28:22Z | 2002-05-23T10:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OpenAction.java | IImportDeclaration declaration= (IImportDeclaration) element;
if (declaration.isOnDemand()) {
element= JavaModelUtil.findTypeContainer(element.getJavaProject(), Signature.getQualifier(element.getElementName()));
} else {
element= element.getJavaProject().findType(element.getElementName());
}
i... |
17,001 | Bug 17001 JUnit preference page margins too wide | Build: 20020521 The left, right, top and bottom margins on the JUnit preference page are too wide. They are inconsistent with the other preference pages. Adding the following lines in JUnitPreferencePage.createContents(Composite) will fix this problem: layout.marginWidth = 0; layout.marginHeight = 0; | verified fixed | 1dcea9f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T16:26:47Z | 2002-05-22T17:53:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/JUnitPreferencePage.java | /*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
package org.eclipse.jdt.internal.junit.ui;
import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.jface.preference.*;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.*;
import org.eclipse.swt.layout.*;
import org.eclipse.swt.... |
17,001 | Bug 17001 JUnit preference page margins too wide | Build: 20020521 The left, right, top and bottom margins on the JUnit preference page are too wide. They are inconsistent with the other preference pages. Adding the following lines in JUnitPreferencePage.createContents(Composite) will fix this problem: layout.marginWidth = 0; layout.marginHeight = 0; | verified fixed | 1dcea9f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T16:26:47Z | 2002-05-22T17:53:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/JUnitPreferencePage.java | implements IWorkbenchPreferencePage, SelectionListener {
private String fFilterString;
private Table fTable;
private Button fAddButton;
private Button fRemoveButton;
private Button fShowOnErrorCheck;
public static String STACK_FILTER_ENTRIES_COUNT= "NOF_STACK_FILTER_ENTRIES";
public static String STACK_... |
17,001 | Bug 17001 JUnit preference page margins too wide | Build: 20020521 The left, right, top and bottom margins on the JUnit preference page are too wide. They are inconsistent with the other preference pages. Adding the following lines in JUnitPreferencePage.createContents(Composite) will fix this problem: layout.marginWidth = 0; layout.marginHeight = 0; | verified fixed | 1dcea9f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T16:26:47Z | 2002-05-22T17:53:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/JUnitPreferencePage.java | int count= store.getInt(STACK_FILTER_ENTRIES_COUNT);
String[] result= new String[count];
for (int i= 0; i < count; i++) {
result[i]= store.getString(STACK_FILTER_ENTRY_ + i);
}
return result;
}
public static boolean getFilterStack() {
IPreferenceStore store= JUnitPlugin.getDefault().getPreferenceStore(... |
17,001 | Bug 17001 JUnit preference page margins too wide | Build: 20020521 The left, right, top and bottom margins on the JUnit preference page are too wide. They are inconsistent with the other preference pages. Adding the following lines in JUnitPreferencePage.createContents(Composite) will fix this problem: layout.marginWidth = 0; layout.marginHeight = 0; | verified fixed | 1dcea9f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T16:26:47Z | 2002-05-22T17:53:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/JUnitPreferencePage.java | /*
* @see PreferencePage#createContents(Composite)
*/
protected Control createContents(Composite parent) {
noDefaultAndApplyButton();
Composite composite= new Composite(parent, SWT.NULL);
GridLayout layout= new GridLayout();
layout.numColumns= 2;
composite.setLayout(layout);
GridData data= new GridD... |
17,001 | Bug 17001 JUnit preference page margins too wide | Build: 20020521 The left, right, top and bottom margins on the JUnit preference page are too wide. They are inconsistent with the other preference pages. Adding the following lines in JUnitPreferencePage.createContents(Composite) will fix this problem: layout.marginWidth = 0; layout.marginHeight = 0; | verified fixed | 1dcea9f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T16:26:47Z | 2002-05-22T17:53:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/JUnitPreferencePage.java | }
/**
* @return boolean
*/
public static boolean getShowOnErrorOnly() {
IPreferenceStore store= JUnitPlugin.getDefault().getPreferenceStore();
return store.getBoolean(SHOW_ON_ERROR_ONLY);
}
protected void createListButtons(Composite composite) {
Composite buttonComposite= new Composite(composite, SWT.N... |
17,001 | Bug 17001 JUnit preference page margins too wide | Build: 20020521 The left, right, top and bottom margins on the JUnit preference page are too wide. They are inconsistent with the other preference pages. Adding the following lines in JUnitPreferencePage.createContents(Composite) will fix this problem: layout.marginWidth = 0; layout.marginHeight = 0; | verified fixed | 1dcea9f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T16:26:47Z | 2002-05-22T17:53:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/JUnitPreferencePage.java | GridData data = new GridData();
data.horizontalAlignment = GridData.FILL;
data.grabExcessHorizontalSpace = true;
data.heightHint= convertVerticalDLUsToPixels(IDialogConstants.BUTTON_HEIGHT);
int widthHint= convertHorizontalDLUsToPixels(IDialogConstants.BUTTON_WIDTH);
data.widthHint= Math.max(widthHint, button... |
17,001 | Bug 17001 JUnit preference page margins too wide | Build: 20020521 The left, right, top and bottom margins on the JUnit preference page are too wide. They are inconsistent with the other preference pages. Adding the following lines in JUnitPreferencePage.createContents(Composite) will fix this problem: layout.marginWidth = 0; layout.marginHeight = 0; | verified fixed | 1dcea9f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T16:26:47Z | 2002-05-22T17:53:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/JUnitPreferencePage.java | fTable.setSelection(0);
}
/*
* @see IWorkbenchPreferencePage#init(IWorkbench)
*/
public void init(IWorkbench workbench) {
}
/*
* @see SelectionListener#widgetDefaultSelected(SelectionEvent)
*/
public void widgetDefaultSelected(SelectionEvent selectionEvent) {
widgetSelected(selectionEvent);
}
prot... |
17,001 | Bug 17001 JUnit preference page margins too wide | Build: 20020521 The left, right, top and bottom margins on the JUnit preference page are too wide. They are inconsistent with the other preference pages. Adding the following lines in JUnitPreferencePage.createContents(Composite) will fix this problem: layout.marginWidth = 0; layout.marginHeight = 0; | verified fixed | 1dcea9f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T16:26:47Z | 2002-05-22T17:53:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/JUnitPreferencePage.java | addFilterString(pattern);
fTable.deselectAll();
fTable.select(fTable.getItemCount()-1);
}
else if (selectionEvent.getSource().equals(fRemoveButton)) {
fTable.remove(fTable.getSelectionIndices());
}
fRemoveButton.setEnabled(fTable.getSelectionIndex() != -1);
}
public boolean performOk() {
IPre... |
17,699 | Bug 17699 Java Editor: Local Histroy menu entries are enabled for read-only files | F1 - make file read-only - open it - observe: context menu contains Local History actions. Only compare makes sense for read-only files | verified fixed | a180e8a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T16:59:02Z | 2002-05-24T14:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaAddElementFromHistory.java | /*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
package org.eclipse.jdt.internal.ui.compare;
import java.util.ResourceBundle;
import java.lang.reflect.InvocationTargetException;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.dialogs.MessageD... |
17,699 | Bug 17699 Java Editor: Local Histroy menu entries are enabled for read-only files | F1 - make file read-only - open it - observe: context menu contains Local History actions. Only compare makes sense for read-only files | verified fixed | a180e8a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T16:59:02Z | 2002-05-24T14:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaAddElementFromHistory.java | public JavaAddElementFromHistory() {
}
public void run(IAction action) {
String errorTitle= CompareMessages.getString("AddFromHistory.title");
String errorMessage= CompareMessages.getString("AddFromHistory.internalErrorMessage");
Shell shell= JavaPlugin.getActiveWorkbenchShell();
ICompilationU... |
17,699 | Bug 17699 Java Editor: Local Histroy menu entries are enabled for read-only files | F1 - make file read-only - open it - observe: context menu contains Local History actions. Only compare makes sense for read-only files | verified fixed | a180e8a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T16:59:02Z | 2002-05-24T14:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaAddElementFromHistory.java | cu= input.getCompilationUnit();
if (input instanceof IParent) {
parent= (IParent)input;
input= null;
} else {
IJavaElement parentElement= input.getParent();
if (parentElement instanceof IParent)
parent= (IParent)parentElement;
}
} else {
if (selection instanceof IStructu... |
17,699 | Bug 17699 Java Editor: Local Histroy menu entries are enabled for read-only files | F1 - make file read-only - open it - observe: context menu contains Local History actions. Only compare makes sense for read-only files | verified fixed | a180e8a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T16:59:02Z | 2002-05-24T14:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaAddElementFromHistory.java | }
boolean inEditor= beingEdited(file);
if (inEditor) {
parent= (IParent) getWorkingCopy((IJavaElement)parent);
if (input != null)
input= (IMember) getWorkingCopy(input);
}
TextBuffer buffer= null;
try {
buffer= TextBuffer.acquire(file);
ITypedElement target= new JavaTextBufferNo... |
17,699 | Bug 17699 Java Editor: Local Histroy menu entries are enabled for read-only files | F1 - make file read-only - open it - observe: context menu contains Local History actions. Only compare makes sense for read-only files | verified fixed | a180e8a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T16:59:02Z | 2002-05-24T14:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaAddElementFromHistory.java | }
if (lines == null) {
MessageDialog.openError(shell, errorTitle, errorMessage);
return;
}
MemberEdit edit= null;
if (input != null)
edit= new MemberEdit(input, MemberEdit.INSERT_AFTER, lines,
CodeFormatterPreferencePage.getTabSize());
else
edit= createEdit(lines, parent... |
17,699 | Bug 17699 Java Editor: Local Histroy menu entries are enabled for read-only files | F1 - make file read-only - open it - observe: context menu contains Local History actions. Only compare makes sense for read-only files | verified fixed | a180e8a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T16:59:02Z | 2002-05-24T14:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaAddElementFromHistory.java | throw new InvocationTargetException(ex);
}
}
};
if (inEditor) {
r.run(nullProgressMonitor);
} else {
ProgressMonitorDialog pd= new ProgressMonitorDialog(shell);
pd.run(true, false, r);
}
} catch(InvocationTargetException ex) {
JavaPlugin.log(ex);
MessageDialog.openErro... |
17,699 | Bug 17699 Java Editor: Local Histroy menu entries are enabled for read-only files | F1 - make file read-only - open it - observe: context menu contains Local History actions. Only compare makes sense for read-only files | verified fixed | a180e8a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T16:59:02Z | 2002-05-24T14:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaAddElementFromHistory.java | */
private MemberEdit createEdit(String[] lines, IParent container) {
IJavaElement[] children= null;
try {
children= container.getChildren();
} catch(JavaModelException ex) {
}
if (children != null) {
IJavaElement candidate= null;
for (int i= 0; i < children.length; i++) {
IJavaElement chl... |
17,699 | Bug 17699 Java Editor: Local Histroy menu entries are enabled for read-only files | F1 - make file read-only - open it - observe: context menu contains Local History actions. Only compare makes sense for read-only files | verified fixed | a180e8a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T16:59:02Z | 2002-05-24T14:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaAddElementFromHistory.java | if (container instanceof IJavaElement)
return new MemberEdit((IJavaElement)container, MemberEdit.ADD_AT_END, lines,
CodeFormatterPreferencePage.getTabSize());
return null;
}
protected boolean isEnabled(ISelection selection) {
if (selection.isEmpty()) {
if (fEditor != null) {
... |
17,699 | Bug 17699 Java Editor: Local Histroy menu entries are enabled for read-only files | F1 - make file read-only - open it - observe: context menu contains Local History actions. Only compare makes sense for read-only files | verified fixed | a180e8a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T16:59:02Z | 2002-05-24T14:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaCompareWithEditionAction.java | /*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
package org.eclipse.jdt.internal.ui.compare;
import java.util.ResourceBundle;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.viewers.ISelection;
... |
17,699 | Bug 17699 Java Editor: Local Histroy menu entries are enabled for read-only files | F1 - make file read-only - open it - observe: context menu contains Local History actions. Only compare makes sense for read-only files | verified fixed | a180e8a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T16:59:02Z | 2002-05-24T14:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaCompareWithEditionAction.java | private static final String BUNDLE_NAME= "org.eclipse.jdt.internal.ui.compare.CompareWithEditionAction";
public JavaCompareWithEditionAction() {
}
public void run(IAction action) {
String errorTitle= CompareMessages.getString("ReplaceFromHistory.title");
String errorMessage= CompareMessages.getString... |
17,699 | Bug 17699 Java Editor: Local Histroy menu entries are enabled for read-only files | F1 - make file read-only - open it - observe: context menu contains Local History actions. Only compare makes sense for read-only files | verified fixed | a180e8a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T16:59:02Z | 2002-05-24T14:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaCompareWithEditionAction.java | if (file == null) {
MessageDialog.openError(shell, errorTitle, errorMessage);
return;
}
boolean inEditor= beingEdited(file);
if (inEditor)
input= (IMember) getWorkingCopy(input);
TextBuffer buffer= null;
try {
buffer= TextBuffer.acquire(file);
ITypedElement target= new JavaTextBufferNode(... |
17,699 | Bug 17699 Java Editor: Local Histroy menu entries are enabled for read-only files | F1 - make file read-only - open it - observe: context menu contains Local History actions. Only compare makes sense for read-only files | verified fixed | a180e8a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T16:59:02Z | 2002-05-24T14:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.java | /*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
package org.eclipse.jdt.internal.ui.compare;
import java.io.*;
import org.eclipse.swt.graphics.Image;
import org.eclipse.jface.action.*;
import org.eclipse.jface.util.Assert;
import org.eclipse.jface.viewers.*;
import org.eclipse.ui.IActionDelegate;
... |
17,699 | Bug 17699 Java Editor: Local Histroy menu entries are enabled for read-only files | F1 - make file read-only - open it - observe: context menu contains Local History actions. Only compare makes sense for read-only files | verified fixed | a180e8a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T16:59:02Z | 2002-05-24T14:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.java | /**
* Implements the IStreamContentAccessor and ITypedElement protocols
* for a TextBuffer.
*/
class JavaTextBufferNode implements ITypedElement, IStreamContentAccessor { |
17,699 | Bug 17699 Java Editor: Local Histroy menu entries are enabled for read-only files | F1 - make file read-only - open it - observe: context menu contains Local History actions. Only compare makes sense for read-only files | verified fixed | a180e8a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T16:59:02Z | 2002-05-24T14:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.java | private TextBuffer fBuffer;
private boolean fInEditor;
JavaTextBufferNode(TextBuffer buffer, boolean inEditor) {
fBuffer= buffer;
fInEditor= inEditor;
}
public String getName() {
if (fInEditor)
return CompareMessages.getString("Editor_Buffer");
return CompareMessages.getString("Workspace_... |
17,699 | Bug 17699 Java Editor: Local Histroy menu entries are enabled for read-only files | F1 - make file read-only - open it - observe: context menu contains Local History actions. Only compare makes sense for read-only files | verified fixed | a180e8a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T16:59:02Z | 2002-05-24T14:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.java | }
private ISelection fSelection;
ISelection getSelection() {
return fSelection;
}
protected IFile getFile(Object input) {
ICompilationUnit cu= null;
if (input instanceof ICompilationUnit)
cu= (ICompilationUnit) input;
else if (input instanceof IMember)
cu= ((IMember)input).getCompilationUnit()... |
17,699 | Bug 17699 Java Editor: Local Histroy menu entries are enabled for read-only files | F1 - make file read-only - open it - observe: context menu contains Local History actions. Only compare makes sense for read-only files | verified fixed | a180e8a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T16:59:02Z | 2002-05-24T14:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.java | if (file.exists())
return file;
return null;
}
protected ITypedElement[] buildEditions(ITypedElement target, IFile file) {
IFileState[] states= null;
try {
states= file.getHistory(null);
} catch (CoreException ex) {
JavaPlugin.log(ex);
}
int count= 1;
if (states != null)
count+=... |
17,699 | Bug 17699 Java Editor: Local Histroy menu entries are enabled for read-only files | F1 - make file read-only - open it - observe: context menu contains Local History actions. Only compare makes sense for read-only files | verified fixed | a180e8a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T16:59:02Z | 2002-05-24T14:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.java | try {
return EditorUtility.getWorkingCopy(input, true);
} catch (JavaModelException ex) {
}
return null;
}
/**
* Returns true if the given file is open in an editor.
*/
boolean beingEdited(IFile file) {
CompilationUnitDocumentProvider dp= JavaPlugin.getDefault().getCompilationUnitDocumentProvider();... |
17,699 | Bug 17699 Java Editor: Local Histroy menu entries are enabled for read-only files | F1 - make file read-only - open it - observe: context menu contains Local History actions. Only compare makes sense for read-only files | verified fixed | a180e8a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T16:59:02Z | 2002-05-24T14:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.java | }
return null;
}
protected boolean isEnabled(ISelection selection) {
IMember m= getEditionElement(selection);
if (m == null)
return false;
IFile file= getFile(m);
if (file != null && beingEdited(file))
return getWorkingCopy(m) != null;
return true;
}
/**
* Notifies this action delegate tha... |
17,699 | Bug 17699 Java Editor: Local Histroy menu entries are enabled for read-only files | F1 - make file read-only - open it - observe: context menu contains Local History actions. Only compare makes sense for read-only files | verified fixed | a180e8a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T16:59:02Z | 2002-05-24T14:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaReplaceWithEditionAction.java | /*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
package org.eclipse.jdt.internal.ui.compare;
import java.lang.reflect.InvocationTargetException;
import java.util.ResourceBundle;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.jface.action.IAction; |
17,699 | Bug 17699 Java Editor: Local Histroy menu entries are enabled for read-only files | F1 - make file read-only - open it - observe: context menu contains Local History actions. Only compare makes sense for read-only files | verified fixed | a180e8a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T16:59:02Z | 2002-05-24T14:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaReplaceWithEditionAction.java | import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.dialogs.ProgressMonitorDialog;
import org.eclipse.jface.operation.IRunnableWithProgress;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.compare.EditionSelectionDialog;
import org.eclipse.compare.HistoryItem;
import org.eclipse.com... |
17,699 | Bug 17699 Java Editor: Local Histroy menu entries are enabled for read-only files | F1 - make file read-only - open it - observe: context menu contains Local History actions. Only compare makes sense for read-only files | verified fixed | a180e8a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T16:59:02Z | 2002-05-24T14:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaReplaceWithEditionAction.java | private static final String BUNDLE_NAME= "org.eclipse.jdt.internal.ui.compare.ReplaceWithEditionAction";
private boolean fPrevious= false;
public JavaReplaceWithEditionAction() {
}
public JavaReplaceWithEditionAction(boolean previous) {
fPrevious= previous;
}
protected ITypedElement[] buildEditions(... |
17,699 | Bug 17699 Java Editor: Local Histroy menu entries are enabled for read-only files | F1 - make file read-only - open it - observe: context menu contains Local History actions. Only compare makes sense for read-only files | verified fixed | a180e8a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T16:59:02Z | 2002-05-24T14:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaReplaceWithEditionAction.java | String errorTitle= CompareMessages.getString("ReplaceFromHistory.title");
String errorMessage= CompareMessages.getString("ReplaceFromHistory.internalErrorMessage");
Shell shell= JavaPlugin.getActiveWorkbenchShell();
ISelection selection= getSelection();
IMember input= getEditionElement(selection);
... |
17,699 | Bug 17699 Java Editor: Local Histroy menu entries are enabled for read-only files | F1 - make file read-only - open it - observe: context menu contains Local History actions. Only compare makes sense for read-only files | verified fixed | a180e8a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T16:59:02Z | 2002-05-24T14:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaReplaceWithEditionAction.java | ITypedElement target= new JavaTextBufferNode(buffer, inEditor);
ITypedElement[] editions= buildEditions(target, file);
ITypedElement ti= null;
if (fPrevious)
ti= d.selectPreviousEdition(target, editions, input);
else
ti= d.selectEdition(target, editions, input);
if (ti instanceof IStreamCo... |
17,699 | Bug 17699 Java Editor: Local Histroy menu entries are enabled for read-only files | F1 - make file read-only - open it - observe: context menu contains Local History actions. Only compare makes sense for read-only files | verified fixed | a180e8a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T16:59:02Z | 2002-05-24T14:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaReplaceWithEditionAction.java | editor.add(edit);
editor.performEdits(nullProgressMonitor);
final TextBuffer bb= buffer;
IRunnableWithProgress r= new IRunnableWithProgress() {
public void run(IProgressMonitor pm) throws InvocationTargetException {
try {
TextBuffer.commitChanges(bb, false, pm);
} catch (CoreExc... |
17,699 | Bug 17699 Java Editor: Local Histroy menu entries are enabled for read-only files | F1 - make file read-only - open it - observe: context menu contains Local History actions. Only compare makes sense for read-only files | verified fixed | a180e8a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T16:59:02Z | 2002-05-24T14:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaReplaceWithEditionAction.java | } catch(InterruptedException ex) {
} catch(CoreException ex) {
JavaPlugin.log(ex);
MessageDialog.openError(shell, errorTitle, errorMessage);
} finally {
if (buffer != null)
TextBuffer.release(buffer);
}
}
private JavaEditor getEditor(IFile file) {
IWorkbench workbench= JavaPlugin.getDef... |
17,177 | Bug 17177 Javadoc wizard doesn't remember checked options between 2 runs | Build 20020521 The Javadoc wizard doesn't remember that I checked 'Open generated index file in browser' between 2 runs. As a result, I cannot just press Finish, but I need to press Next twice, then check the option again, then press Finish. | verified fixed | 39d0fdf | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T17:34:14Z | 2002-05-23T10:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javadocexport/CreateJavadocActionDelegate.java | /*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
package org.eclipse.jdt.internal.ui.javadocexport;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IResource;
import org.eclipse.jface.action.IAc... |
17,177 | Bug 17177 Javadoc wizard doesn't remember checked options between 2 runs | Build 20020521 The Javadoc wizard doesn't remember that I checked 'Open generated index file in browser' between 2 runs. As a result, I cannot just press Finish, but I need to press Next twice, then check the option again, then press Finish. | verified fixed | 39d0fdf | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T17:34:14Z | 2002-05-23T10:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javadocexport/CreateJavadocActionDelegate.java | public void setActivePart(IAction action, IWorkbenchPart targetPart) {
}
/*
* @see IActionDelegate#run(IAction)
*/
public void run(IAction action) {
if (fCurrentSelection instanceof IStructuredSelection) {
IStructuredSelection structuredSelection= (IStructuredSelection) fCurrentSelection;
Iterator iter= ... |
17,177 | Bug 17177 Javadoc wizard doesn't remember checked options between 2 runs | Build 20020521 The Javadoc wizard doesn't remember that I checked 'Open generated index file in browser' between 2 runs. As a result, I cannot just press Finish, but I need to press Next twice, then check the option again, then press Finish. | verified fixed | 39d0fdf | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T17:34:14Z | 2002-05-23T10:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javadocexport/JavadocMemberContentProvider.java | /*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
package org.eclipse.jdt.internal.ui.javadocexport;
import java.util.ArrayList;
import org.eclipse.jface.viewers.ITreeContentProvider;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jdt.core.I... |
17,177 | Bug 17177 Javadoc wizard doesn't remember checked options between 2 runs | Build 20020521 The Javadoc wizard doesn't remember that I checked 'Open generated index file in browser' between 2 runs. As a result, I cannot just press Finish, but I need to press Next twice, then check the option again, then press Finish. | verified fixed | 39d0fdf | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T17:34:14Z | 2002-05-23T10:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javadocexport/JavadocMemberContentProvider.java | /*
* @see ITreeContentProvider#getChildren(Object)
*/
public Object[] getChildren(Object parentElement) {
return new Object[0];
}
/*
* @see ITreeContentProvider#getParent(Object)
*/
public Object getParent(Object element) {
if (element instanceof IPackageFragment)
return ((IPackageFragment) ele... |
17,177 | Bug 17177 Javadoc wizard doesn't remember checked options between 2 runs | Build 20020521 The Javadoc wizard doesn't remember that I checked 'Open generated index file in browser' between 2 runs. As a result, I cannot just press Finish, but I need to press Next twice, then check the option again, then press Finish. | verified fixed | 39d0fdf | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T17:34:14Z | 2002-05-23T10:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javadocexport/JavadocMemberContentProvider.java | }
} catch (JavaModelException e) {
}
return false;
}
/*
* @see IStructuredContentProvider#getElements(Object)
*/
public Object[] getElements(Object inputElement) {
try {
if (inputElement instanceof IPackageFragment) {
ICompilationUnit[] cu= ((IPackageFragment) inputElement).getCompilationUnits();
... |
17,177 | Bug 17177 Javadoc wizard doesn't remember checked options between 2 runs | Build 20020521 The Javadoc wizard doesn't remember that I checked 'Open generated index file in browser' between 2 runs. As a result, I cannot just press Finish, but I need to press Next twice, then check the option again, then press Finish. | verified fixed | 39d0fdf | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T17:34:14Z | 2002-05-23T10:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javadocexport/JavadocOptionsManager.java | /*
* (c) Copyright 2001 MyCorporation.
* All Rights Reserved.
*/
package org.eclipse.jdt.internal.ui.javadocexport;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.It... |
17,177 | Bug 17177 Javadoc wizard doesn't remember checked options between 2 runs | Build 20020521 The Javadoc wizard doesn't remember that I checked 'Open generated index file in browser' between 2 runs. As a result, I cannot just press Finish, but I need to press Next twice, then check the option again, then press Finish. | verified fixed | 39d0fdf | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T17:34:14Z | 2002-05-23T10:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javadocexport/JavadocOptionsManager.java | import org.eclipse.core.resources.IFile;
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.IAdaptable;
import org.eclipse.core.runtime.IPath;
impo... |
17,177 | Bug 17177 Javadoc wizard doesn't remember checked options between 2 runs | Build 20020521 The Javadoc wizard doesn't remember that I checked 'Open generated index file in browser' between 2 runs. As a result, I cannot just press Finish, but I need to press Next twice, then check the option again, then press Finish. | verified fixed | 39d0fdf | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T17:34:14Z | 2002-05-23T10:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javadocexport/JavadocOptionsManager.java | private IWorkspaceRoot fRoot;
private IJavaProject fProject;
private IFile fXmlfile;
private StatusInfo fWizardStatus;
private List fSourceElements;
private List fSelectedElements;
private String fAccess;
private String fDocletpath;
private String fDocletname;
private boolean fFromStandard;
private String... |
17,177 | Bug 17177 Javadoc wizard doesn't remember checked options between 2 runs | Build 20020521 The Javadoc wizard doesn't remember that I checked 'Open generated index file in browser' between 2 runs. As a result, I cannot just press Finish, but I need to press Next twice, then check the option again, then press Finish. | verified fixed | 39d0fdf | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T17:34:14Z | 2002-05-23T10:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javadocexport/JavadocOptionsManager.java | private boolean fNotree;
private boolean fNoindex;
private boolean fSplitindex;
private boolean fNonavbar;
private boolean fNodeprecated;
private boolean fNoDeprecatedlist;
private boolean fAuthor;
private boolean fVersion;
private boolean fUse;
private Map fLinks;
public final static String PRIVATE= "pri... |
17,177 | Bug 17177 Javadoc wizard doesn't remember checked options between 2 runs | Build 20020521 The Javadoc wizard doesn't remember that I checked 'Open generated index file in browser' between 2 runs. As a result, I cannot just press Finish, but I need to press Next twice, then check the option again, then press Finish. | verified fixed | 39d0fdf | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T17:34:14Z | 2002-05-23T10:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javadocexport/JavadocOptionsManager.java | public final static String CLASSPATH= "classpath";
public final static String DESTINATION= "destdir";
public final static String VISIBILITY= "access";
public final static String PACKAGENAMES= "packagenames";
public final static String EXTRAOPTIONS= "additionalparam";
public final static String JAVADOCCOMMAND=... |
17,177 | Bug 17177 Javadoc wizard doesn't remember checked options between 2 runs | Build 20020521 The Javadoc wizard doesn't remember that I checked 'Open generated index file in browser' between 2 runs. As a result, I cannot just press Finish, but I need to press Next twice, then check the option again, then press Finish. | verified fixed | 39d0fdf | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T17:34:14Z | 2002-05-23T10:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javadocexport/JavadocOptionsManager.java | if (element == null) {
fWizardStatus.setWarning(JavadocExportMessages.getString("JavadocOptionsManager.antfileincorrectCE.warning"));
loadStore(settings, currSelection);
} else
loadStore(element, settings);
} catch(CoreException e) {
JavaPlugin.log(e);
fWizardStatus.setWarning(JavadocExpo... |
17,177 | Bug 17177 Javadoc wizard doesn't remember checked options between 2 runs | Build 20020521 The Javadoc wizard doesn't remember that I checked 'Open generated index file in browser' between 2 runs. As a result, I cannot just press Finish, but I need to press Next twice, then check the option again, then press Finish. | verified fixed | 39d0fdf | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T17:34:14Z | 2002-05-23T10:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javadocexport/JavadocOptionsManager.java | fDocletpath= settings.get(DOCLETPATH);
fDocletname= settings.get(DOCLETNAME);
if (fDocletpath == null || fDocletname == null) {
fFromStandard= true;
fDocletpath= "";
fDocletname= "";
}
fTitle= settings.get(TITLE);
if(fTitle==null)
fTitle="";
fStylesheet= settings.get(STYLESHEETFILE);
... |
17,177 | Bug 17177 Javadoc wizard doesn't remember checked options between 2 runs | Build 20020521 The Javadoc wizard doesn't remember that I checked 'Open generated index file in browser' between 2 runs. As a result, I cannot just press Finish, but I need to press Next twice, then check the option again, then press Finish. | verified fixed | 39d0fdf | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T17:34:14Z | 2002-05-23T10:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javadocexport/JavadocOptionsManager.java | }else loadDefaults(sel);
}
private String getDefaultAntPath(IJavaProject project) {
if (project != null) {
IPath path = project.getProject().getLocation();
return path.append("javadoc.xml").toOSString();
} else
return "";
}
private String getDefaultDestination(IJavaProject project) {
if (proje... |
17,177 | Bug 17177 Javadoc wizard doesn't remember checked options between 2 runs | Build 20020521 The Javadoc wizard doesn't remember that I checked 'Open generated index file in browser' between 2 runs. As a result, I cannot just press Finish, but I need to press Next twice, then check the option again, then press Finish. | verified fixed | 39d0fdf | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T17:34:14Z | 2002-05-23T10:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javadocexport/JavadocOptionsManager.java | IDialogSettings iDialogSettings = projs[i];
String projectName = iDialogSettings.getName();
IProject project = fRoot.getProject(projectName);
if (project.exists()) {
IJavaProject javaProject = JavaCore.create(project);
if (!fLinks.containsKey(javaProject)) {
String hrefs = iDialogSetti... |
17,177 | Bug 17177 Javadoc wizard doesn't remember checked options between 2 runs | Build 20020521 The Javadoc wizard doesn't remember that I checked 'Open generated index file in browser' between 2 runs. As a result, I cannot just press Finish, but I need to press Next twice, then check the option again, then press Finish. | verified fixed | 39d0fdf | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T17:34:14Z | 2002-05-23T10:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javadocexport/JavadocOptionsManager.java | IProject iProject = projects[i];
IJavaProject javaProject = JavaCore.create(iProject);
if (!fLinks.containsKey(javaProject)) {
ProjectData data= new ProjectData(javaProject);
data.setDestination(getDefaultDestination(javaProject));
data.setAntpath(getDefaultAntPath(javaProject));
data.setlinks("")... |
17,177 | Bug 17177 Javadoc wizard doesn't remember checked options between 2 runs | Build 20020521 The Javadoc wizard doesn't remember that I checked 'Open generated index file in browser' between 2 runs. As a result, I cannot just press Finish, but I need to press Next twice, then check the option again, then press Finish. | verified fixed | 39d0fdf | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T17:34:14Z | 2002-05-23T10:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javadocexport/JavadocOptionsManager.java | fSplitindex= true;
fFromStandard= true;
loadLinksFromDialogSettings(null);
}
private void loadStore(Element element, IDialogSettings settings) {
fAccess= element.getAttribute(VISIBILITY);
if (!(fAccess.length() > 0))
fAccess= PRIVATE;
fSourcepath= element.getAttribute(SOURCEPATH);
String token... |
17,177 | Bug 17177 Javadoc wizard doesn't remember checked options between 2 runs | Build 20020521 The Javadoc wizard doesn't remember that I checked 'Open generated index file in browser' between 2 runs. As a result, I cannot just press Finish, but I need to press Next twice, then check the option again, then press Finish. | verified fixed | 39d0fdf | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T17:34:14Z | 2002-05-23T10:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javadocexport/JavadocOptionsManager.java | if (destination.equals("")) {
NodeList list= element.getChildNodes();
for (int i= 0; i < list.getLength(); i++) {
Node child= list.item(i);
if (child.getNodeName().equals("doclet")) {
fDocletpath= ((Element) child).getAttribute(PATH);
fDocletname= ((Element) child).getAttribute(NAME);
if ... |
17,177 | Bug 17177 Javadoc wizard doesn't remember checked options between 2 runs | Build 20020521 The Javadoc wizard doesn't remember that I checked 'Open generated index file in browser' between 2 runs. As a result, I cannot just press Finish, but I need to press Next twice, then check the option again, then press Finish. | verified fixed | 39d0fdf | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T17:34:14Z | 2002-05-23T10:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javadocexport/JavadocOptionsManager.java | }
}
ProjectData data= new ProjectData(fProject);
data.setAntpath(fXmlfile.getLocation().toOSString());
data.setlinks(buf.toString());
data.setDestination(destination);
fLinks.put(fProject, data);
}
loadLinksFromDialogSettings(settings);
fSelectedElements= new ArrayList();
if (fProject != null) ... |
17,177 | Bug 17177 Javadoc wizard doesn't remember checked options between 2 runs | Build 20020521 The Javadoc wizard doesn't remember that I checked 'Open generated index file in browser' between 2 runs. As a result, I cannot just press Finish, but I need to press Next twice, then check the option again, then press Finish. | verified fixed | 39d0fdf | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T17:34:14Z | 2002-05-23T10:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javadocexport/JavadocOptionsManager.java | if (re != null && re.exists()) {
IJavaElement el = JavaCore.createCompilationUnitFrom(re);
if (el != null) {
fSelectedElements.add(el);
}
}
} else {
IJavaElement el = JavaModelUtil.findTypeContainer(fProject, name);
if (el instanceof IPackageFragment) {
fSelect... |
17,177 | Bug 17177 Javadoc wizard doesn't remember checked options between 2 runs | Build 20020521 The Javadoc wizard doesn't remember that I checked 'Open generated index file in browser' between 2 runs. As a result, I cannot just press Finish, but I need to press Next twice, then check the option again, then press Finish. | verified fixed | 39d0fdf | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T17:34:14Z | 2002-05-23T10:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javadocexport/JavadocOptionsManager.java | fSplitindex= loadbutton(element.getAttribute(SPLITINDEX));
}
public StatusInfo getWizardStatus() {
return fWizardStatus;
}
public IJavaElement[] getSelectedElements() {
return (IJavaElement[]) fSelectedElements.toArray(new IJavaElement[fSelectedElements.size()]);
}
public IJavaElement[] getSourceElement... |
17,177 | Bug 17177 Javadoc wizard doesn't remember checked options between 2 runs | Build 20020521 The Javadoc wizard doesn't remember that I checked 'Open generated index file in browser' between 2 runs. As a result, I cannot just press Finish, but I need to press Next twice, then check the option again, then press Finish. | verified fixed | 39d0fdf | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T17:34:14Z | 2002-05-23T10:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javadocexport/JavadocOptionsManager.java | else return "";
}
public String getDocletPath() {
return fDocletpath;
}
public String getDocletName() {
return fDocletname;
}
public String getStyleSheet() {
return fStylesheet;
}
public String getOverview() {
return fOverview;
}
public String getAdditionalParams() {
return fAdditionalParams;
}
p... |
17,177 | Bug 17177 Javadoc wizard doesn't remember checked options between 2 runs | Build 20020521 The Javadoc wizard doesn't remember that I checked 'Open generated index file in browser' between 2 runs. As a result, I cannot just press Finish, but I need to press Next twice, then check the option again, then press Finish. | verified fixed | 39d0fdf | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T17:34:14Z | 2002-05-23T10:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javadocexport/JavadocOptionsManager.java | public String getTitle() {
return fTitle;
}
public String getLinks(IJavaProject project) {
ProjectData data= (ProjectData)fLinks.get(project);
if(data != null)
return data.getlinks();
else return "";
}
public Map getLinkMap() {
return fLinks;
}
public boolean getBoolean(String flag) {
if (fla... |
17,177 | Bug 17177 Javadoc wizard doesn't remember checked options between 2 runs | Build 20020521 The Javadoc wizard doesn't remember that I checked 'Open generated index file in browser' between 2 runs. As a result, I cannot just press Finish, but I need to press Next twice, then check the option again, then press Finish. | verified fixed | 39d0fdf | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T17:34:14Z | 2002-05-23T10:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javadocexport/JavadocOptionsManager.java | return fSplitindex;
else if (flag.equals(NONAVBAR))
return fNonavbar;
else
return false;
}
private boolean loadbutton(String value) {
if (value == null || value.equals(""))
return false;
else {
if (value.equals("true"))
return true;
else
return false;
}
}
public String[] createArg... |
17,177 | Bug 17177 Javadoc wizard doesn't remember checked options between 2 runs | Build 20020521 The Javadoc wizard doesn't remember that I checked 'Open generated index file in browser' between 2 runs. As a result, I cannot just press Finish, but I need to press Next twice, then check the option again, then press Finish. | verified fixed | 39d0fdf | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T17:34:14Z | 2002-05-23T10:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javadocexport/JavadocOptionsManager.java | String[] argsArray= tokens.getProgramArgumentsArray();
for (int i= 0; i < argsArray.length; i++) {
args.add(argsArray[i]);
}
}
args.add("-doclet");
args.add(fDocletname);
args.add("-docletpath");
args.add(fDocletpath);
}
args.add("-sourcepath");
args.add(fSourcepath);
args.add("-c... |
17,177 | Bug 17177 Javadoc wizard doesn't remember checked options between 2 runs | Build 20020521 The Javadoc wizard doesn't remember that I checked 'Open generated index file in browser' between 2 runs. As a result, I cannot just press Finish, but I need to press Next twice, then check the option again, then press Finish. | verified fixed | 39d0fdf | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T17:34:14Z | 2002-05-23T10:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javadocexport/JavadocOptionsManager.java | if (fNoDeprecatedlist)
args.add("-nodeprecatedlist");
if (fSplitindex)
args.add("-splitindex");
if(!fTitle.equals("")) {
args.add("-doctitle");
args.add(fTitle);
}
if (!fStylesheet.equals("")) {
args.add("-stylesheetfile");
args.add(fStylesheet);
}
if (!fAdditionalPa... |
17,177 | Bug 17177 Javadoc wizard doesn't remember checked options between 2 runs | Build 20020521 The Javadoc wizard doesn't remember that I checked 'Open generated index file in browser' between 2 runs. As a result, I cannot just press Finish, but I need to press Next twice, then check the option again, then press Finish. | verified fixed | 39d0fdf | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T17:34:14Z | 2002-05-23T10:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javadocexport/JavadocOptionsManager.java | args.add("-overview");
args.add(fOverview);
}
for (int i= 0; i < fSourceElements.size(); i++) {
IJavaElement curr= (IJavaElement) fSourceElements.get(i);
if (curr instanceof IPackageFragment) {
args.add(curr.getElementName());
} else if (curr instanceof ICompilationUnit) {
args.add(curr.getUnde... |
17,177 | Bug 17177 Javadoc wizard doesn't remember checked options between 2 runs | Build 20020521 The Javadoc wizard doesn't remember that I checked 'Open generated index file in browser' between 2 runs. As a result, I cannot just press Finish, but I need to press Next twice, then check the option again, then press Finish. | verified fixed | 39d0fdf | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T17:34:14Z | 2002-05-23T10:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javadocexport/JavadocOptionsManager.java | } catch (CoreException e) {
JavaPlugin.log(e);
} finally {
if (objectStreamOutput != null) {
try { objectStreamOutput.close(); } catch (IOException e) {}
}
}
}
public IDialogSettings createDialogSettings() {
IDialogSettings settings= new DialogSettings("javadoc");
settings.put(FROMSTANDARD, fFro... |
17,177 | Bug 17177 Javadoc wizard doesn't remember checked options between 2 runs | Build 20020521 The Javadoc wizard doesn't remember that I checked 'Open generated index file in browser' between 2 runs. As a result, I cannot just press Finish, but I need to press Next twice, then check the option again, then press Finish. | verified fixed | 39d0fdf | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T17:34:14Z | 2002-05-23T10:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javadocexport/JavadocOptionsManager.java | settings.put(STYLESHEETFILE, fStylesheet);
if(!fTitle.equals(""))
settings.put(TITLE, fTitle);
IDialogSettings links = new DialogSettings("projects");
Set keys = fLinks.keySet();
List contains = new ArrayList();
IProject[] projects = fRoot.getProjects();
for (int i = 0; i < projects.length; i+... |
17,177 | Bug 17177 Javadoc wizard doesn't remember checked options between 2 runs | Build 20020521 The Javadoc wizard doesn't remember that I checked 'Open generated index file in browser' between 2 runs. As a result, I cannot just press Finish, but I need to press Next twice, then check the option again, then press Finish. | verified fixed | 39d0fdf | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-29T17:34:14Z | 2002-05-23T10:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javadocexport/JavadocOptionsManager.java | return settings;
}
public void setAccess(String access) {
this.fAccess= access;
}
public void setDestination(IJavaProject project, String destination) {
ProjectData data= (ProjectData)fLinks.get(project);
data.setDestination(destination);
}
public void setDocletPath(String docletpath) {
this.fDocletpath= ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.