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
unknown
report_datetime
unknown
updated_file
stringlengths
23
187
chunk_content
stringlengths
1
22k
3,471
Bug 3471 Leading '/' in src page of Java wizard is misleading (1G842TH)
1. create new java project "jp" with Create Java Project wizard. 2. in wizard goto second ("Source") page Observe: the Build Output Folder is "/jp/bin" Since this looks like a Unix pathname I interpret the leading "/" as an indication for a absolute pathname. Other tools use something like: {WORKBENCH}/jp/bin or shell variable syntax: $WORKBENCH/jp/bin NOTES: EG (1/30/01 10:34:33 AM) desktop is using the same convention for presenting paths. General issue: how to show a workbench relative path
resolved wontfix
d8eedf7
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-12T18:21:09Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java
} }; } /** * Creates the Java project and sets the configured build path and output location. * If the project already exists only build paths are updated. */ private void createJavaProject(List classPathEntries, IPath buildPath, IProgressMonitor monitor) throws CoreException { IProject project= fCurrJProject.getProject(); if (!project.exists()) { project.create(null); } if (!project.isOpen()) { project.open(null); } if (!project.hasNature(JavaCore.NATURE_ID)) { addNatureToProject(project, JavaCore.NATURE_ID, null); } monitor.worked(1); String[] prevRequiredProjects= fCurrJProject.getRequiredProjectNames(); if (!fWorkspaceRoot.exists(buildPath)) { IFolder folder= fWorkspaceRoot.getFolder(buildPath);
3,471
Bug 3471 Leading '/' in src page of Java wizard is misleading (1G842TH)
1. create new java project "jp" with Create Java Project wizard. 2. in wizard goto second ("Source") page Observe: the Build Output Folder is "/jp/bin" Since this looks like a Unix pathname I interpret the leading "/" as an indication for a absolute pathname. Other tools use something like: {WORKBENCH}/jp/bin or shell variable syntax: $WORKBENCH/jp/bin NOTES: EG (1/30/01 10:34:33 AM) desktop is using the same convention for presenting paths. General issue: how to show a workbench relative path
resolved wontfix
d8eedf7
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-12T18:21:09Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java
CoreUtility.createFolder(folder, true, true, null); } monitor.worked(1); fCurrJProject.setOutputLocation(buildPath, new SubProgressMonitor(monitor, 3)); int nEntries= classPathEntries.size(); IClasspathEntry[] classpath= new IClasspathEntry[nEntries]; for (int i= 0; i < nEntries; i++) { CPListElement entry= ((CPListElement)classPathEntries.get(i)); IResource res= entry.getResource(); if ((res instanceof IFolder) && !res.exists()) { CoreUtility.createFolder((IFolder)res, true, true, null); } classpath[i]= entry.getClasspathEntry(); } monitor.worked(1); fCurrJProject.setRawClasspath(classpath, new SubProgressMonitor(monitor, 5)); updateReferencedProjects(fCurrJProject, prevRequiredProjects, new SubProgressMonitor(monitor, 1)); } /** * @param jproject The Java project after changing the class path
3,471
Bug 3471 Leading '/' in src page of Java wizard is misleading (1G842TH)
1. create new java project "jp" with Create Java Project wizard. 2. in wizard goto second ("Source") page Observe: the Build Output Folder is "/jp/bin" Since this looks like a Unix pathname I interpret the leading "/" as an indication for a absolute pathname. Other tools use something like: {WORKBENCH}/jp/bin or shell variable syntax: $WORKBENCH/jp/bin NOTES: EG (1/30/01 10:34:33 AM) desktop is using the same convention for presenting paths. General issue: how to show a workbench relative path
resolved wontfix
d8eedf7
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-12T18:21:09Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java
* @param prevRequiredProjects The required projects before changing the class path */ private static void updateReferencedProjects(IJavaProject jproject, String[] prevRequiredProjects, IProgressMonitor monitor) throws CoreException { String[] newRequiredProjects= jproject.getRequiredProjectNames(); ArrayList prevEntries= new ArrayList(Arrays.asList(prevRequiredProjects)); ArrayList newEntries= new ArrayList(Arrays.asList(newRequiredProjects)); IProject proj= jproject.getProject(); IProjectDescription projDesc= proj.getDescription(); ArrayList newRefs= new ArrayList(); IProject[] referencedProjects= projDesc.getReferencedProjects(); for (int i= 0; i < referencedProjects.length; i++) { String curr= referencedProjects[i].getName(); if (newEntries.remove(curr) || !prevEntries.contains(curr)) { newRefs.add(referencedProjects[i]); } } IWorkspaceRoot root= proj.getWorkspace().getRoot(); for (int i= 0; i < newEntries.size(); i++) { String curr= (String) newEntries.get(i); newRefs.add(root.getProject(curr)); } projDesc.setReferencedProjects((IProject[]) newRefs.toArray(new IProject[newRefs.size()])); proj.setDescription(projDesc, monitor); } /** * Adds a nature to a project */
3,471
Bug 3471 Leading '/' in src page of Java wizard is misleading (1G842TH)
1. create new java project "jp" with Create Java Project wizard. 2. in wizard goto second ("Source") page Observe: the Build Output Folder is "/jp/bin" Since this looks like a Unix pathname I interpret the leading "/" as an indication for a absolute pathname. Other tools use something like: {WORKBENCH}/jp/bin or shell variable syntax: $WORKBENCH/jp/bin NOTES: EG (1/30/01 10:34:33 AM) desktop is using the same convention for presenting paths. General issue: how to show a workbench relative path
resolved wontfix
d8eedf7
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-12T18:21:09Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java
private static void addNatureToProject(IProject proj, String natureId, IProgressMonitor monitor) throws CoreException { IProjectDescription description = proj.getDescription(); String[] prevNatures= description.getNatureIds(); String[] newNatures= new String[prevNatures.length + 1]; System.arraycopy(prevNatures, 0, newNatures, 0, prevNatures.length); newNatures[prevNatures.length]= natureId; description.setNatureIds(newNatures); proj.setDescription(description, monitor); } private IContainer chooseContainer() { Class[] acceptedClasses= new Class[] { IProject.class, IFolder.class }; ISelectionValidator validator= new TypedElementSelectionValidator(acceptedClasses, false); IProject[] allProjects= fWorkspaceRoot.getProjects(); ArrayList rejectedElements= new ArrayList(allProjects.length); IProject currProject= fCurrJProject.getProject(); for (int i= 0; i < allProjects.length; i++) { if (!allProjects[i].equals(currProject)) { rejectedElements.add(allProjects[i]); } } ViewerFilter filter= new TypedViewerFilter(acceptedClasses, rejectedElements.toArray()); ILabelProvider lp= new WorkbenchLabelProvider(); ITreeContentProvider cp= new WorkbenchContentProvider(); IResource initSelection= null; if (fOutputLocationPath != null) { initSelection= fWorkspaceRoot.findMember(fOutputLocationPath); }
3,471
Bug 3471 Leading '/' in src page of Java wizard is misleading (1G842TH)
1. create new java project "jp" with Create Java Project wizard. 2. in wizard goto second ("Source") page Observe: the Build Output Folder is "/jp/bin" Since this looks like a Unix pathname I interpret the leading "/" as an indication for a absolute pathname. Other tools use something like: {WORKBENCH}/jp/bin or shell variable syntax: $WORKBENCH/jp/bin NOTES: EG (1/30/01 10:34:33 AM) desktop is using the same convention for presenting paths. General issue: how to show a workbench relative path
resolved wontfix
d8eedf7
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-12T18:21:09Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java
ElementTreeSelectionDialog dialog= new ElementTreeSelectionDialog(getShell(), lp, cp); dialog.setTitle(NewWizardMessages.getString("BuildPathsBlock.ChooseOutputFolderDialog.title")); dialog.setValidator(validator); dialog.setMessage(NewWizardMessages.getString("BuildPathsBlock.ChooseOutputFolderDialog.description")); dialog.addFilter(filter); dialog.setInput(fWorkspaceRoot); dialog.setInitialSelection(initSelection); if (dialog.open() == dialog.OK) { return (IContainer)dialog.getFirstResult(); } return null; } private void tabChanged(Widget widget) { if (widget instanceof TabItem) { BuildPathBasePage newPage= (BuildPathBasePage) ((TabItem) widget).getData(); if (fCurrPage != null) { List selection= fCurrPage.getSelection(); if (!selection.isEmpty()) { newPage.setSelection(selection); } } fCurrPage= newPage; } } }
3,471
Bug 3471 Leading '/' in src page of Java wizard is misleading (1G842TH)
1. create new java project "jp" with Create Java Project wizard. 2. in wizard goto second ("Source") page Observe: the Build Output Folder is "/jp/bin" Since this looks like a Unix pathname I interpret the leading "/" as an indication for a absolute pathname. Other tools use something like: {WORKBENCH}/jp/bin or shell variable syntax: $WORKBENCH/jp/bin NOTES: EG (1/30/01 10:34:33 AM) desktop is using the same convention for presenting paths. General issue: how to show a workbench relative path
resolved wontfix
d8eedf7
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-12T18:21:09Z"
"2001-10-11T03:13:20Z"
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.swt.SWT; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Control; import org.eclipse.swt.widgets.Shell; import org.eclipse.core.resources.IContainer; import org.eclipse.core.resources.IFolder; import org.eclipse.core.resources.IProject; import org.eclipse.core.resources.IResource; import org.eclipse.core.resources.IWorkspaceRoot; import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.Path; import org.eclipse.jface.dialogs.MessageDialog; import org.eclipse.jface.util.Assert; import org.eclipse.jface.viewers.ILabelProvider; import org.eclipse.jface.viewers.ITreeContentProvider; import org.eclipse.jface.viewers.StructuredSelection; import org.eclipse.jface.viewers.ViewerFilter;
3,471
Bug 3471 Leading '/' in src page of Java wizard is misleading (1G842TH)
1. create new java project "jp" with Create Java Project wizard. 2. in wizard goto second ("Source") page Observe: the Build Output Folder is "/jp/bin" Since this looks like a Unix pathname I interpret the leading "/" as an indication for a absolute pathname. Other tools use something like: {WORKBENCH}/jp/bin or shell variable syntax: $WORKBENCH/jp/bin NOTES: EG (1/30/01 10:34:33 AM) desktop is using the same convention for presenting paths. General issue: how to show a workbench relative path
resolved wontfix
d8eedf7
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-12T18:21:09Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SourceContainerWorkbookPage.java
import org.eclipse.ui.model.WorkbenchContentProvider; import org.eclipse.ui.model.WorkbenchLabelProvider; import org.eclipse.jdt.core.IClasspathEntry; import org.eclipse.jdt.core.IJavaProject; import org.eclipse.jdt.internal.ui.JavaPlugin; import org.eclipse.jdt.internal.ui.dialogs.ElementTreeSelectionDialog; import org.eclipse.jdt.internal.ui.dialogs.ISelectionValidator; import org.eclipse.jdt.internal.ui.util.SWTUtil; import org.eclipse.jdt.internal.ui.wizards.NewWizardMessages; import org.eclipse.jdt.internal.ui.wizards.TypedElementSelectionValidator; import org.eclipse.jdt.internal.ui.wizards.TypedViewerFilter; import org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField; import org.eclipse.jdt.internal.ui.wizards.dialogfields.IDialogFieldListener; import org.eclipse.jdt.internal.ui.wizards.dialogfields.IListAdapter; import org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField; import org.eclipse.jdt.internal.ui.wizards.dialogfields.SelectionButtonDialogField; import org.eclipse.jdt.internal.ui.wizards.dialogfields.StringDialogField; import org.eclipse.jdt.internal.ui.wizards.swt.MGridData; import org.eclipse.jdt.internal.ui.wizards.swt.MGridLayout; public class SourceContainerWorkbookPage extends BuildPathBasePage { private ListDialogField fClassPathList; private IJavaProject fCurrJProject; private IPath fProjPath; private Control fSWTControl; private IWorkspaceRoot fWorkspaceRoot; private SelectionButtonDialogField fProjectRadioButton; private SelectionButtonDialogField fFolderRadioButton;
3,471
Bug 3471 Leading '/' in src page of Java wizard is misleading (1G842TH)
1. create new java project "jp" with Create Java Project wizard. 2. in wizard goto second ("Source") page Observe: the Build Output Folder is "/jp/bin" Since this looks like a Unix pathname I interpret the leading "/" as an indication for a absolute pathname. Other tools use something like: {WORKBENCH}/jp/bin or shell variable syntax: $WORKBENCH/jp/bin NOTES: EG (1/30/01 10:34:33 AM) desktop is using the same convention for presenting paths. General issue: how to show a workbench relative path
resolved wontfix
d8eedf7
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-12T18:21:09Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SourceContainerWorkbookPage.java
private ListDialogField fFoldersList; private CPListElement fProjectCPEntry; private StringDialogField fOutputLocationField; private boolean fIsProjSelected; public SourceContainerWorkbookPage(IWorkspaceRoot root, ListDialogField classPathList, StringDialogField outputLocationField, boolean isNewProject) { fWorkspaceRoot= root; fClassPathList= classPathList; fProjectCPEntry= null; fOutputLocationField= outputLocationField; fSWTControl= null; SourceContainerAdapter adapter= new SourceContainerAdapter(); fProjectRadioButton= new SelectionButtonDialogField(SWT.RADIO); fProjectRadioButton.setDialogFieldListener(adapter); fProjectRadioButton.setLabelText(NewWizardMessages.getString("SourceContainerWorkbookPage.rb1.label")); fFolderRadioButton= new SelectionButtonDialogField(SWT.RADIO); fFolderRadioButton.setDialogFieldListener(adapter); fFolderRadioButton.setLabelText(NewWizardMessages.getString("SourceContainerWorkbookPage.rb2.label")); String[] buttonLabels; int removeIndex; if (isNewProject) { buttonLabels= new String[] { NewWizardMessages.getString("SourceContainerWorkbookPage.folders.addnew.button"), null,
3,471
Bug 3471 Leading '/' in src page of Java wizard is misleading (1G842TH)
1. create new java project "jp" with Create Java Project wizard. 2. in wizard goto second ("Source") page Observe: the Build Output Folder is "/jp/bin" Since this looks like a Unix pathname I interpret the leading "/" as an indication for a absolute pathname. Other tools use something like: {WORKBENCH}/jp/bin or shell variable syntax: $WORKBENCH/jp/bin NOTES: EG (1/30/01 10:34:33 AM) desktop is using the same convention for presenting paths. General issue: how to show a workbench relative path
resolved wontfix
d8eedf7
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-12T18:21:09Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SourceContainerWorkbookPage.java
NewWizardMessages.getString("SourceContainerWorkbookPage.folders.remove.button") }; removeIndex= 2; } else { buttonLabels= new String[] { NewWizardMessages.getString("SourceContainerWorkbookPage.folders.addnew.button"), NewWizardMessages.getString("SourceContainerWorkbookPage.folders.addnew.addexisting.button"), null, NewWizardMessages.getString("SourceContainerWorkbookPage.folders.remove.button") }; removeIndex= 3; } fFoldersList= new ListDialogField(adapter, buttonLabels, new CPListLabelProvider()); fFoldersList.setDialogFieldListener(adapter); fFoldersList.setLabelText(NewWizardMessages.getString("SourceContainerWorkbookPage.folders.label")); fFoldersList.setRemoveButtonIndex(removeIndex); fFolderRadioButton.attachDialogField(fFoldersList); } public void init(IJavaProject jproject) { fCurrJProject= jproject; fProjPath= fCurrJProject.getProject().getFullPath(); updateFoldersList(); } private void updateFoldersList() { fIsProjSelected= false; List srcelements= new ArrayList(fClassPathList.getSize());
3,471
Bug 3471 Leading '/' in src page of Java wizard is misleading (1G842TH)
1. create new java project "jp" with Create Java Project wizard. 2. in wizard goto second ("Source") page Observe: the Build Output Folder is "/jp/bin" Since this looks like a Unix pathname I interpret the leading "/" as an indication for a absolute pathname. Other tools use something like: {WORKBENCH}/jp/bin or shell variable syntax: $WORKBENCH/jp/bin NOTES: EG (1/30/01 10:34:33 AM) desktop is using the same convention for presenting paths. General issue: how to show a workbench relative path
resolved wontfix
d8eedf7
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-12T18:21:09Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SourceContainerWorkbookPage.java
List cpelements= fClassPathList.getElements(); for (int i= 0; i < cpelements.size(); i++) { CPListElement cpe= (CPListElement)cpelements.get(i); if (cpe.getEntryKind() == IClasspathEntry.CPE_SOURCE) { if (fProjPath.equals(cpe.getPath())) { srcelements.clear(); fProjectCPEntry= cpe; fIsProjSelected= true; break; } else { srcelements.add(cpe); } } } fFoldersList.setElements(srcelements); fFolderRadioButton.setSelection(!fIsProjSelected); fProjectRadioButton.setSelection(fIsProjSelected); } public Control getControl(Composite parent) { Composite composite= new Composite(parent, SWT.NONE); MGridLayout layout= new MGridLayout(); layout.minimumWidth= SWTUtil.convertWidthInCharsToPixels(80, composite); layout.numColumns= 2; composite.setLayout(layout);
3,471
Bug 3471 Leading '/' in src page of Java wizard is misleading (1G842TH)
1. create new java project "jp" with Create Java Project wizard. 2. in wizard goto second ("Source") page Observe: the Build Output Folder is "/jp/bin" Since this looks like a Unix pathname I interpret the leading "/" as an indication for a absolute pathname. Other tools use something like: {WORKBENCH}/jp/bin or shell variable syntax: $WORKBENCH/jp/bin NOTES: EG (1/30/01 10:34:33 AM) desktop is using the same convention for presenting paths. General issue: how to show a workbench relative path
resolved wontfix
d8eedf7
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-12T18:21:09Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SourceContainerWorkbookPage.java
fProjectRadioButton.doFillIntoGrid(composite, 2); fFolderRadioButton.doFillIntoGrid(composite, 2); Control control= fFoldersList.getListControl(composite); MGridData gd= new MGridData(MGridData.FILL_BOTH); gd.horizontalIndent= 10; control.setLayoutData(gd); control= fFoldersList.getButtonBox(composite); gd= new MGridData(gd.VERTICAL_ALIGN_FILL + gd.HORIZONTAL_ALIGN_FILL); control.setLayoutData(gd); int buttonBarWidth= SWTUtil.convertWidthInCharsToPixels(24, composite); fFoldersList.setButtonsMinWidth(buttonBarWidth); fFoldersList.getTableViewer().setSorter(new CPListElementSorter()); fSWTControl= composite; return composite; } private Shell getShell() { if (fSWTControl != null) { return fSWTControl.getShell(); } return JavaPlugin.getActiveWorkbenchShell(); } private class SourceContainerAdapter implements IListAdapter, IDialogFieldListener {
3,471
Bug 3471 Leading '/' in src page of Java wizard is misleading (1G842TH)
1. create new java project "jp" with Create Java Project wizard. 2. in wizard goto second ("Source") page Observe: the Build Output Folder is "/jp/bin" Since this looks like a Unix pathname I interpret the leading "/" as an indication for a absolute pathname. Other tools use something like: {WORKBENCH}/jp/bin or shell variable syntax: $WORKBENCH/jp/bin NOTES: EG (1/30/01 10:34:33 AM) desktop is using the same convention for presenting paths. General issue: how to show a workbench relative path
resolved wontfix
d8eedf7
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-12T18:21:09Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SourceContainerWorkbookPage.java
public void customButtonPressed(DialogField field, int index) { sourcePageCustomButtonPressed(field, index); } public void selectionChanged(DialogField field) {} 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 0: CPListElement srcentry= createNewSourceContainer(); if (srcentry != null) { elementsToAdd.add(srcentry);
3,471
Bug 3471 Leading '/' in src page of Java wizard is misleading (1G842TH)
1. create new java project "jp" with Create Java Project wizard. 2. in wizard goto second ("Source") page Observe: the Build Output Folder is "/jp/bin" Since this looks like a Unix pathname I interpret the leading "/" as an indication for a absolute pathname. Other tools use something like: {WORKBENCH}/jp/bin or shell variable syntax: $WORKBENCH/jp/bin NOTES: EG (1/30/01 10:34:33 AM) desktop is using the same convention for presenting paths. General issue: how to show a workbench relative path
resolved wontfix
d8eedf7
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-12T18:21:09Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SourceContainerWorkbookPage.java
} break; case 1: CPListElement[] srcentries= chooseSourceContainers(); if (srcentries != null) { for (int i= 0; i < srcentries.length; i++) { elementsToAdd.add(srcentries[i]); } } break; } if (!elementsToAdd.isEmpty()) { fFoldersList.addElements(elementsToAdd); fFoldersList.postSetSelection(new StructuredSelection(elementsToAdd)); if (fFoldersList.getSize() == elementsToAdd.size()) { askForChangingBuildPathDialog(); } } } } private void sourcePageDialogFieldChanged(DialogField field) { if (fCurrJProject == null) { return; } if (field == fFolderRadioButton) { if (fFolderRadioButton.isSelected()) {
3,471
Bug 3471 Leading '/' in src page of Java wizard is misleading (1G842TH)
1. create new java project "jp" with Create Java Project wizard. 2. in wizard goto second ("Source") page Observe: the Build Output Folder is "/jp/bin" Since this looks like a Unix pathname I interpret the leading "/" as an indication for a absolute pathname. Other tools use something like: {WORKBENCH}/jp/bin or shell variable syntax: $WORKBENCH/jp/bin NOTES: EG (1/30/01 10:34:33 AM) desktop is using the same convention for presenting paths. General issue: how to show a workbench relative path
resolved wontfix
d8eedf7
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-12T18:21:09Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SourceContainerWorkbookPage.java
fIsProjSelected= false; updateClasspathList(); if (fFoldersList.getSize() > 0) { askForChangingBuildPathDialog(); } } } else if (field == fProjectRadioButton) { if (fProjectRadioButton.isSelected()) { fIsProjSelected= true; updateClasspathList(); } } else if (field == fFoldersList) { updateClasspathList(); } } 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); } else { srcelements= fFoldersList.getElements();
3,471
Bug 3471 Leading '/' in src page of Java wizard is misleading (1G842TH)
1. create new java project "jp" with Create Java Project wizard. 2. in wizard goto second ("Source") page Observe: the Build Output Folder is "/jp/bin" Since this looks like a Unix pathname I interpret the leading "/" as an indication for a absolute pathname. Other tools use something like: {WORKBENCH}/jp/bin or shell variable syntax: $WORKBENCH/jp/bin NOTES: EG (1/30/01 10:34:33 AM) desktop is using the same convention for presenting paths. General issue: how to show a workbench relative path
resolved wontfix
d8eedf7
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-12T18:21:09Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SourceContainerWorkbookPage.java
} boolean changeDone= false; for (int i= cpelements.size() - 1; i >= 0 ; i--) { CPListElement cpe= (CPListElement)cpelements.get(i); if (cpe.getEntryKind() == IClasspathEntry.CPE_SOURCE) { if (!srcelements.remove(cpe)) { cpelements.remove(i); changeDone= true; } } } for (int i= 0; i < srcelements.size(); i++) { cpelements.add(srcelements.get(i)); } if (changeDone || (srcelements.size() > 0)) { fClassPathList.setElements(cpelements); } } private CPListElement createNewSourceContainer() { IProject proj= fCurrJProject.getProject(); String title= NewWizardMessages.getString("SourceContainerWorkbookPage.NewSourceFolderDialog.title"); NewContainerDialog dialog= new NewContainerDialog(getShell(), title, proj, getExistingContainers()); dialog.setMessage(NewWizardMessages.getFormattedString("SourceContainerWorkbookPage.NewSourceFolderDialog.description", fProjPath.toString())); if (dialog.open() == dialog.OK) { IFolder folder= dialog.getFolder(); return newCPSourceElement(folder);
3,471
Bug 3471 Leading '/' in src page of Java wizard is misleading (1G842TH)
1. create new java project "jp" with Create Java Project wizard. 2. in wizard goto second ("Source") page Observe: the Build Output Folder is "/jp/bin" Since this looks like a Unix pathname I interpret the leading "/" as an indication for a absolute pathname. Other tools use something like: {WORKBENCH}/jp/bin or shell variable syntax: $WORKBENCH/jp/bin NOTES: EG (1/30/01 10:34:33 AM) desktop is using the same convention for presenting paths. General issue: how to show a workbench relative path
resolved wontfix
d8eedf7
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-12T18:21:09Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SourceContainerWorkbookPage.java
} return null; } /** * Asks to change the output folder to 'proj/bin' when no source folders were existing */ private void askForChangingBuildPathDialog() { IPath outputFolder= new Path(fOutputLocationField.getText()); if (outputFolder.equals(fCurrJProject.getProject().getFullPath())) { IPath newPath= outputFolder.append("bin"); String title= NewWizardMessages.getString("SourceContainerWorkbookPage.ChangeOutputLocationDialog.title"); String message= NewWizardMessages.getFormattedString("SourceContainerWorkbookPage.ChangeOutputLocationDialog.message", newPath); if (MessageDialog.openQuestion(getShell(), title, message)) { fOutputLocationField.setText(newPath.toString()); } } } private CPListElement[] chooseSourceContainers() { Class[] acceptedClasses= new Class[] { IFolder.class }; ISelectionValidator validator= new TypedElementSelectionValidator(acceptedClasses, true); acceptedClasses= new Class[] { IFolder.class }; ViewerFilter filter= new TypedViewerFilter(acceptedClasses, getExistingContainers()); ILabelProvider lp= new WorkbenchLabelProvider(); ITreeContentProvider cp= new WorkbenchContentProvider();
3,471
Bug 3471 Leading '/' in src page of Java wizard is misleading (1G842TH)
1. create new java project "jp" with Create Java Project wizard. 2. in wizard goto second ("Source") page Observe: the Build Output Folder is "/jp/bin" Since this looks like a Unix pathname I interpret the leading "/" as an indication for a absolute pathname. Other tools use something like: {WORKBENCH}/jp/bin or shell variable syntax: $WORKBENCH/jp/bin NOTES: EG (1/30/01 10:34:33 AM) desktop is using the same convention for presenting paths. General issue: how to show a workbench relative path
resolved wontfix
d8eedf7
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-12T18:21:09Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SourceContainerWorkbookPage.java
ElementTreeSelectionDialog dialog= new ElementTreeSelectionDialog(getShell(), lp, cp); dialog.setValidator(validator); dialog.setTitle(NewWizardMessages.getString("SourceContainerWorkbookPage.ExistingSourceFolderDialog.title")); dialog.setMessage(NewWizardMessages.getString("SourceContainerWorkbookPage.ExistingSourceFolderDialog.description")); dialog.addFilter(filter); dialog.setInput(fCurrJProject.getProject()); if (dialog.open() == dialog.OK) { Object[] elements= dialog.getResult(); CPListElement[] res= new CPListElement[elements.length]; for (int i= 0; i < res.length; i++) { IResource elem= (IResource)elements[i]; res[i]= newCPSourceElement(elem); } return res; } return null; } private IContainer[] getExistingContainers() { List res= new ArrayList(); List cplist= fFoldersList.getElements(); for (int i= 0; i < cplist.size(); i++) { CPListElement elem= (CPListElement)cplist.get(i); IResource resource= elem.getResource(); if (resource instanceof IContainer) { res.add(resource); } } return (IContainer[]) res.toArray(new IContainer[res.size()]); }
3,471
Bug 3471 Leading '/' in src page of Java wizard is misleading (1G842TH)
1. create new java project "jp" with Create Java Project wizard. 2. in wizard goto second ("Source") page Observe: the Build Output Folder is "/jp/bin" Since this looks like a Unix pathname I interpret the leading "/" as an indication for a absolute pathname. Other tools use something like: {WORKBENCH}/jp/bin or shell variable syntax: $WORKBENCH/jp/bin NOTES: EG (1/30/01 10:34:33 AM) desktop is using the same convention for presenting paths. General issue: how to show a workbench relative path
resolved wontfix
d8eedf7
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-12T18:21:09Z"
"2001-10-11T03:13:20Z"
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(IClasspathEntry.CPE_SOURCE, res.getFullPath(), res); } /* * @see BuildPathBasePage#getSelection */ public List getSelection() { if (fIsProjSelected) { ArrayList list= new ArrayList(1); list.add(fProjectCPEntry); return list; } else { return fFoldersList.getSelectedElements(); } } /* * @see BuildPathBasePage#setSelection */ public void setSelection(List selElements) { if (!fIsProjSelected) { filterSelection(selElements, IClasspathEntry.CPE_SOURCE); fFoldersList.selectElements(new StructuredSelection(selElements)); } } }
5,492
Bug 5492 Open in Hierarchy method list is enabled even when nothing is selected
206 1) Ensure no item is selected in the hierachy view's member list 2) Right click - not on an item 3) Open is present and enabled 4) Select Open, nothing happens
resolved fixed
0bf8b4b
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-12T19:32:54Z"
"2001-11-02T19:40:00Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.typehierarchy; import java.util.Set; import org.eclipse.swt.SWT; import org.eclipse.swt.events.ControlAdapter; import org.eclipse.swt.events.ControlEvent; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Control; import org.eclipse.swt.widgets.Item; import org.eclipse.swt.widgets.Menu; import org.eclipse.swt.widgets.ScrollBar; import org.eclipse.swt.widgets.Table; import org.eclipse.swt.widgets.TableColumn; import org.eclipse.jface.action.IMenuListener; import org.eclipse.jface.action.IMenuManager; import org.eclipse.jface.action.MenuManager; import org.eclipse.jface.action.Separator; import org.eclipse.jface.action.ToolBarManager; import org.eclipse.jface.viewers.DoubleClickEvent; import org.eclipse.jface.viewers.IDoubleClickListener; import org.eclipse.jface.viewers.ILabelProvider; import org.eclipse.jface.viewers.TableViewer; import org.eclipse.jface.viewers.Viewer; import org.eclipse.ui.IMemento; import org.eclipse.ui.IWorkbenchPart;
5,492
Bug 5492 Open in Hierarchy method list is enabled even when nothing is selected
206 1) Ensure no item is selected in the hierachy view's member list 2) Right click - not on an item 3) Open is present and enabled 4) Select Open, nothing happens
resolved fixed
0bf8b4b
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-12T19:32:54Z"
"2001-11-02T19:40:00Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
import org.eclipse.ui.IWorkbenchPartSite; import org.eclipse.jdt.core.IJavaElement; import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jdt.ui.IContextMenuConstants; import org.eclipse.jdt.ui.JavaElementLabelProvider; import org.eclipse.jdt.internal.ui.IJavaHelpContextIds; import org.eclipse.jdt.internal.ui.JavaPluginImages; import org.eclipse.jdt.internal.ui.actions.ContextMenuGroup; import org.eclipse.jdt.internal.ui.actions.GenerateGroup; import org.eclipse.jdt.internal.ui.actions.OpenJavaElementAction; import org.eclipse.jdt.internal.ui.search.JavaSearchGroup; import org.eclipse.jdt.internal.ui.util.ExceptionHandler; import org.eclipse.jdt.internal.ui.viewsupport.IProblemChangedListener; import org.eclipse.jdt.internal.ui.viewsupport.JavaElementLabels; import org.eclipse.jdt.internal.ui.viewsupport.JavaElementSorter; import org.eclipse.jdt.internal.ui.viewsupport.MarkerErrorTickProvider; import org.eclipse.jdt.internal.ui.viewsupport.ProblemItemMapper; /** * Method viewer shows a list of methods of a input type. * Offers filter actions. * No dependency to the type hierarchy view */ public class MethodsViewer extends TableViewer implements IProblemChangedListener { private ProblemItemMapper fProblemItemMapper; /** * Sorter that uses the unmodified labelprovider (No declaring class names) */ private static class MethodsViewerSorter extends JavaElementSorter {
5,492
Bug 5492 Open in Hierarchy method list is enabled even when nothing is selected
206 1) Ensure no item is selected in the hierachy view's member list 2) Right click - not on an item 3) Open is present and enabled 4) Select Open, nothing happens
resolved fixed
0bf8b4b
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-12T19:32:54Z"
"2001-11-02T19:40:00Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
public MethodsViewerSorter() { } public int compare(Viewer viewer, Object e1, Object e2) { int cat1 = category(e1); int cat2 = category(e2); if (cat1 != cat2) return cat1 - cat2; String name1= JavaElementLabels.getElementLabel((IJavaElement) e1, JavaElementLabels.ALL_DEFAULT); String name2= JavaElementLabels.getElementLabel((IJavaElement) e2, JavaElementLabels.ALL_DEFAULT); return getCollator().compare(name1, name2); } } private static final String TAG_HIDEFIELDS= "hidefields"; private static final String TAG_HIDESTATIC= "hidestatic"; private static final String TAG_HIDENONPUBLIC= "hidenonpublic"; private static final String TAG_SHOWINHERITED= "showinherited"; private static final String TAG_VERTICAL_SCROLL= "mv_vertical_scroll"; private MethodsViewerFilterAction[] fFilterActions; private MethodsViewerFilter fFilter;
5,492
Bug 5492 Open in Hierarchy method list is enabled even when nothing is selected
206 1) Ensure no item is selected in the hierachy view's member list 2) Right click - not on an item 3) Open is present and enabled 4) Select Open, nothing happens
resolved fixed
0bf8b4b
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-12T19:32:54Z"
"2001-11-02T19:40:00Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
private OpenJavaElementAction fOpen; private TableColumn fTableColumn; private ShowInheritedMembersAction fShowInheritedMembersAction; private ContextMenuGroup[] fStandardGroups; public MethodsViewer(Composite parent, IWorkbenchPart part) { super(new Table(parent, SWT.MULTI)); fProblemItemMapper= new ProblemItemMapper(); fTableColumn= new TableColumn(getTable(), SWT.NULL | SWT.MULTI | SWT.FULL_SELECTION); getTable().addControlListener(new ControlAdapter() { public void controlResized(ControlEvent e) { adjustTableColumnSize(); } }); JavaElementLabelProvider lprovider= new JavaElementLabelProvider(JavaElementLabelProvider.SHOW_DEFAULT); lprovider.setErrorTickManager(new MarkerErrorTickProvider()); MethodsContentProvider contentProvider= new MethodsContentProvider(); setLabelProvider(lprovider); setContentProvider(contentProvider); fOpen= new OpenJavaElementAction(this); addDoubleClickListener(new IDoubleClickListener() { public void doubleClick(DoubleClickEvent event) { fOpen.run(); }
5,492
Bug 5492 Open in Hierarchy method list is enabled even when nothing is selected
206 1) Ensure no item is selected in the hierachy view's member list 2) Right click - not on an item 3) Open is present and enabled 4) Select Open, nothing happens
resolved fixed
0bf8b4b
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-12T19:32:54Z"
"2001-11-02T19:40:00Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
}); fFilter= new MethodsViewerFilter(); String title= TypeHierarchyMessages.getString("MethodsViewer.hide_fields.label"); String helpContext= IJavaHelpContextIds.FILTER_FIELDS_ACTION; MethodsViewerFilterAction hideFields= new MethodsViewerFilterAction(this, title, MethodsViewerFilter.FILTER_FIELDS, helpContext, false); hideFields.setDescription(TypeHierarchyMessages.getString("MethodsViewer.hide_fields.description")); hideFields.setToolTipChecked(TypeHierarchyMessages.getString("MethodsViewer.hide_fields.tooltip.checked")); hideFields.setToolTipUnchecked(TypeHierarchyMessages.getString("MethodsViewer.hide_fields.tooltip.unchecked")); JavaPluginImages.setLocalImageDescriptors(hideFields, "fields_co.gif"); title= TypeHierarchyMessages.getString("MethodsViewer.hide_static.label"); helpContext= IJavaHelpContextIds.FILTER_STATIC_ACTION; MethodsViewerFilterAction hideStatic= new MethodsViewerFilterAction(this, title, MethodsViewerFilter.FILTER_STATIC, helpContext, false); hideStatic.setDescription(TypeHierarchyMessages.getString("MethodsViewer.hide_static.description")); hideStatic.setToolTipChecked(TypeHierarchyMessages.getString("MethodsViewer.hide_static.tooltip.checked")); hideStatic.setToolTipUnchecked(TypeHierarchyMessages.getString("MethodsViewer.hide_static.tooltip.unchecked")); JavaPluginImages.setLocalImageDescriptors(hideStatic, "static_co.gif"); title= TypeHierarchyMessages.getString("MethodsViewer.hide_nonpublic.label"); helpContext= IJavaHelpContextIds.FILTER_PUBLIC_ACTION; MethodsViewerFilterAction hideNonPublic= new MethodsViewerFilterAction(this, title, MethodsViewerFilter.FILTER_NONPUBLIC, helpContext, false); hideNonPublic.setDescription(TypeHierarchyMessages.getString("MethodsViewer.hide_nonpublic.description")); hideNonPublic.setToolTipChecked(TypeHierarchyMessages.getString("MethodsViewer.hide_nonpublic.tooltip.checked")); hideNonPublic.setToolTipUnchecked(TypeHierarchyMessages.getString("MethodsViewer.hide_nonpublic.tooltip.unchecked")); JavaPluginImages.setLocalImageDescriptors(hideNonPublic, "public_co.gif");
5,492
Bug 5492 Open in Hierarchy method list is enabled even when nothing is selected
206 1) Ensure no item is selected in the hierachy view's member list 2) Right click - not on an item 3) Open is present and enabled 4) Select Open, nothing happens
resolved fixed
0bf8b4b
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-12T19:32:54Z"
"2001-11-02T19:40:00Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
fFilterActions= new MethodsViewerFilterAction[] { hideFields, hideStatic, hideNonPublic }; addFilter(fFilter); fShowInheritedMembersAction= new ShowInheritedMembersAction(this, false); showInheritedMethods(false); fStandardGroups= new ContextMenuGroup[] { new JavaSearchGroup(), new GenerateGroup() }; setSorter(new MethodsViewerSorter()); } /** * Show inherited methods */ public void showInheritedMethods(boolean on) { MethodsContentProvider cprovider= (MethodsContentProvider) getContentProvider(); try { cprovider.showInheritedMethods(on); fShowInheritedMembersAction.setChecked(on); JavaElementLabelProvider lprovider= (JavaElementLabelProvider) getLabelProvider(); if (on) { lprovider.turnOn(JavaElementLabelProvider.SHOW_POST_QUALIFIED); } else { lprovider.turnOff(JavaElementLabelProvider.SHOW_POST_QUALIFIED);
5,492
Bug 5492 Open in Hierarchy method list is enabled even when nothing is selected
206 1) Ensure no item is selected in the hierachy view's member list 2) Right click - not on an item 3) Open is present and enabled 4) Select Open, nothing happens
resolved fixed
0bf8b4b
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-12T19:32:54Z"
"2001-11-02T19:40:00Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
} refresh(); adjustTableColumnSize(); } catch (JavaModelException e) { ExceptionHandler.handle(e, getControl().getShell(), TypeHierarchyMessages.getString("MethodsViewer.toggle.error.title"), TypeHierarchyMessages.getString("MethodsViewer.toggle.error.message")); } } private void adjustTableColumnSize() { if (fTableColumn != null && !fTableColumn.isDisposed()) { fTableColumn.pack(); } } /* * @see Viewer#inputChanged(Object, Object) */ protected void inputChanged(Object input, Object oldInput) { super.inputChanged(input, oldInput); adjustTableColumnSize(); } /** * Returns <code>true</code> if inherited methods are shown. */ public boolean isShowInheritedMethods() { return ((MethodsContentProvider) getContentProvider()).isShowInheritedMethods(); } /**
5,492
Bug 5492 Open in Hierarchy method list is enabled even when nothing is selected
206 1) Ensure no item is selected in the hierachy view's member list 2) Right click - not on an item 3) Open is present and enabled 4) Select Open, nothing happens
resolved fixed
0bf8b4b
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-12T19:32:54Z"
"2001-11-02T19:40:00Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
* Filters the method list */ public void setMemberFilter(int filterProperty, boolean set) { if (set) { fFilter.addFilter(filterProperty); } else { fFilter.removeFilter(filterProperty); } for (int i= 0; i < fFilterActions.length; i++) { if (fFilterActions[i].getFilterProperty() == filterProperty) { fFilterActions[i].setChecked(set); } } refresh(); } /** * Returns <code>true</code> if the given filter is set. */ public boolean hasMemberFilter(int filterProperty) { return fFilter.hasFilter(filterProperty); } /** * Saves the state of the filter actions */ public void saveState(IMemento memento) { memento.putString(TAG_HIDEFIELDS, String.valueOf(hasMemberFilter(MethodsViewerFilter.FILTER_FIELDS))); memento.putString(TAG_HIDESTATIC, String.valueOf(hasMemberFilter(MethodsViewerFilter.FILTER_STATIC))); memento.putString(TAG_HIDENONPUBLIC, String.valueOf(hasMemberFilter(MethodsViewerFilter.FILTER_NONPUBLIC))); memento.putString(TAG_SHOWINHERITED, String.valueOf(isShowInheritedMethods()));
5,492
Bug 5492 Open in Hierarchy method list is enabled even when nothing is selected
206 1) Ensure no item is selected in the hierachy view's member list 2) Right click - not on an item 3) Open is present and enabled 4) Select Open, nothing happens
resolved fixed
0bf8b4b
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-12T19:32:54Z"
"2001-11-02T19:40:00Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
ScrollBar bar= getTable().getVerticalBar(); int position= bar != null ? bar.getSelection() : 0; memento.putString(TAG_VERTICAL_SCROLL, String.valueOf(position)); } /** * Restores the state of the filter actions */ public void restoreState(IMemento memento) { boolean set= Boolean.valueOf(memento.getString(TAG_HIDEFIELDS)).booleanValue(); setMemberFilter(MethodsViewerFilter.FILTER_FIELDS, set); set= Boolean.valueOf(memento.getString(TAG_HIDESTATIC)).booleanValue(); setMemberFilter(MethodsViewerFilter.FILTER_STATIC, set); set= Boolean.valueOf(memento.getString(TAG_HIDENONPUBLIC)).booleanValue(); setMemberFilter(MethodsViewerFilter.FILTER_NONPUBLIC, set); set= Boolean.valueOf(memento.getString(TAG_SHOWINHERITED)).booleanValue(); showInheritedMethods(set); ScrollBar bar= getTable().getVerticalBar(); if (bar != null) { Integer vScroll= memento.getInteger(TAG_VERTICAL_SCROLL); if (vScroll != null) { bar.setSelection(vScroll.intValue()); } } } /** * Attaches a contextmenu listener to the table */
5,492
Bug 5492 Open in Hierarchy method list is enabled even when nothing is selected
206 1) Ensure no item is selected in the hierachy view's member list 2) Right click - not on an item 3) Open is present and enabled 4) Select Open, nothing happens
resolved fixed
0bf8b4b
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-12T19:32:54Z"
"2001-11-02T19:40:00Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
public void initContextMenu(IMenuListener menuListener, String popupId, IWorkbenchPartSite viewSite) { MenuManager menuMgr= new MenuManager(); menuMgr.setRemoveAllWhenShown(true); menuMgr.addMenuListener(menuListener); Menu menu= menuMgr.createContextMenu(getTable()); getTable().setMenu(menu); viewSite.registerContextMenu(popupId, menuMgr, this); } /** * Fills up the context menu with items for the method viewer * Should be called by the creator of the context menu */ public void contributeToContextMenu(IMenuManager menu) { menu.appendToGroup(IContextMenuConstants.GROUP_OPEN, fOpen); ContextMenuGroup.add(menu, fStandardGroups, this); } /** * Fills up the tool bar with items for the method viewer * Should be called by the creator of the tool bar */ public void contributeToToolBar(ToolBarManager tbm) { tbm.add(fShowInheritedMembersAction); tbm.add(new Separator()); tbm.add(fFilterActions[0]); tbm.add(fFilterActions[1]); tbm.add(fFilterActions[2]); } /*
5,492
Bug 5492 Open in Hierarchy method list is enabled even when nothing is selected
206 1) Ensure no item is selected in the hierachy view's member list 2) Right click - not on an item 3) Open is present and enabled 4) Select Open, nothing happens
resolved fixed
0bf8b4b
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-12T19:32:54Z"
"2001-11-02T19:40:00Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
* @see IProblemChangedListener#problemsChanged */ public void problemsChanged(final Set changed) { Control control= getControl(); if (control != null && !control.isDisposed()) { control.getDisplay().asyncExec(new Runnable() { public void run() { fProblemItemMapper.problemsChanged(changed, (ILabelProvider)getLabelProvider()); } }); } } /* * @see StructuredViewer#associate(Object, Item) */ protected void associate(Object element, Item item) { if (item.getData() != element) { fProblemItemMapper.addToMap(element, item); } super.associate(element, item); } /* * @see StructuredViewer#disassociate(Item) */ protected void disassociate(Item item) { fProblemItemMapper.removeFromMap(item.getData(), item); super.disassociate(item); } }
5,492
Bug 5492 Open in Hierarchy method list is enabled even when nothing is selected
206 1) Ensure no item is selected in the hierachy view's member list 2) Right click - not on an item 3) Open is present and enabled 4) Select Open, nothing happens
resolved fixed
0bf8b4b
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-12T19:32:54Z"
"2001-11-02T19:40:00Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewer.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.typehierarchy; import org.eclipse.swt.SWT; import org.eclipse.swt.widgets.Composite;
5,492
Bug 5492 Open in Hierarchy method list is enabled even when nothing is selected
206 1) Ensure no item is selected in the hierachy view's member list 2) Right click - not on an item 3) Open is present and enabled 4) Select Open, nothing happens
resolved fixed
0bf8b4b
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-12T19:32:54Z"
"2001-11-02T19:40:00Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewer.java
import org.eclipse.swt.widgets.Menu; import org.eclipse.swt.widgets.Tree; import org.eclipse.jface.action.IMenuListener; import org.eclipse.jface.action.IMenuManager; import org.eclipse.jface.action.MenuManager; import org.eclipse.jface.util.Assert; import org.eclipse.jface.viewers.DoubleClickEvent; import org.eclipse.jface.viewers.IContentProvider; import org.eclipse.jface.viewers.IDoubleClickListener; import org.eclipse.jface.viewers.ILabelProvider; import org.eclipse.jface.viewers.IStructuredContentProvider; import org.eclipse.jface.viewers.ViewerSorter; import org.eclipse.ui.IWorkbenchPart; import org.eclipse.ui.IWorkbenchPartSite; import org.eclipse.jdt.core.IMember; import org.eclipse.jdt.core.IType; import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jdt.ui.IContextMenuConstants; import org.eclipse.jdt.ui.JavaElementLabelProvider; import org.eclipse.jdt.internal.ui.actions.ContextMenuGroup; import org.eclipse.jdt.internal.ui.actions.GenerateGroup; import org.eclipse.jdt.internal.ui.actions.OpenJavaElementAction; import org.eclipse.jdt.internal.ui.actions.ShowInPackageViewAction; import org.eclipse.jdt.internal.ui.search.JavaSearchGroup; import org.eclipse.jdt.internal.ui.viewsupport.IProblemChangedListener; import org.eclipse.jdt.internal.ui.viewsupport.MarkerErrorTickProvider; import org.eclipse.jdt.internal.ui.viewsupport.ProblemTreeViewer; import org.eclipse.jdt.internal.ui.wizards.NewGroup; public abstract class TypeHierarchyViewer extends ProblemTreeViewer implements IProblemChangedListener {
5,492
Bug 5492 Open in Hierarchy method list is enabled even when nothing is selected
206 1) Ensure no item is selected in the hierachy view's member list 2) Right click - not on an item 3) Open is present and enabled 4) Select Open, nothing happens
resolved fixed
0bf8b4b
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-12T19:32:54Z"
"2001-11-02T19:40:00Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewer.java
private OpenJavaElementAction fOpen; private ShowInPackageViewAction fShowInPackageViewAction; private ContextMenuGroup[] fStandardGroups; public TypeHierarchyViewer(Composite parent, IContentProvider contentProvider, ILabelProvider lprovider, IWorkbenchPart part) { super(new Tree(parent, SWT.SINGLE)); setContentProvider(contentProvider); setLabelProvider(lprovider); setSorter(new ViewerSorter() { public boolean isSorterProperty(Object element, Object property) { return true; } public int category(Object element) { if (element instanceof IType) { try { return (((IType)element).isInterface()) ? 2 : 1; } catch (JavaModelException e) { } } else if (element instanceof IMember) { return 0; } return 3; } });
5,492
Bug 5492 Open in Hierarchy method list is enabled even when nothing is selected
206 1) Ensure no item is selected in the hierachy view's member list 2) Right click - not on an item 3) Open is present and enabled 4) Select Open, nothing happens
resolved fixed
0bf8b4b
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-12T19:32:54Z"
"2001-11-02T19:40:00Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewer.java
fOpen= new OpenJavaElementAction(this); addDoubleClickListener(new IDoubleClickListener() { public void doubleClick(DoubleClickEvent event) { fOpen.run(); } }); fShowInPackageViewAction= new ShowInPackageViewAction(); fStandardGroups= new ContextMenuGroup[] { new JavaSearchGroup(), new NewGroup(), new GenerateGroup() }; } /** * Attaches a contextmenu listener to the tree */ public void initContextMenu(IMenuListener menuListener, String popupId, IWorkbenchPartSite viewSite) { MenuManager menuMgr= new MenuManager(); menuMgr.setRemoveAllWhenShown(true); menuMgr.addMenuListener(menuListener); Menu menu= menuMgr.createContextMenu(getTree()); getTree().setMenu(menu); viewSite.registerContextMenu(popupId, menuMgr, this); } /** * Fills up the context menu with items for the hierarchy viewer * Should be called by the creator of the context menu */ public void contributeToContextMenu(IMenuManager menu) { menu.appendToGroup(IContextMenuConstants.GROUP_OPEN, fOpen);
5,492
Bug 5492 Open in Hierarchy method list is enabled even when nothing is selected
206 1) Ensure no item is selected in the hierachy view's member list 2) Right click - not on an item 3) Open is present and enabled 4) Select Open, nothing happens
resolved fixed
0bf8b4b
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-12T19:32:54Z"
"2001-11-02T19:40:00Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewer.java
menu.appendToGroup(IContextMenuConstants.GROUP_SHOW, fShowInPackageViewAction); ContextMenuGroup.add(menu, fStandardGroups, this); } /** * Set the member filter */ public void setMemberFilter(IMember[] memberFilter) { getHierarchyContentProvider().setMemberFilter(memberFilter); } /** * Returns if method filtering is enabled. */ public boolean isMethodFiltering() { return getHierarchyContentProvider().getMemberFilter() != null; } /** * Returns true if the hierarchy contains elements. Returns one of them * With member filtering it is possible that no elements are visible */ public Object containsElements() { Object[] elements= ((IStructuredContentProvider)getContentProvider()).getElements(null); if (elements.length > 0) { return elements[0]; } return null; }
5,492
Bug 5492 Open in Hierarchy method list is enabled even when nothing is selected
206 1) Ensure no item is selected in the hierachy view's member list 2) Right click - not on an item 3) Open is present and enabled 4) Select Open, nothing happens
resolved fixed
0bf8b4b
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-12T19:32:54Z"
"2001-11-02T19:40:00Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewer.java
/** * Returns true if the hierarchy contains element the element. */ public boolean isElementShown(Object element) { return findItem(element) != null; } /** * Updates the content of this viewer: refresh and expanding the tree in the way wanted. */ public abstract void updateContent(); /** * Returns the title for the current view */ public abstract String getTitle(); /* * @see StructuredViewer#setContentProvider * Content provider must be of type TypeHierarchyContentProvider */ public void setContentProvider(IContentProvider cp) { Assert.isTrue(cp instanceof TypeHierarchyContentProvider); super.setContentProvider(cp); } protected TypeHierarchyContentProvider getHierarchyContentProvider() { return (TypeHierarchyContentProvider)getContentProvider(); } }
3,770
Bug 3770 Java Preference page needs better grouping (1GERREW)
EG (6/3/2001 1:57:32 PM) the Java preference page needs space between the different groups. Package view related prefs should come together. There should be whitespace before the hierarchy preference setting. NOTES: EG (6/4/2001 12:00:42 PM) adding white space is work since we are using the preference dialog fields. This is not critcal, but the order of the packages view prefs should change. EG (6/5/2001 9:56:40 AM) defer
resolved fixed
c1e5823
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-13T14:45:02Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaBasePreferencePage.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.preferences; import org.eclipse.swt.widgets.Composite; import org.eclipse.jface.preference.BooleanFieldEditor; import org.eclipse.jface.preference.FieldEditorPreferencePage; import org.eclipse.jface.preference.IPreferenceStore; import org.eclipse.jface.preference.RadioGroupFieldEditor; import org.eclipse.ui.IWorkbench; import org.eclipse.ui.IWorkbenchPreferencePage; import org.eclipse.ui.help.DialogPageContextComputer; import org.eclipse.ui.help.WorkbenchHelp; import org.eclipse.jdt.internal.ui.IJavaHelpContextIds; import org.eclipse.jdt.internal.ui.IPreferencesConstants; import org.eclipse.jdt.internal.ui.JavaPlugin; import org.eclipse.jdt.internal.ui.JavaUIMessages; /* * The page for setting java plugin preferences. */ public class JavaBasePreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage {
3,770
Bug 3770 Java Preference page needs better grouping (1GERREW)
EG (6/3/2001 1:57:32 PM) the Java preference page needs space between the different groups. Package view related prefs should come together. There should be whitespace before the hierarchy preference setting. NOTES: EG (6/4/2001 12:00:42 PM) adding white space is work since we are using the preference dialog fields. This is not critcal, but the order of the packages view prefs should change. EG (6/5/2001 9:56:40 AM) defer
resolved fixed
c1e5823
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-13T14:45:02Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaBasePreferencePage.java
public JavaBasePreferencePage() { super(GRID); setPreferenceStore(JavaPlugin.getDefault().getPreferenceStore()); setDescription(JavaUIMessages.getString("JavaBasePreferencePage.description")); } public static void initDefaults(IPreferenceStore store) { store.setDefault(IPreferencesConstants.LINK_PACKAGES_TO_EDITOR, true); store.setDefault(IPreferencesConstants.SHOW_CU_CHILDREN, true); store.setDefault(IPreferencesConstants.LINK_TYPEHIERARCHY_TO_EDITOR, false); store.setDefault(IPreferencesConstants.OPEN_TYPE_HIERARCHY, IPreferencesConstants.OPEN_TYPE_HIERARCHY_IN_VIEW_PART); store.setDefault(IPreferencesConstants.SRCBIN_FOLDERS_IN_NEWPROJ, false); store.setDefault(IPreferencesConstants.DOUBLE_CLICK_GOES_INTO, false); } /** * @see PreferencePage#createControl(Composite) */
3,770
Bug 3770 Java Preference page needs better grouping (1GERREW)
EG (6/3/2001 1:57:32 PM) the Java preference page needs space between the different groups. Package view related prefs should come together. There should be whitespace before the hierarchy preference setting. NOTES: EG (6/4/2001 12:00:42 PM) adding white space is work since we are using the preference dialog fields. This is not critcal, but the order of the packages view prefs should change. EG (6/5/2001 9:56:40 AM) defer
resolved fixed
c1e5823
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-13T14:45:02Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaBasePreferencePage.java
public void createControl(Composite parent) { super.createControl(parent); WorkbenchHelp.setHelp(getControl(), new DialogPageContextComputer(this, IJavaHelpContextIds.JAVA_BASE_PREFERENCE_PAGE)); } protected void createFieldEditors() { Composite parent= getFieldEditorParent(); BooleanFieldEditor boolEditor= new BooleanFieldEditor( IPreferencesConstants.LINK_PACKAGES_TO_EDITOR, JavaUIMessages.getString("JavaBasePreferencePage.linkPackageView"), parent ); addField(boolEditor); boolEditor= new BooleanFieldEditor( IPreferencesConstants.LINK_TYPEHIERARCHY_TO_EDITOR, JavaUIMessages.getString("JavaBasePreferencePage.linkTypeHierarchy"), parent ); addField(boolEditor); boolEditor= new BooleanFieldEditor( IPreferencesConstants.DOUBLE_CLICK_GOES_INTO, JavaUIMessages.getString("JavaBasePreferencePage.dblClick"), parent ); addField(boolEditor); boolEditor= new BooleanFieldEditor(
3,770
Bug 3770 Java Preference page needs better grouping (1GERREW)
EG (6/3/2001 1:57:32 PM) the Java preference page needs space between the different groups. Package view related prefs should come together. There should be whitespace before the hierarchy preference setting. NOTES: EG (6/4/2001 12:00:42 PM) adding white space is work since we are using the preference dialog fields. This is not critcal, but the order of the packages view prefs should change. EG (6/5/2001 9:56:40 AM) defer
resolved fixed
c1e5823
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-13T14:45:02Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaBasePreferencePage.java
IPreferencesConstants.SHOW_CU_CHILDREN, JavaUIMessages.getString("JavaBasePreferencePage.cuChildren"), parent ); addField(boolEditor); boolEditor= new BooleanFieldEditor( IPreferencesConstants.SRCBIN_FOLDERS_IN_NEWPROJ, JavaUIMessages.getString("JavaBasePreferencePage.folders"), parent ); addField(boolEditor); RadioGroupFieldEditor editor= new RadioGroupFieldEditor( IPreferencesConstants.OPEN_TYPE_HIERARCHY, JavaUIMessages.getString("JavaBasePreferencePage.openTypeHierarchy"), 1, new String[][] { {JavaUIMessages.getString("JavaBasePreferencePage.inPerspective"), IPreferencesConstants.OPEN_TYPE_HIERARCHY_IN_PERSPECTIVE}, {JavaUIMessages.getString("JavaBasePreferencePage.inView"), IPreferencesConstants.OPEN_TYPE_HIERARCHY_IN_VIEW_PART} }, parent); addField(editor); } public void init(IWorkbench workbench) { } public static boolean useSrcAndBinFolders() { IPreferenceStore store= JavaPlugin.getDefault().getPreferenceStore(); return store.getBoolean(IPreferencesConstants.SRCBIN_FOLDERS_IN_NEWPROJ); }
3,770
Bug 3770 Java Preference page needs better grouping (1GERREW)
EG (6/3/2001 1:57:32 PM) the Java preference page needs space between the different groups. Package view related prefs should come together. There should be whitespace before the hierarchy preference setting. NOTES: EG (6/4/2001 12:00:42 PM) adding white space is work since we are using the preference dialog fields. This is not critcal, but the order of the packages view prefs should change. EG (6/5/2001 9:56:40 AM) defer
resolved fixed
c1e5823
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-13T14:45:02Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaBasePreferencePage.java
public static boolean linkPackageSelectionToEditor() { IPreferenceStore store= JavaPlugin.getDefault().getPreferenceStore(); return store.getBoolean(IPreferencesConstants.LINK_PACKAGES_TO_EDITOR); } public static boolean showCompilationUnitChildren() { IPreferenceStore store= JavaPlugin.getDefault().getPreferenceStore(); return store.getBoolean(IPreferencesConstants.SHOW_CU_CHILDREN); } public static boolean linkTypeHierarchySelectionToEditor() { IPreferenceStore store= JavaPlugin.getDefault().getPreferenceStore(); return store.getBoolean(IPreferencesConstants.LINK_TYPEHIERARCHY_TO_EDITOR); } public static boolean openTypeHierarchyInPerspective() { return IPreferencesConstants.OPEN_TYPE_HIERARCHY_IN_PERSPECTIVE.equals( JavaPlugin.getDefault().getPreferenceStore().getString(IPreferencesConstants.OPEN_TYPE_HIERARCHY)); } public static boolean openTypeHierarchInViewPart() { return IPreferencesConstants.OPEN_TYPE_HIERARCHY_IN_VIEW_PART.equals( JavaPlugin.getDefault().getPreferenceStore().getString(IPreferencesConstants.OPEN_TYPE_HIERARCHY)); } public static boolean doubleClockGoesInto() { IPreferenceStore store= JavaPlugin.getDefault().getPreferenceStore(); return store.getBoolean(IPreferencesConstants.DOUBLE_CLICK_GOES_INTO); } }
5,832
Bug 5832 Template Pref page: Edit: Copy/paste context menu
The text field to edit the templates should have a context menu with copy/paste.
resolved fixed
783cbe5
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-13T17:08:59Z"
"2001-11-13T11:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/EditTemplateDialog.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.preferences; import org.eclipse.swt.SWT; import org.eclipse.swt.custom.StyledText; import org.eclipse.swt.events.ModifyEvent; import org.eclipse.swt.events.ModifyListener; import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.events.SelectionListener; import org.eclipse.swt.graphics.Font; import org.eclipse.swt.graphics.Point; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Button; import org.eclipse.swt.widgets.Combo; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Control;
5,832
Bug 5832 Template Pref page: Edit: Copy/paste context menu
The text field to edit the templates should have a context menu with copy/paste.
resolved fixed
783cbe5
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-13T17:08:59Z"
"2001-11-13T11:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/EditTemplateDialog.java
import org.eclipse.swt.widgets.Label; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.Text; import org.eclipse.jface.resource.JFaceResources; import org.eclipse.jface.text.Document; import org.eclipse.jface.text.DocumentEvent; import org.eclipse.jface.text.IDocument; import org.eclipse.jface.text.IDocumentListener; import org.eclipse.jface.text.contentassist.IContentAssistant; import org.eclipse.jface.text.source.ISourceViewer; import org.eclipse.jface.text.source.SourceViewer; import org.eclipse.jface.window.Window; import org.eclipse.ui.texteditor.ITextEditor; import org.eclipse.jdt.ui.text.JavaSourceViewerConfiguration; import org.eclipse.jdt.ui.text.JavaTextTools; import org.eclipse.jdt.internal.ui.JavaPlugin; import org.eclipse.jdt.internal.ui.dialogs.StatusDialog; import org.eclipse.jdt.internal.ui.dialogs.StatusInfo; import org.eclipse.jdt.internal.ui.text.template.Template; import org.eclipse.jdt.internal.ui.text.template.TemplateCollector; import org.eclipse.jdt.internal.ui.text.template.TemplateContext; import org.eclipse.jdt.internal.ui.text.template.TemplateInterpolator; import org.eclipse.jdt.internal.ui.text.template.TemplateMessages; import org.eclipse.jdt.internal.ui.text.template.TemplateVariableDialog; import org.eclipse.jdt.internal.ui.text.template.VariableEvaluator; import org.eclipse.jdt.internal.ui.util.SWTUtil; /** * Dialog to edit a template. */ public class EditTemplateDialog extends StatusDialog {
5,832
Bug 5832 Template Pref page: Edit: Copy/paste context menu
The text field to edit the templates should have a context menu with copy/paste.
resolved fixed
783cbe5
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-13T17:08:59Z"
"2001-11-13T11:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/EditTemplateDialog.java
private static class SimpleJavaSourceViewerConfiguration extends JavaSourceViewerConfiguration { SimpleJavaSourceViewerConfiguration(JavaTextTools tools, ITextEditor editor) { super(tools, editor); } /* * @see SourceViewerConfiguration#getContentAssistant(ISourceViewer) */ public IContentAssistant getContentAssistant(ISourceViewer sourceViewer) { return null; } } private static class TemplateVerifier implements VariableEvaluator {
5,832
Bug 5832 Template Pref page: Edit: Copy/paste context menu
The text field to edit the templates should have a context menu with copy/paste.
resolved fixed
783cbe5
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-13T17:08:59Z"
"2001-11-13T11:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/EditTemplateDialog.java
private String fErrorMessage; private boolean fHasAdjacentVariables; private boolean fEndsWithVariable; public void reset() { fErrorMessage= null; fHasAdjacentVariables= false; fEndsWithVariable= false; } public void acceptError(String message) { if (fErrorMessage == null) fErrorMessage= message; } public void acceptText(String text) { if (text.length() > 0) fEndsWithVariable= false; } public void acceptVariable(String variable) { if (fEndsWithVariable) fHasAdjacentVariables= true; fEndsWithVariable= true; } public boolean hasErrors() { return fHasAdjacentVariables || (fErrorMessage != null); }
5,832
Bug 5832 Template Pref page: Edit: Copy/paste context menu
The text field to edit the templates should have a context menu with copy/paste.
resolved fixed
783cbe5
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-13T17:08:59Z"
"2001-11-13T11:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/EditTemplateDialog.java
public String getErrorMessage() { if (fHasAdjacentVariables) return TemplateMessages.getString("EditTemplateDialog.error.adjacent.variables"); return fErrorMessage; } } private Template fTemplate; private Text fNameText; private Text fDescriptionText; private Combo fContextCombo; private SourceViewer fPatternEditor; private Button fInsertVariableButton; private TemplateInterpolator fInterpolator= new TemplateInterpolator(); private TemplateVerifier fVerifier= new TemplateVerifier(); private boolean fSuppressError= true; public EditTemplateDialog(Shell parent, Template template, boolean edit) { super(parent); if (edit) setTitle(TemplateMessages.getString("EditTemplateDialog.title.edit")); else setTitle(TemplateMessages.getString("EditTemplateDialog.title.new")); fTemplate= template; } /*
5,832
Bug 5832 Template Pref page: Edit: Copy/paste context menu
The text field to edit the templates should have a context menu with copy/paste.
resolved fixed
783cbe5
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-13T17:08:59Z"
"2001-11-13T11:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/EditTemplateDialog.java
* @see Dialog#createDialogArea(Composite) */ protected Control createDialogArea(Composite ancestor) { Composite parent= new Composite(ancestor, SWT.NONE); GridLayout layout= new GridLayout(); layout.numColumns= 2; parent.setLayout(layout); parent.setLayoutData(new GridData(GridData.FILL_BOTH)); createLabel(parent, TemplateMessages.getString("EditTemplateDialog.name")); Composite composite= new Composite(parent, SWT.NONE); composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); layout= new GridLayout(); layout.numColumns= 3; layout.marginWidth= 0; layout.marginHeight= 0; composite.setLayout(layout); fNameText= createText(composite); fNameText.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { if (fSuppressError && (fNameText.getText().trim().length() != 0)) fSuppressError= false; updateButtons(); } }); createLabel(composite, TemplateMessages.getString("EditTemplateDialog.context")); fContextCombo= new Combo(composite, SWT.READ_ONLY); fContextCombo.setItems(new String[] {TemplateContext.JAVA, TemplateContext.JAVADOC});
5,832
Bug 5832 Template Pref page: Edit: Copy/paste context menu
The text field to edit the templates should have a context menu with copy/paste.
resolved fixed
783cbe5
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-13T17:08:59Z"
"2001-11-13T11:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/EditTemplateDialog.java
createLabel(parent, TemplateMessages.getString("EditTemplateDialog.description")); fDescriptionText= createText(parent); composite= new Composite(parent, SWT.NONE); composite.setLayoutData(new GridData(GridData.FILL_VERTICAL)); layout= new GridLayout(); layout.marginWidth= 0; layout.marginHeight= 0; composite.setLayout(layout); Label patternLabel= createLabel(composite, TemplateMessages.getString("EditTemplateDialog.pattern")); fPatternEditor= createEditor(parent); Label filler= new Label(composite, SWT.NONE); filler.setLayoutData(new GridData(GridData.FILL_VERTICAL)); fInsertVariableButton= new Button(composite, SWT.NONE); fInsertVariableButton.setLayoutData(getButtonGridData(fInsertVariableButton)); fInsertVariableButton.setText(TemplateMessages.getString("EditTemplateDialog.insert.variable")); fInsertVariableButton.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { insertVariable(); } public void widgetDefaultSelected(SelectionEvent e) {} }); fNameText.setText(fTemplate.getName()); fDescriptionText.setText(fTemplate.getDescription()); fContextCombo.select(getIndex(fTemplate.getContext())); fPatternEditor.getDocument().set(fTemplate.getPattern()); return composite; }
5,832
Bug 5832 Template Pref page: Edit: Copy/paste context menu
The text field to edit the templates should have a context menu with copy/paste.
resolved fixed
783cbe5
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-13T17:08:59Z"
"2001-11-13T11:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/EditTemplateDialog.java
private static GridData getButtonGridData(Button button) { GridData data= new GridData(GridData.FILL_HORIZONTAL); data.heightHint= SWTUtil.getButtonHeigthHint(button); return data; } private static Label createLabel(Composite parent, String name) { Label label= new Label(parent, SWT.NULL); label.setText(name); label.setLayoutData(new GridData()); return label; } private static Text createText(Composite parent) { Text text= new Text(parent, SWT.BORDER); text.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); return text; } private SourceViewer createEditor(Composite parent) { SourceViewer viewer= new SourceViewer(parent, null, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL); JavaTextTools tools= JavaPlugin.getDefault().getJavaTextTools(); viewer.configure(new SimpleJavaSourceViewerConfiguration(tools, null)); viewer.setEditable(true); IDocument document= new Document(); document.addDocumentListener(new IDocumentListener() { public void documentAboutToBeChanged(DocumentEvent event) {} public void documentChanged(DocumentEvent event) { fInterpolator.interpolate(event.getDocument().get(), fVerifier); updateButtons();
5,832
Bug 5832 Template Pref page: Edit: Copy/paste context menu
The text field to edit the templates should have a context menu with copy/paste.
resolved fixed
783cbe5
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-13T17:08:59Z"
"2001-11-13T11:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/EditTemplateDialog.java
} }); viewer.setDocument(document); Font font= JFaceResources.getFontRegistry().get(JFaceResources.TEXT_FONT); viewer.getTextWidget().setFont(font); Control control= viewer.getControl(); GridData data= new GridData(GridData.FILL_BOTH); data.widthHint= convertWidthInCharsToPixels(60); data.heightHint= convertHeightInCharsToPixels(5); control.setLayoutData(data); return viewer; } private static int getIndex(String context) { if (context.equals(TemplateContext.JAVA)) return 0; else if (context.equals(TemplateContext.JAVADOC)) return 1; else return -1; } protected void okPressed() { fTemplate.setName(fNameText.getText()); fTemplate.setDescription(fDescriptionText.getText()); fTemplate.setContext(fContextCombo.getText()); fTemplate.setPattern(fPatternEditor.getTextWidget().getText());
5,832
Bug 5832 Template Pref page: Edit: Copy/paste context menu
The text field to edit the templates should have a context menu with copy/paste.
resolved fixed
783cbe5
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-13T17:08:59Z"
"2001-11-13T11:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/EditTemplateDialog.java
super.okPressed(); } private void updateButtons() { boolean valid= fNameText.getText().trim().length() != 0; StatusInfo status= new StatusInfo(); if (!valid) { if (fSuppressError) status.setError(""); else status.setError(TemplateMessages.getString("EditTemplateDialog.error.noname")); } else if (fVerifier.hasErrors()) { status.setError(fVerifier.getErrorMessage()); } updateStatus(status); } private void insertVariable() { TemplateVariableDialog dialog= new TemplateVariableDialog(getShell(), TemplateCollector.getVariables()); if (dialog.open() == Window.OK) { String variable= "${" + dialog.getSelectedName() + "}"; StyledText text= fPatternEditor.getTextWidget(); Point selection= text.getSelection(); text.replaceTextRange(selection.x, selection.y - selection.x, variable); int caretOffset= selection.x + variable.length(); text.setSelection(caretOffset, caretOffset); } } }
5,791
Bug 5791 NPE in SocketUtil
Launch Eclipse using JDK 1.4 as JRE. From the launched eclispe, launch another program in debug mode, using JDK 1.4. This produces an NPE in SocketUtil: java.lang.reflect.InvocationTargetException at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:277) at org.eclipse.jface.dialogs.ProgressMonitorDialog.run (ProgressMonitorDialog.java:335) at org.eclipse.jdt.internal.ui.launcher.JavaApplicationLauncherDelegate.doLaunch (JavaApplicationLauncherDelegate.java:181) at org.eclipse.jdt.internal.ui.launcher.JavaApplicationLauncherDelegate.launchEleme nt(JavaApplicationLauncherDelegate.java:81) at org.eclipse.jdt.internal.ui.launcher.JavaApplicationLauncherDelegate.launch (JavaApplicationLauncherDelegate.java:93) at org.eclipse.debug.internal.core.Launcher.launch(Launcher.java:104) at org.eclipse.debug.internal.ui.RelaunchActionDelegate.relaunch (RelaunchActionDelegate.java:37) at org.eclipse.debug.internal.ui.RelaunchActionDelegate.relaunch (RelaunchActionDelegate.java:46) at org.eclipse.debug.internal.ui.RelaunchHistoryLaunchAction$1.run (RelaunchHistoryLaunchAction.java:49) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:56) at org.eclipse.debug.internal.ui.RelaunchHistoryLaunchAction.run (RelaunchHistoryLaunchAction.java:47) at org.eclipse.jface.action.Action.runWithEvent(Action.java:453) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:54) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:635) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1365) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1167) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:727) at org.eclipse.ui.internal.Workbench.run(Workbench.java:710) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:820) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285) at SlimLauncher.main(SlimLauncher.java:14) Caused by: java.lang.NullPointerException at java.net.Socket.<init>(Socket.java:285) at java.net.Socket.<init>(Socket.java:121) at org.eclipse.jdt.internal.ui.launcher.SocketUtil.findUnusedLocalPort (SocketUtil.java:21) at org.eclipse.jdt.internal.ui.launcher.JDK12DebugLauncher.run (JDK12DebugLauncher.java:60) at org.eclipse.jdt.internal.ui.launcher.JavaApplicationLauncherDelegate$1.run (JavaApplicationLauncherDelegate.java:170) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run (ModalContext.java:98)
verified fixed
504d14b
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T00:40:20Z"
"2001-11-12T15:46:40Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/launcher/JDK12DebugLauncher.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.launcher; import java.io.File; import java.io.IOException; import java.io.InterruptedIOException; import java.util.List; import java.util.Map; import java.util.Vector; import org.eclipse.core.runtime.CoreException; import org.eclipse.debug.core.DebugPlugin; import org.eclipse.debug.core.model.IDebugTarget;
5,791
Bug 5791 NPE in SocketUtil
Launch Eclipse using JDK 1.4 as JRE. From the launched eclispe, launch another program in debug mode, using JDK 1.4. This produces an NPE in SocketUtil: java.lang.reflect.InvocationTargetException at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:277) at org.eclipse.jface.dialogs.ProgressMonitorDialog.run (ProgressMonitorDialog.java:335) at org.eclipse.jdt.internal.ui.launcher.JavaApplicationLauncherDelegate.doLaunch (JavaApplicationLauncherDelegate.java:181) at org.eclipse.jdt.internal.ui.launcher.JavaApplicationLauncherDelegate.launchEleme nt(JavaApplicationLauncherDelegate.java:81) at org.eclipse.jdt.internal.ui.launcher.JavaApplicationLauncherDelegate.launch (JavaApplicationLauncherDelegate.java:93) at org.eclipse.debug.internal.core.Launcher.launch(Launcher.java:104) at org.eclipse.debug.internal.ui.RelaunchActionDelegate.relaunch (RelaunchActionDelegate.java:37) at org.eclipse.debug.internal.ui.RelaunchActionDelegate.relaunch (RelaunchActionDelegate.java:46) at org.eclipse.debug.internal.ui.RelaunchHistoryLaunchAction$1.run (RelaunchHistoryLaunchAction.java:49) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:56) at org.eclipse.debug.internal.ui.RelaunchHistoryLaunchAction.run (RelaunchHistoryLaunchAction.java:47) at org.eclipse.jface.action.Action.runWithEvent(Action.java:453) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:54) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:635) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1365) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1167) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:727) at org.eclipse.ui.internal.Workbench.run(Workbench.java:710) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:820) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285) at SlimLauncher.main(SlimLauncher.java:14) Caused by: java.lang.NullPointerException at java.net.Socket.<init>(Socket.java:285) at java.net.Socket.<init>(Socket.java:121) at org.eclipse.jdt.internal.ui.launcher.SocketUtil.findUnusedLocalPort (SocketUtil.java:21) at org.eclipse.jdt.internal.ui.launcher.JDK12DebugLauncher.run (JDK12DebugLauncher.java:60) at org.eclipse.jdt.internal.ui.launcher.JavaApplicationLauncherDelegate$1.run (JavaApplicationLauncherDelegate.java:170) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run (ModalContext.java:98)
verified fixed
504d14b
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T00:40:20Z"
"2001-11-12T15:46:40Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/launcher/JDK12DebugLauncher.java
import org.eclipse.debug.core.model.IProcess; import org.eclipse.jdi.Bootstrap; import org.eclipse.jdt.debug.core.JDIDebugModel; import org.eclipse.jdt.launching.IVMInstall; import org.eclipse.jdt.launching.JavaRuntime; import org.eclipse.jdt.launching.VMRunnerConfiguration; import org.eclipse.jdt.launching.VMRunnerResult; import com.sun.jdi.VirtualMachine; import com.sun.jdi.connect.Connector; import com.sun.jdi.connect.IllegalConnectorArgumentsException; import com.sun.jdi.connect.ListeningConnector; import com.sun.jdi.connect.Connector.IntegerArgument; /** * A launcher for running java main classes. Uses JDI to launch a vm in debug * mode. */ public class JDK12DebugLauncher extends JDK12Launcher { public interface IRetryQuery { boolean queryRetry(); } private IRetryQuery fRetryQuery; /** * Creates a new lauchner */ public JDK12DebugLauncher(IVMInstall vmInstance, IRetryQuery query) { super(vmInstance); fRetryQuery= query; } /** * @see IVMRunner#run
5,791
Bug 5791 NPE in SocketUtil
Launch Eclipse using JDK 1.4 as JRE. From the launched eclispe, launch another program in debug mode, using JDK 1.4. This produces an NPE in SocketUtil: java.lang.reflect.InvocationTargetException at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:277) at org.eclipse.jface.dialogs.ProgressMonitorDialog.run (ProgressMonitorDialog.java:335) at org.eclipse.jdt.internal.ui.launcher.JavaApplicationLauncherDelegate.doLaunch (JavaApplicationLauncherDelegate.java:181) at org.eclipse.jdt.internal.ui.launcher.JavaApplicationLauncherDelegate.launchEleme nt(JavaApplicationLauncherDelegate.java:81) at org.eclipse.jdt.internal.ui.launcher.JavaApplicationLauncherDelegate.launch (JavaApplicationLauncherDelegate.java:93) at org.eclipse.debug.internal.core.Launcher.launch(Launcher.java:104) at org.eclipse.debug.internal.ui.RelaunchActionDelegate.relaunch (RelaunchActionDelegate.java:37) at org.eclipse.debug.internal.ui.RelaunchActionDelegate.relaunch (RelaunchActionDelegate.java:46) at org.eclipse.debug.internal.ui.RelaunchHistoryLaunchAction$1.run (RelaunchHistoryLaunchAction.java:49) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:56) at org.eclipse.debug.internal.ui.RelaunchHistoryLaunchAction.run (RelaunchHistoryLaunchAction.java:47) at org.eclipse.jface.action.Action.runWithEvent(Action.java:453) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:54) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:635) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1365) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1167) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:727) at org.eclipse.ui.internal.Workbench.run(Workbench.java:710) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:820) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285) at SlimLauncher.main(SlimLauncher.java:14) Caused by: java.lang.NullPointerException at java.net.Socket.<init>(Socket.java:285) at java.net.Socket.<init>(Socket.java:121) at org.eclipse.jdt.internal.ui.launcher.SocketUtil.findUnusedLocalPort (SocketUtil.java:21) at org.eclipse.jdt.internal.ui.launcher.JDK12DebugLauncher.run (JDK12DebugLauncher.java:60) at org.eclipse.jdt.internal.ui.launcher.JavaApplicationLauncherDelegate$1.run (JavaApplicationLauncherDelegate.java:170) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run (ModalContext.java:98)
verified fixed
504d14b
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T00:40:20Z"
"2001-11-12T15:46:40Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/launcher/JDK12DebugLauncher.java
*/ public VMRunnerResult run(VMRunnerConfiguration config) throws CoreException { int port= SocketUtil.findUnusedLocalPort(null, 5000, 15000); if (port == -1) { throw new CoreException(createStatus(LauncherMessages.getString("jdkLauncher.noPort"), null)); } String location= getJDKLocation(""); if ("".equals(location)) { throw new CoreException(createStatus(LauncherMessages.getString("jdkLauncher.error.noJDKHome"), null)); } String program= location+File.separator+"bin"+File.separator+"java"; File javawexe= new File(program+"w.exe"); File javaw= new File(program+"w"); if (javaw.isFile()) program= javaw.getAbsolutePath(); else if (javawexe.isFile()) program= javawexe.getAbsolutePath(); Vector arguments= new Vector(); arguments.addElement(program); String[] bootCP= config.getBootClassPath(); if (bootCP.length > 0) { arguments.add("-Xbootclasspath:"+convertClassPath(bootCP)); } String[] cp= config.getClassPath(); if (cp.length > 0) { arguments.add("-classpath"); arguments.add(convertClassPath(cp)); }
5,791
Bug 5791 NPE in SocketUtil
Launch Eclipse using JDK 1.4 as JRE. From the launched eclispe, launch another program in debug mode, using JDK 1.4. This produces an NPE in SocketUtil: java.lang.reflect.InvocationTargetException at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:277) at org.eclipse.jface.dialogs.ProgressMonitorDialog.run (ProgressMonitorDialog.java:335) at org.eclipse.jdt.internal.ui.launcher.JavaApplicationLauncherDelegate.doLaunch (JavaApplicationLauncherDelegate.java:181) at org.eclipse.jdt.internal.ui.launcher.JavaApplicationLauncherDelegate.launchEleme nt(JavaApplicationLauncherDelegate.java:81) at org.eclipse.jdt.internal.ui.launcher.JavaApplicationLauncherDelegate.launch (JavaApplicationLauncherDelegate.java:93) at org.eclipse.debug.internal.core.Launcher.launch(Launcher.java:104) at org.eclipse.debug.internal.ui.RelaunchActionDelegate.relaunch (RelaunchActionDelegate.java:37) at org.eclipse.debug.internal.ui.RelaunchActionDelegate.relaunch (RelaunchActionDelegate.java:46) at org.eclipse.debug.internal.ui.RelaunchHistoryLaunchAction$1.run (RelaunchHistoryLaunchAction.java:49) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:56) at org.eclipse.debug.internal.ui.RelaunchHistoryLaunchAction.run (RelaunchHistoryLaunchAction.java:47) at org.eclipse.jface.action.Action.runWithEvent(Action.java:453) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:54) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:635) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1365) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1167) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:727) at org.eclipse.ui.internal.Workbench.run(Workbench.java:710) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:820) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285) at SlimLauncher.main(SlimLauncher.java:14) Caused by: java.lang.NullPointerException at java.net.Socket.<init>(Socket.java:285) at java.net.Socket.<init>(Socket.java:121) at org.eclipse.jdt.internal.ui.launcher.SocketUtil.findUnusedLocalPort (SocketUtil.java:21) at org.eclipse.jdt.internal.ui.launcher.JDK12DebugLauncher.run (JDK12DebugLauncher.java:60) at org.eclipse.jdt.internal.ui.launcher.JavaApplicationLauncherDelegate$1.run (JavaApplicationLauncherDelegate.java:170) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run (ModalContext.java:98)
verified fixed
504d14b
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T00:40:20Z"
"2001-11-12T15:46:40Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/launcher/JDK12DebugLauncher.java
addArguments(config.getVMArguments(), arguments); arguments.add("-Xdebug"); arguments.add("-Xnoagent"); arguments.add("-Djava.compiler=NONE"); arguments.add("-Xrunjdwp:transport=dt_socket,address=127.0.0.1:" + port); arguments.add(config.getClassToLaunch()); addArguments(config.getProgramArguments(), arguments); String[] cmdLine= new String[arguments.size()]; arguments.copyInto(cmdLine); ListeningConnector connector= getConnector(); if (connector == null) { throw new CoreException(createStatus(LauncherMessages.getString("jdkLauncher.error.noConnector"), null)); } Map map= connector.defaultArguments(); int timeout= fVMInstance.getDebuggerTimeout(); specifyArguments(map, port, timeout); Process p= null; try { try { connector.startListening(map); try { p= Runtime.getRuntime().exec(cmdLine); } catch (IOException e) { if (p != null) { p.destroy(); } throw new CoreException(createStatus(LauncherMessages.getString("jdkLauncher.error.title"), e)); }
5,791
Bug 5791 NPE in SocketUtil
Launch Eclipse using JDK 1.4 as JRE. From the launched eclispe, launch another program in debug mode, using JDK 1.4. This produces an NPE in SocketUtil: java.lang.reflect.InvocationTargetException at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:277) at org.eclipse.jface.dialogs.ProgressMonitorDialog.run (ProgressMonitorDialog.java:335) at org.eclipse.jdt.internal.ui.launcher.JavaApplicationLauncherDelegate.doLaunch (JavaApplicationLauncherDelegate.java:181) at org.eclipse.jdt.internal.ui.launcher.JavaApplicationLauncherDelegate.launchEleme nt(JavaApplicationLauncherDelegate.java:81) at org.eclipse.jdt.internal.ui.launcher.JavaApplicationLauncherDelegate.launch (JavaApplicationLauncherDelegate.java:93) at org.eclipse.debug.internal.core.Launcher.launch(Launcher.java:104) at org.eclipse.debug.internal.ui.RelaunchActionDelegate.relaunch (RelaunchActionDelegate.java:37) at org.eclipse.debug.internal.ui.RelaunchActionDelegate.relaunch (RelaunchActionDelegate.java:46) at org.eclipse.debug.internal.ui.RelaunchHistoryLaunchAction$1.run (RelaunchHistoryLaunchAction.java:49) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:56) at org.eclipse.debug.internal.ui.RelaunchHistoryLaunchAction.run (RelaunchHistoryLaunchAction.java:47) at org.eclipse.jface.action.Action.runWithEvent(Action.java:453) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:54) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:635) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1365) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1167) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:727) at org.eclipse.ui.internal.Workbench.run(Workbench.java:710) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:820) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285) at SlimLauncher.main(SlimLauncher.java:14) Caused by: java.lang.NullPointerException at java.net.Socket.<init>(Socket.java:285) at java.net.Socket.<init>(Socket.java:121) at org.eclipse.jdt.internal.ui.launcher.SocketUtil.findUnusedLocalPort (SocketUtil.java:21) at org.eclipse.jdt.internal.ui.launcher.JDK12DebugLauncher.run (JDK12DebugLauncher.java:60) at org.eclipse.jdt.internal.ui.launcher.JavaApplicationLauncherDelegate$1.run (JavaApplicationLauncherDelegate.java:170) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run (ModalContext.java:98)
verified fixed
504d14b
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T00:40:20Z"
"2001-11-12T15:46:40Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/launcher/JDK12DebugLauncher.java
IProcess process= DebugPlugin.getDefault().newProcess(p, renderProcessLabel(cmdLine)); process.setAttribute(JavaRuntime.ATTR_CMDLINE, renderCommandLine(cmdLine)); boolean retry= false; do { try { VirtualMachine vm= connector.accept(map); setTimeout(vm); IDebugTarget debugTarget= JDIDebugModel.newDebugTarget(vm, renderDebugTarget(config.getClassToLaunch(), port), process, true, false); return new VMRunnerResult(debugTarget, new IProcess[] { process }); } catch (InterruptedIOException e) { retry= fRetryQuery.queryRetry(); } } while (retry); } finally { connector.stopListening(map); } } catch (IOException e) { throw new CoreException(createStatus(LauncherMessages.getString("jdkLauncher.error.connect"), e)); } catch (IllegalConnectorArgumentsException e) { throw new CoreException(createStatus(LauncherMessages.getString("jdkLauncher.error.connect"), e)); } if (p != null) p.destroy(); return null; }
5,791
Bug 5791 NPE in SocketUtil
Launch Eclipse using JDK 1.4 as JRE. From the launched eclispe, launch another program in debug mode, using JDK 1.4. This produces an NPE in SocketUtil: java.lang.reflect.InvocationTargetException at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:277) at org.eclipse.jface.dialogs.ProgressMonitorDialog.run (ProgressMonitorDialog.java:335) at org.eclipse.jdt.internal.ui.launcher.JavaApplicationLauncherDelegate.doLaunch (JavaApplicationLauncherDelegate.java:181) at org.eclipse.jdt.internal.ui.launcher.JavaApplicationLauncherDelegate.launchEleme nt(JavaApplicationLauncherDelegate.java:81) at org.eclipse.jdt.internal.ui.launcher.JavaApplicationLauncherDelegate.launch (JavaApplicationLauncherDelegate.java:93) at org.eclipse.debug.internal.core.Launcher.launch(Launcher.java:104) at org.eclipse.debug.internal.ui.RelaunchActionDelegate.relaunch (RelaunchActionDelegate.java:37) at org.eclipse.debug.internal.ui.RelaunchActionDelegate.relaunch (RelaunchActionDelegate.java:46) at org.eclipse.debug.internal.ui.RelaunchHistoryLaunchAction$1.run (RelaunchHistoryLaunchAction.java:49) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:56) at org.eclipse.debug.internal.ui.RelaunchHistoryLaunchAction.run (RelaunchHistoryLaunchAction.java:47) at org.eclipse.jface.action.Action.runWithEvent(Action.java:453) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:54) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:635) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1365) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1167) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:727) at org.eclipse.ui.internal.Workbench.run(Workbench.java:710) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:820) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285) at SlimLauncher.main(SlimLauncher.java:14) Caused by: java.lang.NullPointerException at java.net.Socket.<init>(Socket.java:285) at java.net.Socket.<init>(Socket.java:121) at org.eclipse.jdt.internal.ui.launcher.SocketUtil.findUnusedLocalPort (SocketUtil.java:21) at org.eclipse.jdt.internal.ui.launcher.JDK12DebugLauncher.run (JDK12DebugLauncher.java:60) at org.eclipse.jdt.internal.ui.launcher.JavaApplicationLauncherDelegate$1.run (JavaApplicationLauncherDelegate.java:170) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run (ModalContext.java:98)
verified fixed
504d14b
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T00:40:20Z"
"2001-11-12T15:46:40Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/launcher/JDK12DebugLauncher.java
private void setTimeout(VirtualMachine vm) { if (vm instanceof org.eclipse.jdi.VirtualMachine) { int timeout= fVMInstance.getDebuggerTimeout(); org.eclipse.jdi.VirtualMachine vm2= (org.eclipse.jdi.VirtualMachine)vm; vm2.setRequestTimeout(timeout); } } protected void specifyArguments(Map map, int portNumber, int timeout) { Connector.IntegerArgument port= (Connector.IntegerArgument) map.get("port"); port.setValue(portNumber); Connector.IntegerArgument timeoutArg= (Connector.IntegerArgument) map.get("timeout"); timeoutArg.setValue(timeout); } protected ListeningConnector getConnector() { List connectors= Bootstrap.virtualMachineManager().listeningConnectors(); for (int i= 0; i < connectors.size(); i++) { ListeningConnector c= (ListeningConnector) connectors.get(i); if ("com.sun.jdi.SocketListen".equals(c.name())) return c; } return null; } }
3,607
Bug 3607 Open Type: can't enter fully qualified name (1GCJUJX)
EG (4/21/2001 4:17:12 PM) it should be possible to enter fully qualified name NOTES: PA (5/31/01 2:44:32 PM) it isn't. MA (15.08.2001 18:10:01) Filter with the simple name from the current entered name, and select the package using the qualifier.
verified fixed
7bf340f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T15:46:44Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/AbstractElementListSelectionDialog.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.dialogs; import java.util.ArrayList; import java.util.List; import org.eclipse.swt.SWT; import org.eclipse.swt.custom.BusyIndicator; import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.events.SelectionListener; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Control; import org.eclipse.swt.widgets.Event; import org.eclipse.swt.widgets.Label; import org.eclipse.swt.widgets.Listener; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.Text; import org.eclipse.core.runtime.IStatus; import org.eclipse.jface.dialogs.IDialogConstants; import org.eclipse.jface.util.Assert; import org.eclipse.jface.viewers.ILabelProvider; /** * An abstract class to select elements out of a list of elements. */ public abstract class AbstractElementListSelectionDialog extends SelectionStatusDialog {
3,607
Bug 3607 Open Type: can't enter fully qualified name (1GCJUJX)
EG (4/21/2001 4:17:12 PM) it should be possible to enter fully qualified name NOTES: PA (5/31/01 2:44:32 PM) it isn't. MA (15.08.2001 18:10:01) Filter with the simple name from the current entered name, and select the package using the qualifier.
verified fixed
7bf340f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T15:46:44Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/AbstractElementListSelectionDialog.java
private ILabelProvider fRenderer; private boolean fIgnoreCase= true; private boolean fIsMultipleSelection= false; private boolean fMatchEmptyString= true; private boolean fAllowDuplicates= true;
3,607
Bug 3607 Open Type: can't enter fully qualified name (1GCJUJX)
EG (4/21/2001 4:17:12 PM) it should be possible to enter fully qualified name NOTES: PA (5/31/01 2:44:32 PM) it isn't. MA (15.08.2001 18:10:01) Filter with the simple name from the current entered name, and select the package using the qualifier.
verified fixed
7bf340f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T15:46:44Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/AbstractElementListSelectionDialog.java
private Label fMessage; private FilteredList fFilteredList; private Text fFilterText; private ISelectionValidator fValidator; private String fFilter= null; private String fEmptyListMessage= ""; private String fEmptySelectionMessage= ""; private int fWidth= 60; private int fHeight= 18; /** * Constructs a list selection dialog. * @param renderer The label renderer used * @param ignoreCase Decides if the match string ignores lower/upppr case * @param multipleSelection Allow multiple selection */ protected AbstractElementListSelectionDialog(Shell parent, ILabelProvider renderer) { super(parent); fRenderer= renderer; } /** * Handles default selection (double click). * By default, the OK button is pressed. */ protected void handleDefaultSelected() { if (validateCurrentSelection())
3,607
Bug 3607 Open Type: can't enter fully qualified name (1GCJUJX)
EG (4/21/2001 4:17:12 PM) it should be possible to enter fully qualified name NOTES: PA (5/31/01 2:44:32 PM) it isn't. MA (15.08.2001 18:10:01) Filter with the simple name from the current entered name, and select the package using the qualifier.
verified fixed
7bf340f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T15:46:44Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/AbstractElementListSelectionDialog.java
buttonPressed(IDialogConstants.OK_ID); } /** * Specifies if sorting, filtering and folding is case sensitive. */ public void setIgnoreCase(boolean ignoreCase) { fIgnoreCase= ignoreCase; } /** * Returns if sorting, filtering and folding is case sensitive. */ public boolean isCaseIgnored() { return fIgnoreCase; } /** * Specifies whether everything or nothing should be filtered on * empty filter string. */ public void setMatchEmptyString(boolean matchEmptyString) { fMatchEmptyString= matchEmptyString; } /** * Specifies if multiple selection is allowed. */ public void setMultipleSelection(boolean multipleSelection) { fIsMultipleSelection= multipleSelection;
3,607
Bug 3607 Open Type: can't enter fully qualified name (1GCJUJX)
EG (4/21/2001 4:17:12 PM) it should be possible to enter fully qualified name NOTES: PA (5/31/01 2:44:32 PM) it isn't. MA (15.08.2001 18:10:01) Filter with the simple name from the current entered name, and select the package using the qualifier.
verified fixed
7bf340f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T15:46:44Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/AbstractElementListSelectionDialog.java
} /** * Specifies whether duplicate entries are displayed or not. */ public void setAllowDuplicates(boolean allowDuplicates) { fAllowDuplicates= allowDuplicates; } /** * Sets the list size in unit of characters. * @param width the width of the list. * @param height the height of the list. */ public void setSize(int width, int height) { fWidth= width; fHeight= height; } /** * Sets the message to be displayed if the list is empty. * @param message the message to be displayed. */ public void setEmptyListMessage(String message) { fEmptyListMessage= message; } /** * Sets the message to be displayed if the selection is empty. * @param message the message to be displayed. */ public void setEmptySelectionMessage(String message) {
3,607
Bug 3607 Open Type: can't enter fully qualified name (1GCJUJX)
EG (4/21/2001 4:17:12 PM) it should be possible to enter fully qualified name NOTES: PA (5/31/01 2:44:32 PM) it isn't. MA (15.08.2001 18:10:01) Filter with the simple name from the current entered name, and select the package using the qualifier.
verified fixed
7bf340f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T15:46:44Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/AbstractElementListSelectionDialog.java
fEmptySelectionMessage= message; } /** * Sets an optional validator to check if the selection is valid. * The validator is invoked whenever the selection changes. * @param validator the validator to validate the selection. */ public void setValidator(ISelectionValidator validator) { fValidator= validator; } /** * Sets the elements of the list (widget). * To be called within open(). * @param elements the elements of the list. */ protected void setListElements(Object[] elements) { Assert.isNotNull(fFilteredList); fFilteredList.setElements(elements); } /** * Sets the filter pattern. * @param filter the filter pattern. */ public void setFilter(String filter) { if (fFilterText == null) fFilter= filter; else fFilterText.setText(filter);
3,607
Bug 3607 Open Type: can't enter fully qualified name (1GCJUJX)
EG (4/21/2001 4:17:12 PM) it should be possible to enter fully qualified name NOTES: PA (5/31/01 2:44:32 PM) it isn't. MA (15.08.2001 18:10:01) Filter with the simple name from the current entered name, and select the package using the qualifier.
verified fixed
7bf340f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T15:46:44Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/AbstractElementListSelectionDialog.java
} /** * Returns the current filter pattern. * @return returns the current filter pattern or <code>null<code> if filter was not set. */ public String getFilter() { if (fFilteredList == null) return fFilter; else return fFilteredList.getFilter(); } /** * Returns the indices referring the current selection. * To be called within open(). * @return returns the indices of the current selection. */ protected int[] getSelectionIndices() { Assert.isNotNull(fFilteredList); return fFilteredList.getSelectionIndices(); } /** * Returns an index referring the first current selection. * To be called within open(). * @return returns the indices of the current selection. */ protected int getSelectionIndex() { Assert.isNotNull(fFilteredList); return fFilteredList.getSelectionIndex(); }
3,607
Bug 3607 Open Type: can't enter fully qualified name (1GCJUJX)
EG (4/21/2001 4:17:12 PM) it should be possible to enter fully qualified name NOTES: PA (5/31/01 2:44:32 PM) it isn't. MA (15.08.2001 18:10:01) Filter with the simple name from the current entered name, and select the package using the qualifier.
verified fixed
7bf340f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T15:46:44Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/AbstractElementListSelectionDialog.java
/** * Sets the selection referenced by an array of elements. * To be called within open(). * @param selection the indices of the selection. */ protected void setSelection(Object[] selection) { Assert.isNotNull(fFilteredList); fFilteredList.setSelection(selection); } /** * Returns an array of the currently selected elements. * To be called within or after open(). * @return returns an array of the currently selected elements. */ protected Object[] getSelectedElements() { Assert.isNotNull(fFilteredList); return fFilteredList.getSelection(); } /** * Returns all elements which are folded together to one entry in the list. * @param index the index selecting the entry in the list. * @return returns an array of elements folded together. */ public Object[] getFoldedElements(int index) { Assert.isNotNull(fFilteredList); return fFilteredList.getFoldedElements(index); }
3,607
Bug 3607 Open Type: can't enter fully qualified name (1GCJUJX)
EG (4/21/2001 4:17:12 PM) it should be possible to enter fully qualified name NOTES: PA (5/31/01 2:44:32 PM) it isn't. MA (15.08.2001 18:10:01) Filter with the simple name from the current entered name, and select the package using the qualifier.
verified fixed
7bf340f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T15:46:44Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/AbstractElementListSelectionDialog.java
/** * Creates the message text widget and sets layout data. * @param composite the parent composite of the message area. */ protected Label createMessageArea(Composite composite) { Label label= super.createMessageArea(composite); GridData data= new GridData(); data.grabExcessVerticalSpace= false; data.grabExcessHorizontalSpace= true; data.horizontalAlignment= GridData.FILL; data.verticalAlignment= GridData.BEGINNING; label.setLayoutData(data); fMessage= label; return label; } /** * Handles a selection changed event. * By default, the current selection is validated. */ protected void handleSelectionChanged() { validateCurrentSelection(); } /** * Validates the current selection and updates the status line * accordingly. */ protected boolean validateCurrentSelection() {
3,607
Bug 3607 Open Type: can't enter fully qualified name (1GCJUJX)
EG (4/21/2001 4:17:12 PM) it should be possible to enter fully qualified name NOTES: PA (5/31/01 2:44:32 PM) it isn't. MA (15.08.2001 18:10:01) Filter with the simple name from the current entered name, and select the package using the qualifier.
verified fixed
7bf340f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T15:46:44Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/AbstractElementListSelectionDialog.java
Assert.isNotNull(fFilteredList); IStatus status; Object[] elements= getSelectedElements(); if (elements.length > 0) { if (fValidator != null) { status= fValidator.validate(elements); } else { status= new StatusInfo(); } } else { if (fFilteredList.isEmpty()) { status= new StatusInfo(IStatus.ERROR, fEmptyListMessage); } else { status= new StatusInfo(IStatus.ERROR, fEmptySelectionMessage); } } updateStatus(status); return status.isOK(); } /* * @see Dialog#cancelPressed */ protected void cancelPressed() { setResult(null); super.cancelPressed(); } /** * Creates a filtered list. * @param parent the parent composite.
3,607
Bug 3607 Open Type: can't enter fully qualified name (1GCJUJX)
EG (4/21/2001 4:17:12 PM) it should be possible to enter fully qualified name NOTES: PA (5/31/01 2:44:32 PM) it isn't. MA (15.08.2001 18:10:01) Filter with the simple name from the current entered name, and select the package using the qualifier.
verified fixed
7bf340f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T15:46:44Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/AbstractElementListSelectionDialog.java
* @return returns the filtered list widget. */ protected FilteredList createFilteredList(Composite parent) { int flags= SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL | (fIsMultipleSelection ? SWT.MULTI : SWT.SINGLE); FilteredList list= new FilteredList(parent, flags, fRenderer, fIgnoreCase, fAllowDuplicates, fMatchEmptyString); GridData data= new GridData(); data.widthHint= convertWidthInCharsToPixels(fWidth); data.heightHint= convertHeightInCharsToPixels(fHeight); data.grabExcessVerticalSpace= true; data.grabExcessHorizontalSpace= true; data.horizontalAlignment= GridData.FILL; data.verticalAlignment= GridData.FILL; list.setLayoutData(data); list.setFilter((fFilter == null ? "" : fFilter)); list.addSelectionListener(new SelectionListener() { public void widgetDefaultSelected(SelectionEvent e) { handleDefaultSelected(); } public void widgetSelected(SelectionEvent e) { handleSelectionChanged(); } }); fFilteredList= list; return list; } protected Text createFilterText(Composite parent) {
3,607
Bug 3607 Open Type: can't enter fully qualified name (1GCJUJX)
EG (4/21/2001 4:17:12 PM) it should be possible to enter fully qualified name NOTES: PA (5/31/01 2:44:32 PM) it isn't. MA (15.08.2001 18:10:01) Filter with the simple name from the current entered name, and select the package using the qualifier.
verified fixed
7bf340f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T15:46:44Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/AbstractElementListSelectionDialog.java
Text text= new Text(parent, SWT.BORDER); GridData data= new GridData(); data.grabExcessVerticalSpace= false; data.grabExcessHorizontalSpace= true; data.horizontalAlignment= GridData.FILL; data.verticalAlignment= GridData.BEGINNING; text.setLayoutData(data); text.setText((fFilter == null ? "" : fFilter)); Listener listener= new Listener() { public void handleEvent(Event e) { fFilteredList.setFilter(fFilterText.getText()); } }; text.addListener(SWT.Modify, listener); fFilterText= text; return text; } /* * @see Window#open() */ public int open() { BusyIndicator.showWhile(null, new Runnable() { public void run() { access$superOpen(); } }); return getReturnCode(); }
3,607
Bug 3607 Open Type: can't enter fully qualified name (1GCJUJX)
EG (4/21/2001 4:17:12 PM) it should be possible to enter fully qualified name NOTES: PA (5/31/01 2:44:32 PM) it isn't. MA (15.08.2001 18:10:01) Filter with the simple name from the current entered name, and select the package using the qualifier.
verified fixed
7bf340f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T15:46:44Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/AbstractElementListSelectionDialog.java
private void access$superOpen() { super.open(); } /* * @see Window#create(Shell) */ public void create() { super.create(); Assert.isNotNull(fFilteredList); if (fFilteredList.isEmpty()) { handleEmptyList(); } else { validateCurrentSelection(); fFilterText.selectAll(); fFilterText.setFocus(); } } /** * Handles empty list by disabling widgets. */ protected void handleEmptyList() { fMessage.setEnabled(false); fFilterText.setEnabled(false); fFilteredList.setEnabled(false); } }
3,607
Bug 3607 Open Type: can't enter fully qualified name (1GCJUJX)
EG (4/21/2001 4:17:12 PM) it should be possible to enter fully qualified name NOTES: PA (5/31/01 2:44:32 PM) it isn't. MA (15.08.2001 18:10:01) Filter with the simple name from the current entered name, and select the package using the qualifier.
verified fixed
7bf340f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T15:46:44Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/FilteredList.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.dialogs; import java.util.ArrayList; import java.util.Comparator; import java.util.List; import org.eclipse.swt.SWT; import org.eclipse.swt.events.DisposeEvent; import org.eclipse.swt.events.DisposeListener; import org.eclipse.swt.events.SelectionListener; import org.eclipse.swt.graphics.Image; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Event; import org.eclipse.swt.widgets.Table; import org.eclipse.swt.widgets.TableItem; import org.eclipse.jface.viewers.ILabelProvider; import org.eclipse.jdt.internal.core.refactoring.util.Selection; import org.eclipse.jdt.internal.ui.util.StringMatcher; import org.eclipse.jdt.internal.ui.util.TypeInfo; /** * A composite widget which holds a list of elements for user selection. * The elements are sorted alphabetically. * Optionally, the elements can be filtered and duplicate entries can * be hidden (folding). */ public class FilteredList extends Composite {
3,607
Bug 3607 Open Type: can't enter fully qualified name (1GCJUJX)
EG (4/21/2001 4:17:12 PM) it should be possible to enter fully qualified name NOTES: PA (5/31/01 2:44:32 PM) it isn't. MA (15.08.2001 18:10:01) Filter with the simple name from the current entered name, and select the package using the qualifier.
verified fixed
7bf340f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T15:46:44Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/FilteredList.java
private Table fList; private ILabelProvider fRenderer; private boolean fMatchEmtpyString= true; private boolean fIgnoreCase; private boolean fAllowDuplicates; private String fFilter= ""; private TwoArrayQuickSorter fSorter; private Object[] fElements= new Object[0]; private Label[] fLabels; private int[] fFoldedIndices; private int fFoldedCount; private int[] fFilteredIndices; private int fFilteredCount; private static class Label {
3,607
Bug 3607 Open Type: can't enter fully qualified name (1GCJUJX)
EG (4/21/2001 4:17:12 PM) it should be possible to enter fully qualified name NOTES: PA (5/31/01 2:44:32 PM) it isn't. MA (15.08.2001 18:10:01) Filter with the simple name from the current entered name, and select the package using the qualifier.
verified fixed
7bf340f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T15:46:44Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/FilteredList.java
public final String string; public final Image image; public Label(String string, Image image) { this.string= string; this.image= image; } public boolean equals(Label label) { if (label == null) return false; return string.equals(label.string) && image.equals(label.image); } } private static class LabelComparator implements Comparator { private boolean fIgnoreCase; LabelComparator(boolean ignoreCase) { fIgnoreCase= ignoreCase; } public int compare(Object left, Object right) { Label leftLabel= (Label) left;
3,607
Bug 3607 Open Type: can't enter fully qualified name (1GCJUJX)
EG (4/21/2001 4:17:12 PM) it should be possible to enter fully qualified name NOTES: PA (5/31/01 2:44:32 PM) it isn't. MA (15.08.2001 18:10:01) Filter with the simple name from the current entered name, and select the package using the qualifier.
verified fixed
7bf340f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T15:46:44Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/FilteredList.java
Label rightLabel= (Label) right; int value= fIgnoreCase ? leftLabel.string.compareToIgnoreCase(rightLabel.string) : leftLabel.string.compareTo(rightLabel.string); if (value != 0) return value; if (leftLabel.image == null) { return (rightLabel.image == null) ? 0 : -1; } else if (rightLabel.image == null) { return +1; } else { return leftLabel.image.equals(rightLabel.image) ? 0 : 1; } } } /** * Constructs a new instance of a filtered list. * @param parent the parent composite. * @param style the widget style. * @param renderer the label renderer. * @param ignoreCase specifies whether sorting and folding is case sensitive. * @param allowDuplicates specifies whether folding of duplicates is desired. * @param matchEmptyString specifies whether empty filter strings should filter everything or nothing. */ public FilteredList(Composite parent, int style, ILabelProvider renderer,
3,607
Bug 3607 Open Type: can't enter fully qualified name (1GCJUJX)
EG (4/21/2001 4:17:12 PM) it should be possible to enter fully qualified name NOTES: PA (5/31/01 2:44:32 PM) it isn't. MA (15.08.2001 18:10:01) Filter with the simple name from the current entered name, and select the package using the qualifier.
verified fixed
7bf340f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T15:46:44Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/FilteredList.java
boolean ignoreCase, boolean allowDuplicates, boolean matchEmptyString) { super(parent, SWT.NONE); GridLayout layout= new GridLayout(); layout.marginHeight= 0; layout.marginWidth= 0; setLayout(layout); fList= new Table(this, style); fList.setLayoutData(new GridData(GridData.FILL_BOTH)); fList.addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent e) { fRenderer.dispose(); } }); fRenderer= renderer; fIgnoreCase= ignoreCase; fSorter= new TwoArrayQuickSorter(new LabelComparator(ignoreCase)); fAllowDuplicates= allowDuplicates; fMatchEmtpyString= matchEmptyString; } /** * Sets the list of elements. * @param elements the elements to be shown in the list. */ public void setElements(Object[] elements) { if (elements == null) { fElements= new Object[0]; } else {
3,607
Bug 3607 Open Type: can't enter fully qualified name (1GCJUJX)
EG (4/21/2001 4:17:12 PM) it should be possible to enter fully qualified name NOTES: PA (5/31/01 2:44:32 PM) it isn't. MA (15.08.2001 18:10:01) Filter with the simple name from the current entered name, and select the package using the qualifier.
verified fixed
7bf340f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T15:46:44Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/FilteredList.java
fElements= new Object[elements.length]; System.arraycopy(elements, 0, fElements, 0, elements.length); } int length= fElements.length; fLabels= new Label[length]; for (int i= 0; i != length; i++) fLabels[i]= new Label( fRenderer.getText(fElements[i]), fRenderer.getImage(fElements[i])); fSorter.sort(fLabels, fElements); fFoldedIndices= new int[length]; fFoldedCount= fold(); fFilteredIndices= new int[length]; fFilteredCount= filter(); updateList(); } /** * Tests if the list (before folding and filtering) is empty. * @return returns <code>true</code> if the list is empty, <code>false</code> otherwise. */ public boolean isEmpty() { return (fElements == null) || (fElements.length == 0); } /** * Adds a selection listener to the list. * @param listener the selection listener to be added.
3,607
Bug 3607 Open Type: can't enter fully qualified name (1GCJUJX)
EG (4/21/2001 4:17:12 PM) it should be possible to enter fully qualified name NOTES: PA (5/31/01 2:44:32 PM) it isn't. MA (15.08.2001 18:10:01) Filter with the simple name from the current entered name, and select the package using the qualifier.
verified fixed
7bf340f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T15:46:44Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/FilteredList.java
*/ public void addSelectionListener(SelectionListener listener) { fList.addSelectionListener(listener); } /** * Removes a selection listener from the list. * @param listener the selection listener to be removed. */ public void removeSelectionListener(SelectionListener listener) { fList.removeSelectionListener(listener); } /** * Sets the selection of the list. * @param selection an array of indices specifying the selection. */ public void setSelection(int[] selection) { fList.setSelection(selection); } /** * Returns the selection of the list. * @return returns an array of indices specifying the current selection. */ public int[] getSelectionIndices() { return fList.getSelectionIndices(); } /** * Returns the selection of the list. * This is a convenience function for <code>getSelectionIndices()</code>.
3,607
Bug 3607 Open Type: can't enter fully qualified name (1GCJUJX)
EG (4/21/2001 4:17:12 PM) it should be possible to enter fully qualified name NOTES: PA (5/31/01 2:44:32 PM) it isn't. MA (15.08.2001 18:10:01) Filter with the simple name from the current entered name, and select the package using the qualifier.
verified fixed
7bf340f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T15:46:44Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/FilteredList.java
* @return returns the index of the selection, -1 for no selection. */ public int getSelectionIndex() { return fList.getSelectionIndex(); } /** * Sets the selection of the list. * @param elements the array of elements to be selected. */ public void setSelection(Object[] elements) { if ((elements == null) || (fElements == null)) return; int[] indices= new int[elements.length]; for (int i= 0; i != elements.length; i++) { int j; for (j= 0; j != fFilteredCount; j++) { int k = fFilteredIndices[j]; int max= (k == fFoldedCount - 1) ? fElements.length : fFoldedIndices[k + 1]; int l; for (l= fFoldedIndices[k]; l != max; l++) { if (fElements[l].equals(elements[i])) { indices[i]= j; break;
3,607
Bug 3607 Open Type: can't enter fully qualified name (1GCJUJX)
EG (4/21/2001 4:17:12 PM) it should be possible to enter fully qualified name NOTES: PA (5/31/01 2:44:32 PM) it isn't. MA (15.08.2001 18:10:01) Filter with the simple name from the current entered name, and select the package using the qualifier.
verified fixed
7bf340f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T15:46:44Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/FilteredList.java
} } if (l != max) break; } if (j == fFilteredCount) indices[i] = 0; } fList.setSelection(indices); } /** * Returns an array of the selected elements. The type of the elements * returned in the list are the same as the ones passed with * <code>setElements</code>. The array does not contain the rendered strings. * @return returns the array of selected elements. */ public Object[] getSelection() { if (fList.isDisposed() || (fList.getSelectionCount() == 0)) return new Object[0]; int[] indices= fList.getSelectionIndices(); Object[] elements= new Object[indices.length]; for (int i= 0; i != indices.length; i++) elements[i]= fElements[fFoldedIndices[fFilteredIndices[indices[i]]]];
3,607
Bug 3607 Open Type: can't enter fully qualified name (1GCJUJX)
EG (4/21/2001 4:17:12 PM) it should be possible to enter fully qualified name NOTES: PA (5/31/01 2:44:32 PM) it isn't. MA (15.08.2001 18:10:01) Filter with the simple name from the current entered name, and select the package using the qualifier.
verified fixed
7bf340f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T15:46:44Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/FilteredList.java
return elements; } /** * Sets the filter pattern. Current only prefix filter patterns are supported. * @param filter the filter pattern. */ public void setFilter(String filter) { fFilter= (filter == null) ? "" : filter; fFilteredCount= filter(); updateList(); } /** * Returns the filter pattern. * @return returns the filter pattern. */ public String getFilter() { return fFilter; } /** * Returns all elements which are folded together to one entry in the list. * @param index the index selecting the entry in the list. * @return returns an array of elements folded together, <code>null</code> if index is out of range. */ public Object[] getFoldedElements(int index) { if ((index < 0) || (index >= fFilteredCount)) return null; index= fFilteredIndices[index]; int start= fFoldedIndices[index];
3,607
Bug 3607 Open Type: can't enter fully qualified name (1GCJUJX)
EG (4/21/2001 4:17:12 PM) it should be possible to enter fully qualified name NOTES: PA (5/31/01 2:44:32 PM) it isn't. MA (15.08.2001 18:10:01) Filter with the simple name from the current entered name, and select the package using the qualifier.
verified fixed
7bf340f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T15:46:44Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/FilteredList.java
int count= (index == fFoldedCount - 1) ? fElements.length - start : fFoldedIndices[index + 1] - start; Object[] elements= new Object[count]; for (int i= 0; i != count; i++) elements[i]= fElements[start + i]; return elements; } /* * Folds duplicate entries. Two elements are considered as a pair of * duplicates if they coiincide in the rendered string and image. * @return returns the number of elements after folding. */ private int fold() { int length= fElements.length; if (fAllowDuplicates) { for (int i= 0; i != length; i++) fFoldedIndices[i]= i; return length; } else { int k= 0; Label last= null; for (int i= 0; i != length; i++) { Label current= fLabels[i]; if (! current.equals(last)) {
3,607
Bug 3607 Open Type: can't enter fully qualified name (1GCJUJX)
EG (4/21/2001 4:17:12 PM) it should be possible to enter fully qualified name NOTES: PA (5/31/01 2:44:32 PM) it isn't. MA (15.08.2001 18:10:01) Filter with the simple name from the current entered name, and select the package using the qualifier.
verified fixed
7bf340f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T15:46:44Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/FilteredList.java
fFoldedIndices[k]= i; k++; last= current; } } return k; } } /* * Filters the list with the filter pattern. * @return returns the number of elements after filtering. */ private int filter() { if (((fFilter == null) || (fFilter.length() == 0)) && !fMatchEmtpyString) return 0; StringMatcher matcher= new StringMatcher(fFilter + "*", fIgnoreCase, false); int k= 0; for (int i= 0; i != fFoldedCount; i++) { int j = fFoldedIndices[i]; if (matcher.match(fLabels[j].string)) fFilteredIndices[k++]= i; } return k; } /* * Updates the list widget. */ private void updateList() {
3,607
Bug 3607 Open Type: can't enter fully qualified name (1GCJUJX)
EG (4/21/2001 4:17:12 PM) it should be possible to enter fully qualified name NOTES: PA (5/31/01 2:44:32 PM) it isn't. MA (15.08.2001 18:10:01) Filter with the simple name from the current entered name, and select the package using the qualifier.
verified fixed
7bf340f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T15:46:44Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/FilteredList.java
if (fList.isDisposed()) return; fList.setRedraw(false); int itemCount= fList.getItemCount(); if (fFilteredCount < itemCount) fList.remove(0, itemCount - fFilteredCount - 1); else if (fFilteredCount > itemCount) for (int i= 0; i != fFilteredCount - itemCount; i++) new TableItem(fList, SWT.NONE); TableItem[] items= fList.getItems(); for (int i= 0; i != fFilteredCount; i++) { TableItem item= items[i]; Label label= fLabels[fFoldedIndices[fFilteredIndices[i]]]; item.setText(label.string); item.setImage(label.image); } if (fList.getItemCount() > 0) fList.setSelection(0); fList.setRedraw(true); fList.notifyListeners(SWT.Selection, new Event()); } }
3,607
Bug 3607 Open Type: can't enter fully qualified name (1GCJUJX)
EG (4/21/2001 4:17:12 PM) it should be possible to enter fully qualified name NOTES: PA (5/31/01 2:44:32 PM) it isn't. MA (15.08.2001 18:10:01) Filter with the simple name from the current entered name, and select the package using the qualifier.
verified fixed
7bf340f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T15:46:44Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/TypeSelectionDialog.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.dialogs; import java.util.ArrayList; import java.util.List; import org.eclipse.swt.widgets.Shell; import org.eclipse.jface.dialogs.MessageDialog; import org.eclipse.jface.operation.IRunnableContext; import org.eclipse.jface.util.Assert; import org.eclipse.jdt.core.IType; import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jdt.core.search.IJavaSearchScope; import org.eclipse.jdt.internal.ui.JavaPlugin; import org.eclipse.jdt.internal.ui.JavaUIMessages; import org.eclipse.jdt.internal.ui.util.AllTypesSearchEngine; import org.eclipse.jdt.internal.ui.util.TypeInfo; import org.eclipse.jdt.internal.ui.util.TypeInfoLabelProvider; /** * A dialog to select a type from a list of types. */ public class TypeSelectionDialog extends TwoPaneElementSelector {
3,607
Bug 3607 Open Type: can't enter fully qualified name (1GCJUJX)
EG (4/21/2001 4:17:12 PM) it should be possible to enter fully qualified name NOTES: PA (5/31/01 2:44:32 PM) it isn't. MA (15.08.2001 18:10:01) Filter with the simple name from the current entered name, and select the package using the qualifier.
verified fixed
7bf340f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T15:46:44Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/TypeSelectionDialog.java
private IRunnableContext fRunnableContext; private IJavaSearchScope fScope; private int fStyle; /** * Constructs a type selection dialog. * @param parent the parent shell. * @param context the runnable context. * @param scope the java search scope. * @param style the widget style. */ public TypeSelectionDialog(Shell parent, IRunnableContext context, IJavaSearchScope scope, int style) { super(parent, new TypeInfoLabelProvider(0), new TypeInfoLabelProvider(TypeInfoLabelProvider.SHOW_PACKAGE_ONLY + TypeInfoLabelProvider.SHOW_ROOT_POSTFIX)); Assert.isNotNull(context); Assert.isNotNull(scope); fRunnableContext= context; fScope= scope; fStyle= style;
3,607
Bug 3607 Open Type: can't enter fully qualified name (1GCJUJX)
EG (4/21/2001 4:17:12 PM) it should be possible to enter fully qualified name NOTES: PA (5/31/01 2:44:32 PM) it isn't. MA (15.08.2001 18:10:01) Filter with the simple name from the current entered name, and select the package using the qualifier.
verified fixed
7bf340f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T15:46:44Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/TypeSelectionDialog.java
setUpperListLabel(JavaUIMessages.getString("TypeSelectionDialog.upperLabel")); setLowerListLabel(JavaUIMessages.getString("TypeSelectionDialog.lowerLabel")); } public void create() { if (getFilter() == null) setFilter("A"); super.create(); } /** * @see Window#open() */ public int open() { AllTypesSearchEngine engine= new AllTypesSearchEngine(JavaPlugin.getWorkspace()); List typeList= engine.searchTypes(fRunnableContext, fScope, fStyle); if (typeList.isEmpty()) { String title= JavaUIMessages.getString("TypeSelectionDialog.notypes.title"); String message= JavaUIMessages.getString("TypeSelectionDialog.notypes.message"); MessageDialog.openInformation(getShell(), title, message); return CANCEL; } TypeInfo[] typeRefs= (TypeInfo[])typeList.toArray(new TypeInfo[typeList.size()]); setElements(typeRefs); return super.open(); }
3,607
Bug 3607 Open Type: can't enter fully qualified name (1GCJUJX)
EG (4/21/2001 4:17:12 PM) it should be possible to enter fully qualified name NOTES: PA (5/31/01 2:44:32 PM) it isn't. MA (15.08.2001 18:10:01) Filter with the simple name from the current entered name, and select the package using the qualifier.
verified fixed
7bf340f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T15:46:44Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/TypeSelectionDialog.java
/** * @see SelectionStatusDialog#computeResult() */ protected void computeResult() { TypeInfo ref= (TypeInfo) getLowerSelectedElement(); if (ref == null) return; try { IType type= ref.resolveType(fScope); if (type == null) { String title= JavaUIMessages.getString("TypeSelectionDialog.errorTitle"); String message= JavaUIMessages.getString("TypeSelectionDialog.errorMessage"); MessageDialog.openError(getShell(), title, message); setResult(null); } else { List result= new ArrayList(1); result.add(type); setResult(result); } } catch (JavaModelException e) { String title= JavaUIMessages.getString("TypeSelectionDialog.errorTitle"); String message= JavaUIMessages.getString("TypeSelectionDialog.errorMessage"); MessageDialog.openError(getShell(), title, message); setResult(null); } } }
3,607
Bug 3607 Open Type: can't enter fully qualified name (1GCJUJX)
EG (4/21/2001 4:17:12 PM) it should be possible to enter fully qualified name NOTES: PA (5/31/01 2:44:32 PM) it isn't. MA (15.08.2001 18:10:01) Filter with the simple name from the current entered name, and select the package using the qualifier.
verified fixed
7bf340f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T15:46:44Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/util/TypeInfoLabelProvider.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.util; import org.eclipse.jdt.internal.ui.JavaPluginImages; import org.eclipse.jdt.internal.ui.JavaUIMessages; import org.eclipse.jface.viewers.LabelProvider; import org.eclipse.swt.graphics.Image; public class TypeInfoLabelProvider extends LabelProvider { public static final int SHOW_FULLYQUALIFIED= 0x01; public static final int SHOW_PACKAGE_POSTFIX= 0x02; public static final int SHOW_PACKAGE_ONLY= 0x04; public static final int SHOW_ROOT_POSTFIX= 0x08; private static final Image CLASS_ICON= JavaPluginImages.get(JavaPluginImages.IMG_OBJS_CLASS);
3,607
Bug 3607 Open Type: can't enter fully qualified name (1GCJUJX)
EG (4/21/2001 4:17:12 PM) it should be possible to enter fully qualified name NOTES: PA (5/31/01 2:44:32 PM) it isn't. MA (15.08.2001 18:10:01) Filter with the simple name from the current entered name, and select the package using the qualifier.
verified fixed
7bf340f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T15:46:44Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/util/TypeInfoLabelProvider.java
private static final Image INTERFACE_ICON= JavaPluginImages.get(JavaPluginImages.IMG_OBJS_INTERFACE); private static final Image PKG_ICON= JavaPluginImages.get(JavaPluginImages.IMG_OBJS_PACKAGE); private int fFlags; public TypeInfoLabelProvider(int flags) { fFlags= flags; } private boolean isSet(int flag) { return (fFlags & flag) != 0; } private String getPackageName(TypeInfo typeRef) { String packName= typeRef.getPackageName(); if (packName.length() == 0) return JavaUIMessages.getString("TypeInfoLabelProvider.default_package"); else return packName; } /* non java-doc * @see ILabelProvider#getText */ public String getText(Object element) { if (! (element instanceof TypeInfo)) return super.getText(element); TypeInfo typeRef= (TypeInfo) element; StringBuffer buf= new StringBuffer(); if (isSet(SHOW_PACKAGE_ONLY)) { buf.append(getPackageName(typeRef));
3,607
Bug 3607 Open Type: can't enter fully qualified name (1GCJUJX)
EG (4/21/2001 4:17:12 PM) it should be possible to enter fully qualified name NOTES: PA (5/31/01 2:44:32 PM) it isn't. MA (15.08.2001 18:10:01) Filter with the simple name from the current entered name, and select the package using the qualifier.
verified fixed
7bf340f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T15:46:44Z"
"2001-10-11T03:13:20Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/util/TypeInfoLabelProvider.java
}else { if (isSet(SHOW_FULLYQUALIFIED)) buf.append(typeRef.getFullyQualifiedName()); else buf.append(typeRef.getTypeQualifiedName()); if (isSet(SHOW_PACKAGE_POSTFIX)) { buf.append(JavaUIMessages.getString("TypeInfoLabelProvider.dash")); buf.append(getPackageName(typeRef)); } } if (isSet(SHOW_ROOT_POSTFIX)) { buf.append(JavaUIMessages.getString("TypeInfoLabelProvider.dash")); buf.append(typeRef.getPackageFragmentRootPath().toString()); } return buf.toString(); } /* non java-doc * @see ILabelProvider#getImage */ public Image getImage(Object element) { if (! (element instanceof TypeInfo)) return super.getImage(element); if (isSet(SHOW_PACKAGE_ONLY)) return PKG_ICON; else return ((TypeInfo) element).isInterface() ? INTERFACE_ICON : CLASS_ICON; } }
5,873
Bug 5873 Open Type Dialog doesn't behave as expected for former VAJ users
When using the 'Open Type' dialog in VisualAge for Java, you can type a few letters of the class name, and then use the UP/DOWN arrow keys to quickly select the desired type from the list. In Eclipse, you are required to hit the TAB key or use the mouse to move the focus to the list of types. Since a large number of Eclipse users are likely current/former VAJ users (who would likely consider this a bug), it would be nice if the Eclipse behavior could be changed to match VAJ.
resolved fixed
60187c1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T19:14:02Z"
"2001-11-13T22:20:00Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/AbstractElementListSelectionDialog.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.dialogs; import java.util.ArrayList; import java.util.List; import org.eclipse.swt.SWT; import org.eclipse.swt.custom.BusyIndicator; import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.events.SelectionListener; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Control; import org.eclipse.swt.widgets.Event; import org.eclipse.swt.widgets.Label; import org.eclipse.swt.widgets.Listener; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.Text; import org.eclipse.core.runtime.IStatus; import org.eclipse.jface.dialogs.IDialogConstants; import org.eclipse.jface.util.Assert; import org.eclipse.jface.viewers.ILabelProvider; /** * An abstract class to select elements out of a list of elements. */ public abstract class AbstractElementListSelectionDialog extends SelectionStatusDialog {
5,873
Bug 5873 Open Type Dialog doesn't behave as expected for former VAJ users
When using the 'Open Type' dialog in VisualAge for Java, you can type a few letters of the class name, and then use the UP/DOWN arrow keys to quickly select the desired type from the list. In Eclipse, you are required to hit the TAB key or use the mouse to move the focus to the list of types. Since a large number of Eclipse users are likely current/former VAJ users (who would likely consider this a bug), it would be nice if the Eclipse behavior could be changed to match VAJ.
resolved fixed
60187c1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T19:14:02Z"
"2001-11-13T22:20:00Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/AbstractElementListSelectionDialog.java
private ILabelProvider fRenderer; private boolean fIgnoreCase= true; private boolean fIsMultipleSelection= false; private boolean fMatchEmptyString= true; private boolean fAllowDuplicates= true;
5,873
Bug 5873 Open Type Dialog doesn't behave as expected for former VAJ users
When using the 'Open Type' dialog in VisualAge for Java, you can type a few letters of the class name, and then use the UP/DOWN arrow keys to quickly select the desired type from the list. In Eclipse, you are required to hit the TAB key or use the mouse to move the focus to the list of types. Since a large number of Eclipse users are likely current/former VAJ users (who would likely consider this a bug), it would be nice if the Eclipse behavior could be changed to match VAJ.
resolved fixed
60187c1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T19:14:02Z"
"2001-11-13T22:20:00Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/AbstractElementListSelectionDialog.java
private Label fMessage; protected FilteredList fFilteredList; private Text fFilterText; private ISelectionValidator fValidator; private String fFilter= null; private String fEmptyListMessage= ""; private String fEmptySelectionMessage= ""; private int fWidth= 60; private int fHeight= 18; /** * Constructs a list selection dialog. * @param renderer The label renderer used * @param ignoreCase Decides if the match string ignores lower/upppr case * @param multipleSelection Allow multiple selection */ protected AbstractElementListSelectionDialog(Shell parent, ILabelProvider renderer) { super(parent); fRenderer= renderer; } /** * Handles default selection (double click). * By default, the OK button is pressed. */ protected void handleDefaultSelected() { if (validateCurrentSelection())
5,873
Bug 5873 Open Type Dialog doesn't behave as expected for former VAJ users
When using the 'Open Type' dialog in VisualAge for Java, you can type a few letters of the class name, and then use the UP/DOWN arrow keys to quickly select the desired type from the list. In Eclipse, you are required to hit the TAB key or use the mouse to move the focus to the list of types. Since a large number of Eclipse users are likely current/former VAJ users (who would likely consider this a bug), it would be nice if the Eclipse behavior could be changed to match VAJ.
resolved fixed
60187c1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T19:14:02Z"
"2001-11-13T22:20:00Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/AbstractElementListSelectionDialog.java
buttonPressed(IDialogConstants.OK_ID); } /** * Specifies if sorting, filtering and folding is case sensitive. */ public void setIgnoreCase(boolean ignoreCase) { fIgnoreCase= ignoreCase; } /** * Returns if sorting, filtering and folding is case sensitive. */ public boolean isCaseIgnored() { return fIgnoreCase; } /** * Specifies whether everything or nothing should be filtered on * empty filter string. */ public void setMatchEmptyString(boolean matchEmptyString) { fMatchEmptyString= matchEmptyString; } /** * Specifies if multiple selection is allowed. */ public void setMultipleSelection(boolean multipleSelection) { fIsMultipleSelection= multipleSelection;
5,873
Bug 5873 Open Type Dialog doesn't behave as expected for former VAJ users
When using the 'Open Type' dialog in VisualAge for Java, you can type a few letters of the class name, and then use the UP/DOWN arrow keys to quickly select the desired type from the list. In Eclipse, you are required to hit the TAB key or use the mouse to move the focus to the list of types. Since a large number of Eclipse users are likely current/former VAJ users (who would likely consider this a bug), it would be nice if the Eclipse behavior could be changed to match VAJ.
resolved fixed
60187c1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T19:14:02Z"
"2001-11-13T22:20:00Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/AbstractElementListSelectionDialog.java
} /** * Specifies whether duplicate entries are displayed or not. */ public void setAllowDuplicates(boolean allowDuplicates) { fAllowDuplicates= allowDuplicates; } /** * Sets the list size in unit of characters. * @param width the width of the list. * @param height the height of the list. */ public void setSize(int width, int height) { fWidth= width; fHeight= height; } /** * Sets the message to be displayed if the list is empty. * @param message the message to be displayed. */ public void setEmptyListMessage(String message) { fEmptyListMessage= message; } /** * Sets the message to be displayed if the selection is empty. * @param message the message to be displayed. */ public void setEmptySelectionMessage(String message) {
5,873
Bug 5873 Open Type Dialog doesn't behave as expected for former VAJ users
When using the 'Open Type' dialog in VisualAge for Java, you can type a few letters of the class name, and then use the UP/DOWN arrow keys to quickly select the desired type from the list. In Eclipse, you are required to hit the TAB key or use the mouse to move the focus to the list of types. Since a large number of Eclipse users are likely current/former VAJ users (who would likely consider this a bug), it would be nice if the Eclipse behavior could be changed to match VAJ.
resolved fixed
60187c1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T19:14:02Z"
"2001-11-13T22:20:00Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/AbstractElementListSelectionDialog.java
fEmptySelectionMessage= message; } /** * Sets an optional validator to check if the selection is valid. * The validator is invoked whenever the selection changes. * @param validator the validator to validate the selection. */ public void setValidator(ISelectionValidator validator) { fValidator= validator; } /** * Sets the elements of the list (widget). * To be called within open(). * @param elements the elements of the list. */ protected void setListElements(Object[] elements) { Assert.isNotNull(fFilteredList); fFilteredList.setElements(elements); } /** * Sets the filter pattern. * @param filter the filter pattern. */ public void setFilter(String filter) { if (fFilterText == null) fFilter= filter; else fFilterText.setText(filter);
5,873
Bug 5873 Open Type Dialog doesn't behave as expected for former VAJ users
When using the 'Open Type' dialog in VisualAge for Java, you can type a few letters of the class name, and then use the UP/DOWN arrow keys to quickly select the desired type from the list. In Eclipse, you are required to hit the TAB key or use the mouse to move the focus to the list of types. Since a large number of Eclipse users are likely current/former VAJ users (who would likely consider this a bug), it would be nice if the Eclipse behavior could be changed to match VAJ.
resolved fixed
60187c1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T19:14:02Z"
"2001-11-13T22:20:00Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/AbstractElementListSelectionDialog.java
} /** * Returns the current filter pattern. * @return returns the current filter pattern or <code>null<code> if filter was not set. */ public String getFilter() { if (fFilteredList == null) return fFilter; else return fFilteredList.getFilter(); } /** * Returns the indices referring the current selection. * To be called within open(). * @return returns the indices of the current selection. */ protected int[] getSelectionIndices() { Assert.isNotNull(fFilteredList); return fFilteredList.getSelectionIndices(); } /** * Returns an index referring the first current selection. * To be called within open(). * @return returns the indices of the current selection. */ protected int getSelectionIndex() { Assert.isNotNull(fFilteredList); return fFilteredList.getSelectionIndex(); }
5,873
Bug 5873 Open Type Dialog doesn't behave as expected for former VAJ users
When using the 'Open Type' dialog in VisualAge for Java, you can type a few letters of the class name, and then use the UP/DOWN arrow keys to quickly select the desired type from the list. In Eclipse, you are required to hit the TAB key or use the mouse to move the focus to the list of types. Since a large number of Eclipse users are likely current/former VAJ users (who would likely consider this a bug), it would be nice if the Eclipse behavior could be changed to match VAJ.
resolved fixed
60187c1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T19:14:02Z"
"2001-11-13T22:20:00Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/AbstractElementListSelectionDialog.java
/** * Sets the selection referenced by an array of elements. * To be called within open(). * @param selection the indices of the selection. */ protected void setSelection(Object[] selection) { Assert.isNotNull(fFilteredList); fFilteredList.setSelection(selection); } /** * Returns an array of the currently selected elements. * To be called within or after open(). * @return returns an array of the currently selected elements. */ protected Object[] getSelectedElements() { Assert.isNotNull(fFilteredList); return fFilteredList.getSelection(); } /** * Returns all elements which are folded together to one entry in the list. * @param index the index selecting the entry in the list. * @return returns an array of elements folded together. */ public Object[] getFoldedElements(int index) { Assert.isNotNull(fFilteredList); return fFilteredList.getFoldedElements(index); }
5,873
Bug 5873 Open Type Dialog doesn't behave as expected for former VAJ users
When using the 'Open Type' dialog in VisualAge for Java, you can type a few letters of the class name, and then use the UP/DOWN arrow keys to quickly select the desired type from the list. In Eclipse, you are required to hit the TAB key or use the mouse to move the focus to the list of types. Since a large number of Eclipse users are likely current/former VAJ users (who would likely consider this a bug), it would be nice if the Eclipse behavior could be changed to match VAJ.
resolved fixed
60187c1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T19:14:02Z"
"2001-11-13T22:20:00Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/AbstractElementListSelectionDialog.java
/** * Creates the message text widget and sets layout data. * @param composite the parent composite of the message area. */ protected Label createMessageArea(Composite composite) { Label label= super.createMessageArea(composite); GridData data= new GridData(); data.grabExcessVerticalSpace= false; data.grabExcessHorizontalSpace= true; data.horizontalAlignment= GridData.FILL; data.verticalAlignment= GridData.BEGINNING; label.setLayoutData(data); fMessage= label; return label; } /** * Handles a selection changed event. * By default, the current selection is validated. */ protected void handleSelectionChanged() { validateCurrentSelection(); } /** * Validates the current selection and updates the status line * accordingly. */ protected boolean validateCurrentSelection() {
5,873
Bug 5873 Open Type Dialog doesn't behave as expected for former VAJ users
When using the 'Open Type' dialog in VisualAge for Java, you can type a few letters of the class name, and then use the UP/DOWN arrow keys to quickly select the desired type from the list. In Eclipse, you are required to hit the TAB key or use the mouse to move the focus to the list of types. Since a large number of Eclipse users are likely current/former VAJ users (who would likely consider this a bug), it would be nice if the Eclipse behavior could be changed to match VAJ.
resolved fixed
60187c1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T19:14:02Z"
"2001-11-13T22:20:00Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/AbstractElementListSelectionDialog.java
Assert.isNotNull(fFilteredList); IStatus status; Object[] elements= getSelectedElements(); if (elements.length > 0) { if (fValidator != null) { status= fValidator.validate(elements); } else { status= new StatusInfo(); } } else { if (fFilteredList.isEmpty()) { status= new StatusInfo(IStatus.ERROR, fEmptyListMessage); } else { status= new StatusInfo(IStatus.ERROR, fEmptySelectionMessage); } } updateStatus(status); return status.isOK(); } /* * @see Dialog#cancelPressed */ protected void cancelPressed() { setResult(null); super.cancelPressed(); } /** * Creates a filtered list. * @param parent the parent composite.
5,873
Bug 5873 Open Type Dialog doesn't behave as expected for former VAJ users
When using the 'Open Type' dialog in VisualAge for Java, you can type a few letters of the class name, and then use the UP/DOWN arrow keys to quickly select the desired type from the list. In Eclipse, you are required to hit the TAB key or use the mouse to move the focus to the list of types. Since a large number of Eclipse users are likely current/former VAJ users (who would likely consider this a bug), it would be nice if the Eclipse behavior could be changed to match VAJ.
resolved fixed
60187c1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
"2001-11-14T19:14:02Z"
"2001-11-13T22:20:00Z"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/AbstractElementListSelectionDialog.java
* @return returns the filtered list widget. */ protected FilteredList createFilteredList(Composite parent) { int flags= SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL | (fIsMultipleSelection ? SWT.MULTI : SWT.SINGLE); FilteredList list= new FilteredList(parent, flags, fRenderer, fIgnoreCase, fAllowDuplicates, fMatchEmptyString); GridData data= new GridData(); data.widthHint= convertWidthInCharsToPixels(fWidth); data.heightHint= convertHeightInCharsToPixels(fHeight); data.grabExcessVerticalSpace= true; data.grabExcessHorizontalSpace= true; data.horizontalAlignment= GridData.FILL; data.verticalAlignment= GridData.FILL; list.setLayoutData(data); list.setFilter((fFilter == null ? "" : fFilter)); list.addSelectionListener(new SelectionListener() { public void widgetDefaultSelected(SelectionEvent e) { handleDefaultSelected(); } public void widgetSelected(SelectionEvent e) { handleSelectionChanged(); } }); fFilteredList= list; return list; } protected Text createFilterText(Composite parent) {