issue_id
int64
2.04k
425k
title
stringlengths
9
251
body
stringlengths
4
32.8k
status
stringclasses
6 values
after_fix_sha
stringlengths
7
7
project_name
stringclasses
6 values
repo_url
stringclasses
6 values
repo_name
stringclasses
6 values
language
stringclasses
1 value
issue_url
null
before_fix_sha
null
pull_url
null
commit_datetime
timestamp[us, tz=UTC]
report_datetime
timestamp[us, tz=UTC]
updated_file
stringlengths
23
187
chunk_content
stringlengths
1
22k
17,618
Bug 17618 Changing output location should delete all derived resources
F1 1) create a project (autobuild on) 2) import Java sources and resources 3) change output folder to project/bin ->all class files are removed (fine) 4) change output folder back to be the project -> all class files are removed (fine) 5) open project/bin -> all resources are still there Note: When opening the properties dialog on such a resource it is tagged as "Derived". Thus, it should be possible to remove all derived resources as long as they have been created by the Java builder.
verified fixed
bf1a15f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-27T18:25:28Z
2002-05-24T14:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java
isMissing= !path.toFile().isFile(); } break; case IClasspathEntry.CPE_SOURCE: res= fWorkspaceRoot.findMember(path); if (res == null) { if (fWorkspaceRoot.getWorkspace().validatePath(path.toString(), IResource.FOLDER).isOK()) { res= fWorkspaceRoot.getFolder(path); } isMissing= true; } break; case IClasspathEntry.CPE_PROJECT: res= fWorkspaceRoot.findMember(path); isMissing= (res == null); break; } boolean isExported= curr.isExported(); CPListElement elem= new CPListElement(fCurrJProject, curr.getEntryKind(), path, res, curr.getSourceAttachmentPath(), curr.getSourceAttachmentRootPath(), isExported); if (projectExists) { elem.setIsMissing(isMissing); } newClassPath.add(elem); } return newClassPath; }
17,618
Bug 17618 Changing output location should delete all derived resources
F1 1) create a project (autobuild on) 2) import Java sources and resources 3) change output folder to project/bin ->all class files are removed (fine) 4) change output folder back to be the project -> all class files are removed (fine) 5) open project/bin -> all resources are still there Note: When opening the properties dialog on such a resource it is tagged as "Derived". Thus, it should be possible to remove all derived resources as long as they have been created by the Java builder.
verified fixed
bf1a15f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-27T18:25:28Z
2002-05-24T14:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java
/** * Returns the Java project. Can return <code>null<code> if the page has not * been initialized. */ public IJavaProject getJavaProject() { return fCurrJProject; } /** * Returns the current output location. Note that the path returned must not be valid. */ public IPath getOutputLocation() { return new Path(fBuildPathDialogField.getText()).makeAbsolute(); } /** * Returns the current class path (raw). Note that the entries returned must not be valid. */ public IClasspathEntry[] getRawClassPath() { List elements= fClassPathList.getElements(); int nElements= elements.size(); IClasspathEntry[] entries= new IClasspathEntry[elements.size()]; for (int i= 0; i < nElements; i++) { CPListElement currElement= (CPListElement) elements.get(i); entries[i]= currElement.getClasspathEntry(); } return entries; }
17,618
Bug 17618 Changing output location should delete all derived resources
F1 1) create a project (autobuild on) 2) import Java sources and resources 3) change output folder to project/bin ->all class files are removed (fine) 4) change output folder back to be the project -> all class files are removed (fine) 5) open project/bin -> all resources are still there Note: When opening the properties dialog on such a resource it is tagged as "Derived". Thus, it should be possible to remove all derived resources as long as they have been created by the Java builder.
verified fixed
bf1a15f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-27T18:25:28Z
2002-05-24T14:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java
private List getDefaultClassPath(IJavaProject jproj) { List list= new ArrayList(); IResource srcFolder; if (JavaBasePreferencePage.useSrcAndBinFolders()) { String sourceFolderName= JavaBasePreferencePage.getSourceFolderName(); srcFolder= jproj.getProject().getFolder(sourceFolderName); } else { srcFolder= jproj.getProject(); } list.add(new CPListElement(jproj, IClasspathEntry.CPE_SOURCE, srcFolder.getFullPath(), srcFolder)); IPath libPath= new Path(JavaRuntime.JRELIB_VARIABLE); IPath attachPath= new Path(JavaRuntime.JRESRC_VARIABLE); IPath attachRoot= new Path(JavaRuntime.JRESRCROOT_VARIABLE); CPListElement elem= new CPListElement(jproj, IClasspathEntry.CPE_VARIABLE, libPath, null, attachPath, attachRoot, false); list.add(elem); return list; } private IPath getDefaultBuildPath(IJavaProject jproj) { if (JavaBasePreferencePage.useSrcAndBinFolders()) { String outputLocationName= JavaBasePreferencePage.getOutputLocationName(); return jproj.getProject().getFullPath().append(outputLocationName); } else { return jproj.getProject().getFullPath(); } } private class BuildPathAdapter implements IStringButtonAdapter, IDialogFieldListener {
17,618
Bug 17618 Changing output location should delete all derived resources
F1 1) create a project (autobuild on) 2) import Java sources and resources 3) change output folder to project/bin ->all class files are removed (fine) 4) change output folder back to be the project -> all class files are removed (fine) 5) open project/bin -> all resources are still there Note: When opening the properties dialog on such a resource it is tagged as "Derived". Thus, it should be possible to remove all derived resources as long as they have been created by the Java builder.
verified fixed
bf1a15f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-27T18:25:28Z
2002-05-24T14:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java
public void changeControlPressed(DialogField field) { buildPathChangeControlPressed(field); } public void dialogFieldChanged(DialogField field) { buildPathDialogFieldChanged(field); } } private void buildPathChangeControlPressed(DialogField field) { if (field == fBuildPathDialogField) { IContainer container= chooseContainer(); if (container != null) { fBuildPathDialogField.setText(container.getFullPath().toString());
17,618
Bug 17618 Changing output location should delete all derived resources
F1 1) create a project (autobuild on) 2) import Java sources and resources 3) change output folder to project/bin ->all class files are removed (fine) 4) change output folder back to be the project -> all class files are removed (fine) 5) open project/bin -> all resources are still there Note: When opening the properties dialog on such a resource it is tagged as "Derived". Thus, it should be possible to remove all derived resources as long as they have been created by the Java builder.
verified fixed
bf1a15f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-27T18:25:28Z
2002-05-24T14:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java
} } } private void buildPathDialogFieldChanged(DialogField field) { if (field == fClassPathList) { updateClassPathStatus(); updateBuildPathStatus(); } else if (field == fBuildPathDialogField) { updateBuildPathStatus(); } doStatusLineUpdate(); } private void doStatusLineUpdate() { IStatus res= findMostSevereStatus(); fContext.statusChanged(res); } private IStatus findMostSevereStatus() { return StatusUtil.getMoreSevere(fClassPathStatus, fBuildPathStatus); } /** * Validates the build path. */
17,618
Bug 17618 Changing output location should delete all derived resources
F1 1) create a project (autobuild on) 2) import Java sources and resources 3) change output folder to project/bin ->all class files are removed (fine) 4) change output folder back to be the project -> all class files are removed (fine) 5) open project/bin -> all resources are still there Note: When opening the properties dialog on such a resource it is tagged as "Derived". Thus, it should be possible to remove all derived resources as long as they have been created by the Java builder.
verified fixed
bf1a15f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-27T18:25:28Z
2002-05-24T14:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java
private void updateClassPathStatus() { fClassPathStatus.setOK(); List elements= fClassPathList.getElements(); boolean entryMissing= false; IClasspathEntry[] entries= new IClasspathEntry[elements.size()]; for (int i= elements.size()-1 ; i >= 0 ; i--) { CPListElement currElement= (CPListElement)elements.get(i); boolean isChecked= fClassPathList.isChecked(currElement); if (currElement.getEntryKind() == IClasspathEntry.CPE_SOURCE) { if (!isChecked) { fClassPathList.setCheckedWithoutUpdate(currElement, true); } } else { currElement.setExported(isChecked); } entries[i]= currElement.getClasspathEntry(); entryMissing= entryMissing || currElement.isMissing(); } if (entryMissing) { fClassPathStatus.setWarning(NewWizardMessages.getString("BuildPathsBlock.warning.EntryMissing")); } if (fCurrJProject.hasClasspathCycle(entries)) { fClassPathStatus.setWarning(NewWizardMessages.getString("BuildPathsBlock.warning.CycleInClassPath")); } } /**
17,618
Bug 17618 Changing output location should delete all derived resources
F1 1) create a project (autobuild on) 2) import Java sources and resources 3) change output folder to project/bin ->all class files are removed (fine) 4) change output folder back to be the project -> all class files are removed (fine) 5) open project/bin -> all resources are still there Note: When opening the properties dialog on such a resource it is tagged as "Derived". Thus, it should be possible to remove all derived resources as long as they have been created by the Java builder.
verified fixed
bf1a15f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-27T18:25:28Z
2002-05-24T14:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java
* Validates output location & build path. */ private void updateBuildPathStatus() { fOutputLocationPath= null; String text= fBuildPathDialogField.getText(); if ("".equals(text)) { fBuildPathStatus.setError(NewWizardMessages.getString("BuildPathsBlock.error.EnterBuildPath")); return; } IPath path= getOutputLocation(); IResource res= fWorkspaceRoot.findMember(path); if (res != null) { if (res.getType() == IResource.FILE) { fBuildPathStatus.setError(NewWizardMessages.getString("BuildPathsBlock.error.InvalidBuildPath")); return; } } fOutputLocationPath= path; List elements= fClassPathList.getElements(); IClasspathEntry[] entries= new IClasspathEntry[elements.size()]; boolean outputFolderAlsoSourceFolder= false; for (int i= elements.size()-1 ; i >= 0 ; i--) { CPListElement currElement= (CPListElement)elements.get(i); entries[i]= currElement.getClasspathEntry(); if (currElement.getEntryKind() == IClasspathEntry.CPE_SOURCE && fOutputLocationPath.equals(currElement.getPath())) {
17,618
Bug 17618 Changing output location should delete all derived resources
F1 1) create a project (autobuild on) 2) import Java sources and resources 3) change output folder to project/bin ->all class files are removed (fine) 4) change output folder back to be the project -> all class files are removed (fine) 5) open project/bin -> all resources are still there Note: When opening the properties dialog on such a resource it is tagged as "Derived". Thus, it should be possible to remove all derived resources as long as they have been created by the Java builder.
verified fixed
bf1a15f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-27T18:25:28Z
2002-05-24T14:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java
outputFolderAlsoSourceFolder= true; } } IStatus status= JavaConventions.validateClasspath(fCurrJProject, entries, path); if (!status.isOK()) { fBuildPathStatus.setError(status.getMessage()); return; } if (res != null && res.exists() && fCurrJProject.exists()) { try { IPath oldOutputLocation= fCurrJProject.getOutputLocation(); if (!oldOutputLocation.equals(fOutputLocationPath) && !outputFolderAlsoSourceFolder) { if (((IContainer)res).members().length > 0) { fBuildPathStatus.setWarning(NewWizardMessages.getString("BuildPathsBlock.warning.OutputFolderNotEmpty")); return; } } } catch (CoreException e) { JavaPlugin.log(e); } } fBuildPathStatus.setOK(); } public static void createProject(IProject project, IPath locationPath, IProgressMonitor monitor) throws CoreException {
17,618
Bug 17618 Changing output location should delete all derived resources
F1 1) create a project (autobuild on) 2) import Java sources and resources 3) change output folder to project/bin ->all class files are removed (fine) 4) change output folder back to be the project -> all class files are removed (fine) 5) open project/bin -> all resources are still there Note: When opening the properties dialog on such a resource it is tagged as "Derived". Thus, it should be possible to remove all derived resources as long as they have been created by the Java builder.
verified fixed
bf1a15f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-27T18:25:28Z
2002-05-24T14:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java
try { if (!project.exists()) { IProjectDescription desc= project.getWorkspace().newProjectDescription(project.getName()); if (Platform.getLocation().equals(locationPath)) { locationPath= null; } desc.setLocation(locationPath); project.create(desc, monitor); monitor= null; } if (!project.isOpen()) { project.open(monitor); monitor= null; } } finally { if (monitor != null) { monitor.done(); } } } public static void addJavaNature(IProject project, IProgressMonitor monitor) throws CoreException { if (!project.hasNature(JavaCore.NATURE_ID)) { IProjectDescription description = project.getDescription(); String[] prevNatures= description.getNatureIds(); String[] newNatures= new String[prevNatures.length + 1]; System.arraycopy(prevNatures, 0, newNatures, 0, prevNatures.length); newNatures[prevNatures.length]= JavaCore.NATURE_ID; description.setNatureIds(newNatures); project.setDescription(description, monitor); }
17,618
Bug 17618 Changing output location should delete all derived resources
F1 1) create a project (autobuild on) 2) import Java sources and resources 3) change output folder to project/bin ->all class files are removed (fine) 4) change output folder back to be the project -> all class files are removed (fine) 5) open project/bin -> all resources are still there Note: When opening the properties dialog on such a resource it is tagged as "Derived". Thus, it should be possible to remove all derived resources as long as they have been created by the Java builder.
verified fixed
bf1a15f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-27T18:25:28Z
2002-05-24T14:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java
} public void configureJavaProject(IProgressMonitor monitor) throws CoreException, InterruptedException { if (monitor == null) { monitor= new NullProgressMonitor(); } monitor.beginTask(NewWizardMessages.getString("BuildPathsBlock.operationdesc"), 10); try { Shell shell= null; if (fSWTWidget != null && !fSWTWidget.getShell().isDisposed()) { shell= fSWTWidget.getShell(); } internalConfigureJavaProject(fClassPathList.getElements(), getOutputLocation(), shell, monitor); } finally { monitor.done(); } } /** * 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 internalConfigureJavaProject(List classPathEntries, IPath outputLocation, Shell shell, IProgressMonitor monitor) throws CoreException, InterruptedException { IRemoveOldBinariesQuery reorgQuery= null; if (shell != null) { reorgQuery= getRemoveOldBinariesQuery(shell); }
17,618
Bug 17618 Changing output location should delete all derived resources
F1 1) create a project (autobuild on) 2) import Java sources and resources 3) change output folder to project/bin ->all class files are removed (fine) 4) change output folder back to be the project -> all class files are removed (fine) 5) open project/bin -> all resources are still there Note: When opening the properties dialog on such a resource it is tagged as "Derived". Thus, it should be possible to remove all derived resources as long as they have been created by the Java builder.
verified fixed
bf1a15f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-27T18:25:28Z
2002-05-24T14:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java
if (reorgQuery != null) { IPath oldOutputLocation= fCurrJProject.getOutputLocation(); if (!outputLocation.equals(oldOutputLocation)) { IResource res= fWorkspaceRoot.findMember(oldOutputLocation); if (res instanceof IContainer && hasClassfiles(res)) { if (reorgQuery.doQuery(oldOutputLocation)) { removeOldClassfiles(res); } } } } if (!fWorkspaceRoot.exists(outputLocation)) { IFolder folder= fWorkspaceRoot.getFolder(outputLocation); CoreUtility.createFolder(folder, true, true, null); } monitor.worked(2); 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()) {
17,618
Bug 17618 Changing output location should delete all derived resources
F1 1) create a project (autobuild on) 2) import Java sources and resources 3) change output folder to project/bin ->all class files are removed (fine) 4) change output folder back to be the project -> all class files are removed (fine) 5) open project/bin -> all resources are still there Note: When opening the properties dialog on such a resource it is tagged as "Derived". Thus, it should be possible to remove all derived resources as long as they have been created by the Java builder.
verified fixed
bf1a15f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-27T18:25:28Z
2002-05-24T14:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java
CoreUtility.createFolder((IFolder)res, true, true, null); } classpath[i]= entry.getClasspathEntry(); URL javadocLocation= entry.getJavadocLocation(); if (javadocLocation != null) { IPath path= entry.getPath(); if (entry.getEntryKind() == IClasspathEntry.CPE_VARIABLE) { path= JavaCore.getResolvedVariablePath(path); } if (path != null) { JavaDocLocations.setLibraryJavadocLocation(path, javadocLocation); } } } monitor.worked(1); fCurrJProject.setRawClasspath(classpath, outputLocation, new SubProgressMonitor(monitor, 7)); } public static boolean hasClassfiles(IResource resource) throws CoreException { if (resource.isDerived() && "class".equals(resource.getFileExtension())) { return true; } if (resource instanceof IContainer) { IResource[] members= ((IContainer) resource).members(); for (int i= 0; i < members.length; i++) { if (hasClassfiles(members[i])) { return true;
17,618
Bug 17618 Changing output location should delete all derived resources
F1 1) create a project (autobuild on) 2) import Java sources and resources 3) change output folder to project/bin ->all class files are removed (fine) 4) change output folder back to be the project -> all class files are removed (fine) 5) open project/bin -> all resources are still there Note: When opening the properties dialog on such a resource it is tagged as "Derived". Thus, it should be possible to remove all derived resources as long as they have been created by the Java builder.
verified fixed
bf1a15f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-27T18:25:28Z
2002-05-24T14:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java
} } } return false; } public static void removeOldClassfiles(IResource resource) throws CoreException { if (resource.isDerived() && "class".equals(resource.getFileExtension())) { resource.delete(false, null); } if (resource instanceof IContainer) { IResource[] members= ((IContainer) resource).members(); for (int i= 0; i < members.length; i++) { removeOldClassfiles(members[i]); } } } public static IRemoveOldBinariesQuery getRemoveOldBinariesQuery(final Shell shell) { return new IRemoveOldBinariesQuery() { public boolean doQuery(final IPath oldOutputLocation) throws InterruptedException { final int[] res= new int[] { 1 }; shell.getDisplay().syncExec(new Runnable() { public void run() { String title= NewWizardMessages.getString("BuildPathsBlock.RemoveBinariesDialog.title"); String message= NewWizardMessages.getFormattedString("BuildPathsBlock.RemoveBinariesDialog.description", oldOutputLocation.toString()); MessageDialog dialog= new MessageDialog(shell, title, null, message, MessageDialog.QUESTION, new String[] { IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL, IDialogConstants.CANCEL_LABEL }, 2); res[0]= dialog.open(); } });
17,618
Bug 17618 Changing output location should delete all derived resources
F1 1) create a project (autobuild on) 2) import Java sources and resources 3) change output folder to project/bin ->all class files are removed (fine) 4) change output folder back to be the project -> all class files are removed (fine) 5) open project/bin -> all resources are still there Note: When opening the properties dialog on such a resource it is tagged as "Derived". Thus, it should be possible to remove all derived resources as long as they have been created by the Java builder.
verified fixed
bf1a15f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-27T18:25:28Z
2002-05-24T14:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java
if (res[0] == 0) { return true; } else if (res[0] == 1) { return false; } throw new InterruptedException(); } }; } private IContainer chooseContainer() { Class[] acceptedClasses= new Class[] { IProject.class, IFolder.class }; ISelectionStatusValidator validator= new 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); }
17,618
Bug 17618 Changing output location should delete all derived resources
F1 1) create a project (autobuild on) 2) import Java sources and resources 3) change output folder to project/bin ->all class files are removed (fine) 4) change output folder back to be the project -> all class files are removed (fine) 5) open project/bin -> all resources are still there Note: When opening the properties dialog on such a resource it is tagged as "Derived". Thus, it should be possible to remove all derived resources as long as they have been created by the Java builder.
verified fixed
bf1a15f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-27T18:25:28Z
2002-05-24T14:20:00Z
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; } } }
17,396
Bug 17396 Organize import on multiple CUs flickers
20020521 Should use a WorkspaceModifyOperation
verified fixed
ac4ba83
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T09:16:47Z
2002-05-23T16:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OrganizeImportsAction.java
package org.eclipse.jdt.ui.actions; /* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ import java.lang.reflect.InvocationTargetException; import java.util.Arrays; import java.util.HashSet; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.MultiStatus; import org.eclipse.core.runtime.NullProgressMonitor; import org.eclipse.core.runtime.OperationCanceledException; import org.eclipse.core.runtime.Status; import org.eclipse.core.runtime.SubProgressMonitor; import org.eclipse.jface.action.IAction; import org.eclipse.jface.action.IStatusLineManager; import org.eclipse.jface.dialogs.MessageDialog; import org.eclipse.jface.dialogs.ProgressMonitorDialog; import org.eclipse.jface.operation.IRunnableWithProgress; import org.eclipse.jface.text.ITextSelection; import org.eclipse.jface.viewers.ILabelProvider; import org.eclipse.jface.viewers.ISelection; import org.eclipse.jface.viewers.IStructuredSelection; import org.eclipse.ui.IEditorActionBarContributor;
17,396
Bug 17396 Organize import on multiple CUs flickers
20020521 Should use a WorkspaceModifyOperation
verified fixed
ac4ba83
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T09:16:47Z
2002-05-23T16:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OrganizeImportsAction.java
import org.eclipse.ui.IEditorPart; import org.eclipse.ui.IObjectActionDelegate; import org.eclipse.ui.IWorkbenchPart; import org.eclipse.ui.IWorkbenchSite; import org.eclipse.ui.help.WorkbenchHelp; import org.eclipse.ui.part.EditorActionBarContributor; import org.eclipse.jdt.core.ICompilationUnit; import org.eclipse.jdt.core.IJavaElement; import org.eclipse.jdt.core.IPackageFragment; import org.eclipse.jdt.core.ISourceRange; import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jdt.ui.IWorkingCopyManager; import org.eclipse.jdt.ui.JavaUI; import org.eclipse.jdt.internal.corext.codemanipulation.OrganizeImportsOperation; import org.eclipse.jdt.internal.corext.codemanipulation.OrganizeImportsOperation.IChooseImportQuery; import org.eclipse.jdt.internal.corext.util.JavaModelUtil; import org.eclipse.jdt.internal.corext.util.TypeInfo; import org.eclipse.jdt.internal.ui.IJavaHelpContextIds; import org.eclipse.jdt.internal.ui.JavaPlugin; import org.eclipse.jdt.internal.ui.actions.ActionMessages; import org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter; import org.eclipse.jdt.internal.ui.dialogs.MultiElementListSelectionDialog; import org.eclipse.jdt.internal.ui.dialogs.ProblemDialog; import org.eclipse.jdt.internal.ui.javaeditor.EditorUtility; import org.eclipse.jdt.internal.ui.javaeditor.JavaEditor; import org.eclipse.jdt.internal.ui.preferences.ImportOrganizePreferencePage; import org.eclipse.jdt.internal.ui.util.BusyIndicatorRunnableContext; import org.eclipse.jdt.internal.ui.util.ExceptionHandler; import org.eclipse.jdt.internal.ui.util.TypeInfoLabelProvider; public class OrganizeImportsAction extends SelectionDispatchAction {
17,396
Bug 17396 Organize import on multiple CUs flickers
20020521 Should use a WorkspaceModifyOperation
verified fixed
ac4ba83
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T09:16:47Z
2002-05-23T16:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OrganizeImportsAction.java
private JavaEditor fEditor; /* (non-Javadoc) * Class implements IObjectActionDelegate */ public static class ObjectDelegate implements IObjectActionDelegate { private OrganizeImportsAction fAction; public void setActivePart(IAction action, IWorkbenchPart targetPart) { fAction= new OrganizeImportsAction(targetPart.getSite()); } public void run(IAction action) { fAction.run(); } public void selectionChanged(IAction action, ISelection selection) { if (fAction == null) action.setEnabled(false); } } public OrganizeImportsAction(IWorkbenchSite site) { super(site); setText(ActionMessages.getString("OrganizeImportsAction.label")); setToolTipText(ActionMessages.getString("OrganizeImportsAction.tooltip"));
17,396
Bug 17396 Organize import on multiple CUs flickers
20020521 Should use a WorkspaceModifyOperation
verified fixed
ac4ba83
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T09:16:47Z
2002-05-23T16:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OrganizeImportsAction.java
setDescription(ActionMessages.getString("OrganizeImportsAction.description")); WorkbenchHelp.setHelp(this, IJavaHelpContextIds.ORGANIZE_IMPORTS_ACTION); } /** * Creates a new <code>OrganizeImportsAction</code>. * <p> * Note: This constructor is for internal use only. Clients should not call this constructor. * </p> */ public OrganizeImportsAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; } void editorStateChanged() { setEnabled(fEditor != null && !fEditor.isEditorInputReadOnly()); } /* (non-Javadoc) * Method declared on SelectionDispatchAction. */ protected void selectionChanged(ITextSelection selection) { } /* (non-Javadoc) * Method declared on SelectionDispatchAction. */ protected void selectionChanged(IStructuredSelection selection) {
17,396
Bug 17396 Organize import on multiple CUs flickers
20020521 Should use a WorkspaceModifyOperation
verified fixed
ac4ba83
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T09:16:47Z
2002-05-23T16:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OrganizeImportsAction.java
ICompilationUnit[] cus= getCompilationUnits(selection); boolean isEnabled= cus.length > 0; for (int i= 0; i < cus.length; i++) { if (!JavaModelUtil.isEditable(cus[i])) { isEnabled= false; break; } } setEnabled(isEnabled); } private ICompilationUnit[] getCompilationUnits(IStructuredSelection selection) { HashSet result= new HashSet(); Object[] selected= selection.toArray(); for (int i= 0; i < selected.length; i++) { try { if (selected[i] instanceof IJavaElement) { IJavaElement elem= (IJavaElement) selected[i]; switch (elem.getElementType()) { case IJavaElement.COMPILATION_UNIT: result.add(elem); break; case IJavaElement.IMPORT_CONTAINER: result.add(elem.getParent()); break; case IJavaElement.PACKAGE_FRAGMENT: IPackageFragment pack= (IPackageFragment) elem; result.addAll(Arrays.asList(pack.getCompilationUnits())); break; }
17,396
Bug 17396 Organize import on multiple CUs flickers
20020521 Should use a WorkspaceModifyOperation
verified fixed
ac4ba83
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T09:16:47Z
2002-05-23T16:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OrganizeImportsAction.java
} } catch (JavaModelException e) { JavaPlugin.log(e); } } return (ICompilationUnit[]) result.toArray(new ICompilationUnit[result.size()]); } /* (non-Javadoc) * Method declared on SelectionDispatchAction. */ protected void run(ITextSelection selection) { IWorkingCopyManager manager= JavaPlugin.getDefault().getWorkingCopyManager(); ICompilationUnit cu= manager.getWorkingCopy(fEditor.getEditorInput()); runOnSingle(cu, true); } /* (non-Javadoc) * Method declared on SelectionDispatchAction. */ protected void run(IStructuredSelection selection) { ICompilationUnit[] cus= getCompilationUnits(selection); if (cus.length == 1) { runOnSingle(cus[0], true); } else { runOnMultiple(cus, true); } } private void runOnMultiple(final ICompilationUnit[] cus, final boolean doResolve) { try { String message= ActionMessages.getString("OrganizeImportsAction.multi.status.description");
17,396
Bug 17396 Organize import on multiple CUs flickers
20020521 Should use a WorkspaceModifyOperation
verified fixed
ac4ba83
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T09:16:47Z
2002-05-23T16:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OrganizeImportsAction.java
final MultiStatus status= new MultiStatus(JavaUI.ID_PLUGIN, Status.OK, message, null); ProgressMonitorDialog dialog= new ProgressMonitorDialog(getShell()); dialog.run(false, true, new IRunnableWithProgress() { public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { doRunOnMultiple(cus, status, doResolve, monitor); } }); if (!status.isOK()) { String title= ActionMessages.getString("OrganizeImportsAction.multi.status.title"); ProblemDialog.open(getShell(), title, null, status); } } catch (InvocationTargetException e) { ExceptionHandler.handle(e, getShell(), ActionMessages.getString("OrganizeImportsAction.error.title"), ActionMessages.getString("OrganizeImportsAction.error.message")); } catch (InterruptedException e) { } } private void doRunOnMultiple(ICompilationUnit[] cus, MultiStatus status, boolean doResolve, IProgressMonitor monitor) throws InterruptedException { final class OrganizeImportError extends Error { } if (monitor == null) { monitor= new NullProgressMonitor(); } monitor.beginTask(ActionMessages.getString("OrganizeImportsAction.multi.op.description"), cus.length); try {
17,396
Bug 17396 Organize import on multiple CUs flickers
20020521 Should use a WorkspaceModifyOperation
verified fixed
ac4ba83
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T09:16:47Z
2002-05-23T16:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OrganizeImportsAction.java
String[] prefOrder= ImportOrganizePreferencePage.getImportOrderPreference(); int threshold= ImportOrganizePreferencePage.getImportNumberThreshold(); boolean ignoreLowerCaseNames= ImportOrganizePreferencePage.doIgnoreLowerCaseNames(); IChooseImportQuery query= new IChooseImportQuery() { public TypeInfo[] chooseImports(TypeInfo[][] openChoices, ISourceRange[] ranges) { throw new OrganizeImportError(); } }; for (int i= 0; i < cus.length; i++) { ICompilationUnit cu= cus[i]; try { if (!cu.isWorkingCopy()) { ICompilationUnit workingCopy= EditorUtility.getWorkingCopy(cu); if (workingCopy != null) { cu= workingCopy; } } OrganizeImportsOperation op= new OrganizeImportsOperation(cu, prefOrder, threshold, ignoreLowerCaseNames, !cu.isWorkingCopy(), doResolve, query); op.run(new SubProgressMonitor(monitor, 1)); ISourceRange errorRange= op.getErrorSourceRange(); if (errorRange != null) { String message= ActionMessages.getFormattedString("OrganizeImportsAction.multi.error.parse", cu.getElementName()); status.add(new Status(Status.INFO, JavaUI.ID_PLUGIN, Status.ERROR, message, null)); } } catch (OrganizeImportError e) { String message= ActionMessages.getFormattedString("OrganizeImportsAction.multi.error.unresolvable", cu.getElementName()); status.add(new Status(Status.INFO, JavaUI.ID_PLUGIN, Status.ERROR, message, null)); } catch (CoreException e) {
17,396
Bug 17396 Organize import on multiple CUs flickers
20020521 Should use a WorkspaceModifyOperation
verified fixed
ac4ba83
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T09:16:47Z
2002-05-23T16:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OrganizeImportsAction.java
JavaPlugin.log(e); String message= ActionMessages.getFormattedString("OrganizeImportsAction.multi.error.unexpected", e.getMessage()); status.add(new Status(Status.ERROR, JavaUI.ID_PLUGIN, Status.ERROR, message, null)); } catch (OperationCanceledException e) { throw new InterruptedException(); } } } finally { monitor.done(); } } private void runOnSingle(ICompilationUnit cu, boolean doResolve) { try { String[] prefOrder= ImportOrganizePreferencePage.getImportOrderPreference(); int threshold= ImportOrganizePreferencePage.getImportNumberThreshold(); boolean ignoreLowerCaseNames= ImportOrganizePreferencePage.doIgnoreLowerCaseNames(); if (!cu.isWorkingCopy()) { IEditorPart editor= EditorUtility.openInEditor(cu); if (editor instanceof JavaEditor) { fEditor= (JavaEditor) editor; } ICompilationUnit workingCopy= EditorUtility.getWorkingCopy(cu); if (workingCopy != null) { cu= workingCopy; } }
17,396
Bug 17396 Organize import on multiple CUs flickers
20020521 Should use a WorkspaceModifyOperation
verified fixed
ac4ba83
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T09:16:47Z
2002-05-23T16:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OrganizeImportsAction.java
OrganizeImportsOperation op= new OrganizeImportsOperation(cu, prefOrder, threshold, ignoreLowerCaseNames, !cu.isWorkingCopy(), doResolve, createChooseImportQuery()); BusyIndicatorRunnableContext context= new BusyIndicatorRunnableContext(); context.run(false, true, new WorkbenchRunnableAdapter(op)); ISourceRange errorRange= op.getErrorSourceRange(); if (errorRange != null) { MessageDialog.openInformation(getShell(), ActionMessages.getString("OrganizeImportsAction.error.title"), ActionMessages.getString("OrganizeImportsAction.single.error.parse")); if (fEditor != null) { fEditor.selectAndReveal(errorRange.getOffset(), errorRange.getLength()); } } else { if (fEditor != null) { setStatusBarMessage(getOrganizeInfo(op)); } } } catch (CoreException e) { ExceptionHandler.handle(e, getShell(), ActionMessages.getString("OrganizeImportsAction.error.title"), ActionMessages.getString("OrganizeImportsAction.error.message")); } catch (InvocationTargetException e) { ExceptionHandler.handle(e, getShell(), ActionMessages.getString("OrganizeImportsAction.error.title"), ActionMessages.getString("OrganizeImportsAction.error.message")); } catch (InterruptedException e) { } } private String getOrganizeInfo(OrganizeImportsOperation op) { int nImportsAdded= op.getNumberOfImportsAdded(); if (nImportsAdded >= 0) { return ActionMessages.getFormattedString("OrganizeImportsAction.summary_added", String.valueOf(nImportsAdded)); } else { return ActionMessages.getFormattedString("OrganizeImportsAction.summary_removed", String.valueOf(-nImportsAdded)); }
17,396
Bug 17396 Organize import on multiple CUs flickers
20020521 Should use a WorkspaceModifyOperation
verified fixed
ac4ba83
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T09:16:47Z
2002-05-23T16:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OrganizeImportsAction.java
} private IChooseImportQuery createChooseImportQuery() { return new IChooseImportQuery() { public TypeInfo[] chooseImports(TypeInfo[][] openChoices, ISourceRange[] ranges) { return doChooseImports(openChoices, ranges); } }; } private TypeInfo[] doChooseImports(TypeInfo[][] openChoices, final ISourceRange[] ranges) { ISelection sel= fEditor.getSelectionProvider().getSelection(); TypeInfo[] result= null;; ILabelProvider labelProvider= new TypeInfoLabelProvider(TypeInfoLabelProvider.SHOW_FULLYQUALIFIED); MultiElementListSelectionDialog dialog= new MultiElementListSelectionDialog(getShell(), labelProvider) { protected void handleSelectionChanged() { super.handleSelectionChanged(); doListSelectionChanged(getCurrentPage(), ranges); } }; dialog.setTitle(ActionMessages.getString("OrganizeImportsAction.selectiondialog.title")); dialog.setMessage(ActionMessages.getString("OrganizeImportsAction.selectiondialog.message")); dialog.setElements(openChoices); if (dialog.open() == dialog.OK) { Object[] res= dialog.getResult(); result= new TypeInfo[res.length]; for (int i= 0; i < res.length; i++) {
17,396
Bug 17396 Organize import on multiple CUs flickers
20020521 Should use a WorkspaceModifyOperation
verified fixed
ac4ba83
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T09:16:47Z
2002-05-23T16:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OrganizeImportsAction.java
Object[] array= (Object[]) res[i]; if (array.length > 0) result[i]= (TypeInfo) array[0]; } } if (sel instanceof ITextSelection) { ITextSelection textSelection= (ITextSelection) sel; fEditor.selectAndReveal(textSelection.getOffset(), textSelection.getLength()); } return result; } private void doListSelectionChanged(int page, ISourceRange[] ranges) { if (page >= 0 && page < ranges.length) { ISourceRange range= ranges[page]; fEditor.selectAndReveal(range.getOffset(), range.getLength()); } } private void setStatusBarMessage(String message) { IEditorActionBarContributor contributor= fEditor.getEditorSite().getActionBarContributor(); if (contributor instanceof EditorActionBarContributor) { IStatusLineManager manager= ((EditorActionBarContributor) contributor).getActionBars().getStatusLineManager(); manager.setMessage(message); } } }
17,801
Bug 17801 Organize Imports dialog: default button should not be Cancel
Steps: 1) Create file that requires two ambiguous classes (List and ArrayList, for example) 2) Run Organize Imports 3) On first page of the dialog, the list has focus, allowing for easy keyboard selection of the class to use, and default button is next (all good) 4) Press next 5) The list no longer has focus, so can't use arrow keys to select the class to use, and the default button is Cancel (all bad). The list should maintain focus like on the first page, and the default button should be Finish. Using build F1.
verified fixed
75db65d
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T09:39:56Z
2002-05-24T19:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/MultiElementListSelectionDialog.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.dialogs; import java.text.MessageFormat; import java.util.ArrayList; import java.util.List; import org.eclipse.swt.SWT; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Button; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Control; import org.eclipse.swt.widgets.Label; import org.eclipse.swt.widgets.Shell; import org.eclipse.jface.dialogs.IDialogConstants; import org.eclipse.jface.util.Assert; import org.eclipse.jface.viewers.ILabelProvider; import org.eclipse.ui.dialogs.AbstractElementListSelectionDialog; import org.eclipse.core.runtime.IStatus; import org.eclipse.jdt.internal.ui.JavaUIMessages; /** * A class to select elements out of a list of elements, organized on multiple * pages. */ public class MultiElementListSelectionDialog extends AbstractElementListSelectionDialog {
17,801
Bug 17801 Organize Imports dialog: default button should not be Cancel
Steps: 1) Create file that requires two ambiguous classes (List and ArrayList, for example) 2) Run Organize Imports 3) On first page of the dialog, the list has focus, allowing for easy keyboard selection of the class to use, and default button is next (all good) 4) Press next 5) The list no longer has focus, so can't use arrow keys to select the class to use, and the default button is Cancel (all bad). The list should maintain focus like on the first page, and the default button should be Finish. Using build F1.
verified fixed
75db65d
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T09:39:56Z
2002-05-24T19:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/MultiElementListSelectionDialog.java
private static class Page { public Object[] elements; public String filter; public boolean okState= false; public Page(Object[] elements) { this.elements= elements; } }; private Page[] fPages; private int fCurrentPage; private int fNumberOfPages; private Button fFinishButton; private Button fBackButton; private Button fNextButton; private Label fPageInfoLabel; private String fPageInfoMessage= JavaUIMessages.getString("MultiElementListSelectionDialog.pageInfoMessage"); /** * Constructs a multi-page list selection dialog. * @param renderer the label renderer. * @param ignoreCase specifies if sorting and filtering ignores cases. * @param multipleSelection specifies if multiple selection is allowed. */ public MultiElementListSelectionDialog(Shell parent, ILabelProvider renderer) {
17,801
Bug 17801 Organize Imports dialog: default button should not be Cancel
Steps: 1) Create file that requires two ambiguous classes (List and ArrayList, for example) 2) Run Organize Imports 3) On first page of the dialog, the list has focus, allowing for easy keyboard selection of the class to use, and default button is next (all good) 4) Press next 5) The list no longer has focus, so can't use arrow keys to select the class to use, and the default button is Cancel (all bad). The list should maintain focus like on the first page, and the default button should be Finish. Using build F1.
verified fixed
75db65d
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T09:39:56Z
2002-05-24T19:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/MultiElementListSelectionDialog.java
super(parent, renderer); } /** * Sets message shown in the right top corner. Use {0} and {1} as placeholders * for the current and the total number of pages. * @param message the message. */ public void setPageInfoMessage(String message) { fPageInfoMessage= message; } /** * Sets the elements to be displayed in the dialog. * @param elements an array of pages holding arrays of elements */ public void setElements(Object[][] elements) { fNumberOfPages= elements.length; fPages= new Page[fNumberOfPages]; for (int i= 0; i != fNumberOfPages; i++) fPages[i]= new Page(elements[i]); initializeResult(fNumberOfPages); } /* * @see Window#open() */ public int open() { List selection= getInitialSelections(); if (selection == null) {
17,801
Bug 17801 Organize Imports dialog: default button should not be Cancel
Steps: 1) Create file that requires two ambiguous classes (List and ArrayList, for example) 2) Run Organize Imports 3) On first page of the dialog, the list has focus, allowing for easy keyboard selection of the class to use, and default button is next (all good) 4) Press next 5) The list no longer has focus, so can't use arrow keys to select the class to use, and the default button is Cancel (all bad). The list should maintain focus like on the first page, and the default button should be Finish. Using build F1.
verified fixed
75db65d
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T09:39:56Z
2002-05-24T19:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/MultiElementListSelectionDialog.java
setInitialSelections(new Object[fNumberOfPages]); selection= getInitialSelections(); } Assert.isTrue(selection.size() == fNumberOfPages); return super.open(); } /** * @see Dialog#createDialogArea(Composite) */ protected Control createDialogArea(Composite parent) { Composite contents= (Composite) super.createDialogArea(parent); createMessageArea(contents); createFilterText(contents); createFilteredList(contents); fCurrentPage= 0; setPageData(); return contents; } /** * @see Dialog#createButtonsForButtonBar(Composite) */ protected void createButtonsForButtonBar(Composite parent) { fBackButton= createButton(parent, IDialogConstants.BACK_ID, IDialogConstants.BACK_LABEL, false); fNextButton= createButton(parent, IDialogConstants.NEXT_ID, IDialogConstants.NEXT_LABEL, true); fFinishButton= createButton(parent, IDialogConstants.OK_ID, IDialogConstants.FINISH_LABEL, false); createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false);
17,801
Bug 17801 Organize Imports dialog: default button should not be Cancel
Steps: 1) Create file that requires two ambiguous classes (List and ArrayList, for example) 2) Run Organize Imports 3) On first page of the dialog, the list has focus, allowing for easy keyboard selection of the class to use, and default button is next (all good) 4) Press next 5) The list no longer has focus, so can't use arrow keys to select the class to use, and the default button is Cancel (all bad). The list should maintain focus like on the first page, and the default button should be Finish. Using build F1.
verified fixed
75db65d
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T09:39:56Z
2002-05-24T19:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/MultiElementListSelectionDialog.java
} /** * @see SelectionDialog#createMessageArea(Composite) */ protected Label createMessageArea(Composite parent) { Composite composite= new Composite(parent, SWT.NONE); GridLayout layout= new GridLayout(); layout.marginHeight= 0; layout.marginWidth= 0; layout.horizontalSpacing= 5; layout.numColumns= 2; composite.setLayout(layout); GridData data= new GridData(GridData.HORIZONTAL_ALIGN_FILL); composite.setLayoutData(data); Label messageLabel= super.createMessageArea(composite); fPageInfoLabel= new Label(composite, SWT.NULL); fPageInfoLabel.setText(getPageInfoMessage()); data= new GridData(GridData.HORIZONTAL_ALIGN_FILL); data.horizontalAlignment= data.END; fPageInfoLabel.setLayoutData(data); return messageLabel; } /**
17,801
Bug 17801 Organize Imports dialog: default button should not be Cancel
Steps: 1) Create file that requires two ambiguous classes (List and ArrayList, for example) 2) Run Organize Imports 3) On first page of the dialog, the list has focus, allowing for easy keyboard selection of the class to use, and default button is next (all good) 4) Press next 5) The list no longer has focus, so can't use arrow keys to select the class to use, and the default button is Cancel (all bad). The list should maintain focus like on the first page, and the default button should be Finish. Using build F1.
verified fixed
75db65d
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T09:39:56Z
2002-05-24T19:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/MultiElementListSelectionDialog.java
* @see SelectionStatusDialog#computeResult() */ protected void computeResult() { setResult(fCurrentPage, getSelectedElements()); } /** * @see Dialog#buttonPressed(int) */ protected void buttonPressed(int buttonId) { if (buttonId == IDialogConstants.BACK_ID) { turnPage(false); } else if (buttonId == IDialogConstants.NEXT_ID) { turnPage(true); } else { super.buttonPressed(buttonId); } } /** * @see AbstractElementListSelectionDialog#handleDefaultSelected() */ protected void handleDefaultSelected() { if (validateCurrentSelection()) { if (fCurrentPage == fNumberOfPages - 1) { buttonPressed(IDialogConstants.OK_ID); } else { buttonPressed(IDialogConstants.NEXT_ID); } }
17,801
Bug 17801 Organize Imports dialog: default button should not be Cancel
Steps: 1) Create file that requires two ambiguous classes (List and ArrayList, for example) 2) Run Organize Imports 3) On first page of the dialog, the list has focus, allowing for easy keyboard selection of the class to use, and default button is next (all good) 4) Press next 5) The list no longer has focus, so can't use arrow keys to select the class to use, and the default button is Cancel (all bad). The list should maintain focus like on the first page, and the default button should be Finish. Using build F1.
verified fixed
75db65d
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T09:39:56Z
2002-05-24T19:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/MultiElementListSelectionDialog.java
} /** * @see AbstractElementListSelectionDialog#updateButtonsEnableState(IStatus) */ protected void updateButtonsEnableState(IStatus status) { boolean isOK= !status.matches(IStatus.ERROR); fPages[fCurrentPage].okState= isOK; fNextButton.setEnabled(isOK && (fCurrentPage < fNumberOfPages - 1)); fBackButton.setEnabled(fCurrentPage != 0); boolean isAllOK= isOK; for (int i= 0; i != fNumberOfPages; i++) isAllOK = isAllOK && fPages[i].okState; fFinishButton.setEnabled(isAllOK); } private void turnPage(boolean toNextPage) { Page page= fPages[fCurrentPage]; String filter= getFilter(); if (filter == null) filter= ""; page.filter= filter; Object[] selectedElements= getSelectedElements(); List list= getInitialSelections(); list.set(fCurrentPage, selectedElements);
17,801
Bug 17801 Organize Imports dialog: default button should not be Cancel
Steps: 1) Create file that requires two ambiguous classes (List and ArrayList, for example) 2) Run Organize Imports 3) On first page of the dialog, the list has focus, allowing for easy keyboard selection of the class to use, and default button is next (all good) 4) Press next 5) The list no longer has focus, so can't use arrow keys to select the class to use, and the default button is Cancel (all bad). The list should maintain focus like on the first page, and the default button should be Finish. Using build F1.
verified fixed
75db65d
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T09:39:56Z
2002-05-24T19:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/MultiElementListSelectionDialog.java
setResult(fCurrentPage, getSelectedElements()); if (toNextPage) { if (fCurrentPage + 1 >= fNumberOfPages) return; fCurrentPage++; } else { if (fCurrentPage - 1 < 0) return; fCurrentPage--; } if (fPageInfoLabel != null && !fPageInfoLabel.isDisposed()) fPageInfoLabel.setText(getPageInfoMessage()); setPageData(); validateCurrentSelection(); } private void setPageData() { Page page= fPages[fCurrentPage]; setListElements(page.elements); String filter= page.filter; if (filter == null) filter= "";
17,801
Bug 17801 Organize Imports dialog: default button should not be Cancel
Steps: 1) Create file that requires two ambiguous classes (List and ArrayList, for example) 2) Run Organize Imports 3) On first page of the dialog, the list has focus, allowing for easy keyboard selection of the class to use, and default button is next (all good) 4) Press next 5) The list no longer has focus, so can't use arrow keys to select the class to use, and the default button is Cancel (all bad). The list should maintain focus like on the first page, and the default button should be Finish. Using build F1.
verified fixed
75db65d
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T09:39:56Z
2002-05-24T19:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/MultiElementListSelectionDialog.java
setFilter(filter); Object[] selectedElements= (Object[]) getInitialSelections().get(fCurrentPage); setSelection(selectedElements); } private String getPageInfoMessage() { if (fPageInfoMessage == null) return ""; String[] args= new String[] { Integer.toString(fCurrentPage + 1), Integer.toString(fNumberOfPages) }; return MessageFormat.format(fPageInfoMessage, args); } private void initializeResult(int length) { List result= new ArrayList(length); for (int i= 0; i != length; i++) result.add(null); setResult(result); } /** * Gets the current Page. * @return Returns a int */ public int getCurrentPage() { return fCurrentPage; } }
17,271
Bug 17271 Not present exception renaming class in java browsing perspective
Build 20020521 (running with java delta tracing) 1. Create the following CU: public class HelloWorld { } 2. Open Java Browsing perspective 3. Open HelloWorld 4. In java editor, rename HelloWorld to Hellorld2 5. Save Observe the following in the console: UPDATING Model with Delta: [Thread[main,5,main]:HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {}]: FIRING PRE_AUTO_BUILD Delta [Thread[main,5,main]]: HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} MERGING 2 DELTAS [Thread[main,5,main]] HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} Java Model[*]: {CHILDREN} Test[*]: {CHILDREN} [project root][*]: {CHILDREN} [default][*]: {CHILDREN} HelloWorld.java[*]: {CONTENT} FIRING POST_CHANGE Delta [Thread[main,5,main]]: Java Model[*]: {CHILDREN} Test[*]: {CHILDREN} [project root][*]: {CHILDREN} [default][*]: {CHILDREN} HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.72 !MESSAGE Internal Error !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.JavaElement.getChildren (JavaElement.java:266) at org.eclipse.jdt.internal.core.JavaElement.getChildrenOfType (JavaElement.java:275) at org.eclipse.jdt.internal.core.SourceType.getFields (SourceType.java:178) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.canEnableOn (AddGetterSetterAction.java:168) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.canEnable (AddGetterSetterAction.java:157) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.selectionChanged (AddGetterSetterAction.java:123) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.72 !MESSAGE HelloWorld does not exist. !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.102 !MESSAGE An error occurred while accessing a Java element !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.SourceType.isInterface (SourceType.java:320) at org.eclipse.jdt.ui.actions.FindImplementorsAction.canOperateOn (FindImplementorsAction.java:69) at org.eclipse.jdt.ui.actions.FindAction.canOperateOn (FindAction.java:91) at org.eclipse.jdt.ui.actions.FindAction.selectionChanged (FindAction.java:257) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.102 !MESSAGE HelloWorld does not exist. !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.112 !MESSAGE An error occurred while accessing a Java element !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.SourceType.isInterface (SourceType.java:320) at org.eclipse.jdt.ui.actions.FindImplementorsAction.canOperateOn (FindImplementorsAction.java:69) at org.eclipse.jdt.ui.actions.FindAction.canOperateOn (FindAction.java:91) at org.eclipse.jdt.ui.actions.FindAction.selectionChanged (FindAction.java:257) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.112 !MESSAGE HelloWorld does not exist.
verified fixed
5f7562f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:40:34Z
2002-05-23T13:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingContentProvider.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.browsing; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Iterator; import java.util.List; import org.eclipse.swt.widgets.Control; import org.eclipse.swt.widgets.Display; import org.eclipse.jface.viewers.AbstractTreeViewer; import org.eclipse.jface.viewers.IBasicPropertyConstants; import org.eclipse.jface.viewers.ListViewer; import org.eclipse.jface.viewers.StructuredViewer; import org.eclipse.jface.viewers.TableViewer; import org.eclipse.jface.viewers.Viewer; import org.eclipse.jdt.core.ElementChangedEvent; import org.eclipse.jdt.core.IClassFile; import org.eclipse.jdt.core.ICompilationUnit; import org.eclipse.jdt.core.IElementChangedListener; import org.eclipse.jdt.core.IImportContainer; import org.eclipse.jdt.core.IJavaElement; import org.eclipse.jdt.core.IJavaElementDelta; import org.eclipse.jdt.core.IJavaProject; import org.eclipse.jdt.core.IMember; import org.eclipse.jdt.core.IPackageDeclaration; import org.eclipse.jdt.core.IPackageFragment; import org.eclipse.jdt.core.IPackageFragmentRoot;
17,271
Bug 17271 Not present exception renaming class in java browsing perspective
Build 20020521 (running with java delta tracing) 1. Create the following CU: public class HelloWorld { } 2. Open Java Browsing perspective 3. Open HelloWorld 4. In java editor, rename HelloWorld to Hellorld2 5. Save Observe the following in the console: UPDATING Model with Delta: [Thread[main,5,main]:HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {}]: FIRING PRE_AUTO_BUILD Delta [Thread[main,5,main]]: HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} MERGING 2 DELTAS [Thread[main,5,main]] HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} Java Model[*]: {CHILDREN} Test[*]: {CHILDREN} [project root][*]: {CHILDREN} [default][*]: {CHILDREN} HelloWorld.java[*]: {CONTENT} FIRING POST_CHANGE Delta [Thread[main,5,main]]: Java Model[*]: {CHILDREN} Test[*]: {CHILDREN} [project root][*]: {CHILDREN} [default][*]: {CHILDREN} HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.72 !MESSAGE Internal Error !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.JavaElement.getChildren (JavaElement.java:266) at org.eclipse.jdt.internal.core.JavaElement.getChildrenOfType (JavaElement.java:275) at org.eclipse.jdt.internal.core.SourceType.getFields (SourceType.java:178) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.canEnableOn (AddGetterSetterAction.java:168) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.canEnable (AddGetterSetterAction.java:157) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.selectionChanged (AddGetterSetterAction.java:123) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.72 !MESSAGE HelloWorld does not exist. !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.102 !MESSAGE An error occurred while accessing a Java element !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.SourceType.isInterface (SourceType.java:320) at org.eclipse.jdt.ui.actions.FindImplementorsAction.canOperateOn (FindImplementorsAction.java:69) at org.eclipse.jdt.ui.actions.FindAction.canOperateOn (FindAction.java:91) at org.eclipse.jdt.ui.actions.FindAction.selectionChanged (FindAction.java:257) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.102 !MESSAGE HelloWorld does not exist. !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.112 !MESSAGE An error occurred while accessing a Java element !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.SourceType.isInterface (SourceType.java:320) at org.eclipse.jdt.ui.actions.FindImplementorsAction.canOperateOn (FindImplementorsAction.java:69) at org.eclipse.jdt.ui.actions.FindAction.canOperateOn (FindAction.java:91) at org.eclipse.jdt.ui.actions.FindAction.selectionChanged (FindAction.java:257) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.112 !MESSAGE HelloWorld does not exist.
verified fixed
5f7562f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:40:34Z
2002-05-23T13:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingContentProvider.java
import org.eclipse.jdt.core.IParent; import org.eclipse.jdt.core.ISourceReference; import org.eclipse.jdt.core.IType; import org.eclipse.jdt.core.IWorkingCopy; import org.eclipse.jdt.core.JavaCore; import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jdt.internal.ui.JavaPlugin; import org.eclipse.jdt.internal.ui.javaeditor.EditorUtility; import org.eclipse.jdt.internal.ui.preferences.JavaBasePreferencePage; import org.eclipse.jdt.ui.StandardJavaElementContentProvider; class JavaBrowsingContentProvider extends StandardJavaElementContentProvider implements IElementChangedListener { private StructuredViewer fViewer; private Object fInput; private JavaBrowsingPart fBrowsingPart; public JavaBrowsingContentProvider(boolean provideMembers, JavaBrowsingPart browsingPart) { super(provideMembers, reconcileJavaViews()); fBrowsingPart= browsingPart; fViewer= fBrowsingPart.getViewer(); JavaCore.addElementChangedListener(this); } private static boolean reconcileJavaViews() { return JavaBasePreferencePage.reconcileJavaViews(); } public Object[] getChildren(Object element) { if (!exists(element)) return NO_CHILDREN; try {
17,271
Bug 17271 Not present exception renaming class in java browsing perspective
Build 20020521 (running with java delta tracing) 1. Create the following CU: public class HelloWorld { } 2. Open Java Browsing perspective 3. Open HelloWorld 4. In java editor, rename HelloWorld to Hellorld2 5. Save Observe the following in the console: UPDATING Model with Delta: [Thread[main,5,main]:HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {}]: FIRING PRE_AUTO_BUILD Delta [Thread[main,5,main]]: HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} MERGING 2 DELTAS [Thread[main,5,main]] HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} Java Model[*]: {CHILDREN} Test[*]: {CHILDREN} [project root][*]: {CHILDREN} [default][*]: {CHILDREN} HelloWorld.java[*]: {CONTENT} FIRING POST_CHANGE Delta [Thread[main,5,main]]: Java Model[*]: {CHILDREN} Test[*]: {CHILDREN} [project root][*]: {CHILDREN} [default][*]: {CHILDREN} HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.72 !MESSAGE Internal Error !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.JavaElement.getChildren (JavaElement.java:266) at org.eclipse.jdt.internal.core.JavaElement.getChildrenOfType (JavaElement.java:275) at org.eclipse.jdt.internal.core.SourceType.getFields (SourceType.java:178) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.canEnableOn (AddGetterSetterAction.java:168) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.canEnable (AddGetterSetterAction.java:157) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.selectionChanged (AddGetterSetterAction.java:123) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.72 !MESSAGE HelloWorld does not exist. !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.102 !MESSAGE An error occurred while accessing a Java element !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.SourceType.isInterface (SourceType.java:320) at org.eclipse.jdt.ui.actions.FindImplementorsAction.canOperateOn (FindImplementorsAction.java:69) at org.eclipse.jdt.ui.actions.FindAction.canOperateOn (FindAction.java:91) at org.eclipse.jdt.ui.actions.FindAction.selectionChanged (FindAction.java:257) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.102 !MESSAGE HelloWorld does not exist. !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.112 !MESSAGE An error occurred while accessing a Java element !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.SourceType.isInterface (SourceType.java:320) at org.eclipse.jdt.ui.actions.FindImplementorsAction.canOperateOn (FindImplementorsAction.java:69) at org.eclipse.jdt.ui.actions.FindAction.canOperateOn (FindAction.java:91) at org.eclipse.jdt.ui.actions.FindAction.selectionChanged (FindAction.java:257) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.112 !MESSAGE HelloWorld does not exist.
verified fixed
5f7562f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:40:34Z
2002-05-23T13:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingContentProvider.java
if (element instanceof Collection) { Collection elements= (Collection)element; if (elements.isEmpty()) return NO_CHILDREN; Object[] result= new Object[0]; Iterator iter= ((Collection)element).iterator(); while (iter.hasNext()) { Object[] children= getChildren(iter.next()); if (children != NO_CHILDREN) result= concatenate(result, children); } return result; } if (element instanceof IPackageFragment) return getPackageContents((IPackageFragment)element); if (fProvideMembers && element instanceof IType) return getChildren((IType)element); if (fProvideMembers && element instanceof ISourceReference && element instanceof IParent) return removeImportAndPackageDeclarations(super.getChildren(element)); if (element instanceof IJavaProject) return getPackageFragmentRoots((IJavaProject)element); return super.getChildren(element); } catch (JavaModelException e) { return NO_CHILDREN; } } private Object[] getPackageContents(IPackageFragment fragment) throws JavaModelException { ISourceReference[] sourceRefs; if (fragment.getKind() == IPackageFragmentRoot.K_SOURCE) { sourceRefs= fragment.getCompilationUnits();
17,271
Bug 17271 Not present exception renaming class in java browsing perspective
Build 20020521 (running with java delta tracing) 1. Create the following CU: public class HelloWorld { } 2. Open Java Browsing perspective 3. Open HelloWorld 4. In java editor, rename HelloWorld to Hellorld2 5. Save Observe the following in the console: UPDATING Model with Delta: [Thread[main,5,main]:HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {}]: FIRING PRE_AUTO_BUILD Delta [Thread[main,5,main]]: HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} MERGING 2 DELTAS [Thread[main,5,main]] HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} Java Model[*]: {CHILDREN} Test[*]: {CHILDREN} [project root][*]: {CHILDREN} [default][*]: {CHILDREN} HelloWorld.java[*]: {CONTENT} FIRING POST_CHANGE Delta [Thread[main,5,main]]: Java Model[*]: {CHILDREN} Test[*]: {CHILDREN} [project root][*]: {CHILDREN} [default][*]: {CHILDREN} HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.72 !MESSAGE Internal Error !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.JavaElement.getChildren (JavaElement.java:266) at org.eclipse.jdt.internal.core.JavaElement.getChildrenOfType (JavaElement.java:275) at org.eclipse.jdt.internal.core.SourceType.getFields (SourceType.java:178) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.canEnableOn (AddGetterSetterAction.java:168) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.canEnable (AddGetterSetterAction.java:157) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.selectionChanged (AddGetterSetterAction.java:123) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.72 !MESSAGE HelloWorld does not exist. !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.102 !MESSAGE An error occurred while accessing a Java element !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.SourceType.isInterface (SourceType.java:320) at org.eclipse.jdt.ui.actions.FindImplementorsAction.canOperateOn (FindImplementorsAction.java:69) at org.eclipse.jdt.ui.actions.FindAction.canOperateOn (FindAction.java:91) at org.eclipse.jdt.ui.actions.FindAction.selectionChanged (FindAction.java:257) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.102 !MESSAGE HelloWorld does not exist. !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.112 !MESSAGE An error occurred while accessing a Java element !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.SourceType.isInterface (SourceType.java:320) at org.eclipse.jdt.ui.actions.FindImplementorsAction.canOperateOn (FindImplementorsAction.java:69) at org.eclipse.jdt.ui.actions.FindAction.canOperateOn (FindAction.java:91) at org.eclipse.jdt.ui.actions.FindAction.selectionChanged (FindAction.java:257) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.112 !MESSAGE HelloWorld does not exist.
verified fixed
5f7562f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:40:34Z
2002-05-23T13:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingContentProvider.java
if (getProvideWorkingCopy()) { for (int i= 0; i < sourceRefs.length; i++) { IWorkingCopy wc= EditorUtility.getWorkingCopy((ICompilationUnit)sourceRefs[i]); if (wc != null) sourceRefs[i]= (ICompilationUnit)wc; } } } else { IClassFile[] classFiles= fragment.getClassFiles(); List topLevelClassFile= new ArrayList(); for (int i= 0; i < classFiles.length; i++) { IType type= classFiles[i].getType(); if (type != null && type.getDeclaringType() == null) topLevelClassFile.add(classFiles[i]); } sourceRefs= (ISourceReference[])topLevelClassFile.toArray(new ISourceReference[topLevelClassFile.size()]); } Object[] result= new Object[0]; for (int i= 0; i < sourceRefs.length; i++) result= concatenate(result, removeImportAndPackageDeclarations(getChildren(sourceRefs[i]))); return concatenate(result, fragment.getNonJavaResources()); } private Object[] removeImportAndPackageDeclarations(Object[] members) { ArrayList tempResult= new ArrayList(members.length); for (int i= 0; i < members.length; i++) if (!(members[i] instanceof IImportContainer) && !(members[i] instanceof IPackageDeclaration)) tempResult.add(members[i]); return tempResult.toArray(); }
17,271
Bug 17271 Not present exception renaming class in java browsing perspective
Build 20020521 (running with java delta tracing) 1. Create the following CU: public class HelloWorld { } 2. Open Java Browsing perspective 3. Open HelloWorld 4. In java editor, rename HelloWorld to Hellorld2 5. Save Observe the following in the console: UPDATING Model with Delta: [Thread[main,5,main]:HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {}]: FIRING PRE_AUTO_BUILD Delta [Thread[main,5,main]]: HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} MERGING 2 DELTAS [Thread[main,5,main]] HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} Java Model[*]: {CHILDREN} Test[*]: {CHILDREN} [project root][*]: {CHILDREN} [default][*]: {CHILDREN} HelloWorld.java[*]: {CONTENT} FIRING POST_CHANGE Delta [Thread[main,5,main]]: Java Model[*]: {CHILDREN} Test[*]: {CHILDREN} [project root][*]: {CHILDREN} [default][*]: {CHILDREN} HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.72 !MESSAGE Internal Error !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.JavaElement.getChildren (JavaElement.java:266) at org.eclipse.jdt.internal.core.JavaElement.getChildrenOfType (JavaElement.java:275) at org.eclipse.jdt.internal.core.SourceType.getFields (SourceType.java:178) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.canEnableOn (AddGetterSetterAction.java:168) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.canEnable (AddGetterSetterAction.java:157) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.selectionChanged (AddGetterSetterAction.java:123) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.72 !MESSAGE HelloWorld does not exist. !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.102 !MESSAGE An error occurred while accessing a Java element !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.SourceType.isInterface (SourceType.java:320) at org.eclipse.jdt.ui.actions.FindImplementorsAction.canOperateOn (FindImplementorsAction.java:69) at org.eclipse.jdt.ui.actions.FindAction.canOperateOn (FindAction.java:91) at org.eclipse.jdt.ui.actions.FindAction.selectionChanged (FindAction.java:257) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.102 !MESSAGE HelloWorld does not exist. !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.112 !MESSAGE An error occurred while accessing a Java element !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.SourceType.isInterface (SourceType.java:320) at org.eclipse.jdt.ui.actions.FindImplementorsAction.canOperateOn (FindImplementorsAction.java:69) at org.eclipse.jdt.ui.actions.FindAction.canOperateOn (FindAction.java:91) at org.eclipse.jdt.ui.actions.FindAction.selectionChanged (FindAction.java:257) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.112 !MESSAGE HelloWorld does not exist.
verified fixed
5f7562f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:40:34Z
2002-05-23T13:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingContentProvider.java
private Object[] getChildren(IType type) throws JavaModelException{ IParent parent; if (type.isBinary()) parent= type.getClassFile(); else { parent= type.getCompilationUnit(); if (getProvideWorkingCopy()) { IWorkingCopy wc= EditorUtility.getWorkingCopy((ICompilationUnit)parent); if (wc != null) { parent= (IParent)wc; IMember wcType= EditorUtility.getWorkingCopy(type); if (wcType != null) type= (IType)wcType; } } } if (type.getDeclaringType() != null) return type.getChildren(); IJavaElement[] members= parent.getChildren(); ArrayList tempResult= new ArrayList(members.length); for (int i= 0; i < members.length; i++) if ((members[i] instanceof IImportContainer)) tempResult.add(members[i]); tempResult.addAll(Arrays.asList(type.getChildren())); return tempResult.toArray(); } private Object[] getPackageFragmentRoots(IJavaProject project) throws JavaModelException { if (!project.getProject().isOpen()) return NO_CHILDREN;
17,271
Bug 17271 Not present exception renaming class in java browsing perspective
Build 20020521 (running with java delta tracing) 1. Create the following CU: public class HelloWorld { } 2. Open Java Browsing perspective 3. Open HelloWorld 4. In java editor, rename HelloWorld to Hellorld2 5. Save Observe the following in the console: UPDATING Model with Delta: [Thread[main,5,main]:HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {}]: FIRING PRE_AUTO_BUILD Delta [Thread[main,5,main]]: HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} MERGING 2 DELTAS [Thread[main,5,main]] HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} Java Model[*]: {CHILDREN} Test[*]: {CHILDREN} [project root][*]: {CHILDREN} [default][*]: {CHILDREN} HelloWorld.java[*]: {CONTENT} FIRING POST_CHANGE Delta [Thread[main,5,main]]: Java Model[*]: {CHILDREN} Test[*]: {CHILDREN} [project root][*]: {CHILDREN} [default][*]: {CHILDREN} HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.72 !MESSAGE Internal Error !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.JavaElement.getChildren (JavaElement.java:266) at org.eclipse.jdt.internal.core.JavaElement.getChildrenOfType (JavaElement.java:275) at org.eclipse.jdt.internal.core.SourceType.getFields (SourceType.java:178) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.canEnableOn (AddGetterSetterAction.java:168) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.canEnable (AddGetterSetterAction.java:157) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.selectionChanged (AddGetterSetterAction.java:123) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.72 !MESSAGE HelloWorld does not exist. !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.102 !MESSAGE An error occurred while accessing a Java element !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.SourceType.isInterface (SourceType.java:320) at org.eclipse.jdt.ui.actions.FindImplementorsAction.canOperateOn (FindImplementorsAction.java:69) at org.eclipse.jdt.ui.actions.FindAction.canOperateOn (FindAction.java:91) at org.eclipse.jdt.ui.actions.FindAction.selectionChanged (FindAction.java:257) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.102 !MESSAGE HelloWorld does not exist. !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.112 !MESSAGE An error occurred while accessing a Java element !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.SourceType.isInterface (SourceType.java:320) at org.eclipse.jdt.ui.actions.FindImplementorsAction.canOperateOn (FindImplementorsAction.java:69) at org.eclipse.jdt.ui.actions.FindAction.canOperateOn (FindAction.java:91) at org.eclipse.jdt.ui.actions.FindAction.selectionChanged (FindAction.java:257) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.112 !MESSAGE HelloWorld does not exist.
verified fixed
5f7562f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:40:34Z
2002-05-23T13:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingContentProvider.java
IPackageFragmentRoot[] roots= project.getPackageFragmentRoots(); List list= new ArrayList(roots.length); for (int i= 0; i < roots.length; i++) { IPackageFragmentRoot root= (IPackageFragmentRoot)roots[i]; if (!root.isExternal()) { Object[] children= root.getChildren(); for (int k= 0; k < children.length; k++) list.add(children[k]); } else if (hasChildren(root)) { list.add(root); } } return concatenate(list.toArray(), project.getNonJavaResources()); } /* (non-Javadoc) * Method declared on IContentProvider. */ public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { super.inputChanged(viewer, oldInput, newInput); if (newInput instanceof Collection) { Collection col= (Collection)newInput; if (!col.isEmpty()) newInput= col.iterator().next(); else
17,271
Bug 17271 Not present exception renaming class in java browsing perspective
Build 20020521 (running with java delta tracing) 1. Create the following CU: public class HelloWorld { } 2. Open Java Browsing perspective 3. Open HelloWorld 4. In java editor, rename HelloWorld to Hellorld2 5. Save Observe the following in the console: UPDATING Model with Delta: [Thread[main,5,main]:HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {}]: FIRING PRE_AUTO_BUILD Delta [Thread[main,5,main]]: HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} MERGING 2 DELTAS [Thread[main,5,main]] HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} Java Model[*]: {CHILDREN} Test[*]: {CHILDREN} [project root][*]: {CHILDREN} [default][*]: {CHILDREN} HelloWorld.java[*]: {CONTENT} FIRING POST_CHANGE Delta [Thread[main,5,main]]: Java Model[*]: {CHILDREN} Test[*]: {CHILDREN} [project root][*]: {CHILDREN} [default][*]: {CHILDREN} HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.72 !MESSAGE Internal Error !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.JavaElement.getChildren (JavaElement.java:266) at org.eclipse.jdt.internal.core.JavaElement.getChildrenOfType (JavaElement.java:275) at org.eclipse.jdt.internal.core.SourceType.getFields (SourceType.java:178) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.canEnableOn (AddGetterSetterAction.java:168) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.canEnable (AddGetterSetterAction.java:157) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.selectionChanged (AddGetterSetterAction.java:123) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.72 !MESSAGE HelloWorld does not exist. !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.102 !MESSAGE An error occurred while accessing a Java element !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.SourceType.isInterface (SourceType.java:320) at org.eclipse.jdt.ui.actions.FindImplementorsAction.canOperateOn (FindImplementorsAction.java:69) at org.eclipse.jdt.ui.actions.FindAction.canOperateOn (FindAction.java:91) at org.eclipse.jdt.ui.actions.FindAction.selectionChanged (FindAction.java:257) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.102 !MESSAGE HelloWorld does not exist. !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.112 !MESSAGE An error occurred while accessing a Java element !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.SourceType.isInterface (SourceType.java:320) at org.eclipse.jdt.ui.actions.FindImplementorsAction.canOperateOn (FindImplementorsAction.java:69) at org.eclipse.jdt.ui.actions.FindAction.canOperateOn (FindAction.java:91) at org.eclipse.jdt.ui.actions.FindAction.selectionChanged (FindAction.java:257) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.112 !MESSAGE HelloWorld does not exist.
verified fixed
5f7562f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:40:34Z
2002-05-23T13:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingContentProvider.java
newInput= null; } fInput= newInput; } /* (non-Javadoc) * Method declared on IContentProvider. */ public void dispose() { super.dispose(); JavaCore.removeElementChangedListener(this); } /* (non-Javadoc) * Method declared on IElementChangedListener. */ public void elementChanged(final ElementChangedEvent event) { try { processDelta(event.getDelta()); } catch(JavaModelException e) { JavaPlugin.getDefault().log(e.getStatus()); } } /** * Processes a delta recursively. When more than two children are affected the * tree is fully refreshed starting at this node. The delta is processed in the * current thread but the viewer updates are posted to the UI thread. */ protected void processDelta(IJavaElementDelta delta) throws JavaModelException { int kind= delta.getKind();
17,271
Bug 17271 Not present exception renaming class in java browsing perspective
Build 20020521 (running with java delta tracing) 1. Create the following CU: public class HelloWorld { } 2. Open Java Browsing perspective 3. Open HelloWorld 4. In java editor, rename HelloWorld to Hellorld2 5. Save Observe the following in the console: UPDATING Model with Delta: [Thread[main,5,main]:HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {}]: FIRING PRE_AUTO_BUILD Delta [Thread[main,5,main]]: HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} MERGING 2 DELTAS [Thread[main,5,main]] HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} Java Model[*]: {CHILDREN} Test[*]: {CHILDREN} [project root][*]: {CHILDREN} [default][*]: {CHILDREN} HelloWorld.java[*]: {CONTENT} FIRING POST_CHANGE Delta [Thread[main,5,main]]: Java Model[*]: {CHILDREN} Test[*]: {CHILDREN} [project root][*]: {CHILDREN} [default][*]: {CHILDREN} HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.72 !MESSAGE Internal Error !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.JavaElement.getChildren (JavaElement.java:266) at org.eclipse.jdt.internal.core.JavaElement.getChildrenOfType (JavaElement.java:275) at org.eclipse.jdt.internal.core.SourceType.getFields (SourceType.java:178) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.canEnableOn (AddGetterSetterAction.java:168) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.canEnable (AddGetterSetterAction.java:157) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.selectionChanged (AddGetterSetterAction.java:123) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.72 !MESSAGE HelloWorld does not exist. !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.102 !MESSAGE An error occurred while accessing a Java element !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.SourceType.isInterface (SourceType.java:320) at org.eclipse.jdt.ui.actions.FindImplementorsAction.canOperateOn (FindImplementorsAction.java:69) at org.eclipse.jdt.ui.actions.FindAction.canOperateOn (FindAction.java:91) at org.eclipse.jdt.ui.actions.FindAction.selectionChanged (FindAction.java:257) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.102 !MESSAGE HelloWorld does not exist. !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.112 !MESSAGE An error occurred while accessing a Java element !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.SourceType.isInterface (SourceType.java:320) at org.eclipse.jdt.ui.actions.FindImplementorsAction.canOperateOn (FindImplementorsAction.java:69) at org.eclipse.jdt.ui.actions.FindAction.canOperateOn (FindAction.java:91) at org.eclipse.jdt.ui.actions.FindAction.selectionChanged (FindAction.java:257) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.112 !MESSAGE HelloWorld does not exist.
verified fixed
5f7562f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:40:34Z
2002-05-23T13:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingContentProvider.java
int flags= delta.getFlags(); IJavaElement element= delta.getElement(); if (!getProvideWorkingCopy() && element instanceof IWorkingCopy && ((IWorkingCopy)element).isWorkingCopy()) { return; } if (((flags & IJavaElementDelta.F_CLOSED) != 0) || ((flags & IJavaElementDelta.F_OPENED) != 0)) { postRefresh(element); return; } if (kind == IJavaElementDelta.REMOVED) { Object parent= internalGetParent(element); if (fBrowsingPart.isValidElement(element)) { if (element instanceof IClassFile) { postRemove(((IClassFile)element).getType()); } else if (element instanceof ICompilationUnit && !((ICompilationUnit)element).isWorkingCopy()) { postRefresh(null); } else if (element instanceof ICompilationUnit && ((ICompilationUnit)element).isWorkingCopy()) { if (getProvideWorkingCopy()) postRefresh(null); } else if (parent instanceof ICompilationUnit && getProvideWorkingCopy() && !((ICompilationUnit)parent).isWorkingCopy()) { if (element instanceof IWorkingCopy && ((IWorkingCopy)element).isWorkingCopy()) { postRefresh(null); } } else if (element instanceof IWorkingCopy && ((IWorkingCopy)element).isWorkingCopy() && parent != null && parent.equals(fInput)) postRefresh(null); else postRemove(element);
17,271
Bug 17271 Not present exception renaming class in java browsing perspective
Build 20020521 (running with java delta tracing) 1. Create the following CU: public class HelloWorld { } 2. Open Java Browsing perspective 3. Open HelloWorld 4. In java editor, rename HelloWorld to Hellorld2 5. Save Observe the following in the console: UPDATING Model with Delta: [Thread[main,5,main]:HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {}]: FIRING PRE_AUTO_BUILD Delta [Thread[main,5,main]]: HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} MERGING 2 DELTAS [Thread[main,5,main]] HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} Java Model[*]: {CHILDREN} Test[*]: {CHILDREN} [project root][*]: {CHILDREN} [default][*]: {CHILDREN} HelloWorld.java[*]: {CONTENT} FIRING POST_CHANGE Delta [Thread[main,5,main]]: Java Model[*]: {CHILDREN} Test[*]: {CHILDREN} [project root][*]: {CHILDREN} [default][*]: {CHILDREN} HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.72 !MESSAGE Internal Error !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.JavaElement.getChildren (JavaElement.java:266) at org.eclipse.jdt.internal.core.JavaElement.getChildrenOfType (JavaElement.java:275) at org.eclipse.jdt.internal.core.SourceType.getFields (SourceType.java:178) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.canEnableOn (AddGetterSetterAction.java:168) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.canEnable (AddGetterSetterAction.java:157) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.selectionChanged (AddGetterSetterAction.java:123) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.72 !MESSAGE HelloWorld does not exist. !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.102 !MESSAGE An error occurred while accessing a Java element !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.SourceType.isInterface (SourceType.java:320) at org.eclipse.jdt.ui.actions.FindImplementorsAction.canOperateOn (FindImplementorsAction.java:69) at org.eclipse.jdt.ui.actions.FindAction.canOperateOn (FindAction.java:91) at org.eclipse.jdt.ui.actions.FindAction.selectionChanged (FindAction.java:257) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.102 !MESSAGE HelloWorld does not exist. !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.112 !MESSAGE An error occurred while accessing a Java element !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.SourceType.isInterface (SourceType.java:320) at org.eclipse.jdt.ui.actions.FindImplementorsAction.canOperateOn (FindImplementorsAction.java:69) at org.eclipse.jdt.ui.actions.FindAction.canOperateOn (FindAction.java:91) at org.eclipse.jdt.ui.actions.FindAction.selectionChanged (FindAction.java:257) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.112 !MESSAGE HelloWorld does not exist.
verified fixed
5f7562f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:40:34Z
2002-05-23T13:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingContentProvider.java
} if (fBrowsingPart.isAncestorOf(element, fInput)) { if (element instanceof IWorkingCopy && ((IWorkingCopy)element).isWorkingCopy()) { postAdjustInputAndSetSelection(((IWorkingCopy)element).getOriginal((IJavaElement)fInput)); } else postAdjustInputAndSetSelection(null); } return; } if (kind == IJavaElementDelta.ADDED && delta.getMovedFromElement() != null && element instanceof ICompilationUnit) return; if (kind == IJavaElementDelta.ADDED) { if (fBrowsingPart.isValidElement(element)) { Object parent= internalGetParent(element); if (element instanceof IClassFile) { postAdd(parent, ((IClassFile)element).getType()); } else if (element instanceof ICompilationUnit && !((ICompilationUnit)element).isWorkingCopy()) { postAdd(parent, ((ICompilationUnit)element).getAllTypes()); } else if (parent instanceof ICompilationUnit && getProvideWorkingCopy() && !((ICompilationUnit)parent).isWorkingCopy()) { } else if (element instanceof IWorkingCopy && ((IWorkingCopy)element).isWorkingCopy()) { postRefresh(null); } else postAdd(parent, element); } else if (fInput == null) {
17,271
Bug 17271 Not present exception renaming class in java browsing perspective
Build 20020521 (running with java delta tracing) 1. Create the following CU: public class HelloWorld { } 2. Open Java Browsing perspective 3. Open HelloWorld 4. In java editor, rename HelloWorld to Hellorld2 5. Save Observe the following in the console: UPDATING Model with Delta: [Thread[main,5,main]:HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {}]: FIRING PRE_AUTO_BUILD Delta [Thread[main,5,main]]: HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} MERGING 2 DELTAS [Thread[main,5,main]] HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} Java Model[*]: {CHILDREN} Test[*]: {CHILDREN} [project root][*]: {CHILDREN} [default][*]: {CHILDREN} HelloWorld.java[*]: {CONTENT} FIRING POST_CHANGE Delta [Thread[main,5,main]]: Java Model[*]: {CHILDREN} Test[*]: {CHILDREN} [project root][*]: {CHILDREN} [default][*]: {CHILDREN} HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.72 !MESSAGE Internal Error !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.JavaElement.getChildren (JavaElement.java:266) at org.eclipse.jdt.internal.core.JavaElement.getChildrenOfType (JavaElement.java:275) at org.eclipse.jdt.internal.core.SourceType.getFields (SourceType.java:178) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.canEnableOn (AddGetterSetterAction.java:168) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.canEnable (AddGetterSetterAction.java:157) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.selectionChanged (AddGetterSetterAction.java:123) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.72 !MESSAGE HelloWorld does not exist. !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.102 !MESSAGE An error occurred while accessing a Java element !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.SourceType.isInterface (SourceType.java:320) at org.eclipse.jdt.ui.actions.FindImplementorsAction.canOperateOn (FindImplementorsAction.java:69) at org.eclipse.jdt.ui.actions.FindAction.canOperateOn (FindAction.java:91) at org.eclipse.jdt.ui.actions.FindAction.selectionChanged (FindAction.java:257) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.102 !MESSAGE HelloWorld does not exist. !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.112 !MESSAGE An error occurred while accessing a Java element !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.SourceType.isInterface (SourceType.java:320) at org.eclipse.jdt.ui.actions.FindImplementorsAction.canOperateOn (FindImplementorsAction.java:69) at org.eclipse.jdt.ui.actions.FindAction.canOperateOn (FindAction.java:91) at org.eclipse.jdt.ui.actions.FindAction.selectionChanged (FindAction.java:257) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.112 !MESSAGE HelloWorld does not exist.
verified fixed
5f7562f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:40:34Z
2002-05-23T13:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingContentProvider.java
IJavaElement newInput= fBrowsingPart.findInputForJavaElement(element); if (newInput != null) postAdjustInputAndSetSelection(element); } else if (element instanceof IType && fBrowsingPart.isValidInput(element)) { IJavaElement cu1= element.getAncestor(IJavaElement.COMPILATION_UNIT); IJavaElement cu2= ((IJavaElement)fInput).getAncestor(IJavaElement.COMPILATION_UNIT); if (cu1 != null && cu2 != null && cu1.equals(cu2)) postAdjustInputAndSetSelection(element); } return; } if (kind == IJavaElementDelta.CHANGED) { if (fBrowsingPart.isValidElement(element)) { postRefresh(element); } } if (isClassPathChange(delta)) postRefresh(null); IJavaElementDelta[] affectedChildren= delta.getAffectedChildren(); if (affectedChildren.length > 1) { if (element instanceof IPackageFragment) { IJavaElement parent= (IJavaElement)internalGetParent(element); if (element.equals(fInput)) { postRefresh(element); } else { postRefresh(parent);
17,271
Bug 17271 Not present exception renaming class in java browsing perspective
Build 20020521 (running with java delta tracing) 1. Create the following CU: public class HelloWorld { } 2. Open Java Browsing perspective 3. Open HelloWorld 4. In java editor, rename HelloWorld to Hellorld2 5. Save Observe the following in the console: UPDATING Model with Delta: [Thread[main,5,main]:HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {}]: FIRING PRE_AUTO_BUILD Delta [Thread[main,5,main]]: HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} MERGING 2 DELTAS [Thread[main,5,main]] HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} Java Model[*]: {CHILDREN} Test[*]: {CHILDREN} [project root][*]: {CHILDREN} [default][*]: {CHILDREN} HelloWorld.java[*]: {CONTENT} FIRING POST_CHANGE Delta [Thread[main,5,main]]: Java Model[*]: {CHILDREN} Test[*]: {CHILDREN} [project root][*]: {CHILDREN} [default][*]: {CHILDREN} HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.72 !MESSAGE Internal Error !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.JavaElement.getChildren (JavaElement.java:266) at org.eclipse.jdt.internal.core.JavaElement.getChildrenOfType (JavaElement.java:275) at org.eclipse.jdt.internal.core.SourceType.getFields (SourceType.java:178) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.canEnableOn (AddGetterSetterAction.java:168) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.canEnable (AddGetterSetterAction.java:157) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.selectionChanged (AddGetterSetterAction.java:123) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.72 !MESSAGE HelloWorld does not exist. !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.102 !MESSAGE An error occurred while accessing a Java element !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.SourceType.isInterface (SourceType.java:320) at org.eclipse.jdt.ui.actions.FindImplementorsAction.canOperateOn (FindImplementorsAction.java:69) at org.eclipse.jdt.ui.actions.FindAction.canOperateOn (FindAction.java:91) at org.eclipse.jdt.ui.actions.FindAction.selectionChanged (FindAction.java:257) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.102 !MESSAGE HelloWorld does not exist. !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.112 !MESSAGE An error occurred while accessing a Java element !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.SourceType.isInterface (SourceType.java:320) at org.eclipse.jdt.ui.actions.FindImplementorsAction.canOperateOn (FindImplementorsAction.java:69) at org.eclipse.jdt.ui.actions.FindAction.canOperateOn (FindAction.java:91) at org.eclipse.jdt.ui.actions.FindAction.selectionChanged (FindAction.java:257) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.112 !MESSAGE HelloWorld does not exist.
verified fixed
5f7562f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:40:34Z
2002-05-23T13:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingContentProvider.java
} } if (element instanceof IPackageFragmentRoot && fBrowsingPart.isValidElement(element)) { postRefresh(skipProjectPackageFragmentRoot((IPackageFragmentRoot)element)); return; } } for (int i= 0; i < affectedChildren.length; i++) { processDelta(affectedChildren[i]); } } /** * Updates the package icon */ private void updatePackageIcon(final IJavaElement element) { postRunnable(new Runnable() { public void run() { Control ctrl= fViewer.getControl(); if (ctrl != null && !ctrl.isDisposed()) fViewer.update(element, new String[]{IBasicPropertyConstants.P_IMAGE}); } }); } private void postRefresh(final Object root) { postRunnable(new Runnable() { public void run() { Control ctrl= fViewer.getControl();
17,271
Bug 17271 Not present exception renaming class in java browsing perspective
Build 20020521 (running with java delta tracing) 1. Create the following CU: public class HelloWorld { } 2. Open Java Browsing perspective 3. Open HelloWorld 4. In java editor, rename HelloWorld to Hellorld2 5. Save Observe the following in the console: UPDATING Model with Delta: [Thread[main,5,main]:HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {}]: FIRING PRE_AUTO_BUILD Delta [Thread[main,5,main]]: HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} MERGING 2 DELTAS [Thread[main,5,main]] HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} Java Model[*]: {CHILDREN} Test[*]: {CHILDREN} [project root][*]: {CHILDREN} [default][*]: {CHILDREN} HelloWorld.java[*]: {CONTENT} FIRING POST_CHANGE Delta [Thread[main,5,main]]: Java Model[*]: {CHILDREN} Test[*]: {CHILDREN} [project root][*]: {CHILDREN} [default][*]: {CHILDREN} HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.72 !MESSAGE Internal Error !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.JavaElement.getChildren (JavaElement.java:266) at org.eclipse.jdt.internal.core.JavaElement.getChildrenOfType (JavaElement.java:275) at org.eclipse.jdt.internal.core.SourceType.getFields (SourceType.java:178) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.canEnableOn (AddGetterSetterAction.java:168) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.canEnable (AddGetterSetterAction.java:157) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.selectionChanged (AddGetterSetterAction.java:123) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.72 !MESSAGE HelloWorld does not exist. !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.102 !MESSAGE An error occurred while accessing a Java element !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.SourceType.isInterface (SourceType.java:320) at org.eclipse.jdt.ui.actions.FindImplementorsAction.canOperateOn (FindImplementorsAction.java:69) at org.eclipse.jdt.ui.actions.FindAction.canOperateOn (FindAction.java:91) at org.eclipse.jdt.ui.actions.FindAction.selectionChanged (FindAction.java:257) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.102 !MESSAGE HelloWorld does not exist. !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.112 !MESSAGE An error occurred while accessing a Java element !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.SourceType.isInterface (SourceType.java:320) at org.eclipse.jdt.ui.actions.FindImplementorsAction.canOperateOn (FindImplementorsAction.java:69) at org.eclipse.jdt.ui.actions.FindAction.canOperateOn (FindAction.java:91) at org.eclipse.jdt.ui.actions.FindAction.selectionChanged (FindAction.java:257) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.112 !MESSAGE HelloWorld does not exist.
verified fixed
5f7562f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:40:34Z
2002-05-23T13:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingContentProvider.java
if (ctrl != null && !ctrl.isDisposed()) fViewer.refresh(root); } }); } private void postAdd(final Object parent, final Object element) { postAdd(parent, new Object[] {element}); } private void postAdd(final Object parent, final Object[] elements) { if (elements.length <= 0) return; postRunnable(new Runnable() { public void run() { Control ctrl= fViewer.getControl(); if (ctrl != null && !ctrl.isDisposed()) { ctrl.setRedraw(false); if (fViewer instanceof AbstractTreeViewer) { if (fViewer.testFindItem(parent) == null) { Object root= ((AbstractTreeViewer)fViewer).getInput(); if (root != null) ((AbstractTreeViewer)fViewer).add(root, elements); } else ((AbstractTreeViewer)fViewer).add(parent, elements); } else if (fViewer instanceof ListViewer) ((ListViewer)fViewer).add(elements); else if (fViewer instanceof TableViewer)
17,271
Bug 17271 Not present exception renaming class in java browsing perspective
Build 20020521 (running with java delta tracing) 1. Create the following CU: public class HelloWorld { } 2. Open Java Browsing perspective 3. Open HelloWorld 4. In java editor, rename HelloWorld to Hellorld2 5. Save Observe the following in the console: UPDATING Model with Delta: [Thread[main,5,main]:HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {}]: FIRING PRE_AUTO_BUILD Delta [Thread[main,5,main]]: HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} MERGING 2 DELTAS [Thread[main,5,main]] HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} Java Model[*]: {CHILDREN} Test[*]: {CHILDREN} [project root][*]: {CHILDREN} [default][*]: {CHILDREN} HelloWorld.java[*]: {CONTENT} FIRING POST_CHANGE Delta [Thread[main,5,main]]: Java Model[*]: {CHILDREN} Test[*]: {CHILDREN} [project root][*]: {CHILDREN} [default][*]: {CHILDREN} HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.72 !MESSAGE Internal Error !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.JavaElement.getChildren (JavaElement.java:266) at org.eclipse.jdt.internal.core.JavaElement.getChildrenOfType (JavaElement.java:275) at org.eclipse.jdt.internal.core.SourceType.getFields (SourceType.java:178) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.canEnableOn (AddGetterSetterAction.java:168) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.canEnable (AddGetterSetterAction.java:157) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.selectionChanged (AddGetterSetterAction.java:123) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.72 !MESSAGE HelloWorld does not exist. !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.102 !MESSAGE An error occurred while accessing a Java element !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.SourceType.isInterface (SourceType.java:320) at org.eclipse.jdt.ui.actions.FindImplementorsAction.canOperateOn (FindImplementorsAction.java:69) at org.eclipse.jdt.ui.actions.FindAction.canOperateOn (FindAction.java:91) at org.eclipse.jdt.ui.actions.FindAction.selectionChanged (FindAction.java:257) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.102 !MESSAGE HelloWorld does not exist. !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.112 !MESSAGE An error occurred while accessing a Java element !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.SourceType.isInterface (SourceType.java:320) at org.eclipse.jdt.ui.actions.FindImplementorsAction.canOperateOn (FindImplementorsAction.java:69) at org.eclipse.jdt.ui.actions.FindAction.canOperateOn (FindAction.java:91) at org.eclipse.jdt.ui.actions.FindAction.selectionChanged (FindAction.java:257) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.112 !MESSAGE HelloWorld does not exist.
verified fixed
5f7562f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:40:34Z
2002-05-23T13:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingContentProvider.java
((TableViewer)fViewer).add(elements); if (fViewer.testFindItem(elements[0]) != null) fBrowsingPart.adjustInputAndSetSelection((IJavaElement)elements[0]); ctrl.setRedraw(true); } } }); } private void postRemove(final Object element) { postRemove(new Object[] {element}); } private void postRemove(final Object[] elements) { if (elements.length <= 0) return; postRunnable(new Runnable() { public void run() { Control ctrl= fViewer.getControl(); if (ctrl != null && !ctrl.isDisposed()) { ctrl.setRedraw(false); if (fViewer instanceof AbstractTreeViewer) ((AbstractTreeViewer)fViewer).remove(elements); else if (fViewer instanceof ListViewer) ((ListViewer)fViewer).remove(elements); else if (fViewer instanceof TableViewer) ((TableViewer)fViewer).remove(elements); ctrl.setRedraw(true); } } });
17,271
Bug 17271 Not present exception renaming class in java browsing perspective
Build 20020521 (running with java delta tracing) 1. Create the following CU: public class HelloWorld { } 2. Open Java Browsing perspective 3. Open HelloWorld 4. In java editor, rename HelloWorld to Hellorld2 5. Save Observe the following in the console: UPDATING Model with Delta: [Thread[main,5,main]:HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {}]: FIRING PRE_AUTO_BUILD Delta [Thread[main,5,main]]: HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} MERGING 2 DELTAS [Thread[main,5,main]] HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} Java Model[*]: {CHILDREN} Test[*]: {CHILDREN} [project root][*]: {CHILDREN} [default][*]: {CHILDREN} HelloWorld.java[*]: {CONTENT} FIRING POST_CHANGE Delta [Thread[main,5,main]]: Java Model[*]: {CHILDREN} Test[*]: {CHILDREN} [project root][*]: {CHILDREN} [default][*]: {CHILDREN} HelloWorld.java[*]: {CHILDREN | FINE GRAINED} HelloWorld2[+]: {} HelloWorld[-]: {} !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.72 !MESSAGE Internal Error !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.JavaElement.getChildren (JavaElement.java:266) at org.eclipse.jdt.internal.core.JavaElement.getChildrenOfType (JavaElement.java:275) at org.eclipse.jdt.internal.core.SourceType.getFields (SourceType.java:178) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.canEnableOn (AddGetterSetterAction.java:168) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.canEnable (AddGetterSetterAction.java:157) at org.eclipse.jdt.ui.actions.AddGetterSetterAction.selectionChanged (AddGetterSetterAction.java:123) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.72 !MESSAGE HelloWorld does not exist. !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.102 !MESSAGE An error occurred while accessing a Java element !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.SourceType.isInterface (SourceType.java:320) at org.eclipse.jdt.ui.actions.FindImplementorsAction.canOperateOn (FindImplementorsAction.java:69) at org.eclipse.jdt.ui.actions.FindAction.canOperateOn (FindAction.java:91) at org.eclipse.jdt.ui.actions.FindAction.selectionChanged (FindAction.java:257) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.102 !MESSAGE HelloWorld does not exist. !ENTRY org.eclipse.jdt.ui 4 1 May 23, 2002 16:01:58.112 !MESSAGE An error occurred while accessing a Java element !STACK 1 Java Model Exception: Java Model Status [HelloWorld does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:309) at org.eclipse.jdt.internal.core.SourceType.isInterface (SourceType.java:320) at org.eclipse.jdt.ui.actions.FindImplementorsAction.canOperateOn (FindImplementorsAction.java:69) at org.eclipse.jdt.ui.actions.FindAction.canOperateOn (FindAction.java:91) at org.eclipse.jdt.ui.actions.FindAction.selectionChanged (FindAction.java:257) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:168) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:163) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1154) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:544) at org.eclipse.jface.viewers.StructuredViewer$1.widgetSelected (StructuredViewer.java:568) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:171) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:168) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) !ENTRY org.eclipse.jdt.core 4 969 May 23, 2002 16:01:58.112 !MESSAGE HelloWorld does not exist.
verified fixed
5f7562f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:40:34Z
2002-05-23T13:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingContentProvider.java
} private void postAdjustInputAndSetSelection(final Object element) { postRunnable(new Runnable() { public void run() { Control ctrl= fViewer.getControl(); if (ctrl != null && !ctrl.isDisposed()) { ctrl.setRedraw(false); fBrowsingPart.adjustInputAndSetSelection((IJavaElement)element); ctrl.setRedraw(true); } } }); } private void postRunnable(final Runnable r) { Control ctrl= fViewer.getControl(); if (ctrl != null && !ctrl.isDisposed()) { fBrowsingPart.setProcessSelectionEvents(false); try { Display currentDisplay= ctrl.getDisplay().getCurrent(); if (currentDisplay != null && currentDisplay.equals(ctrl.getDisplay())) ctrl.getDisplay().syncExec(r); else ctrl.getDisplay().asyncExec(r); } finally { fBrowsingPart.setProcessSelectionEvents(true); } } } }
16,923
Bug 16923 Auto activation preference dialog
The auto activation characters and Timeout Text fields are enabled even when Auto activation itself is disabled. This was confusing to me because I thought that "." should cause automatic code assist, but it wasn't. Disabling the feature should disable the controls what modify the details for that feature.
verified fixed
7c12a6c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:48:10Z
2002-05-22T17:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.preferences; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator;
16,923
Bug 16923 Auto activation preference dialog
The auto activation characters and Timeout Text fields are enabled even when Auto activation itself is disabled. This was confusing to me because I thought that "." should cause automatic code assist, but it wasn't. Disabling the feature should disable the controls what modify the details for that feature.
verified fixed
7c12a6c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:48:10Z
2002-05-22T17:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
import java.util.Map; import org.eclipse.core.runtime.IStatus; 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.Color; import org.eclipse.swt.graphics.RGB; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.layout.RowLayout; import org.eclipse.swt.widgets.Button; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Control; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Label; import org.eclipse.swt.widgets.List; import org.eclipse.swt.widgets.TabFolder; import org.eclipse.swt.widgets.TabItem; import org.eclipse.swt.widgets.Text; import org.eclipse.jface.preference.IPreferenceStore; import org.eclipse.jface.preference.PreferenceConverter; import org.eclipse.jface.preference.PreferencePage; import org.eclipse.jface.resource.JFaceResources; import org.eclipse.jface.text.Document; import org.eclipse.jface.text.IDocument; import org.eclipse.jface.text.IDocumentPartitioner; import org.eclipse.jface.text.source.ISourceViewer;
16,923
Bug 16923 Auto activation preference dialog
The auto activation characters and Timeout Text fields are enabled even when Auto activation itself is disabled. This was confusing to me because I thought that "." should cause automatic code assist, but it wasn't. Disabling the feature should disable the controls what modify the details for that feature.
verified fixed
7c12a6c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:48:10Z
2002-05-22T17:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
import org.eclipse.jface.text.source.SourceViewer; import org.eclipse.jface.util.IPropertyChangeListener; import org.eclipse.jface.util.PropertyChangeEvent; import org.eclipse.ui.IWorkbench; import org.eclipse.ui.IWorkbenchPreferencePage; import org.eclipse.ui.help.WorkbenchHelp; import org.eclipse.ui.texteditor.AbstractTextEditor; import org.eclipse.ui.texteditor.WorkbenchChainedTextFontFieldEditor; import org.eclipse.jdt.ui.text.IJavaColorConstants; import org.eclipse.jdt.ui.text.JavaSourceViewerConfiguration; import org.eclipse.jdt.ui.text.JavaTextTools; import org.eclipse.jdt.internal.ui.IJavaHelpContextIds; import org.eclipse.jdt.internal.ui.JavaPlugin; import org.eclipse.jdt.internal.ui.JavaPluginImages; import org.eclipse.jdt.internal.ui.JavaUIMessages; import org.eclipse.jdt.internal.ui.dialogs.StatusInfo; import org.eclipse.jdt.internal.ui.dialogs.StatusUtil; import org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider; import org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor; import org.eclipse.jdt.internal.ui.javaeditor.JavaEditor; import org.eclipse.jdt.internal.ui.text.ContentAssistPreference; import org.eclipse.jdt.internal.ui.util.TabFolderLayout; /* * The page for setting the editor options. */ public class JavaEditorPreferencePage extends PreferencePage implements IWorkbenchPreferencePage { public static final String BOLD= "_bold"; public static final String PREF_SHOW_TEMP_PROBLEMS= "JavaEditor.ShowTemporaryProblem"; public static final String PREF_SYNC_OUTLINE_ON_CURSOR_MOVE= "JavaEditor.SyncOutlineOnCursorMove";
16,923
Bug 16923 Auto activation preference dialog
The auto activation characters and Timeout Text fields are enabled even when Auto activation itself is disabled. This was confusing to me because I thought that "." should cause automatic code assist, but it wasn't. Disabling the feature should disable the controls what modify the details for that feature.
verified fixed
7c12a6c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:48:10Z
2002-05-22T17:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
public final OverlayPreferenceStore.OverlayKey[] fKeys= new OverlayPreferenceStore.OverlayKey[] { new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, AbstractTextEditor.PREFERENCE_COLOR_FOREGROUND), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, AbstractTextEditor.PREFERENCE_COLOR_FOREGROUND_SYSTEM_DEFAULT), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND_SYSTEM_DEFAULT), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.INT, JavaSourceViewerConfiguration.PREFERENCE_TAB_WIDTH), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, IJavaColorConstants.JAVA_MULTI_LINE_COMMENT), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, IJavaColorConstants.JAVA_MULTI_LINE_COMMENT + BOLD), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, IJavaColorConstants.JAVA_SINGLE_LINE_COMMENT), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, IJavaColorConstants.JAVA_SINGLE_LINE_COMMENT + BOLD), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, IJavaColorConstants.JAVA_KEYWORD), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, IJavaColorConstants.JAVA_KEYWORD + BOLD), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, IJavaColorConstants.JAVA_STRING), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, IJavaColorConstants.JAVA_STRING + BOLD), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, IJavaColorConstants.JAVA_DEFAULT), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, IJavaColorConstants.JAVA_DEFAULT + BOLD), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, IJavaColorConstants.JAVADOC_KEYWORD), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, IJavaColorConstants.JAVADOC_KEYWORD + BOLD), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, IJavaColorConstants.JAVADOC_TAG), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, IJavaColorConstants.JAVADOC_TAG + BOLD), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, IJavaColorConstants.JAVADOC_LINK), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, IJavaColorConstants.JAVADOC_LINK + BOLD),
16,923
Bug 16923 Auto activation preference dialog
The auto activation characters and Timeout Text fields are enabled even when Auto activation itself is disabled. This was confusing to me because I thought that "." should cause automatic code assist, but it wasn't. Disabling the feature should disable the controls what modify the details for that feature.
verified fixed
7c12a6c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:48:10Z
2002-05-22T17:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, IJavaColorConstants.JAVADOC_DEFAULT), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, IJavaColorConstants.JAVADOC_DEFAULT + BOLD), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, CompilationUnitEditor.MATCHING_BRACKETS_COLOR), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, CompilationUnitEditor.MATCHING_BRACKETS), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, CompilationUnitEditor.CURRENT_LINE_COLOR), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, CompilationUnitEditor.CURRENT_LINE), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, CompilationUnitEditor.PRINT_MARGIN_COLOR), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.INT, CompilationUnitEditor.PRINT_MARGIN_COLUMN), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, CompilationUnitEditor.PRINT_MARGIN), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, AbstractTextEditor.PREFERENCE_COLOR_FIND_SCOPE), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, CompilationUnitEditor.LINKED_POSITION_COLOR), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, CompilationUnitEditor.PROBLEM_INDICATION_COLOR), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, CompilationUnitEditor.PROBLEM_INDICATION), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, JavaEditorPreferencePage.PREF_SHOW_TEMP_PROBLEMS), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, JavaEditorPreferencePage.PREF_SYNC_OUTLINE_ON_CURSOR_MOVE), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, CompilationUnitDocumentProvider.HANDLE_TEMPORARY_PROBLEMS), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, CompilationUnitEditor.OVERVIEW_RULER), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, JavaEditor.LINE_NUMBER_COLOR), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, JavaEditor.LINE_NUMBER_RULER), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, CompilationUnitEditor.SPACES_FOR_TABS),
16,923
Bug 16923 Auto activation preference dialog
The auto activation characters and Timeout Text fields are enabled even when Auto activation itself is disabled. This was confusing to me because I thought that "." should cause automatic code assist, but it wasn't. Disabling the feature should disable the controls what modify the details for that feature.
verified fixed
7c12a6c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:48:10Z
2002-05-22T17:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, ContentAssistPreference.AUTOACTIVATION), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.INT, ContentAssistPreference.AUTOACTIVATION_DELAY), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, ContentAssistPreference.AUTOINSERT), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, ContentAssistPreference.PROPOSALS_BACKGROUND), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, ContentAssistPreference.PROPOSALS_FOREGROUND), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, ContentAssistPreference.PARAMETERS_BACKGROUND), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, ContentAssistPreference.PARAMETERS_FOREGROUND), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, ContentAssistPreference.AUTOACTIVATION_TRIGGERS_JAVA), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, ContentAssistPreference.AUTOACTIVATION_TRIGGERS_JAVADOC), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, ContentAssistPreference.SHOW_VISIBLE_PROPOSALS), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, ContentAssistPreference.ORDER_PROPOSALS), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, ContentAssistPreference.CASE_SENSITIVITY), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, ContentAssistPreference.ADD_IMPORT), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, ContentAssistPreference.FILL_METHOD_ARGUMENTS) }; private final String[][] fSyntaxColorListModel= new String[][] { { JavaUIMessages.getString("JavaEditorPreferencePage.multiLineComment"), IJavaColorConstants.JAVA_MULTI_LINE_COMMENT }, { JavaUIMessages.getString("JavaEditorPreferencePage.singleLineComment"), IJavaColorConstants.JAVA_SINGLE_LINE_COMMENT }, { JavaUIMessages.getString("JavaEditorPreferencePage.keywords"), IJavaColorConstants.JAVA_KEYWORD }, { JavaUIMessages.getString("JavaEditorPreferencePage.strings"), IJavaColorConstants.JAVA_STRING }, { JavaUIMessages.getString("JavaEditorPreferencePage.others"), IJavaColorConstants.JAVA_DEFAULT }, { JavaUIMessages.getString("JavaEditorPreferencePage.javaDocKeywords"), IJavaColorConstants.JAVADOC_KEYWORD }, { JavaUIMessages.getString("JavaEditorPreferencePage.javaDocHtmlTags"), IJavaColorConstants.JAVADOC_TAG }, { JavaUIMessages.getString("JavaEditorPreferencePage.javaDocLinks"), IJavaColorConstants.JAVADOC_LINK }, { JavaUIMessages.getString("JavaEditorPreferencePage.javaDocOthers"), IJavaColorConstants.JAVADOC_DEFAULT } }; private final String[][] fAppearanceColorListModel= new String[][] {
16,923
Bug 16923 Auto activation preference dialog
The auto activation characters and Timeout Text fields are enabled even when Auto activation itself is disabled. This was confusing to me because I thought that "." should cause automatic code assist, but it wasn't. Disabling the feature should disable the controls what modify the details for that feature.
verified fixed
7c12a6c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:48:10Z
2002-05-22T17:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
{JavaUIMessages.getString("JavaEditorPreferencePage.lineNumberForegroundColor"), JavaEditor.LINE_NUMBER_COLOR}, {JavaUIMessages.getString("JavaEditorPreferencePage.matchingBracketsHighlightColor2"), CompilationUnitEditor.MATCHING_BRACKETS_COLOR}, {JavaUIMessages.getString("JavaEditorPreferencePage.currentLineHighlighColor"), CompilationUnitEditor.CURRENT_LINE_COLOR}, {JavaUIMessages.getString("JavaEditorPreferencePage.problemsHighlightColor"), CompilationUnitEditor.PROBLEM_INDICATION_COLOR}, {JavaUIMessages.getString("JavaEditorPreferencePage.printMarginColor2"), CompilationUnitEditor.PRINT_MARGIN_COLOR}, {JavaUIMessages.getString("JavaEditorPreferencePage.findScopeColor2"), AbstractTextEditor.PREFERENCE_COLOR_FIND_SCOPE}, {JavaUIMessages.getString("JavaEditorPreferencePage.linkedPositionColor2"), CompilationUnitEditor.LINKED_POSITION_COLOR}, }; private OverlayPreferenceStore fOverlayStore; private JavaTextTools fJavaTextTools; private Map fColorButtons= new HashMap(); private SelectionListener fColorButtonListener= new SelectionListener() { public void widgetDefaultSelected(SelectionEvent e) { } public void widgetSelected(SelectionEvent e) { ColorEditor editor= (ColorEditor) e.widget.getData(); PreferenceConverter.setValue(fOverlayStore, (String) fColorButtons.get(editor), editor.getColorValue()); } }; private Map fCheckBoxes= new HashMap(); private SelectionListener fCheckBoxListener= new SelectionListener() { public void widgetDefaultSelected(SelectionEvent e) { } public void widgetSelected(SelectionEvent e) { Button button= (Button) e.widget; fOverlayStore.setValue((String) fCheckBoxes.get(button), button.getSelection()); }
16,923
Bug 16923 Auto activation preference dialog
The auto activation characters and Timeout Text fields are enabled even when Auto activation itself is disabled. This was confusing to me because I thought that "." should cause automatic code assist, but it wasn't. Disabling the feature should disable the controls what modify the details for that feature.
verified fixed
7c12a6c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:48:10Z
2002-05-22T17:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
}; private Map fTextFields= new HashMap(); private ModifyListener fTextFieldListener= new ModifyListener() { public void modifyText(ModifyEvent e) { Text text= (Text) e.widget; fOverlayStore.setValue((String) fTextFields.get(text), text.getText()); } }; private ArrayList fNumberFields= new ArrayList(); private ModifyListener fNumberFieldListener= new ModifyListener() { public void modifyText(ModifyEvent e) { numberFieldChanged((Text) e.widget); } }; private WorkbenchChainedTextFontFieldEditor fFontEditor; private List fSyntaxColorList; private List fAppearanceColorList; private ColorEditor fSyntaxForegroundColorEditor; private ColorEditor fAppearanceForegroundColorEditor; private ColorEditor fBackgroundColorEditor; private Button fBackgroundDefaultRadioButton; private Button fBackgroundCustomRadioButton; private Button fBackgroundColorButton; private Button fBoldCheckBox; private SourceViewer fPreviewViewer; private Color fBackgroundColor; public JavaEditorPreferencePage() {
16,923
Bug 16923 Auto activation preference dialog
The auto activation characters and Timeout Text fields are enabled even when Auto activation itself is disabled. This was confusing to me because I thought that "." should cause automatic code assist, but it wasn't. Disabling the feature should disable the controls what modify the details for that feature.
verified fixed
7c12a6c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:48:10Z
2002-05-22T17:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
setDescription(JavaUIMessages.getString("JavaEditorPreferencePage.description")); setPreferenceStore(JavaPlugin.getDefault().getPreferenceStore()); fOverlayStore= new OverlayPreferenceStore(getPreferenceStore(), fKeys); } public static void initDefaults(IPreferenceStore store) { /* * Ensure that the display is accessed only in the UI thread. * Ensure that there are no side effects of switching the thread. */ final RGB[] rgbs= new RGB[3]; final Display display= Display.getDefault(); display.syncExec(new Runnable() { public void run() { Color c= display.getSystemColor(SWT.COLOR_GRAY); rgbs[0]= c.getRGB(); c= display.getSystemColor(SWT.COLOR_LIST_FOREGROUND); rgbs[1]= c.getRGB(); c= display.getSystemColor(SWT.COLOR_LIST_BACKGROUND); rgbs[2]= c.getRGB(); } }); /* * Go on in whatever thread this is. */ store.setDefault(CompilationUnitEditor.MATCHING_BRACKETS, true); PreferenceConverter.setDefault(store, CompilationUnitEditor.MATCHING_BRACKETS_COLOR, rgbs[0]);
16,923
Bug 16923 Auto activation preference dialog
The auto activation characters and Timeout Text fields are enabled even when Auto activation itself is disabled. This was confusing to me because I thought that "." should cause automatic code assist, but it wasn't. Disabling the feature should disable the controls what modify the details for that feature.
verified fixed
7c12a6c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:48:10Z
2002-05-22T17:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
store.setDefault(CompilationUnitEditor.CURRENT_LINE, true); PreferenceConverter.setDefault(store, CompilationUnitEditor.CURRENT_LINE_COLOR, new RGB(225, 235, 224)); store.setDefault(CompilationUnitEditor.PRINT_MARGIN, false); store.setDefault(CompilationUnitEditor.PRINT_MARGIN_COLUMN, 80); PreferenceConverter.setDefault(store, CompilationUnitEditor.PRINT_MARGIN_COLOR, new RGB(176, 180 , 185)); PreferenceConverter.setDefault(store, AbstractTextEditor.PREFERENCE_COLOR_FIND_SCOPE, new RGB(185, 176 , 180)); store.setDefault(CompilationUnitEditor.PROBLEM_INDICATION, true); PreferenceConverter.setDefault(store, CompilationUnitEditor.PROBLEM_INDICATION_COLOR, new RGB(255, 0 , 128)); store.setDefault(JavaEditorPreferencePage.PREF_SHOW_TEMP_PROBLEMS, true); store.setDefault(JavaEditorPreferencePage.PREF_SYNC_OUTLINE_ON_CURSOR_MOVE, false); store.setDefault(CompilationUnitDocumentProvider.HANDLE_TEMPORARY_PROBLEMS, true); store.setDefault(CompilationUnitEditor.OVERVIEW_RULER, true); store.setDefault(JavaEditor.LINE_NUMBER_RULER, false); PreferenceConverter.setDefault(store, JavaEditor.LINE_NUMBER_COLOR, new RGB(0, 0, 0)); WorkbenchChainedTextFontFieldEditor.startPropagate(store, JFaceResources.TEXT_FONT); PreferenceConverter.setDefault(store, CompilationUnitEditor.LINKED_POSITION_COLOR, new RGB(0, 200 , 100)); PreferenceConverter.setDefault(store, AbstractTextEditor.PREFERENCE_COLOR_FOREGROUND, rgbs[1]); store.setDefault(AbstractTextEditor.PREFERENCE_COLOR_FOREGROUND_SYSTEM_DEFAULT, true); PreferenceConverter.setDefault(store, AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND, rgbs[2]); store.setDefault(AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND_SYSTEM_DEFAULT, true);
16,923
Bug 16923 Auto activation preference dialog
The auto activation characters and Timeout Text fields are enabled even when Auto activation itself is disabled. This was confusing to me because I thought that "." should cause automatic code assist, but it wasn't. Disabling the feature should disable the controls what modify the details for that feature.
verified fixed
7c12a6c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:48:10Z
2002-05-22T17:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
store.setDefault(JavaSourceViewerConfiguration.PREFERENCE_TAB_WIDTH, 4); store.setDefault(CompilationUnitEditor.SPACES_FOR_TABS, false); PreferenceConverter.setDefault(store, IJavaColorConstants.JAVA_MULTI_LINE_COMMENT, new RGB(63, 127, 95)); store.setDefault(IJavaColorConstants.JAVA_MULTI_LINE_COMMENT + "_bold", false); PreferenceConverter.setDefault(store, IJavaColorConstants.JAVA_SINGLE_LINE_COMMENT, new RGB(63, 127, 95)); store.setDefault(IJavaColorConstants.JAVA_SINGLE_LINE_COMMENT + "_bold", false); PreferenceConverter.setDefault(store, IJavaColorConstants.JAVA_KEYWORD, new RGB(127, 0, 85)); store.setDefault(IJavaColorConstants.JAVA_KEYWORD + "_bold", true); PreferenceConverter.setDefault(store, IJavaColorConstants.JAVA_STRING, new RGB(42, 0, 255)); store.setDefault(IJavaColorConstants.JAVA_STRING + "_bold", false); PreferenceConverter.setDefault(store, IJavaColorConstants.JAVA_DEFAULT, new RGB(0, 0, 0)); store.setDefault(IJavaColorConstants.JAVA_DEFAULT + "_bold", false); PreferenceConverter.setDefault(store, IJavaColorConstants.JAVADOC_KEYWORD, new RGB(127, 159, 191)); store.setDefault(IJavaColorConstants.JAVADOC_KEYWORD + "_bold", true); PreferenceConverter.setDefault(store, IJavaColorConstants.JAVADOC_TAG, new RGB(127, 127, 159)); store.setDefault(IJavaColorConstants.JAVADOC_TAG + "_bold", false); PreferenceConverter.setDefault(store, IJavaColorConstants.JAVADOC_LINK, new RGB(63, 63, 191)); store.setDefault(IJavaColorConstants.JAVADOC_LINK + "_bold", false); PreferenceConverter.setDefault(store, IJavaColorConstants.JAVADOC_DEFAULT, new RGB(63, 95, 191)); store.setDefault(IJavaColorConstants.JAVADOC_DEFAULT + "_bold", false);
16,923
Bug 16923 Auto activation preference dialog
The auto activation characters and Timeout Text fields are enabled even when Auto activation itself is disabled. This was confusing to me because I thought that "." should cause automatic code assist, but it wasn't. Disabling the feature should disable the controls what modify the details for that feature.
verified fixed
7c12a6c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:48:10Z
2002-05-22T17:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
store.setDefault(ContentAssistPreference.AUTOACTIVATION, true); store.setDefault(ContentAssistPreference.AUTOACTIVATION_DELAY, 500); store.setDefault(ContentAssistPreference.AUTOINSERT, true); PreferenceConverter.setDefault(store, ContentAssistPreference.PROPOSALS_BACKGROUND, new RGB(254, 241, 233)); PreferenceConverter.setDefault(store, ContentAssistPreference.PROPOSALS_FOREGROUND, new RGB(0, 0, 0)); PreferenceConverter.setDefault(store, ContentAssistPreference.PARAMETERS_BACKGROUND, new RGB(254, 241, 233)); PreferenceConverter.setDefault(store, ContentAssistPreference.PARAMETERS_FOREGROUND, new RGB(0, 0, 0)); store.setDefault(ContentAssistPreference.AUTOACTIVATION_TRIGGERS_JAVA, "."); store.setDefault(ContentAssistPreference.AUTOACTIVATION_TRIGGERS_JAVADOC, "@"); store.setDefault(ContentAssistPreference.SHOW_VISIBLE_PROPOSALS, true); store.setDefault(ContentAssistPreference.CASE_SENSITIVITY, false); store.setDefault(ContentAssistPreference.ORDER_PROPOSALS, false); store.setDefault(ContentAssistPreference.ADD_IMPORT, true); store.setDefault(ContentAssistPreference.FILL_METHOD_ARGUMENTS, false); } /* * @see IWorkbenchPreferencePage#init() */ public void init(IWorkbench workbench) { } /* * @see PreferencePage#createControl(Composite) */ public void createControl(Composite parent) { super.createControl(parent); WorkbenchHelp.setHelp(getControl(), IJavaHelpContextIds.JAVA_EDITOR_PREFERENCE_PAGE); } private void handleSyntaxColorListSelection() {
16,923
Bug 16923 Auto activation preference dialog
The auto activation characters and Timeout Text fields are enabled even when Auto activation itself is disabled. This was confusing to me because I thought that "." should cause automatic code assist, but it wasn't. Disabling the feature should disable the controls what modify the details for that feature.
verified fixed
7c12a6c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:48:10Z
2002-05-22T17:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
int i= fSyntaxColorList.getSelectionIndex(); String key= fSyntaxColorListModel[i][1]; RGB rgb= PreferenceConverter.getColor(fOverlayStore, key); fSyntaxForegroundColorEditor.setColorValue(rgb); fBoldCheckBox.setSelection(fOverlayStore.getBoolean(key + BOLD)); } private void handleAppearanceColorListSelection() { int i= fAppearanceColorList.getSelectionIndex(); String key= fAppearanceColorListModel[i][1]; RGB rgb= PreferenceConverter.getColor(fOverlayStore, key); fAppearanceForegroundColorEditor.setColorValue(rgb); } private Control createColorPage(Composite parent) { Composite colorComposite= new Composite(parent, SWT.NULL); colorComposite.setLayout(new GridLayout()); Composite backgroundComposite= new Composite(colorComposite, SWT.NULL); backgroundComposite.setLayout(new RowLayout()); Label label= new Label(backgroundComposite, SWT.NULL); label.setText(JavaUIMessages.getString("JavaEditorPreferencePage.backgroundColor")); SelectionListener backgroundSelectionListener= new SelectionListener() { public void widgetSelected(SelectionEvent e) { boolean custom= fBackgroundCustomRadioButton.getSelection(); fBackgroundColorButton.setEnabled(custom); fOverlayStore.setValue(AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND_SYSTEM_DEFAULT, !custom); } public void widgetDefaultSelected(SelectionEvent e) {} }; fBackgroundDefaultRadioButton= new Button(backgroundComposite, SWT.RADIO | SWT.LEFT);
16,923
Bug 16923 Auto activation preference dialog
The auto activation characters and Timeout Text fields are enabled even when Auto activation itself is disabled. This was confusing to me because I thought that "." should cause automatic code assist, but it wasn't. Disabling the feature should disable the controls what modify the details for that feature.
verified fixed
7c12a6c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:48:10Z
2002-05-22T17:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
fBackgroundDefaultRadioButton.setText(JavaUIMessages.getString("JavaEditorPreferencePage.systemDefault")); fBackgroundDefaultRadioButton.addSelectionListener(backgroundSelectionListener); fBackgroundCustomRadioButton= new Button(backgroundComposite, SWT.RADIO | SWT.LEFT); fBackgroundCustomRadioButton.setText(JavaUIMessages.getString("JavaEditorPreferencePage.custom")); fBackgroundCustomRadioButton.addSelectionListener(backgroundSelectionListener); fBackgroundColorEditor= new ColorEditor(backgroundComposite); fBackgroundColorButton= fBackgroundColorEditor.getButton(); label= new Label(colorComposite, SWT.LEFT); label.setText(JavaUIMessages.getString("JavaEditorPreferencePage.foreground")); label.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); Composite editorComposite= new Composite(colorComposite, SWT.NONE); GridLayout layout= new GridLayout(); layout.numColumns= 2; layout.marginHeight= 0; layout.marginWidth= 0; editorComposite.setLayout(layout); GridData gd= new GridData(GridData.FILL_BOTH); editorComposite.setLayoutData(gd); fSyntaxColorList= new List(editorComposite, SWT.SINGLE | SWT.V_SCROLL | SWT.BORDER); gd= new GridData(GridData.FILL_BOTH); gd.heightHint= convertHeightInCharsToPixels(5); fSyntaxColorList.setLayoutData(gd); Composite stylesComposite= new Composite(editorComposite, SWT.NONE); layout= new GridLayout(); layout.marginHeight= 0; layout.marginWidth= 0; layout.numColumns= 2; stylesComposite.setLayout(layout); stylesComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
16,923
Bug 16923 Auto activation preference dialog
The auto activation characters and Timeout Text fields are enabled even when Auto activation itself is disabled. This was confusing to me because I thought that "." should cause automatic code assist, but it wasn't. Disabling the feature should disable the controls what modify the details for that feature.
verified fixed
7c12a6c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:48:10Z
2002-05-22T17:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
label= new Label(stylesComposite, SWT.LEFT); label.setText(JavaUIMessages.getString("JavaEditorPreferencePage.color")); gd= new GridData(); gd.horizontalAlignment= GridData.BEGINNING; label.setLayoutData(gd); fSyntaxForegroundColorEditor= new ColorEditor(stylesComposite); Button foregroundColorButton= fSyntaxForegroundColorEditor.getButton(); gd= new GridData(GridData.FILL_HORIZONTAL); gd.horizontalAlignment= GridData.BEGINNING; foregroundColorButton.setLayoutData(gd); label= new Label(stylesComposite, SWT.LEFT); label.setText(JavaUIMessages.getString("JavaEditorPreferencePage.bold")); gd= new GridData(); gd.horizontalAlignment= GridData.BEGINNING; label.setLayoutData(gd); fBoldCheckBox= new Button(stylesComposite, SWT.CHECK); gd= new GridData(GridData.FILL_HORIZONTAL); gd.horizontalAlignment= GridData.BEGINNING; fBoldCheckBox.setLayoutData(gd); label= new Label(colorComposite, SWT.LEFT); label.setText(JavaUIMessages.getString("JavaEditorPreferencePage.preview")); label.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); Control previewer= createPreviewer(colorComposite); gd= new GridData(GridData.FILL_BOTH); gd.widthHint= convertWidthInCharsToPixels(80); gd.heightHint= convertHeightInCharsToPixels(15);
16,923
Bug 16923 Auto activation preference dialog
The auto activation characters and Timeout Text fields are enabled even when Auto activation itself is disabled. This was confusing to me because I thought that "." should cause automatic code assist, but it wasn't. Disabling the feature should disable the controls what modify the details for that feature.
verified fixed
7c12a6c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:48:10Z
2002-05-22T17:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
previewer.setLayoutData(gd); fSyntaxColorList.addSelectionListener(new SelectionListener() { public void widgetDefaultSelected(SelectionEvent e) { } public void widgetSelected(SelectionEvent e) { handleSyntaxColorListSelection(); } }); foregroundColorButton.addSelectionListener(new SelectionListener() { public void widgetDefaultSelected(SelectionEvent e) { } public void widgetSelected(SelectionEvent e) { int i= fSyntaxColorList.getSelectionIndex(); String key= fSyntaxColorListModel[i][1]; PreferenceConverter.setValue(fOverlayStore, key, fSyntaxForegroundColorEditor.getColorValue()); } }); fBackgroundColorButton.addSelectionListener(new SelectionListener() { public void widgetDefaultSelected(SelectionEvent e) { } public void widgetSelected(SelectionEvent e) { PreferenceConverter.setValue(fOverlayStore, AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND, fBackgroundColorEditor.getColorValue()); } });
16,923
Bug 16923 Auto activation preference dialog
The auto activation characters and Timeout Text fields are enabled even when Auto activation itself is disabled. This was confusing to me because I thought that "." should cause automatic code assist, but it wasn't. Disabling the feature should disable the controls what modify the details for that feature.
verified fixed
7c12a6c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:48:10Z
2002-05-22T17:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
fBoldCheckBox.addSelectionListener(new SelectionListener() { public void widgetDefaultSelected(SelectionEvent e) { } public void widgetSelected(SelectionEvent e) { int i= fSyntaxColorList.getSelectionIndex(); String key= fSyntaxColorListModel[i][1]; fOverlayStore.setValue(key + BOLD, fBoldCheckBox.getSelection()); } }); return colorComposite; } private Control createPreviewer(Composite parent) { fJavaTextTools= new JavaTextTools(fOverlayStore); fPreviewViewer= new SourceViewer(parent, null, SWT.V_SCROLL | SWT.H_SCROLL | SWT.BORDER); fPreviewViewer.configure(new JavaSourceViewerConfiguration(fJavaTextTools, null)); fPreviewViewer.getTextWidget().setFont(JFaceResources.getFontRegistry().get(JFaceResources.TEXT_FONT)); fPreviewViewer.setEditable(false); initializeViewerColors(fPreviewViewer); String content= loadPreviewContentFromFile("ColorSettingPreviewCode.txt"); IDocument document= new Document(content); IDocumentPartitioner partitioner= fJavaTextTools.createDocumentPartitioner(); partitioner.connect(document); document.setDocumentPartitioner(partitioner);
16,923
Bug 16923 Auto activation preference dialog
The auto activation characters and Timeout Text fields are enabled even when Auto activation itself is disabled. This was confusing to me because I thought that "." should cause automatic code assist, but it wasn't. Disabling the feature should disable the controls what modify the details for that feature.
verified fixed
7c12a6c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:48:10Z
2002-05-22T17:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
fPreviewViewer.setDocument(document); fOverlayStore.addPropertyChangeListener(new IPropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { String p= event.getProperty(); if (p.equals(AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND) || p.equals(AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND_SYSTEM_DEFAULT)) { initializeViewerColors(fPreviewViewer); } fPreviewViewer.invalidateTextPresentation(); } }); return fPreviewViewer.getControl(); } /** * Initializes the given viewer's colors. * * @param viewer the viewer to be initialized */ private void initializeViewerColors(ISourceViewer viewer) { IPreferenceStore store= fOverlayStore; if (store != null) { StyledText styledText= viewer.getTextWidget();
16,923
Bug 16923 Auto activation preference dialog
The auto activation characters and Timeout Text fields are enabled even when Auto activation itself is disabled. This was confusing to me because I thought that "." should cause automatic code assist, but it wasn't. Disabling the feature should disable the controls what modify the details for that feature.
verified fixed
7c12a6c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:48:10Z
2002-05-22T17:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
Color color= store.getBoolean(AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND_SYSTEM_DEFAULT) ? null : createColor(store, AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND, styledText.getDisplay()); styledText.setBackground(color); if (fBackgroundColor != null) fBackgroundColor.dispose(); fBackgroundColor= color; } } /** * Creates a color from the information stored in the given preference store. * Returns <code>null</code> if there is no such information available. */ private Color createColor(IPreferenceStore store, String key, Display display) { RGB rgb= null; if (store.contains(key)) { if (store.isDefault(key)) rgb= PreferenceConverter.getDefaultColor(store, key); else rgb= PreferenceConverter.getColor(store, key); if (rgb != null) return new Color(display, rgb);
16,923
Bug 16923 Auto activation preference dialog
The auto activation characters and Timeout Text fields are enabled even when Auto activation itself is disabled. This was confusing to me because I thought that "." should cause automatic code assist, but it wasn't. Disabling the feature should disable the controls what modify the details for that feature.
verified fixed
7c12a6c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:48:10Z
2002-05-22T17:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
} return null; } private static void setEnabled(Control control, boolean enable) { control.setEnabled(enable); if (control instanceof Composite) { Composite composite= (Composite) control; Control[] children= composite.getChildren(); for (int i= 0; i < children.length; i++) setEnabled(children[i], enable); } } private Control createAppearancePage(Composite parent) { Composite behaviorComposite= new Composite(parent, SWT.NONE); GridLayout layout= new GridLayout(); layout.numColumns= 2; behaviorComposite.setLayout(layout); String label= JavaUIMessages.getString("JavaEditorPreferencePage.textFont"); addTextFontEditor(behaviorComposite, label, AbstractTextEditor.PREFERENCE_FONT); label= JavaUIMessages.getString("JavaEditorPreferencePage.displayedTabWidth"); addTextField(behaviorComposite, label, JavaSourceViewerConfiguration.PREFERENCE_TAB_WIDTH, 3, 0, true); label= JavaUIMessages.getString("JavaEditorPreferencePage.printMarginColumn"); addTextField(behaviorComposite, label, CompilationUnitEditor.PRINT_MARGIN_COLUMN, 3, 0, true); label= JavaUIMessages.getString("JavaEditorPreferencePage.insertSpaceForTabs"); addCheckBox(behaviorComposite, label, CompilationUnitEditor.SPACES_FOR_TABS, 0);
16,923
Bug 16923 Auto activation preference dialog
The auto activation characters and Timeout Text fields are enabled even when Auto activation itself is disabled. This was confusing to me because I thought that "." should cause automatic code assist, but it wasn't. Disabling the feature should disable the controls what modify the details for that feature.
verified fixed
7c12a6c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:48:10Z
2002-05-22T17:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
label= JavaUIMessages.getString("JavaEditorPreferencePage.synchronizeOnCursor"); addCheckBox(behaviorComposite, label, JavaEditorPreferencePage.PREF_SYNC_OUTLINE_ON_CURSOR_MOVE, 0); label= JavaUIMessages.getString("JavaEditorPreferencePage.showOverviewRuler"); addCheckBox(behaviorComposite, label, CompilationUnitEditor.OVERVIEW_RULER, 0); label= JavaUIMessages.getString("JavaEditorPreferencePage.showLineNumbers"); addCheckBox(behaviorComposite, label, JavaEditor.LINE_NUMBER_RULER, 0); label= JavaUIMessages.getString("JavaEditorPreferencePage.highlightMatchingBrackets"); addCheckBox(behaviorComposite, label, CompilationUnitEditor.MATCHING_BRACKETS, 0); label= JavaUIMessages.getString("JavaEditorPreferencePage.highlightCurrentLine"); addCheckBox(behaviorComposite, label, CompilationUnitEditor.CURRENT_LINE, 0); label= JavaUIMessages.getString("JavaEditorPreferencePage.showPrintMargin"); addCheckBox(behaviorComposite, label, CompilationUnitEditor.PRINT_MARGIN, 0); Label l= new Label(behaviorComposite, SWT.LEFT ); GridData gd= new GridData(GridData.HORIZONTAL_ALIGN_FILL); gd.horizontalSpan= 2; gd.heightHint= convertHeightInCharsToPixels(1) / 2; l.setLayoutData(gd); l= new Label(behaviorComposite, SWT.LEFT); l.setText(JavaUIMessages.getString("JavaEditorPreferencePage.appearanceOptions")); gd= new GridData(GridData.HORIZONTAL_ALIGN_FILL); gd.horizontalSpan= 2; l.setLayoutData(gd); Composite editorComposite= new Composite(behaviorComposite, SWT.NONE); layout= new GridLayout(); layout.numColumns= 2;
16,923
Bug 16923 Auto activation preference dialog
The auto activation characters and Timeout Text fields are enabled even when Auto activation itself is disabled. This was confusing to me because I thought that "." should cause automatic code assist, but it wasn't. Disabling the feature should disable the controls what modify the details for that feature.
verified fixed
7c12a6c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:48:10Z
2002-05-22T17:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
layout.marginHeight= 0; layout.marginWidth= 0; editorComposite.setLayout(layout); gd= new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.FILL_VERTICAL); gd.horizontalSpan= 2; editorComposite.setLayoutData(gd); fAppearanceColorList= new List(editorComposite, SWT.SINGLE | SWT.V_SCROLL | SWT.BORDER); gd= new GridData(GridData.FILL_BOTH); gd.heightHint= convertHeightInCharsToPixels(5); fAppearanceColorList.setLayoutData(gd); Composite stylesComposite= new Composite(editorComposite, SWT.NONE); layout= new GridLayout(); layout.marginHeight= 0; layout.marginWidth= 0; layout.numColumns= 2; stylesComposite.setLayout(layout); stylesComposite.setLayoutData(new GridData(GridData.FILL_BOTH)); l= new Label(stylesComposite, SWT.LEFT); l.setText(JavaUIMessages.getString("JavaEditorPreferencePage.color")); gd= new GridData(); gd.horizontalAlignment= GridData.BEGINNING; l.setLayoutData(gd); fAppearanceForegroundColorEditor= new ColorEditor(stylesComposite); Button foregroundColorButton= fAppearanceForegroundColorEditor.getButton(); gd= new GridData(GridData.FILL_HORIZONTAL); gd.horizontalAlignment= GridData.BEGINNING; foregroundColorButton.setLayoutData(gd); fAppearanceColorList.addSelectionListener(new SelectionListener() {
16,923
Bug 16923 Auto activation preference dialog
The auto activation characters and Timeout Text fields are enabled even when Auto activation itself is disabled. This was confusing to me because I thought that "." should cause automatic code assist, but it wasn't. Disabling the feature should disable the controls what modify the details for that feature.
verified fixed
7c12a6c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:48:10Z
2002-05-22T17:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
public void widgetDefaultSelected(SelectionEvent e) { } public void widgetSelected(SelectionEvent e) { handleAppearanceColorListSelection(); } }); foregroundColorButton.addSelectionListener(new SelectionListener() { public void widgetDefaultSelected(SelectionEvent e) { } public void widgetSelected(SelectionEvent e) { int i= fAppearanceColorList.getSelectionIndex(); String key= fAppearanceColorListModel[i][1]; PreferenceConverter.setValue(fOverlayStore, key, fAppearanceForegroundColorEditor.getColorValue()); } }); return behaviorComposite; } private Control createProblemIndicationPage(Composite parent) { Composite composite= new Composite(parent, SWT.NULL); GridLayout layout= new GridLayout(); layout.numColumns= 2; composite.setLayout(layout); String label= JavaUIMessages.getString("JavaEditorPreferencePage.showProblemsBeforeCompiling"); addCheckBox(composite, label, CompilationUnitDocumentProvider.HANDLE_TEMPORARY_PROBLEMS, 0); label= JavaUIMessages.getString("JavaEditorPreferencePage.highlightProblems"); addCheckBox(composite, label, CompilationUnitEditor.PROBLEM_INDICATION, 0);
16,923
Bug 16923 Auto activation preference dialog
The auto activation characters and Timeout Text fields are enabled even when Auto activation itself is disabled. This was confusing to me because I thought that "." should cause automatic code assist, but it wasn't. Disabling the feature should disable the controls what modify the details for that feature.
verified fixed
7c12a6c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:48:10Z
2002-05-22T17:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
label= JavaUIMessages.getString("JavaEditorPreferencePage.showQuickFixables"); addCheckBox(composite, label, JavaEditorPreferencePage.PREF_SHOW_TEMP_PROBLEMS, 0); return composite; } private Control createContentAssistPage(Composite parent) { Composite contentAssistComposite= new Composite(parent, SWT.NULL); GridLayout layout= new GridLayout(); layout.numColumns= 2; contentAssistComposite.setLayout(layout); String label= JavaUIMessages.getString("JavaEditorPreferencePage.insertSingleProposalsAutomatically"); addCheckBox(contentAssistComposite, label, ContentAssistPreference.AUTOINSERT, 0); label= JavaUIMessages.getString("JavaEditorPreferencePage.showOnlyProposalsVisibleInTheInvocationContext"); addCheckBox(contentAssistComposite, label, ContentAssistPreference.SHOW_VISIBLE_PROPOSALS, 0); label= JavaUIMessages.getString("JavaEditorPreferencePage.presentProposalsInAlphabeticalOrder"); addCheckBox(contentAssistComposite, label, ContentAssistPreference.ORDER_PROPOSALS, 0); label= JavaUIMessages.getString("JavaEditorPreferencePage.enableAutoActivation"); addCheckBox(contentAssistComposite, label, ContentAssistPreference.AUTOACTIVATION, 0); label= JavaUIMessages.getString("JavaEditorPreferencePage.automaticallyAddImportInsteadOfQualifiedName"); addCheckBox(contentAssistComposite, label, ContentAssistPreference.ADD_IMPORT, 0); label= JavaUIMessages.getString("JavaEditorPreferencePage.fillArgumentNamesOnMethodCompletion"); addCheckBox(contentAssistComposite, label, ContentAssistPreference.FILL_METHOD_ARGUMENTS, 0); label= JavaUIMessages.getString("JavaEditorPreferencePage.autoActivationDelay"); addTextField(contentAssistComposite, label, ContentAssistPreference.AUTOACTIVATION_DELAY, 4, 0, true);
16,923
Bug 16923 Auto activation preference dialog
The auto activation characters and Timeout Text fields are enabled even when Auto activation itself is disabled. This was confusing to me because I thought that "." should cause automatic code assist, but it wasn't. Disabling the feature should disable the controls what modify the details for that feature.
verified fixed
7c12a6c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:48:10Z
2002-05-22T17:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
label= JavaUIMessages.getString("JavaEditorPreferencePage.autoActivationTriggersForJava"); addTextField(contentAssistComposite, label, ContentAssistPreference.AUTOACTIVATION_TRIGGERS_JAVA, 4, 0, false); label= JavaUIMessages.getString("JavaEditorPreferencePage.autoActivationTriggersForJavaDoc"); addTextField(contentAssistComposite, label, ContentAssistPreference.AUTOACTIVATION_TRIGGERS_JAVADOC, 4, 0, false); label= JavaUIMessages.getString("JavaEditorPreferencePage.backgroundForCompletionProposals"); addColorButton(contentAssistComposite, label, ContentAssistPreference.PROPOSALS_BACKGROUND, 0); label= JavaUIMessages.getString("JavaEditorPreferencePage.foregroundForCompletionProposals"); addColorButton(contentAssistComposite, label, ContentAssistPreference.PROPOSALS_FOREGROUND, 0); label= JavaUIMessages.getString("JavaEditorPreferencePage.backgroundForMethodParameters"); addColorButton(contentAssistComposite, label, ContentAssistPreference.PARAMETERS_BACKGROUND, 0); label= JavaUIMessages.getString("JavaEditorPreferencePage.foregroundForMethodParameters"); addColorButton(contentAssistComposite, label, ContentAssistPreference.PARAMETERS_FOREGROUND, 0); return contentAssistComposite; } /* * @see PreferencePage#createContents(Composite) */ protected Control createContents(Composite parent) { fOverlayStore.load(); fOverlayStore.start(); TabFolder folder= new TabFolder(parent, SWT.NONE); folder.setLayout(new TabFolderLayout());
16,923
Bug 16923 Auto activation preference dialog
The auto activation characters and Timeout Text fields are enabled even when Auto activation itself is disabled. This was confusing to me because I thought that "." should cause automatic code assist, but it wasn't. Disabling the feature should disable the controls what modify the details for that feature.
verified fixed
7c12a6c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:48:10Z
2002-05-22T17:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
folder.setLayoutData(new GridData(GridData.FILL_BOTH)); TabItem item= new TabItem(folder, SWT.NONE); item.setText(JavaUIMessages.getString("JavaEditorPreferencePage.general")); item.setControl(createAppearancePage(folder)); item= new TabItem(folder, SWT.NONE); item.setText(JavaUIMessages.getString("JavaEditorPreferencePage.colors")); item.setControl(createColorPage(folder)); item= new TabItem(folder, SWT.NONE); item.setText(JavaUIMessages.getString("JavaEditorPreferencePage.codeAssist")); item.setControl(createContentAssistPage(folder)); item= new TabItem(folder, SWT.NONE); item.setText("Problem Indi&cation"); item.setControl(createProblemIndicationPage(folder)); initialize(); return folder; } private void initialize() { fFontEditor.setPreferenceStore(getPreferenceStore()); fFontEditor.setPreferencePage(this); fFontEditor.load(); initializeFields();
16,923
Bug 16923 Auto activation preference dialog
The auto activation characters and Timeout Text fields are enabled even when Auto activation itself is disabled. This was confusing to me because I thought that "." should cause automatic code assist, but it wasn't. Disabling the feature should disable the controls what modify the details for that feature.
verified fixed
7c12a6c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:48:10Z
2002-05-22T17:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
for (int i= 0; i < fSyntaxColorListModel.length; i++) fSyntaxColorList.add(fSyntaxColorListModel[i][0]); fSyntaxColorList.getDisplay().asyncExec(new Runnable() { public void run() { fSyntaxColorList.select(0); handleSyntaxColorListSelection(); } }); for (int i= 0; i < fAppearanceColorListModel.length; i++) fAppearanceColorList.add(fAppearanceColorListModel[i][0]); fAppearanceColorList.getDisplay().asyncExec(new Runnable() { public void run() { fAppearanceColorList.select(0); handleAppearanceColorListSelection(); } }); } private void initializeFields() { Iterator e= fColorButtons.keySet().iterator(); while (e.hasNext()) { ColorEditor c= (ColorEditor) e.next(); String key= (String) fColorButtons.get(c); RGB rgb= PreferenceConverter.getColor(fOverlayStore, key); c.setColorValue(rgb);
16,923
Bug 16923 Auto activation preference dialog
The auto activation characters and Timeout Text fields are enabled even when Auto activation itself is disabled. This was confusing to me because I thought that "." should cause automatic code assist, but it wasn't. Disabling the feature should disable the controls what modify the details for that feature.
verified fixed
7c12a6c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:48:10Z
2002-05-22T17:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
} e= fCheckBoxes.keySet().iterator(); while (e.hasNext()) { Button b= (Button) e.next(); String key= (String) fCheckBoxes.get(b); b.setSelection(fOverlayStore.getBoolean(key)); } e= fTextFields.keySet().iterator(); while (e.hasNext()) { Text t= (Text) e.next(); String key= (String) fTextFields.get(t); t.setText(fOverlayStore.getString(key)); } RGB rgb= PreferenceConverter.getColor(fOverlayStore, AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND); fBackgroundColorEditor.setColorValue(rgb); boolean default_= fOverlayStore.getBoolean(AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND_SYSTEM_DEFAULT); fBackgroundDefaultRadioButton.setSelection(default_); fBackgroundCustomRadioButton.setSelection(!default_); fBackgroundColorButton.setEnabled(!default_); } /* * @see PreferencePage#performOk() */ public boolean performOk() { fFontEditor.store();
16,923
Bug 16923 Auto activation preference dialog
The auto activation characters and Timeout Text fields are enabled even when Auto activation itself is disabled. This was confusing to me because I thought that "." should cause automatic code assist, but it wasn't. Disabling the feature should disable the controls what modify the details for that feature.
verified fixed
7c12a6c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:48:10Z
2002-05-22T17:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
fOverlayStore.propagate(); JavaPlugin.getDefault().savePluginPreferences(); return true; } /* * @see PreferencePage#performDefaults() */ protected void performDefaults() { fFontEditor.loadDefault(); fOverlayStore.loadDefaults(); initializeFields(); handleSyntaxColorListSelection(); handleAppearanceColorListSelection(); super.performDefaults(); fPreviewViewer.invalidateTextPresentation(); } /* * @see DialogPage#dispose() */ public void dispose() { if (fJavaTextTools != null) { fJavaTextTools= null; }
16,923
Bug 16923 Auto activation preference dialog
The auto activation characters and Timeout Text fields are enabled even when Auto activation itself is disabled. This was confusing to me because I thought that "." should cause automatic code assist, but it wasn't. Disabling the feature should disable the controls what modify the details for that feature.
verified fixed
7c12a6c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:48:10Z
2002-05-22T17:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
fFontEditor.setPreferencePage(null); fFontEditor.setPreferenceStore(null); if (fOverlayStore != null) { fOverlayStore.stop(); fOverlayStore= null; } super.dispose(); } private Control addColorButton(Composite composite, String label, String key, int indentation) { Label labelControl= new Label(composite, SWT.NONE); labelControl.setText(label); GridData gd= new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); gd.horizontalIndent= indentation; labelControl.setLayoutData(gd); ColorEditor editor= new ColorEditor(composite); Button button= editor.getButton(); button.setData(editor); gd= new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); button.setLayoutData(gd); button.addSelectionListener(fColorButtonListener); fColorButtons.put(editor, key); return composite;
16,923
Bug 16923 Auto activation preference dialog
The auto activation characters and Timeout Text fields are enabled even when Auto activation itself is disabled. This was confusing to me because I thought that "." should cause automatic code assist, but it wasn't. Disabling the feature should disable the controls what modify the details for that feature.
verified fixed
7c12a6c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:48:10Z
2002-05-22T17:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
} private Button addCheckBox(Composite parent, String label, String key, int indentation) { Button checkBox= new Button(parent, SWT.CHECK); checkBox.setText(label); GridData gd= new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); gd.horizontalIndent= indentation; gd.horizontalSpan= 2; checkBox.setLayoutData(gd); checkBox.addSelectionListener(fCheckBoxListener); fCheckBoxes.put(checkBox, key); return checkBox; } private Control addTextField(Composite composite, String label, String key, int textLimit, int indentation, boolean isNumber) { Label labelControl= new Label(composite, SWT.NONE); labelControl.setText(label); GridData gd= new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); gd.horizontalIndent= indentation; labelControl.setLayoutData(gd); Text textControl= new Text(composite, SWT.BORDER | SWT.SINGLE); gd= new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); gd.widthHint= convertWidthInCharsToPixels(textLimit + 1); textControl.setLayoutData(gd); textControl.setTextLimit(textLimit);
16,923
Bug 16923 Auto activation preference dialog
The auto activation characters and Timeout Text fields are enabled even when Auto activation itself is disabled. This was confusing to me because I thought that "." should cause automatic code assist, but it wasn't. Disabling the feature should disable the controls what modify the details for that feature.
verified fixed
7c12a6c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:48:10Z
2002-05-22T17:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
fTextFields.put(textControl, key); if (isNumber) { fNumberFields.add(textControl); textControl.addModifyListener(fNumberFieldListener); } else { textControl.addModifyListener(fTextFieldListener); } return composite; } private void addTextFontEditor(Composite parent, String label, String key) { Composite editorComposite= new Composite(parent, SWT.NONE); GridLayout layout= new GridLayout(); layout.numColumns= 3; editorComposite.setLayout(layout); fFontEditor= new WorkbenchChainedTextFontFieldEditor(key, label, editorComposite); fFontEditor.setChangeButtonText(JavaUIMessages.getString("JavaEditorPreferencePage.change")); GridData gd= new GridData(GridData.HORIZONTAL_ALIGN_FILL); gd.horizontalSpan= 2; editorComposite.setLayoutData(gd); } private String loadPreviewContentFromFile(String filename) { String line; String separator= System.getProperty("line.separator"); StringBuffer buffer= new StringBuffer(512); BufferedReader reader= null;
16,923
Bug 16923 Auto activation preference dialog
The auto activation characters and Timeout Text fields are enabled even when Auto activation itself is disabled. This was confusing to me because I thought that "." should cause automatic code assist, but it wasn't. Disabling the feature should disable the controls what modify the details for that feature.
verified fixed
7c12a6c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:48:10Z
2002-05-22T17:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
try { reader= new BufferedReader(new InputStreamReader(getClass().getResourceAsStream(filename))); while ((line= reader.readLine()) != null) { buffer.append(line); buffer.append(separator); } } catch (IOException io) { JavaPlugin.log(io); } finally { if (reader != null) { try { reader.close(); } catch (IOException e) {} } } return buffer.toString(); } private void numberFieldChanged(Text textControl) { String number= textControl.getText(); IStatus status= validatePositiveNumber(number); if (!status.matches(IStatus.ERROR)) fOverlayStore.setValue((String) fTextFields.get(textControl), number); updateStatus(status); } private IStatus validatePositiveNumber(String number) { StatusInfo status= new StatusInfo(); if (number.length() == 0) { status.setError(JavaUIMessages.getString("JavaEditorPreferencePage.empty_input")); } else { try {
16,923
Bug 16923 Auto activation preference dialog
The auto activation characters and Timeout Text fields are enabled even when Auto activation itself is disabled. This was confusing to me because I thought that "." should cause automatic code assist, but it wasn't. Disabling the feature should disable the controls what modify the details for that feature.
verified fixed
7c12a6c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:48:10Z
2002-05-22T17:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
int value= Integer.parseInt(number); if (value < 0) status.setError(JavaUIMessages.getFormattedString("JavaEditorPreferencePage.invalid_input", number)); } catch (NumberFormatException e) { status.setError(JavaUIMessages.getFormattedString("JavaEditorPreferencePage.invalid_input", number)); } } return status; } private void updateStatus(IStatus status) { if (!status.matches(IStatus.ERROR)) { for (int i= 0; i < fNumberFields.size(); i++) { Text text= (Text) fNumberFields.get(i); IStatus s= validatePositiveNumber(text.getText()); status= StatusUtil.getMoreSevere(s, status); } } setValid(!status.matches(IStatus.ERROR)); StatusUtil.applyToStatusLine(this, status); } public static boolean showTempProblems() { return JavaPlugin.getDefault().getPreferenceStore().getBoolean(JavaEditorPreferencePage.PREF_SHOW_TEMP_PROBLEMS); } static public boolean synchronizeOutlineOnCursorMove() { return JavaPlugin.getDefault().getPreferenceStore().getBoolean(PREF_SYNC_OUTLINE_ON_CURSOR_MOVE); } }
17,603
Bug 17603 Name Conflict dialog should be improved
Build F1 See attached picture. The problem is that that CU name including the .java is in quotes and that the user should enter a new name for it. Unfortunately . is not accepted in that name. We should use better wording.
verified fixed
9b02f77
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:50:38Z
2002-05-24T11:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/CopyQueries.java
package org.eclipse.jdt.internal.ui.reorg; import java.text.MessageFormat; import org.eclipse.core.resources.IResource; import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.OperationCanceledException; import org.eclipse.jface.dialogs.IInputValidator; import org.eclipse.jface.dialogs.InputDialog; import org.eclipse.jface.window.Window; import org.eclipse.jdt.core.ICompilationUnit; import org.eclipse.jdt.core.IJavaElement; import org.eclipse.jdt.core.IPackageFragment; import org.eclipse.jdt.core.IPackageFragmentRoot; import org.eclipse.jdt.core.JavaConventions; import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jdt.internal.corext.refactoring.Assert; import org.eclipse.jdt.internal.corext.refactoring.Checks; import org.eclipse.jdt.internal.corext.refactoring.base.RefactoringStatus; import org.eclipse.jdt.internal.corext.refactoring.rename.RenamePackageRefactoring; import org.eclipse.jdt.internal.corext.refactoring.reorg.ICopyQueries; import org.eclipse.jdt.internal.corext.refactoring.reorg.INewNameQuery; import org.eclipse.jdt.internal.ui.JavaPlugin; public class CopyQueries implements ICopyQueries {
17,603
Bug 17603 Name Conflict dialog should be improved
Build F1 See attached picture. The problem is that that CU name including the .java is in quotes and that the user should enter a new name for it. Unfortunately . is not accepted in that name. We should use better wording.
verified fixed
9b02f77
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:50:38Z
2002-05-24T11:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/CopyQueries.java
private static final String EMPTY= " "; public CopyQueries() { } private static String removeTrailingJava(String name) { Assert.isTrue(name.endsWith(".java")); return name.substring(0, name.length() - ".java".length()); } public INewNameQuery createNewCompilationUnitNameQuery(ICompilationUnit cu) { String key= "Enter a new name for ''{0}''"; String message= MessageFormat.format(key, new String[]{cu.getElementName()}); return createStaticQuery(createCompilationUnitNameValidator(cu), message, removeTrailingJava(cu.getElementName())); } public INewNameQuery createNewResourceNameQuery(IResource res) { String key= "Enter a new name for ''{0}''"; String message= MessageFormat.format(key, new String[]{ res.getName()}); return createStaticQuery(createResourceNameValidator(res), message, res.getName()); } public INewNameQuery createNewPackageNameQuery(IPackageFragment pack) { String key= "Enter a new name for ''{0}''"; String message= MessageFormat.format(key, new String[]{pack.getElementName()}); return createStaticQuery(createPackageNameValidator(pack), message, pack.getElementName()); } public INewNameQuery createNullQuery(){ return createStaticQuery(null); } public INewNameQuery createStaticQuery(final String newName){
17,603
Bug 17603 Name Conflict dialog should be improved
Build F1 See attached picture. The problem is that that CU name including the .java is in quotes and that the user should enter a new name for it. Unfortunately . is not accepted in that name. We should use better wording.
verified fixed
9b02f77
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:50:38Z
2002-05-24T11:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/CopyQueries.java
return new INewNameQuery(){ public String getNewName() { return newName; } }; } private static INewNameQuery createStaticQuery(final IInputValidator validator, final String message, final String initial){ return new INewNameQuery(){ public String getNewName() { InputDialog dialog= new InputDialog(JavaPlugin.getActiveWorkbenchShell(), "Name Conflict", message, initial, validator); if (dialog.open() == Window.CANCEL) throw new OperationCanceledException(); return dialog.getValue(); } }; } private static IInputValidator createResourceNameValidator(final IResource res){ IInputValidator validator= new IInputValidator(){ public String isValid(String newText) { if (newText == null || "".equals(newText) || res.getParent() == null) return EMPTY; if (res.getParent().findMember(newText) != null) return "Resource with this name already exists"; if (! res.getParent().getFullPath().isValidSegment(newText)) return "Invalid name"; IStatus status= res.getParent().getWorkspace().validateName(newText, res.getType()); if (status.getSeverity() == IStatus.ERROR) return status.getMessage(); if (res.getName().equalsIgnoreCase(newText))
17,603
Bug 17603 Name Conflict dialog should be improved
Build F1 See attached picture. The problem is that that CU name including the .java is in quotes and that the user should enter a new name for it. Unfortunately . is not accepted in that name. We should use better wording.
verified fixed
9b02f77
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:50:38Z
2002-05-24T11:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/CopyQueries.java
return "Resource exists with different case"; return null; } }; return validator; } private static IInputValidator createCompilationUnitNameValidator(final ICompilationUnit cu) { IInputValidator validator= new IInputValidator(){ public String isValid(String newText) { if (newText == null || "".equals(newText)) return EMPTY; String newCuName= newText + ".java"; IStatus status= JavaConventions.validateCompilationUnitName(newCuName); if (status.getSeverity() == IStatus.ERROR) return status.getMessage(); RefactoringStatus refStatus; try { refStatus= Checks.checkCompilationUnitNewName(cu, newText); } catch (JavaModelException e) { return EMPTY; } if (refStatus.hasFatalError()) return refStatus.getFirstMessage(RefactoringStatus.FATAL); if (cu.getElementName().equalsIgnoreCase(newCuName)) return "Resource exists with different case"; return null; } };
17,603
Bug 17603 Name Conflict dialog should be improved
Build F1 See attached picture. The problem is that that CU name including the .java is in quotes and that the user should enter a new name for it. Unfortunately . is not accepted in that name. We should use better wording.
verified fixed
9b02f77
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T10:50:38Z
2002-05-24T11:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/CopyQueries.java
return validator; } private static IInputValidator createPackageNameValidator(final IPackageFragment pack) { IInputValidator validator= new IInputValidator(){ public String isValid(String newText) { if (newText == null || "".equals(newText)) return EMPTY; IStatus status= JavaConventions.validatePackageName(newText); if (status.getSeverity() == IStatus.ERROR) return status.getMessage(); IJavaElement parent= pack.getParent(); try { if (parent instanceof IPackageFragmentRoot){ if (! RenamePackageRefactoring.isPackageNameOkInRoot(newText, (IPackageFragmentRoot)parent)) return "Package with that name exists"; } } catch (JavaModelException e) { return EMPTY; } if (pack.getElementName().equalsIgnoreCase(newText)) return "Resource exists with different case"; return null; } }; return validator; } }
16,265
Bug 16265 Disable empty refactor menu in context menu
Build 20020515 - select default package - open context menu
verified fixed
60c5bde
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T11:02:11Z
2002-05-17T15:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/RefactorActionGroup.java
/******************************************************************************* * Copyright (c) 2002 International Business Machines Corp. and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v0.5 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/cpl-v05.html *
16,265
Bug 16265 Disable empty refactor menu in context menu
Build 20020515 - select default package - open context menu
verified fixed
60c5bde
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T11:02:11Z
2002-05-17T15:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/RefactorActionGroup.java
* Contributors: * IBM Corporation - initial API and implementation ******************************************************************************/ package org.eclipse.jdt.ui.actions; import org.eclipse.jface.action.IAction; import org.eclipse.jface.action.IMenuManager; import org.eclipse.jface.action.MenuManager; import org.eclipse.jface.action.Separator; import org.eclipse.jface.viewers.ISelection; import org.eclipse.jface.viewers.ISelectionChangedListener; import org.eclipse.jface.viewers.ISelectionProvider; import org.eclipse.ui.IActionBars; import org.eclipse.ui.IViewPart; import org.eclipse.ui.IWorkbenchSite; import org.eclipse.ui.actions.ActionGroup; import org.eclipse.ui.part.Page; import org.eclipse.jdt.ui.IContextMenuConstants; import org.eclipse.jdt.internal.ui.actions.ActionMessages; import org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor; /** * Action group that adds refactor actions (e.g. Rename..., Move..., etc.) * to a context menu and the global menu bar. * * <p> * This class may be instantiated; it is not intended to be subclassed. * </p> * * @since 2.0 */ public class RefactorActionGroup extends ActionGroup {
16,265
Bug 16265 Disable empty refactor menu in context menu
Build 20020515 - select default package - open context menu
verified fixed
60c5bde
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T11:02:11Z
2002-05-17T15:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/RefactorActionGroup.java
private IWorkbenchSite fSite; private boolean fIsEditorOwner; private String fGroupName= IContextMenuConstants.GROUP_REORGANIZE; private SelectionDispatchAction fSelfEncapsulateField; private SelectionDispatchAction fMoveAction; private SelectionDispatchAction fRenameAction; private SelectionDispatchAction fModifyParametersAction; private SelectionDispatchAction fPullUpAction; private SelectionDispatchAction fInlineTempAction; private SelectionDispatchAction fExtractTempAction; private SelectionDispatchAction fExtractMethodAction; /** * Creates a new <code>RefactorActionGroup</code>. * * @param part the view part that owns this action group */ public RefactorActionGroup(IViewPart part) { this(part.getSite()); } /** * Creates a new <code>RefactorActionGroup</code>. * * @param page the page that owns this action group */ public RefactorActionGroup(Page page) { this(page.getSite());
16,265
Bug 16265 Disable empty refactor menu in context menu
Build 20020515 - select default package - open context menu
verified fixed
60c5bde
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T11:02:11Z
2002-05-17T15:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/RefactorActionGroup.java
} /** * Creates a new <code>RefactorActionGroup</code>. * <p> * Note: This constructor is for internal use only. Clients should not call this constructor. * </p> * * @param editor the editor that owns this action group */ public RefactorActionGroup(CompilationUnitEditor editor, String groupName) { fSite= editor.getEditorSite(); fIsEditorOwner= true; fGroupName= groupName; ISelectionProvider provider= editor.getSelectionProvider(); ISelection selection= provider.getSelection(); fRenameAction= new RenameAction(editor); fRenameAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.RENAME_ELEMENT); fRenameAction.update(selection); editor.setAction("RenameElement", fRenameAction); fSelfEncapsulateField= new SelfEncapsulateFieldAction(editor); fSelfEncapsulateField.setActionDefinitionId(IJavaEditorActionDefinitionIds.SELF_ENCAPSULATE_FIELD); fSelfEncapsulateField.update(selection); editor.setAction("SelfEncapsulateField", fSelfEncapsulateField); fModifyParametersAction= new ModifyParametersAction(editor); fModifyParametersAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.MODIFY_METHOD_PARAMETERS); fModifyParametersAction.update(selection);
16,265
Bug 16265 Disable empty refactor menu in context menu
Build 20020515 - select default package - open context menu
verified fixed
60c5bde
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T11:02:11Z
2002-05-17T15:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/RefactorActionGroup.java
editor.setAction("ModifyParameters", fModifyParametersAction); fPullUpAction= new PullUpAction(editor); fPullUpAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.PULL_UP); fPullUpAction.update(selection); editor.setAction("PullUp", fPullUpAction); fMoveAction= new MoveAction(editor); fMoveAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.MOVE_ELEMENT); fMoveAction.update(selection); editor.setAction("MoveElement", fMoveAction); fInlineTempAction= new InlineTempAction(editor); fInlineTempAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.INLINE_LOCAL_VARIABLE); fInlineTempAction.update(selection); editor.setAction("InlineLocalVariable", fInlineTempAction); fExtractTempAction= new ExtractTempAction(editor); fExtractTempAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.EXTRACT_LOCAL_VARIABLE); initAction(fExtractTempAction, provider, selection); editor.setAction("ExtractLocalVariable", fExtractTempAction); fExtractMethodAction= new ExtractMethodAction(editor); fExtractMethodAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.EXTRACT_METHOD); initAction(fExtractMethodAction, provider, selection); editor.setAction("ExtractMethod", fExtractMethodAction); } private RefactorActionGroup(IWorkbenchSite site) { fSite= site; fIsEditorOwner= false; ISelectionProvider provider= fSite.getSelectionProvider(); ISelection selection= provider.getSelection();
16,265
Bug 16265 Disable empty refactor menu in context menu
Build 20020515 - select default package - open context menu
verified fixed
60c5bde
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T11:02:11Z
2002-05-17T15:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/RefactorActionGroup.java
fMoveAction= new MoveAction(site); initAction(fMoveAction, provider, selection); fRenameAction= new RenameAction(site); initAction(fRenameAction, provider, selection); fModifyParametersAction= new ModifyParametersAction(fSite); initAction(fModifyParametersAction, provider, selection); fPullUpAction= new PullUpAction(fSite); initAction(fPullUpAction, provider, selection); fSelfEncapsulateField= new SelfEncapsulateFieldAction(fSite); initAction(fSelfEncapsulateField, provider, selection); } private static void initAction(SelectionDispatchAction action, ISelectionProvider provider, ISelection selection){ action.update(selection); provider.addSelectionChangedListener(action); }; private boolean isEditorOwner() { return fIsEditorOwner; } /* (non-Javadoc) * Method declared in ActionGroup */ public void fillActionBars(IActionBars actionBars) { super.fillActionBars(actionBars);
16,265
Bug 16265 Disable empty refactor menu in context menu
Build 20020515 - select default package - open context menu
verified fixed
60c5bde
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T11:02:11Z
2002-05-17T15:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/RefactorActionGroup.java
actionBars.setGlobalActionHandler(JdtActionConstants.SELF_ENCAPSULATE_FIELD, fSelfEncapsulateField); actionBars.setGlobalActionHandler(JdtActionConstants.MOVE, fMoveAction); actionBars.setGlobalActionHandler(JdtActionConstants.RENAME, fRenameAction); actionBars.setGlobalActionHandler(JdtActionConstants.MODIFY_PARAMETERS, fModifyParametersAction); actionBars.setGlobalActionHandler(JdtActionConstants.PULL_UP, fPullUpAction); actionBars.setGlobalActionHandler(JdtActionConstants.INLINE_TEMP, fInlineTempAction); actionBars.setGlobalActionHandler(JdtActionConstants.EXTRACT_TEMP, fExtractTempAction); actionBars.setGlobalActionHandler(JdtActionConstants.EXTRACT_METHOD, fExtractMethodAction); } /* (non-Javadoc) * Method declared in ActionGroup */ public void fillContextMenu(IMenuManager menu) { super.fillContextMenu(menu); addRefactorSubmenu(menu); } /* * @see ActionGroup#dispose() */ public void dispose() { ISelectionProvider provider= fSite.getSelectionProvider(); disposeAction(fSelfEncapsulateField, provider); disposeAction(fMoveAction, provider); disposeAction(fRenameAction, provider); disposeAction(fModifyParametersAction, provider); disposeAction(fPullUpAction, provider); disposeAction(fInlineTempAction, provider); disposeAction(fExtractTempAction, provider);
16,265
Bug 16265 Disable empty refactor menu in context menu
Build 20020515 - select default package - open context menu
verified fixed
60c5bde
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T11:02:11Z
2002-05-17T15:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/RefactorActionGroup.java
disposeAction(fExtractMethodAction, provider); super.dispose(); } private void disposeAction(ISelectionChangedListener action, ISelectionProvider provider) { if (action != null) provider.removeSelectionChangedListener(action); } private void addRefactorSubmenu(IMenuManager menu) { IMenuManager refactorSubmenu= new MenuManager(ActionMessages.getString("RefactorMenu.label")); addAction(refactorSubmenu, fRenameAction); addAction(refactorSubmenu, fMoveAction); addAction(refactorSubmenu, fPullUpAction); addAction(refactorSubmenu, fModifyParametersAction); refactorSubmenu.add(new Separator()); addAction(refactorSubmenu, fExtractMethodAction); addAction(refactorSubmenu, fExtractTempAction); addAction(refactorSubmenu, fInlineTempAction); addAction(refactorSubmenu, fSelfEncapsulateField); if (!refactorSubmenu.isEmpty()) menu.appendToGroup(fGroupName, refactorSubmenu); } private void addAction(IMenuManager menu, IAction action) { if (action != null && action.isEnabled()) menu.add(action); } }
18,015
Bug 18015 NPE in structured selection if file opened from repo
F1 1. repository view - open a java file 2. use structured selection java.lang.NullPointerException at org.eclipse.jdt.internal.ui.javaeditor.structureselection.StructureSelectionActi on.getNewSelectionRange(StructureSelectionAction.java:68) at org.eclipse.jdt.internal.ui.javaeditor.structureselection.StructureSelectionActi on.run(StructureSelectionAction.java:53) at org.eclipse.ui.texteditor.RetargetTextEditorAction.run (RetargetTextEditorAction.java:127) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) 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:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24)
verified fixed
f8bcbf5
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T13:33:19Z
2002-05-28T10:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/structureselection/StructureSelectHistoryAction.java
package org.eclipse.jdt.internal.ui.javaeditor.structureselection; import org.eclipse.jface.action.Action; import org.eclipse.jface.util.Assert; import org.eclipse.ui.texteditor.IUpdate; import org.eclipse.jdt.core.ISourceRange; import org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor; import org.eclipse.jdt.internal.ui.javaeditor.JavaEditorMessages; public class StructureSelectHistoryAction extends Action implements IUpdate { private CompilationUnitEditor fEditor;
18,015
Bug 18015 NPE in structured selection if file opened from repo
F1 1. repository view - open a java file 2. use structured selection java.lang.NullPointerException at org.eclipse.jdt.internal.ui.javaeditor.structureselection.StructureSelectionActi on.getNewSelectionRange(StructureSelectionAction.java:68) at org.eclipse.jdt.internal.ui.javaeditor.structureselection.StructureSelectionActi on.run(StructureSelectionAction.java:53) at org.eclipse.ui.texteditor.RetargetTextEditorAction.run (RetargetTextEditorAction.java:127) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) 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:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24)
verified fixed
f8bcbf5
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T13:33:19Z
2002-05-28T10:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/structureselection/StructureSelectHistoryAction.java
private SelectionHistory fHistory; public StructureSelectHistoryAction(CompilationUnitEditor editor, SelectionHistory history) { super(JavaEditorMessages.getString("StructureSelectHistory.label")); setToolTipText(JavaEditorMessages.getString("StructureSelectHistory.tooltip")); setDescription(JavaEditorMessages.getString("StructureSelectHistory.description")); Assert.isNotNull(history); Assert.isNotNull(editor); fHistory= history; fEditor= editor; update(); } public void update() { setEnabled(!fHistory.isEmpty()); } public void run() { ISourceRange old= fHistory.getLast(); if (old != null) { try { fHistory.ignoreSelectionChanges(); fEditor.selectAndReveal(old.getOffset(), old.getLength()); } finally { fHistory.listenToSelectionChanges(); } } } }
18,015
Bug 18015 NPE in structured selection if file opened from repo
F1 1. repository view - open a java file 2. use structured selection java.lang.NullPointerException at org.eclipse.jdt.internal.ui.javaeditor.structureselection.StructureSelectionActi on.getNewSelectionRange(StructureSelectionAction.java:68) at org.eclipse.jdt.internal.ui.javaeditor.structureselection.StructureSelectionActi on.run(StructureSelectionAction.java:53) at org.eclipse.ui.texteditor.RetargetTextEditorAction.run (RetargetTextEditorAction.java:127) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) 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:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24)
verified fixed
f8bcbf5
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-28T13:33:19Z
2002-05-28T10:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/structureselection/StructureSelectionAction.java
package org.eclipse.jdt.internal.ui.javaeditor.structureselection; import java.util.Collection; import org.eclipse.jface.action.Action; import org.eclipse.jface.text.ITextSelection; import org.eclipse.jface.util.Assert; import org.eclipse.jdt.core.ICompilationUnit; import org.eclipse.jdt.core.ISourceRange; import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jdt.core.dom.AST; import org.eclipse.jdt.core.dom.ASTNode; import org.eclipse.jdt.core.dom.Block; import org.eclipse.jdt.core.dom.CompilationUnit; import org.eclipse.jdt.core.dom.TypeDeclaration; import org.eclipse.jdt.internal.corext.SourceRange; import org.eclipse.jdt.internal.corext.dom.Selection; import org.eclipse.jdt.internal.ui.JavaPlugin; import org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor; public abstract class StructureSelectionAction extends Action { public static final String NEXT= "SelectNextElement"; public static final String PREVIOUS= "SelectPreviousElement";