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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
23,933 | Bug 23933 Jar Selection tree nodes NOT sorted [build path] | Open Project Properties dialog, select the Java Build Path node, click "Add JARs...", select a dir node. My nodes come up sorted with "a" after "Z". Items are sorted within their case: A, B, C, a, b, c instead of A, a, B, b, C, c or a, A, b, B, c, C. Gary | verified fixed | 2acfd57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-01T17:23:28Z | 2002-09-20T19:26:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/LibrariesWorkbookPage.java | public Control getControl(Composite parent) {
PixelConverter converter= new PixelConverter(parent);
Composite composite= new Composite(parent, SWT.NONE);
LayoutUtil.doDefaultLayout(composite, new DialogField[] { fLibrariesList }, true, SWT.DEFAULT, SWT.DEFAULT);
LayoutUtil.setHorizontalGrabbing(fLibrarie... |
23,933 | Bug 23933 Jar Selection tree nodes NOT sorted [build path] | Open Project Properties dialog, select the Java Build Path node, click "Add JARs...", select a dir node. My nodes come up sorted with "a" after "Z". Items are sorted within their case: A, B, C, a, b, c instead of A, a, B, b, C, c or a, A, b, B, c, C. Gary | verified fixed | 2acfd57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-01T17:23:28Z | 2002-09-20T19:26:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/LibrariesWorkbookPage.java | public void customButtonPressed(DialogField field, int index) {
libaryPageCustomButtonPressed(field, index);
}
public void selectionChanged(DialogField field) {
libaryPageSelectionChanged(field);
}
public void dialogFieldChanged(DialogField field) {
libaryPageDialogFieldChanged(field);
}
... |
23,933 | Bug 23933 Jar Selection tree nodes NOT sorted [build path] | Open Project Properties dialog, select the Java Build Path node, click "Add JARs...", select a dir node. My nodes come up sorted with "a" after "Z". Items are sorted within their case: A, B, C, a, b, c instead of A, a, B, b, C, c or a, A, b, B, c, C. Gary | verified fixed | 2acfd57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-01T17:23:28Z | 2002-09-20T19:26:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/LibrariesWorkbookPage.java | libentries= openExtJarFileDialog(null);
break;
case IDX_ADDVAR:
libentries= openVariableSelectionDialog(null);
break;
case IDX_ADDADV:
AdvancedDialog advDialog= new AdvancedDialog(getShell());
if (advDialog.open() == AdvancedDialog.OK) {
libentries= advDialog.getResult();
}
break;
case ... |
23,933 | Bug 23933 Jar Selection tree nodes NOT sorted [build path] | Open Project Properties dialog, select the Java Build Path node, click "Add JARs...", select a dir node. My nodes come up sorted with "a" after "Z". Items are sorted within their case: A, B, C, a, b, c instead of A, a, B, b, C, c or a, A, b, B, c, C. Gary | verified fixed | 2acfd57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-01T17:23:28Z | 2002-09-20T19:26:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/LibrariesWorkbookPage.java | for (int i= 0; i < nElementsChosen; i++) {
CPListElement curr= libentries[i];
if (!cplist.contains(curr) && !elementsToAdd.contains(curr)) {
elementsToAdd.add(curr);
addAttachmentsFromExistingLibs(curr);
}
}
fLibrariesList.addElements(elementsToAdd);
fLibrariesList.postSetSelection(new St... |
23,933 | Bug 23933 Jar Selection tree nodes NOT sorted [build path] | Open Project Properties dialog, select the Java Build Path node, click "Add JARs...", select a dir node. My nodes come up sorted with "a" after "Z". Items are sorted within their case: A, B, C, a, b, c instead of A, a, B, b, C, c or a, A, b, B, c, C. Gary | verified fixed | 2acfd57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-01T17:23:28Z | 2002-09-20T19:26:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/LibrariesWorkbookPage.java | if (resource == null) {
res= openExtJarFileDialog(elem);
} else if (resource.getType() == IResource.FOLDER) {
if (resource.exists()) {
res= openClassFolderDialog(elem);
} else {
res= openNewClassFolderDialog(elem);
}
} else if (resource.getType() == IResource.FILE) {
res= openJarFil... |
23,933 | Bug 23933 Jar Selection tree nodes NOT sorted [build path] | Open Project Properties dialog, select the Java Build Path node, click "Add JARs...", select a dir node. My nodes come up sorted with "a" after "Z". Items are sorted within their case: A, B, C, a, b, c instead of A, a, B, b, C, c or a, A, b, B, c, C. Gary | verified fixed | 2acfd57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-01T17:23:28Z | 2002-09-20T19:26:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/LibrariesWorkbookPage.java | updateClasspathList();
}
}
private boolean canDoSourceAttachment(List selElements) {
if (selElements != null && selElements.size() == 1) {
CPListElement elem= (CPListElement) selElements.get(0);
if (elem.getEntryKind() == IClasspathEntry.CPE_LIBRARY) {
return (!(elem.getResource() instanceof IFolder)... |
23,933 | Bug 23933 Jar Selection tree nodes NOT sorted [build path] | Open Project Properties dialog, select the Java Build Path node, click "Add JARs...", select a dir node. My nodes come up sorted with "a" after "Z". Items are sorted within their case: A, B, C, a, b, c instead of A, a, B, b, C, c or a, A, b, B, c, C. Gary | verified fixed | 2acfd57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-01T17:23:28Z | 2002-09-20T19:26:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/LibrariesWorkbookPage.java | }
}
}
for (int i= 0; i < projelements.size(); i++) {
cpelements.add(projelements.get(i));
}
if (remove || (projelements.size() > 0)) {
fClassPathList.setElements(cpelements);
}
}
private CPListElement[] openNewClassFolderDialog(CPListElement existing) {
String title= (existing == null) ? Ne... |
23,933 | Bug 23933 Jar Selection tree nodes NOT sorted [build path] | Open Project Properties dialog, select the Java Build Path node, click "Add JARs...", select a dir node. My nodes come up sorted with "a" after "Z". Items are sorted within their case: A, B, C, a, b, c instead of A, a, B, b, C, c or a, A, b, B, c, C. Gary | verified fixed | 2acfd57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-01T17:23:28Z | 2002-09-20T19:26:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/LibrariesWorkbookPage.java | acceptedClasses= new Class[] { IProject.class, IFolder.class };
ViewerFilter filter= new TypedViewerFilter(acceptedClasses, getUsedContainers(existing));
ILabelProvider lp= new WorkbenchLabelProvider();
ITreeContentProvider cp= new WorkbenchContentProvider();
String title= (existing == null) ? NewWizardMes... |
23,933 | Bug 23933 Jar Selection tree nodes NOT sorted [build path] | Open Project Properties dialog, select the Java Build Path node, click "Add JARs...", select a dir node. My nodes come up sorted with "a" after "Z". Items are sorted within their case: A, B, C, a, b, c instead of A, a, B, b, C, c or a, A, b, B, c, C. Gary | verified fixed | 2acfd57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-01T17:23:28Z | 2002-09-20T19:26:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/LibrariesWorkbookPage.java | }
private CPListElement[] openJarFileDialog(CPListElement existing) {
Class[] acceptedClasses= new Class[] { IFile.class };
TypedElementSelectionValidator validator= new TypedElementSelectionValidator(acceptedClasses, existing == null);
ViewerFilter filter= new ArchiveFileFilter(getUsedJARFiles(existing));
... |
23,933 | Bug 23933 Jar Selection tree nodes NOT sorted [build path] | Open Project Properties dialog, select the Java Build Path node, click "Add JARs...", select a dir node. My nodes come up sorted with "a" after "Z". Items are sorted within their case: A, B, C, a, b, c instead of A, a, B, b, C, c or a, A, b, B, c, C. Gary | verified fixed | 2acfd57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-01T17:23:28Z | 2002-09-20T19:26:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/LibrariesWorkbookPage.java | }
return null;
}
private IContainer[] getUsedContainers(CPListElement existing) {
ArrayList res= new ArrayList();
if (fCurrJProject.exists()) {
try {
IPath outputLocation= fCurrJProject.getOutputLocation();
if (outputLocation != null) {
IResource resource= fWorkspaceRoot.findMember(outputLocat... |
23,933 | Bug 23933 Jar Selection tree nodes NOT sorted [build path] | Open Project Properties dialog, select the Java Build Path node, click "Add JARs...", select a dir node. My nodes come up sorted with "a" after "Z". Items are sorted within their case: A, B, C, a, b, c instead of A, a, B, b, C, c or a, A, b, B, c, C. Gary | verified fixed | 2acfd57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-01T17:23:28Z | 2002-09-20T19:26:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/LibrariesWorkbookPage.java | }
return (IContainer[]) res.toArray(new IContainer[res.size()]);
}
private IFile[] getUsedJARFiles(CPListElement existing) {
List res= new ArrayList();
List cplist= fLibrariesList.getElements();
for (int i= 0; i < cplist.size(); i++) {
CPListElement elem= (CPListElement)cplist.get(i);
if (elem.getEntr... |
23,933 | Bug 23933 Jar Selection tree nodes NOT sorted [build path] | Open Project Properties dialog, select the Java Build Path node, click "Add JARs...", select a dir node. My nodes come up sorted with "a" after "Z". Items are sorted within their case: A, B, C, a, b, c instead of A, a, B, b, C, c or a, A, b, B, c, C. Gary | verified fixed | 2acfd57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-01T17:23:28Z | 2002-09-20T19:26:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/LibrariesWorkbookPage.java | lastUsedPath= "";
}
}
String title= (existing == null) ? NewWizardMessages.getString("LibrariesWorkbookPage.ExtJARArchiveDialog.new.title") : NewWizardMessages.getString("LibrariesWorkbookPage.ExtJARArchiveDialog.edit.title");
FileDialog dialog= new FileDialog(getShell(), existing == null ? SWT.MULTI : SW... |
23,933 | Bug 23933 Jar Selection tree nodes NOT sorted [build path] | Open Project Properties dialog, select the Java Build Path node, click "Add JARs...", select a dir node. My nodes come up sorted with "a" after "Z". Items are sorted within their case: A, B, C, a, b, c instead of A, a, B, b, C, c or a, A, b, B, c, C. Gary | verified fixed | 2acfd57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-01T17:23:28Z | 2002-09-20T19:26:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/LibrariesWorkbookPage.java | private CPListElement[] openVariableSelectionDialog(CPListElement existing) {
if (existing == null) {
NewVariableEntryDialog dialog= new NewVariableEntryDialog(getShell());
dialog.setTitle(NewWizardMessages.getString("LibrariesWorkbookPage.VariableSelectionDialog.new.title"));
if (dialog.open() == NewVariabl... |
23,933 | Bug 23933 Jar Selection tree nodes NOT sorted [build path] | Open Project Properties dialog, select the Java Build Path node, click "Add JARs...", select a dir node. My nodes come up sorted with "a" after "Z". Items are sorted within their case: A, B, C, a, b, c instead of A, a, B, b, C, c or a, A, b, B, c, C. Gary | verified fixed | 2acfd57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-01T17:23:28Z | 2002-09-20T19:26:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/LibrariesWorkbookPage.java | dialog.setTitle(NewWizardMessages.getString("LibrariesWorkbookPage.VariableSelectionDialog.edit.title"));
if (dialog.open() == EditVariableEntryDialog.OK) {
CPListElement elem= new CPListElement(fCurrJProject, IClasspathEntry.CPE_VARIABLE, dialog.getPath(), null);
return new CPListElement[] { elem };
}
... |
23,933 | Bug 23933 Jar Selection tree nodes NOT sorted [build path] | Open Project Properties dialog, select the Java Build Path node, click "Add JARs...", select a dir node. My nodes come up sorted with "a" after "Z". Items are sorted within their case: A, B, C, a, b, c instead of A, a, B, b, C, c or a, A, b, B, c, C. Gary | verified fixed | 2acfd57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-01T17:23:28Z | 2002-09-20T19:26:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/LibrariesWorkbookPage.java | if (elem.getEntryKind() == IClasspathEntry.CPE_CONTAINER) {
return;
}
try {
IJavaModel jmodel= fCurrJProject.getJavaModel();
IJavaProject[] jprojects= jmodel.getJavaProjects();
for (int i= 0; i < jprojects.length; i++) {
IJavaProject curr= jprojects[i];
if (!curr.equals(fCurrJProject)) {
... |
23,933 | Bug 23933 Jar Selection tree nodes NOT sorted [build path] | Open Project Properties dialog, select the Java Build Path node, click "Add JARs...", select a dir node. My nodes come up sorted with "a" after "Z". Items are sorted within their case: A, B, C, a, b, c instead of A, a, B, b, C, c or a, A, b, B, c, C. Gary | verified fixed | 2acfd57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-01T17:23:28Z | 2002-09-20T19:26:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/LibrariesWorkbookPage.java | private static final String DIALOGSTORE_ADV_SECTION= "LibrariesWorkbookPage.advanced";
private static final String DIALOGSTORE_SELECTED= "selected";
private static final String DIALOGSTORE_CONTAINER_IDX= "containerindex";
private DialogField fLabelField;
private SelectionButtonDialogField fCreateFolderField;... |
23,933 | Bug 23933 Jar Selection tree nodes NOT sorted [build path] | Open Project Properties dialog, select the Java Build Path node, click "Add JARs...", select a dir node. My nodes come up sorted with "a" after "Z". Items are sorted within their case: A, B, C, a, b, c instead of A, a, B, b, C, c or a, A, b, B, c, C. Gary | verified fixed | 2acfd57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-01T17:23:28Z | 2002-09-20T19:26:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/LibrariesWorkbookPage.java | fAddFolderField= new SelectionButtonDialogField(SWT.RADIO);
fAddFolderField.setLabelText(NewWizardMessages.getString("LibrariesWorkbookPage.AdvancedDialog.addfolder"));
fAddContainerField= new SelectionButtonDialogField(SWT.RADIO);
fAddContainerField.setLabelText(NewWizardMessages.getString("LibrariesWorkbook... |
23,933 | Bug 23933 Jar Selection tree nodes NOT sorted [build path] | Open Project Properties dialog, select the Java Build Path node, click "Add JARs...", select a dir node. My nodes come up sorted with "a" after "Z". Items are sorted within their case: A, B, C, a, b, c instead of A, a, B, b, C, c or a, A, b, B, c, C. Gary | verified fixed | 2acfd57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-01T17:23:28Z | 2002-09-20T19:26:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/LibrariesWorkbookPage.java | initializeDialogUnits(parent);
Composite composite= (Composite) super.createDialogArea(parent);
Composite inner= new Composite(composite, SWT.NONE);
GridLayout layout= new GridLayout();
layout.marginHeight= 0;
layout.marginWidth= 0;
inner.setLayout(layout);
fLabelField.doFillIntoGrid(inner,... |
23,933 | Bug 23933 Jar Selection tree nodes NOT sorted [build path] | Open Project Properties dialog, select the Java Build Path node, click "Add JARs...", select a dir node. My nodes come up sorted with "a" after "Z". Items are sorted within their case: A, B, C, a, b, c instead of A, a, B, b, C, c or a, A, b, B, c, C. Gary | verified fixed | 2acfd57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-01T17:23:28Z | 2002-09-20T19:26:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/LibrariesWorkbookPage.java | } else if (fAddFolderField.isSelected()) {
fResult= openClassFolderDialog(null);
fAdvSettings.put(DIALOGSTORE_SELECTED, 1);
} else if (fAddContainerField.isSelected()) {
String selected= fCombo.getText();
for (int i = 0; i < fDescriptors.length; i++) {
if (fDescriptors[i].getName().equals(select... |
23,933 | Bug 23933 Jar Selection tree nodes NOT sorted [build path] | Open Project Properties dialog, select the Java Build Path node, click "Add JARs...", select a dir node. My nodes come up sorted with "a" after "Z". Items are sorted within their case: A, B, C, a, b, c instead of A, a, B, b, C, c or a, A, b, B, c, C. Gary | verified fixed | 2acfd57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-01T17:23:28Z | 2002-09-20T19:26:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/LibrariesWorkbookPage.java | private SourceAttachmentBlock fSourceAttachmentBlock;
public SourceAttachmentDialog(Shell parent, IWorkspaceRoot root, IClasspathEntry entry) {
super(parent);
setTitle(NewWizardMessages.getFormattedString("LibrariesWorkbookPage.SourceAttachmentDialog.title", entry.getPath().toString()));
fSourceAttachm... |
23,933 | Bug 23933 Jar Selection tree nodes NOT sorted [build path] | Open Project Properties dialog, select the Java Build Path node, click "Add JARs...", select a dir node. My nodes come up sorted with "a" after "Z". Items are sorted within their case: A, B, C, a, b, c instead of A, a, B, b, C, c or a, A, b, B, c, C. Gary | verified fixed | 2acfd57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-01T17:23:28Z | 2002-09-20T19:26:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/LibrariesWorkbookPage.java | public IPath getSourceAttachmentPath() {
return fSourceAttachmentBlock.getSourceAttachmentPath();
}
public IPath getSourceAttachmentRootPath() {
return fSourceAttachmentBlock.getSourceAttachmentRootPath();
}
}
/*
* @see BuildPathBasePage#getSelection
*/
public List getSelection() {
return... |
23,933 | Bug 23933 Jar Selection tree nodes NOT sorted [build path] | Open Project Properties dialog, select the Java Build Path node, click "Add JARs...", select a dir node. My nodes come up sorted with "a" after "Z". Items are sorted within their case: A, B, C, a, b, c instead of A, a, B, b, C, c or a, A, b, B, c, C. Gary | verified fixed | 2acfd57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-01T17:23:28Z | 2002-09-20T19:26:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SourceContainerWorkbookPage.java | /*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
package org.eclipse.jdt.internal.ui.wizards.buildpaths;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IFolder;
import org.eclipse.core.resources.IProject;
import org... |
23,933 | Bug 23933 Jar Selection tree nodes NOT sorted [build path] | Open Project Properties dialog, select the Java Build Path node, click "Add JARs...", select a dir node. My nodes come up sorted with "a" after "Z". Items are sorted within their case: A, B, C, a, b, c instead of A, a, B, b, C, c or a, A, b, B, c, C. Gary | verified fixed | 2acfd57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-01T17:23:28Z | 2002-09-20T19:26:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SourceContainerWorkbookPage.java | import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.util.Assert;
impo... |
23,933 | Bug 23933 Jar Selection tree nodes NOT sorted [build path] | Open Project Properties dialog, select the Java Build Path node, click "Add JARs...", select a dir node. My nodes come up sorted with "a" after "Z". Items are sorted within their case: A, B, C, a, b, c instead of A, a, B, b, C, c or a, A, b, B, c, C. Gary | verified fixed | 2acfd57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-01T17:23:28Z | 2002-09-20T19:26:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SourceContainerWorkbookPage.java | private ListDialogField fClassPathList;
private IJavaProject fCurrJProject;
private IPath fProjPath;
private Control fSWTControl;
private IWorkspaceRoot fWorkspaceRoot;
private SelectionButtonDialogField fProjectRadioButton;
private SelectionButtonDialogField fFolderRadioButton;
private ListDialogField fFo... |
23,933 | Bug 23933 Jar Selection tree nodes NOT sorted [build path] | Open Project Properties dialog, select the Java Build Path node, click "Add JARs...", select a dir node. My nodes come up sorted with "a" after "Z". Items are sorted within their case: A, B, C, a, b, c instead of A, a, B, b, C, c or a, A, b, B, c, C. Gary | verified fixed | 2acfd57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-01T17:23:28Z | 2002-09-20T19:26:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SourceContainerWorkbookPage.java | fSWTControl= null;
SourceContainerAdapter adapter= new SourceContainerAdapter();
fProjectRadioButton= new SelectionButtonDialogField(SWT.RADIO);
fProjectRadioButton.setDialogFieldListener(adapter);
fProjectRadioButton.setLabelText(NewWizardMessages.getString("SourceContainerWorkbookPage.rb1.label")); ... |
23,933 | Bug 23933 Jar Selection tree nodes NOT sorted [build path] | Open Project Properties dialog, select the Java Build Path node, click "Add JARs...", select a dir node. My nodes come up sorted with "a" after "Z". Items are sorted within their case: A, B, C, a, b, c instead of A, a, B, b, C, c or a, A, b, B, c, C. Gary | verified fixed | 2acfd57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-01T17:23:28Z | 2002-09-20T19:26:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SourceContainerWorkbookPage.java | fFoldersList.setViewerSorter(new CPListElementSorter());
fFolderRadioButton.setSelection(true);
fProjectRadioButton.setSelection(false);
fFolderRadioButton.attachDialogField(fFoldersList);
}
public void init(IJavaProject jproject) {
fCurrJProject= jproject;
fProjPath= fCurrJProject.getProject().getFul... |
23,933 | Bug 23933 Jar Selection tree nodes NOT sorted [build path] | Open Project Properties dialog, select the Java Build Path node, click "Add JARs...", select a dir node. My nodes come up sorted with "a" after "Z". Items are sorted within their case: A, B, C, a, b, c instead of A, a, B, b, C, c or a, A, b, B, c, C. Gary | verified fixed | 2acfd57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-01T17:23:28Z | 2002-09-20T19:26:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SourceContainerWorkbookPage.java | }
}
fFoldersList.setElements(srcelements);
fFolderRadioButton.setSelection(!fIsProjSelected);
fProjectRadioButton.setSelection(fIsProjSelected);
}
public Control getControl(Composite parent) {
PixelConverter converter= new PixelConverter(parent);
Composite composite= new Composite(parent, SW... |
23,933 | Bug 23933 Jar Selection tree nodes NOT sorted [build path] | Open Project Properties dialog, select the Java Build Path node, click "Add JARs...", select a dir node. My nodes come up sorted with "a" after "Z". Items are sorted within their case: A, B, C, a, b, c instead of A, a, B, b, C, c or a, A, b, B, c, C. Gary | verified fixed | 2acfd57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-01T17:23:28Z | 2002-09-20T19:26:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SourceContainerWorkbookPage.java | gd= new GridData(GridData.VERTICAL_ALIGN_FILL + GridData.HORIZONTAL_ALIGN_FILL);
control.setLayoutData(gd);
int buttonBarWidth= converter.convertWidthInCharsToPixels(24);
fFoldersList.setButtonsMinWidth(buttonBarWidth);
fSWTControl= composite;
return composite;
}
private Shell getShell() {
if (f... |
23,933 | Bug 23933 Jar Selection tree nodes NOT sorted [build path] | Open Project Properties dialog, select the Java Build Path node, click "Add JARs...", select a dir node. My nodes come up sorted with "a" after "Z". Items are sorted within their case: A, B, C, a, b, c instead of A, a, B, b, C, c or a, A, b, B, c, C. Gary | verified fixed | 2acfd57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-01T17:23:28Z | 2002-09-20T19:26:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SourceContainerWorkbookPage.java | public void dialogFieldChanged(DialogField field) {
sourcePageDialogFieldChanged(field);
}
}
private void sourcePageCustomButtonPressed(DialogField field, int index) {
if (field == fFoldersList) {
List elementsToAdd= new ArrayList(10);
switch (index) {
case IDX_ADDNEW:
CPListElement srcentry= o... |
23,933 | Bug 23933 Jar Selection tree nodes NOT sorted [build path] | Open Project Properties dialog, select the Java Build Path node, click "Add JARs...", select a dir node. My nodes come up sorted with "a" after "Z". Items are sorted within their case: A, B, C, a, b, c instead of A, a, B, b, C, c or a, A, b, B, c, C. Gary | verified fixed | 2acfd57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-01T17:23:28Z | 2002-09-20T19:26:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SourceContainerWorkbookPage.java | fFoldersList.postSetSelection(new StructuredSelection(elementsToAdd));
if (fFoldersList.getSize() == elementsToAdd.size()) {
askForChangingBuildPathDialog();
}
}
}
}
private void editEntry() {
List selElements= fFoldersList.getSelectedElements();
if (selElements.size() != 1) {
return;
... |
23,933 | Bug 23933 Jar Selection tree nodes NOT sorted [build path] | Open Project Properties dialog, select the Java Build Path node, click "Add JARs...", select a dir node. My nodes come up sorted with "a" after "Z". Items are sorted within their case: A, B, C, a, b, c instead of A, a, B, b, C, c or a, A, b, B, c, C. Gary | verified fixed | 2acfd57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-01T17:23:28Z | 2002-09-20T19:26:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SourceContainerWorkbookPage.java | }
private void sourcePageSelectionChanged(DialogField field) {
List selected= fFoldersList.getSelectedElements();
fFoldersList.enableButton(IDX_EDIT, selected.size() == 1);
}
private void sourcePageDialogFieldChanged(DialogField field) {
if (fCurrJProject == null) {
return;
}
if (field == fFo... |
23,933 | Bug 23933 Jar Selection tree nodes NOT sorted [build path] | Open Project Properties dialog, select the Java Build Path node, click "Add JARs...", select a dir node. My nodes come up sorted with "a" after "Z". Items are sorted within their case: A, B, C, a, b, c instead of A, a, B, b, C, c or a, A, b, B, c, C. Gary | verified fixed | 2acfd57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-01T17:23:28Z | 2002-09-20T19:26:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SourceContainerWorkbookPage.java | private void updateClasspathList() {
List cpelements= fClassPathList.getElements();
List srcelements;
if (fIsProjSelected) {
srcelements= new ArrayList(1);
if (fProjectCPEntry == null) {
fProjectCPEntry= newCPSourceElement(fCurrJProject.getProject());
}
srcelements.add(fProjectCPEntry);
... |
23,933 | Bug 23933 Jar Selection tree nodes NOT sorted [build path] | Open Project Properties dialog, select the Java Build Path node, click "Add JARs...", select a dir node. My nodes come up sorted with "a" after "Z". Items are sorted within their case: A, B, C, a, b, c instead of A, a, B, b, C, c or a, A, b, B, c, C. Gary | verified fixed | 2acfd57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-01T17:23:28Z | 2002-09-20T19:26:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SourceContainerWorkbookPage.java | }
}
if (!srcelements.isEmpty()) {
int insertIndex= (lastSourceFolder == null) ? 0 : cpelements.indexOf(lastSourceFolder) + 1;
cpelements.addAll(insertIndex, srcelements);
changeDone= true;
}
if (changeDone) {
fClassPathList.setElements(cpelements);
}
}
private CPListElement openNewSourceConta... |
23,933 | Bug 23933 Jar Selection tree nodes NOT sorted [build path] | Open Project Properties dialog, select the Java Build Path node, click "Add JARs...", select a dir node. My nodes come up sorted with "a" after "Z". Items are sorted within their case: A, B, C, a, b, c instead of A, a, B, b, C, c or a, A, b, B, c, C. Gary | verified fixed | 2acfd57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-01T17:23:28Z | 2002-09-20T19:26:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SourceContainerWorkbookPage.java | String outputFolderName= NewJavaProjectPreferencePage.getOutputLocationName();
IPath newPath= outputFolder.append(outputFolderName);
String title= NewWizardMessages.getString("SourceContainerWorkbookPage.ChangeOutputLocationDialog.title");
String message= NewWizardMessages.getFormattedString("SourceContainerW... |
23,933 | Bug 23933 Jar Selection tree nodes NOT sorted [build path] | Open Project Properties dialog, select the Java Build Path node, click "Add JARs...", select a dir node. My nodes come up sorted with "a" after "Z". Items are sorted within their case: A, B, C, a, b, c instead of A, a, B, b, C, c or a, A, b, B, c, C. Gary | verified fixed | 2acfd57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-01T17:23:28Z | 2002-09-20T19:26:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SourceContainerWorkbookPage.java | dialog.setInitialSelection(fCurrJProject.getProject());
} else {
dialog.setInitialSelection(existing.getResource());
}
if (dialog.open() == ElementTreeSelectionDialog.OK) {
Object[] elements= dialog.getResult();
CPListElement[] res= new CPListElement[elements.length];
for (int i= 0; i < res.length; ... |
23,933 | Bug 23933 Jar Selection tree nodes NOT sorted [build path] | Open Project Properties dialog, select the Java Build Path node, click "Add JARs...", select a dir node. My nodes come up sorted with "a" after "Z". Items are sorted within their case: A, B, C, a, b, c instead of A, a, B, b, C, c or a, A, b, B, c, C. Gary | verified fixed | 2acfd57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-01T17:23:28Z | 2002-09-20T19:26:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SourceContainerWorkbookPage.java | private CPListElement newCPSourceElement(IResource res) {
Assert.isNotNull(res);
return new CPListElement(fCurrJProject, IClasspathEntry.CPE_SOURCE, res.getFullPath(), res);
}
/*
* @see BuildPathBasePage#getSelection
*/
public List getSelection() {
if (fIsProjSelected) {
ArrayList list= new ArrayList(... |
24,271 | Bug 24271 Source Folders: Sort Java Packages and Simple Folders Together | In Eclipse 1.0, packages and simple folders were not sorted together within the Project (as the source folder). Packages were (sorted) and placed first, followed by simple folders (that were also sorted). In Eclipse 2.0, the packages and simple folders are sorted together within the Project (as the source folder). Unfo... | resolved fixed | 86b4eb8 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-04T09:36:21Z | 2002-10-01T16:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaElementSorter.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 v1.0
* which accompanie... |
24,271 | Bug 24271 Source Folders: Sort Java Packages and Simple Folders Together | In Eclipse 1.0, packages and simple folders were not sorted together within the Project (as the source folder). Packages were (sorted) and placed first, followed by simple folders (that were also sorted). In Eclipse 2.0, the packages and simple folders are sorted together within the Project (as the source folder). Unfo... | resolved fixed | 86b4eb8 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-04T09:36:21Z | 2002-10-01T16:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaElementSorter.java | import org.eclipse.core.resources.IStorage;
import org.eclipse.core.runtime.IPath;
import org.eclipse.jface.viewers.ContentViewer;
import org.eclipse.jface.viewers.IBaseLabelProvider;
import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jface.viewers.ViewerSorter;... |
24,271 | Bug 24271 Source Folders: Sort Java Packages and Simple Folders Together | In Eclipse 1.0, packages and simple folders were not sorted together within the Project (as the source folder). Packages were (sorted) and placed first, followed by simple folders (that were also sorted). In Eclipse 2.0, the packages and simple folders are sorted together within the Project (as the source folder). Unfo... | resolved fixed | 86b4eb8 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-04T09:36:21Z | 2002-10-01T16:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaElementSorter.java | private static final int JAVAPROJECTS= 1;
private static final int PACKAGEFRAGMENTROOTS= 2;
private static final int PACKAGEFRAGMENT= 3;
private static final int RESOURCEPACKAGES= 6;
private static final int COMPILATIONUNITS= 4;
private static final int CLASSFILES= 5;
private static final int RESOURCEFOLDERS= 7... |
24,271 | Bug 24271 Source Folders: Sort Java Packages and Simple Folders Together | In Eclipse 1.0, packages and simple folders were not sorted together within the Project (as the source folder). Packages were (sorted) and placed first, followed by simple folders (that were also sorted). In Eclipse 2.0, the packages and simple folders are sorted together within the Project (as the source folder). Unfo... | resolved fixed | 86b4eb8 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-04T09:36:21Z | 2002-10-01T16:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaElementSorter.java | }
/**
* @deprecated Bug 22518. Method never used: does not override ViewerSorter#isSorterProperty(Object, String).
* Method could be removed, but kept for API compatibility.
*/
public boolean isSorterProperty(Object element, Object property) {
return true;
}
/*
* @see ViewerSorter#category
*/
public... |
24,271 | Bug 24271 Source Folders: Sort Java Packages and Simple Folders Together | In Eclipse 1.0, packages and simple folders were not sorted together within the Project (as the source folder). Packages were (sorted) and placed first, followed by simple folders (that were also sorted). In Eclipse 2.0, the packages and simple folders are sorted together within the Project (as the source folder). Unfo... | resolved fixed | 86b4eb8 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-04T09:36:21Z | 2002-10-01T16:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaElementSorter.java | int flags= ((IInitializer) je).getFlags();
return MEMBERSOFFSET + MembersOrderPreferencePage.getInitOffset(Flags.isStatic(flags));
}
case IJavaElement.TYPE :
return MEMBERSOFFSET + MembersOrderPreferencePage.getTypeOffset();
case IJavaElement.PACKAGE_DECLARATION:
return PACKAGE_DECL;
... |
24,271 | Bug 24271 Source Folders: Sort Java Packages and Simple Folders Together | In Eclipse 1.0, packages and simple folders were not sorted together within the Project (as the source folder). Packages were (sorted) and placed first, followed by simple folders (that were also sorted). In Eclipse 2.0, the packages and simple folders are sorted together within the Project (as the source folder). Unfo... | resolved fixed | 86b4eb8 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-04T09:36:21Z | 2002-10-01T16:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaElementSorter.java | JavaPlugin.log(e);
}
return JAVAELEMENTS;
} else if (element instanceof IFile) {
return RESOURCES;
} else if (element instanceof IContainer) {
return RESOURCEFOLDERS;
} else if (element instanceof IStorage) {
return STORAGE;
}
return OTHERS;
}
/*
* @see ViewerSorter#compare
*/
public int... |
24,271 | Bug 24271 Source Folders: Sort Java Packages and Simple Folders Together | In Eclipse 1.0, packages and simple folders were not sorted together within the Project (as the source folder). Packages were (sorted) and placed first, followed by simple folders (that were also sorted). In Eclipse 2.0, the packages and simple folders are sorted together within the Project (as the source folder). Unfo... | resolved fixed | 86b4eb8 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-04T09:36:21Z | 2002-10-01T16:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaElementSorter.java | }
}
if (cat1 == RESOURCES || cat1 == RESOURCEFOLDERS || cat1 == STORAGE || cat1 == OTHERS) {
return compareWithLabelProvider(viewer, e1, e2);
}
String name1= ((IJavaElement) e1).getElementName();
String name2= ((IJavaElement) e2).getElementName();
int cmp= getCollator().compare(name1, name2);... |
24,271 | Bug 24271 Source Folders: Sort Java Packages and Simple Folders Together | In Eclipse 1.0, packages and simple folders were not sorted together within the Project (as the source folder). Packages were (sorted) and placed first, followed by simple folders (that were also sorted). In Eclipse 2.0, the packages and simple folders are sorted together within the Project (as the source folder). Unfo... | resolved fixed | 86b4eb8 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-04T09:36:21Z | 2002-10-01T16:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaElementSorter.java | private int compareWithLabelProvider(Viewer viewer, Object e1, Object e2) {
if (viewer == null || !(viewer instanceof ContentViewer)) {
IBaseLabelProvider prov = ((ContentViewer) viewer).getLabelProvider();
if (prov instanceof ILabelProvider) {
ILabelProvider lprov= (ILabelProvider) prov;
String name1 =... |
19,145 | Bug 19145 [Wizards] Make wizards resizable and keep bounds | Both the Checkbox Tree and the Checkbox List have horizontal scrollbars because mose package names and type names don't fit in the default size. It would be nice to be able to size this dialog bigger, and have it have a wider default size (I assume it is sized for 640x480? but is could be wider). | resolved wontfix | b3c27f0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T08:39:08Z | 2002-06-04T17:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarPackageWizardPage.java | /*
* (c) Copyright IBM Corp. 2000, 2002.
* All Rights Reserved.
*/
package org.eclipse.jdt.internal.ui.jarpackager;
import java.io.File;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
import org.eclipse.c... |
19,145 | Bug 19145 [Wizards] Make wizards resizable and keep bounds | Both the Checkbox Tree and the Checkbox List have horizontal scrollbars because mose package names and type names don't fit in the default size. It would be nice to be able to size this dialog bigger, and have it have a wider default size (I assume it is sized for 640x480? but is could be wider). | resolved wontfix | b3c27f0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T08:39:08Z | 2002-06-04T17:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarPackageWizardPage.java | import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.widgets.TreeItem;
import org.eclipse.jface.dialogs.IDialogSettings;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.ITreeContentProvider;
import org.eclipse.jface.wizard.IWizardPage;
import org.eclipse.jface.wizard.Wizar... |
19,145 | Bug 19145 [Wizards] Make wizards resizable and keep bounds | Both the Checkbox Tree and the Checkbox List have horizontal scrollbars because mose package names and type names don't fit in the default size. It would be nice to be able to size this dialog bigger, and have it have a wider default size (I assume it is sized for 640x480? but is could be wider). | resolved wontfix | b3c27f0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T08:39:08Z | 2002-06-04T17:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarPackageWizardPage.java | private JarPackageData fJarPackage;
private IStructuredSelection fInitialSelection;
private CheckboxTreeAndListGroup fInputGroup;
private boolean fFirstTime= true;
private Text fSourceNameField;
private Button fSourceBrowseButton; |
19,145 | Bug 19145 [Wizards] Make wizards resizable and keep bounds | Both the Checkbox Tree and the Checkbox List have horizontal scrollbars because mose package names and type names don't fit in the default size. It would be nice to be able to size this dialog bigger, and have it have a wider default size (I assume it is sized for 640x480? but is could be wider). | resolved wontfix | b3c27f0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T08:39:08Z | 2002-06-04T17:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarPackageWizardPage.java | private Button fExportClassFilesCheckbox;
private Button fExportJavaFilesCheckbox;
private Combo fDestinationNamesCombo;
private Button fDestinationBrowseButton;
private Button fCompressCheckbox;
private Button fOverwriteCheckbox;
private Composite fDescriptionFileGroup;
private Button fSaveDescriptionCh... |
19,145 | Bug 19145 [Wizards] Make wizards resizable and keep bounds | Both the Checkbox Tree and the Checkbox List have horizontal scrollbars because mose package names and type names don't fit in the default size. It would be nice to be able to size this dialog bigger, and have it have a wider default size (I assume it is sized for 640x480? but is could be wider). | resolved wontfix | b3c27f0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T08:39:08Z | 2002-06-04T17:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarPackageWizardPage.java | public JarPackageWizardPage(JarPackageData jarPackage, IStructuredSelection selection) {
super(PAGE_NAME, selection);
setTitle(JarPackagerMessages.getString("JarPackageWizardPage.title"));
setDescription(JarPackagerMessages.getString("JarPackageWizardPage.description"));
fJarPackage= jarPackage;
fInitialSel... |
19,145 | Bug 19145 [Wizards] Make wizards resizable and keep bounds | Both the Checkbox Tree and the Checkbox List have horizontal scrollbars because mose package names and type names don't fit in the default size. It would be nice to be able to size this dialog bigger, and have it have a wider default size (I assume it is sized for 640x480? but is could be wider). | resolved wontfix | b3c27f0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T08:39:08Z | 2002-06-04T17:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarPackageWizardPage.java | public void run() {
setupBasedOnInitialSelections();
}
});
setControl(composite);
update();
giveFocusToDestination();
WorkbenchHelp.setHelp(composite, IJavaHelpContextIds.JARPACKAGER_WIZARD_PAGE);
}
/**
* Create the export options specification widgets.
*
* @param parent org.eclipse.swt.w... |
19,145 | Bug 19145 [Wizards] Make wizards resizable and keep bounds | Both the Checkbox Tree and the Checkbox List have horizontal scrollbars because mose package names and type names don't fit in the default size. It would be nice to be able to size this dialog bigger, and have it have a wider default size (I assume it is sized for 640x480? but is could be wider). | resolved wontfix | b3c27f0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T08:39:08Z | 2002-06-04T17:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarPackageWizardPage.java | *
* @return java.lang.String
*/
protected String getDestinationValue() {
String destinationText= fDestinationNamesCombo.getText().trim();
if (destinationText.indexOf('.') < 0)
destinationText += getOutputSuffix();
return destinationText;
}
/**
* Answer the string to display in self as the destination ... |
19,145 | Bug 19145 [Wizards] Make wizards resizable and keep bounds | Both the Checkbox Tree and the Checkbox List have horizontal scrollbars because mose package names and type names don't fit in the default size. It would be nice to be able to size this dialog bigger, and have it have a wider default size (I assume it is sized for 640x480? but is could be wider). | resolved wontfix | b3c27f0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T08:39:08Z | 2002-06-04T17:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarPackageWizardPage.java | * accessor for subclasses.
*
* @return an iterator over the collection of elements currently selected for export
*/
protected Iterator getSelectedResourcesIterator() {
return fInputGroup.getAllCheckedListItems();
}
/**
* Persists resource specification control setting that are to be restored
* in the nex... |
19,145 | Bug 19145 [Wizards] Make wizards resizable and keep bounds | Both the Checkbox Tree and the Checkbox List have horizontal scrollbars because mose package names and type names don't fit in the default size. It would be nice to be able to size this dialog bigger, and have it have a wider default size (I assume it is sized for 640x480? but is could be wider). | resolved wontfix | b3c27f0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T08:39:08Z | 2002-06-04T17:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarPackageWizardPage.java | }
/**
* Hook method for subclasses to persist their settings.
*/
protected void internalSaveWidgetValues() {
}
/**
* Hook method for restoring widget values to the values that they held
* last time this wizard was used to completion.
*/
protected void restoreWidgetValues() {
if (!((JarPackageWizard)get... |
19,145 | Bug 19145 [Wizards] Make wizards resizable and keep bounds | Both the Checkbox Tree and the Checkbox List have horizontal scrollbars because mose package names and type names don't fit in the default size. It would be nice to be able to size this dialog bigger, and have it have a wider default size (I assume it is sized for 640x480? but is could be wider). | resolved wontfix | b3c27f0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T08:39:08Z | 2002-06-04T17:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarPackageWizardPage.java | fCompressCheckbox.setSelection(fJarPackage.isCompressed());
fOverwriteCheckbox.setSelection(fJarPackage.allowOverwrite());
}
/**
* Initializes the JAR package from last used wizard page values.
*/
protected void initializeJarPackage() {
IDialogSettings settings= getDialogSettings();
if (settings != null) {... |
19,145 | Bug 19145 [Wizards] Make wizards resizable and keep bounds | Both the Checkbox Tree and the Checkbox List have horizontal scrollbars because mose package names and type names don't fit in the default size. It would be nice to be able to size this dialog bigger, and have it have a wider default size (I assume it is sized for 640x480? but is could be wider). | resolved wontfix | b3c27f0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T08:39:08Z | 2002-06-04T17:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarPackageWizardPage.java | if (getControl() == null)
return;
fJarPackage.setElements(getSelectedElements());
fJarPackage.setExportClassFiles(fExportClassFilesCheckbox.getSelection());
fJarPackage.setExportJavaFiles(fExportJavaFilesCheckbox.getSelection());
String comboText= fDestinationNamesCombo.getText();
IPath path= new ... |
19,145 | Bug 19145 [Wizards] Make wizards resizable and keep bounds | Both the Checkbox Tree and the Checkbox List have horizontal scrollbars because mose package names and type names don't fit in the default size. It would be nice to be able to size this dialog bigger, and have it have a wider default size (I assume it is sized for 640x480? but is could be wider). | resolved wontfix | b3c27f0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T08:39:08Z | 2002-06-04T17:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarPackageWizardPage.java | fDestinationNamesCombo.setFocus();
return false;
}
if (targetFile.exists()) {
if (!targetFile.canWrite()) {
setErrorMessage(JarPackagerMessages.getString("JarPackageWizardPage.error.jarFileExistsAndNotWritable"));
fDestinationNamesCombo.setFocus();
return false;
}
}
return true;
}
/*
*... |
19,145 | Bug 19145 [Wizards] Make wizards resizable and keep bounds | Both the Checkbox Tree and the Checkbox List have horizontal scrollbars because mose package names and type names don't fit in the default size. It would be nice to be able to size this dialog bigger, and have it have a wider default size (I assume it is sized for 640x480? but is could be wider). | resolved wontfix | b3c27f0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T08:39:08Z | 2002-06-04T17:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarPackageWizardPage.java | GridData data= new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL);
data.widthHint= SIZING_TEXT_FIELD_WIDTH;
fDestinationNamesCombo.setLayoutData(data);
fDestinationBrowseButton= new Button(destinationSelectionGroup, SWT.PUSH);
fDestinationBrowseButton.setText(JarPackagerMessages.getStrin... |
19,145 | Bug 19145 [Wizards] Make wizards resizable and keep bounds | Both the Checkbox Tree and the Checkbox List have horizontal scrollbars because mose package names and type names don't fit in the default size. It would be nice to be able to size this dialog bigger, and have it have a wider default size (I assume it is sized for 640x480? but is could be wider). | resolved wontfix | b3c27f0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T08:39:08Z | 2002-06-04T17:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarPackageWizardPage.java | /**
* Open an appropriate destination browser so that the user can specify a source
* to import from
*/
protected void handleDestinationBrowseButtonPressed() {
FileDialog dialog= new FileDialog(getContainer().getShell(), SWT.SAVE);
dialog.setFilterExtensions(new String[] {"*.jar", "*.zip"});
String curren... |
19,145 | Bug 19145 [Wizards] Make wizards resizable and keep bounds | Both the Checkbox Tree and the Checkbox List have horizontal scrollbars because mose package names and type names don't fit in the default size. It would be nice to be able to size this dialog bigger, and have it have a wider default size (I assume it is sized for 640x480? but is could be wider). | resolved wontfix | b3c27f0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T08:39:08Z | 2002-06-04T17:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarPackageWizardPage.java | if (result.isOK() && workspace.getRoot().exists(path))
return workspace.getRoot().findMember(path);
return null;
}
/**
* Creates the checkbox tree and list for selecting resources.
*
* @param parent the parent control
*/
protected void createInputGroup(Composite parent) {
int labelFlags= JavaElementLa... |
19,145 | Bug 19145 [Wizards] Make wizards resizable and keep bounds | Both the Checkbox Tree and the Checkbox List have horizontal scrollbars because mose package names and type names don't fit in the default size. It would be nice to be able to size this dialog bigger, and have it have a wider default size (I assume it is sized for 640x480? but is could be wider). | resolved wontfix | b3c27f0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T08:39:08Z | 2002-06-04T17:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarPackageWizardPage.java | fInputGroup.addTreeFilter(new EmptyInnerPackageFilter());
fInputGroup.setTreeSorter(new JavaElementSorter());
fInputGroup.setListSorter(new JavaElementSorter());
fInputGroup.addTreeFilter(new ContainerFilter(ContainerFilter.FILTER_NON_CONTAINERS));
fInputGroup.addTreeFilter(new LibraryFilter());
fInputGroup.a... |
19,145 | Bug 19145 [Wizards] Make wizards resizable and keep bounds | Both the Checkbox Tree and the Checkbox List have horizontal scrollbars because mose package names and type names don't fit in the default size. It would be nice to be able to size this dialog bigger, and have it have a wider default size (I assume it is sized for 640x480? but is could be wider). | resolved wontfix | b3c27f0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T08:39:08Z | 2002-06-04T17:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarPackageWizardPage.java | }
/*
* Overrides method from IJarPackageWizardPage
*/
public boolean isPageComplete() {
boolean complete= validateSourceGroup();
complete= validateDestinationGroup() && complete;
complete= validateOptionsGroup() && complete;
if (complete)
setErrorMessage(null);
return complete;
}
/*
* Implements ... |
19,145 | Bug 19145 [Wizards] Make wizards resizable and keep bounds | Both the Checkbox Tree and the Checkbox List have horizontal scrollbars because mose package names and type names don't fit in the default size. It would be nice to be able to size this dialog bigger, and have it have a wider default size (I assume it is sized for 640x480? but is could be wider). | resolved wontfix | b3c27f0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T08:39:08Z | 2002-06-04T17:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarPackageWizardPage.java | if (pageComplete)
setErrorMessage(null);
}
/*
* Overrides method from WizardDataTransferPage
*/
protected boolean validateDestinationGroup() {
if (fDestinationNamesCombo.getText().length() == 0) {
if (getErrorMessage() != null)
setErrorMessage(null);
if (getMessage() != null)
setMessage... |
19,145 | Bug 19145 [Wizards] Make wizards resizable and keep bounds | Both the Checkbox Tree and the Checkbox List have horizontal scrollbars because mose package names and type names don't fit in the default size. It would be nice to be able to size this dialog bigger, and have it have a wider default size (I assume it is sized for 640x480? but is could be wider). | resolved wontfix | b3c27f0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T08:39:08Z | 2002-06-04T17:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarPackageWizardPage.java | }
}
}
String currentMessage= getMessage();
if (!(new File(fDestinationNamesCombo.getText()).isAbsolute())) {
if (currentMessage == null)
setMessage(JarPackagerMessages.getString("JarPackageWizardPage.info.relativeExportDestination"), WizardPage.INFORMATION);
} else {
if (currentMessage != null)... |
19,145 | Bug 19145 [Wizards] Make wizards resizable and keep bounds | Both the Checkbox Tree and the Checkbox List have horizontal scrollbars because mose package names and type names don't fit in the default size. It would be nice to be able to size this dialog bigger, and have it have a wider default size (I assume it is sized for 640x480? but is could be wider). | resolved wontfix | b3c27f0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T08:39:08Z | 2002-06-04T17:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarPackageWizardPage.java | if (getErrorMessage() != null)
setErrorMessage(null);
return false;
}
if (fExportClassFilesCheckbox.getSelection() || !fExportJavaFilesCheckbox.getSelection())
return true;
Iterator iter= getSelectedResourcesIterator();
while (iter.hasNext()) {
if (!(iter.next() instanceof IClassFile))
r... |
19,145 | Bug 19145 [Wizards] Make wizards resizable and keep bounds | Both the Checkbox Tree and the Checkbox List have horizontal scrollbars because mose package names and type names don't fit in the default size. It would be nice to be able to size this dialog bigger, and have it have a wider default size (I assume it is sized for 640x480? but is could be wider). | resolved wontfix | b3c27f0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T08:39:08Z | 2002-06-04T17:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarPackageWizardPage.java | * @see #createFile
*/
protected IFile createFileHandle(IPath filePath) {
if (filePath.isValidPath(filePath.toString()) && filePath.segmentCount() >= 2)
return ResourcesPlugin.getWorkspace().getRoot().getFile(filePath);
else
return null;
}
/**
* Set the current input focus to self's destination entry fi... |
19,145 | Bug 19145 [Wizards] Make wizards resizable and keep bounds | Both the Checkbox Tree and the Checkbox List have horizontal scrollbars because mose package names and type names don't fit in the default size. It would be nice to be able to size this dialog bigger, and have it have a wider default size (I assume it is sized for 640x480? but is could be wider). | resolved wontfix | b3c27f0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T08:39:08Z | 2002-06-04T17:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarPackageWizardPage.java | i++;
if (i < items.length) {
fInputGroup.getTree().setSelection(new TreeItem[] {items[i]});
fInputGroup.getTree().showSelection();
fInputGroup.populateListViewer(items[i].getData());
}
}
/*
* Implements method from IJarPackageWizardPage.
*/
public void finish() {
saveWidgetValues();
}
/*
* M... |
19,145 | Bug 19145 [Wizards] Make wizards resizable and keep bounds | Both the Checkbox Tree and the Checkbox List have horizontal scrollbars because mose package names and type names don't fit in the default size. It would be nice to be able to size this dialog bigger, and have it have a wider default size (I assume it is sized for 640x480? but is could be wider). | resolved wontfix | b3c27f0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T08:39:08Z | 2002-06-04T17:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarPackageWizardPage.java | boolean removedOne= false;
while (iter.hasNext()) {
Object element= iter.next();
Object parent;
if (element instanceof IResource)
parent= ((IResource)element).getParent();
else if (element instanceof IJavaElement) {
parent= ((IJavaElement)element).getParent();
if (parent instanceof IPackageFra... |
19,145 | Bug 19145 [Wizards] Make wizards resizable and keep bounds | Both the Checkbox Tree and the Checkbox List have horizontal scrollbars because mose package names and type names don't fit in the default size. It would be nice to be able to size this dialog bigger, and have it have a wider default size (I assume it is sized for 640x480? but is could be wider). | resolved wontfix | b3c27f0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T08:39:08Z | 2002-06-04T17:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarPackageWizardPage.java | else
return newList;
}
private Set getExportedNonContainers() {
Set whiteCheckedTreeItems= fInputGroup.getWhiteCheckedTreeItems();
Set exportedNonContainers= new HashSet(whiteCheckedTreeItems.size());
Set javaElementResources= getCorrespondingContainers(whiteCheckedTreeItems);
Iterator iter= fInputGroup.ge... |
19,145 | Bug 19145 [Wizards] Make wizards resizable and keep bounds | Both the Checkbox Tree and the Checkbox List have horizontal scrollbars because mose package names and type names don't fit in the default size. It would be nice to be able to size this dialog bigger, and have it have a wider default size (I assume it is sized for 640x480? but is could be wider). | resolved wontfix | b3c27f0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T08:39:08Z | 2002-06-04T17:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarPackageWizardPage.java | IJavaElement je= (IJavaElement)element;
int type= je.getElementType();
if (type == IJavaElement.JAVA_PROJECT || type == IJavaElement.PACKAGE_FRAGMENT || type == IJavaElement.PACKAGE_FRAGMENT_ROOT) {
if (!(type == IJavaElement.PACKAGE_FRAGMENT && ((IPackageFragment)element).isDefaultPackage())) {
... |
24,442 | Bug 24442 ASTRewrite: Can't nest swaps | see TextBufferTest.testSwap2InSwap1 | resolved fixed | 61120f3 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T12:06:57Z | 2002-10-07T11:26:40Z | 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... |
24,442 | Bug 24442 ASTRewrite: Can't nest swaps | see TextBufferTest.testSwap2InSwap1 | resolved fixed | 61120f3 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T12:06:57Z | 2002-10-07T11:26:40Z | 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 ... |
24,442 | Bug 24442 ASTRewrite: Can't nest swaps | see TextBufferTest.testSwap2InSwap1 | resolved fixed | 61120f3 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T12:06:57Z | 2002-10-07T11:26:40Z | 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);
}
return result;
} else {
TestSuite suite= new TestSuite();
suite.addTest(new TextBufferTest("testSwap1"));
suite.addTest(new TextBufferTest("testSwap2"));
suite.addTest(new TextBu... |
24,442 | Bug 24442 ASTRewrite: Can't nest swaps | see TextBufferTest.testSwap2InSwap1 | resolved fixed | 61120f3 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T12:06:57Z | 2002-10-07T11:26:40Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java | public void testOverlap2() throws Exception {
fEditor.add(SimpleTextEdit.createReplace(0, 2, "01"));
fEditor.add(SimpleTextEdit.createReplace(0, 1, "0"));
assertFalse(fEditor.canPerformEdits());
}
public void testOverlap3() throws Exception {
fEditor.add(SimpleTextEdit.createReplace(0, 2, "01"));
f... |
24,442 | Bug 24442 ASTRewrite: Can't nest swaps | see TextBufferTest.testSwap2InSwap1 | resolved fixed | 61120f3 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T12:06:57Z | 2002-10-07T11:26:40Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java | fEditor.add(SimpleTextEdit.createReplace(0, 3, "012"));
fEditor.add(SimpleTextEdit.createInsert(2, "xx"));
assertFalse(fEditor.canPerformEdits());
}
public void testOverlap7() throws Exception {
MoveSourceEdit source= new MoveSourceEdit(2, 5);
MoveTargetEdit target= new MoveTargetEdit(3, source);
fEditor.... |
24,442 | Bug 24442 ASTRewrite: Can't nest swaps | see TextBufferTest.testSwap2InSwap1 | resolved fixed | 61120f3 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T12:06:57Z | 2002-10-07T11:26:40Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java | fEditor.add(t2);
assertFalse(fEditor.canPerformEdits());
}
public void testInsert1() throws Exception {
SimpleTextEdit e1= SimpleTextEdit.createInsert(2, "yy");
SimpleTextEdit e2= SimpleTextEdit.createReplace(2, 3, "3456");
fEditor.add(e1);
fEditor.add(e2);
assertTrue(fEditor.canPerformEdits());
U... |
24,442 | Bug 24442 ASTRewrite: Can't nest swaps | see TextBufferTest.testSwap2InSwap1 | resolved fixed | 61120f3 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T12:06:57Z | 2002-10-07T11:26:40Z | 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.canP... |
24,442 | Bug 24442 ASTRewrite: Can't nest swaps | see TextBufferTest.testSwap2InSwap1 | resolved fixed | 61120f3 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T12:06:57Z | 2002-10-07T11:26:40Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java | 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());
assertEquals(e1.getTextRange(), 10, 2);
asser... |
24,442 | Bug 24442 ASTRewrite: Can't nest swaps | see TextBufferTest.testSwap2InSwap1 | resolved fixed | 61120f3 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T12:06:57Z | 2002-10-07T11:26:40Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java | assertEquals("Buffer content", "012456789", fBuffer.getContent());
doUndoRedo(undo, "012456789");
}
public void testDelete2() throws Exception {
SimpleTextEdit e1= SimpleTextEdit.createDelete(4, 1);
SimpleTextEdit e2= SimpleTextEdit.createDelete(3, 1);
SimpleTextEdit e3= SimpleTextEdit.createDelete(5, 1);
... |
24,442 | Bug 24442 ASTRewrite: Can't nest swaps | see TextBufferTest.testSwap2InSwap1 | resolved fixed | 61120f3 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T12:06:57Z | 2002-10-07T11:26:40Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java | doUndoRedo(undo, "012x456789");
}
public void testDeleteWithChildren() throws Exception {
SimpleTextEdit e1= SimpleTextEdit.createDelete(2, 6);
MultiTextEdit e2= new MultiTextEdit();
e1.add(e2);
SimpleTextEdit e3= SimpleTextEdit.createReplace(3,1,"xx");
SimpleTextEdit e4= SimpleTextEdit.createReplace(5,1,... |
24,442 | Bug 24442 ASTRewrite: Can't nest swaps | see TextBufferTest.testSwap2InSwap1 | resolved fixed | 61120f3 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T12:06:57Z | 2002-10-07T11:26:40Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java | assertEquals(t1.getTextRange(), 3, 2);
doUndoRedo(undo, "0142356789");
}
public void testMove2() throws Exception {
MoveSourceEdit s1= new MoveSourceEdit(5, 2);
MoveTargetEdit t1= new MoveTargetEdit(2, s1);
fEditor.add(s1);
fEditor.add(t1);
assertTrue(fEditor.canPerformEdits());
UndoMemento undo= fEdi... |
24,442 | Bug 24442 ASTRewrite: Can't nest swaps | see TextBufferTest.testSwap2InSwap1 | resolved fixed | 61120f3 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T12:06:57Z | 2002-10-07T11:26:40Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java | }
public void testMove4() throws Exception {
MoveSourceEdit s1= new MoveSourceEdit(7, 2);
MoveTargetEdit t1= new MoveTargetEdit(2, s1);
SimpleTextEdit e2= SimpleTextEdit.createReplace(5, 1, "x");
fEditor.add(s1);
fEditor.add(t1);
fEditor.add(e2);
assertTrue(fEditor.canPerformEdits());
UndoMemento und... |
24,442 | Bug 24442 ASTRewrite: Can't nest swaps | see TextBufferTest.testSwap2InSwap1 | resolved fixed | 61120f3 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T12:06:57Z | 2002-10-07T11:26:40Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java | assertEquals(e2.getTextRange(), 2, 1);
assertEquals("Buffer content", "01x3456789", fBuffer.getContent());
doUndoRedo(undo, "01x3456789");
}
public void testMove6() throws Exception {
MoveSourceEdit s1= new MoveSourceEdit(2, 1);
MoveTargetEdit t1= new MoveTargetEdit(2, s1);
SimpleTextEdit e2= SimpleTex... |
24,442 | Bug 24442 ASTRewrite: Can't nest swaps | see TextBufferTest.testSwap2InSwap1 | resolved fixed | 61120f3 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T12:06:57Z | 2002-10-07T11:26:40Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java | UndoMemento undo= fEditor.performEdits(null);
assertEquals("Buffer content", "01562x4789", fBuffer.getContent());
assertEquals(s1.getTextRange(), 2, 0);
assertEquals(t1.getTextRange(), 4, 3);
assertEquals(e2.getTextRange(), 5, 1);
doUndoRedo(undo, "01562x4789");
}
public void testMove8() throws Exception ... |
24,442 | Bug 24442 ASTRewrite: Can't nest swaps | see TextBufferTest.testSwap2InSwap1 | resolved fixed | 61120f3 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T12:06:57Z | 2002-10-07T11:26:40Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java | s1.add(s2);
s1.add(t2);
fEditor.add(s1);
fEditor.add(t1);
assertTrue("Can perform edits", fEditor.canPerformEdits());
UndoMemento undo= fEditor.performEdits(null);
assertEquals(s1.getTextRange(), 1, 0);
assertEquals(t1.getTextRange(), 2, 3);
assertEquals(s2.getTextRange(), 2, 0);
assertEquals(t2... |
24,442 | Bug 24442 ASTRewrite: Can't nest swaps | see TextBufferTest.testSwap2InSwap1 | resolved fixed | 61120f3 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T12:06:57Z | 2002-10-07T11:26:40Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java | assertEquals(t1.getTextRange(), 6, 2);
assertEquals(s2.getTextRange(), 5, 0);
assertEquals(t2.getTextRange(), 1, 2);
assertEquals("Buffer content", "0561472389", fBuffer.getContent());
doUndoRedo(undo, "0561472389");
}
public void testMoveWithTargetDelete() throws Exception {
MoveSourceEdit s1= new Mo... |
24,442 | Bug 24442 ASTRewrite: Can't nest swaps | see TextBufferTest.testSwap2InSwap1 | resolved fixed | 61120f3 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T12:06:57Z | 2002-10-07T11:26:40Z | 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", "0561234789", fBuffer.getContent());
assertTrue(s1.getTextRange().isDeleted());
assertEquals(t1.getTextRange(), 1, 2);
assertEquals(e2.getTextRange(), 7, 0);
doUndoRedo(undo, "0561234789");
}... |
24,442 | Bug 24442 ASTRewrite: Can't nest swaps | see TextBufferTest.testSwap2InSwap1 | resolved fixed | 61120f3 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T12:06:57Z | 2002-10-07T11:26:40Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java | fEditor.add(m);
fEditor.add(s1);
assertTrue(fEditor.canPerformEdits());
UndoMemento undo= fEditor.performEdits(null);
assertEquals("Buffer content", "01yy5623789", fBuffer.getContent());
assertEquals(s1.getTextRange(), 2, 0);
assertEquals(t1.getTextRange(), 6, 2);
assertEquals(m.getTextRange(), 2, 2);
d... |
24,442 | Bug 24442 ASTRewrite: Can't nest swaps | see TextBufferTest.testSwap2InSwap1 | resolved fixed | 61120f3 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T12:06:57Z | 2002-10-07T11:26:40Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java | MoveTargetEdit t1= new MoveTargetEdit(5, s1);
m.add(s1);
m.add(t1);
fEditor.add(m);
assertTrue(fEditor.canPerformEdits());
UndoMemento undo= fEditor.performEdits(null);
assertEquals("Buffer content", "0142356789", fBuffer.getContent());
assertEquals(m.getTextRange(), 2, 6);
assertEquals(t1.getTextRange(... |
24,442 | Bug 24442 ASTRewrite: Can't nest swaps | see TextBufferTest.testSwap2InSwap1 | resolved fixed | 61120f3 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T12:06:57Z | 2002-10-07T11:26:40Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java | CopyTargetEdit t1= new CopyTargetEdit(3, s1);
fEditor.add(s1);
fEditor.add(t1);
assertTrue("Can perform edits", fEditor.canPerformEdits());
UndoMemento undo= fEditor.performEdits(null);
assertEquals(s1.getTextRange(), 9, 2);
assertEquals(t1.getTextRange(), 3, 2);
String result= "012783456789";
assert... |
24,442 | Bug 24442 ASTRewrite: Can't nest swaps | see TextBufferTest.testSwap2InSwap1 | resolved fixed | 61120f3 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T12:06:57Z | 2002-10-07T11:26:40Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java | assertEquals("Buffer content", result, fBuffer.getContent());
doUndoRedo(undo, result);
}
private void doUndoRedo(UndoMemento undo, String redoResult) throws Exception {
fEditor.add(undo);
UndoMemento redo= fEditor.performEdits(null);
assertBufferContent();
fEditor.add(redo);
undo= fEditor.performEdit... |
24,442 | Bug 24442 ASTRewrite: Can't nest swaps | see TextBufferTest.testSwap2InSwap1 | resolved fixed | 61120f3 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T12:06:57Z | 2002-10-07T11:26:40Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java | assertTrue(message, status.isOK());
}
private void assertFalse(IStatus status) {
assertTrue(!status.isOK());
}
private void assertFalse(String message, IStatus status) {
assertTrue(message, !status.isOK());
}
public void testSwap1() throws Exception {
TextBuffer buffer= TextBuffer.create("foo(1, 2),... |
24,442 | Bug 24442 ASTRewrite: Can't nest swaps | see TextBufferTest.testSwap2InSwap1 | resolved fixed | 61120f3 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T12:06:57Z | 2002-10-07T11:26:40Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java | root.add(t1);
editor.add(root);
}
assertTrue("Can perform edits", editor.canPerformEdits());
UndoMemento undo= editor.performEdits(null);
String result= "3, foo(1, 2)";
assertEquals("Buffer content", result, buffer.getContent());
}
public void testSwap2() throws Exception {
TextBuffer buffer= Text... |
24,442 | Bug 24442 ASTRewrite: Can't nest swaps | see TextBufferTest.testSwap2InSwap1 | resolved fixed | 61120f3 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T12:06:57Z | 2002-10-07T11:26:40Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java | }
editor.add(innerRoot);
assertTrue("Can perform edits", editor.canPerformEdits());
UndoMemento undo= editor.performEdits(null);
String result= "foo(2, 1), 3";
assertEquals("Buffer content", result, buffer.getContent());
}
public void testSwap2InSwap1() throws Exception {
if (true)
return;
... |
24,442 | Bug 24442 ASTRewrite: Can't nest swaps | see TextBufferTest.testSwap2InSwap1 | resolved fixed | 61120f3 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-07T12:06:57Z | 2002-10-07T11:26:40Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java | innerRoot.add(e1);
innerRoot.add(t2);
innerRoot.add(e2);
innerRoot.add(t1);
}
MultiTextEdit root= new MultiTextEdit();
{
SimpleTextEdit e1= SimpleTextEdit.createReplace(0, 9, "");
e1.add(innerRoot);
CopyTargetEdit t1= new CopyTargetEdit(11, innerRoot);
SimpleTextEdit e2= SimpleTextEdi... |
23,361 | Bug 23361 Java Model Exception when renaming a compilation unit | Build 200209031019 I have a special test case which generates a Java Model Exception, a funny thing (for me) it's I can't reproduce it two times with the same compilation unit names, even if I stop and restart Eclipse. 1. Create the two following compilation units : public class TestCompiler_1 { public static void main... | resolved fixed | a943040 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-08T16:12:30Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ShowInNavigatorViewAction.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... |
23,361 | Bug 23361 Java Model Exception when renaming a compilation unit | Build 200209031019 I have a special test case which generates a Java Model Exception, a funny thing (for me) it's I can't reproduce it two times with the same compilation unit names, even if I stop and restart Eclipse. 1. Create the two following compilation units : public class TestCompiler_1 { public static void main... | resolved fixed | a943040 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-08T16:12:30Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ShowInNavigatorViewAction.java | import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.core.IMember;
import org.eclipse.jdt.core.IOpenable;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jdt.internal.corext.util.JavaModelUtil;
import org.eclipse.jdt.internal.ui.IJavaHelpConte... |
23,361 | Bug 23361 Java Model Exception when renaming a compilation unit | Build 200209031019 I have a special test case which generates a Java Model Exception, a funny thing (for me) it's I can't reproduce it two times with the same compilation unit names, even if I stop and restart Eclipse. 1. Create the two following compilation units : public class TestCompiler_1 { public static void main... | resolved fixed | a943040 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-08T16:12:30Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ShowInNavigatorViewAction.java | * <code>org.eclipse.jface.viewers.IStructuredSelection</code>.
*
* @param site the site providing context information for this action
*/
public ShowInNavigatorViewAction(IWorkbenchSite site) {
super(site);
setText(ActionMessages.getString("ShowInNavigatorView.label"));
WorkbenchHelp.setHelp(this, IJavaHe... |
23,361 | Bug 23361 Java Model Exception when renaming a compilation unit | Build 200209031019 I have a special test case which generates a Java Model Exception, a funny thing (for me) it's I can't reproduce it two times with the same compilation unit names, even if I stop and restart Eclipse. 1. Create the two following compilation units : public class TestCompiler_1 { public static void main... | resolved fixed | a943040 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-08T16:12:30Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ShowInNavigatorViewAction.java | if (JavaModelUtil.filterNotPresentException(e))
JavaPlugin.log(e);
setEnabled(false);
}
}
/* (non-Javadoc)
* Method declared on SelectionDispatchAction.
*/
protected void run(ITextSelection selection) {
IJavaElement element= SelectionConverter.codeResolveOrInputHandled(fEditor,
getShell(), getDial... |
23,361 | Bug 23361 Java Model Exception when renaming a compilation unit | Build 200209031019 I have a special test case which generates a Java Model Exception, a funny thing (for me) it's I can't reproduce it two times with the same compilation unit names, even if I stop and restart Eclipse. 1. Create the two following compilation units : public class TestCompiler_1 { public static void main... | resolved fixed | a943040 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-08T16:12:30Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ShowInNavigatorViewAction.java | JavaPlugin.log(e);
}
}
private void run(IResource resource) {
if (resource == null)
return;
try {
IWorkbenchPage page= getSite().getWorkbenchWindow().getActivePage();
IViewPart view= page.showView(IPageLayout.ID_RES_NAV);
if (view instanceof ISetSelectionTarget) {
ISelection selection= new St... |
23,361 | Bug 23361 Java Model Exception when renaming a compilation unit | Build 200209031019 I have a special test case which generates a Java Model Exception, a funny thing (for me) it's I can't reproduce it two times with the same compilation unit names, even if I stop and restart Eclipse. 1. Create the two following compilation units : public class TestCompiler_1 { public static void main... | resolved fixed | a943040 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-08T16:12:30Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ShowInNavigatorViewAction.java | }
private IResource getResource(IJavaElement element) throws JavaModelException {
if (element == null)
return null;
if (element instanceof IMember) {
IOpenable openable= ((IMember)element).getOpenable();
if (openable instanceof IJavaElement)
element= (IJavaElement)openable;
else
element= null... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.