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
6,295
Bug 6295 File "save as" bug, new file is read-only
Environment: 0.137 driver on Windows NT 4.0 SP6a 1. Create a Java project and package 2. Create a Java class called "Test" in the project/package created in '1.' above. 3. Edit the "Test" class by adding a comment. 4. Select the "Test" class, the 'File' menu, 'Save Test.java As...', and save as a different file name. Y...
verified fixed
6af7848
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T08:56:28Z
2001-11-26T04:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
if (currentDistance < 0) currentDistance= offset + endOfDocument - p.getOffset(); } if (nextError == null || currentDistance < distance) { distance= currentDistance; nextError= a; nextErrorPosition= p; } } } if (nextErrorPosition != null) { errorPosition.se...
6,295
Bug 6295 File "save as" bug, new file is read-only
Environment: 0.137 driver on Windows NT 4.0 SP6a 1. Create a Java project and package 2. Create a Java class called "Test" in the project/package created in '1.' above. 3. Edit the "Test" class by adding a comment. 4. Select the "Test" class, the 'File' menu, 'Save Test.java As...', and save as a different file name. Y...
verified fixed
6af7848
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T08:56:28Z
2001-11-26T04:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
protected IPackageFragment getPackage(IWorkspaceRoot root, IPath path) { if (path.segmentCount() == 1) { IProject project= root.getProject(path.toString()); if (project != null) { IJavaProject jProject= JavaCore.create(project); if (jProject != null) { try { IJavaElement element= jPr...
6,295
Bug 6295 File "save as" bug, new file is read-only
Environment: 0.137 driver on Windows NT 4.0 SP6a 1. Create a Java project and package 2. Create a Java class called "Test" in the project/package created in '1.' above. 3. Edit the "Test" class by adding a comment. 4. Select the "Test" class, the 'File' menu, 'Save Test.java As...', and save as a different file name. Y...
verified fixed
6af7848
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T08:56:28Z
2001-11-26T04:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
IJavaElement element= JavaCore.create(folder); if (element instanceof IPackageFragment) return (IPackageFragment) element; } return null; } /* * 1GEUSSR: ITPUI:ALL - User should never loose changes made in the editors. * Changed behavior to make sure that if called inside a regular save (because ...
6,295
Bug 6295 File "save as" bug, new file is read-only
Environment: 0.137 driver on Windows NT 4.0 SP6a 1. Create a Java project and package 2. Create a Java class called "Test" in the project/package created in '1.' above. 3. Edit the "Test" class by adding a comment. 4. Select the "Test" class, the 'File' menu, 'Save Test.java As...', and save as a different file name. Y...
verified fixed
6af7848
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T08:56:28Z
2001-11-26T04:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
return; } IPath filePath= dialog.getResult(); if (filePath == null) { if (progressMonitor != null) progressMonitor.setCanceled(true); return; } filePath= filePath.removeTrailingSeparator(); final String fileName= filePath.lastSegment(); IPath folderPath= filePath.removeLastSegments(1); ...
6,295
Bug 6295 File "save as" bug, new file is read-only
Environment: 0.137 driver on Windows NT 4.0 SP6a 1. Create a Java project and package 2. Create a Java class called "Test" in the project/package created in '1.' above. 3. Edit the "Test" class by adding a comment. 4. Select the "Test" class, the 'File' menu, 'Save Test.java As...', and save as a different file name. Y...
verified fixed
6af7848
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T08:56:28Z
2001-11-26T04:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
* Will be removed if #9351 is solved. */ if (original != null && original.equals(file) && original.exists()) { doSave(progressMonitor); return; } final FileEditorInput newInput= new FileEditorInput(file); final boolean originalExists= original.exists(); WorkspaceModifyOperation op= new Works...
6,295
Bug 6295 File "save as" bug, new file is read-only
Environment: 0.137 driver on Windows NT 4.0 SP6a 1. Create a Java project and package 2. Create a Java class called "Test" in the project/package created in '1.' above. 3. Edit the "Test" class by adding a comment. 4. Select the "Test" class, the 'File' menu, 'Save Test.java As...', and save as a different file name. Y...
verified fixed
6af7848
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T08:56:28Z
2001-11-26T04:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
return; } } /* * 1GF5YOX: ITPJUI:ALL - Save of delete file claims it's still there * Changed false to true. */ getDocumentProvider().saveDocument(monitor, newInput, getDocumentProvider().getDocument(getEditorInput()), true); } }; boolean success= fal...
6,295
Bug 6295 File "save as" bug, new file is read-only
Environment: 0.137 driver on Windows NT 4.0 SP6a 1. Create a Java project and package 2. Create a Java class called "Test" in the project/package created in '1.' above. 3. Edit the "Test" class by adding a comment. 4. Select the "Test" class, the 'File' menu, 'Save Test.java As...', and save as a different file name. Y...
verified fixed
6af7848
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T08:56:28Z
2001-11-26T04:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
* 1GF5YOX: ITPJUI:ALL - Save of delete file claims it's still there * Missing resources. */ Throwable t= x.getTargetException(); if (t instanceof CoreException) { CoreException cx= (CoreException) t; ErrorDialog.openError(shell, JavaEditorMessages.getString("CompilationUnitEditor.error.savin...
6,295
Bug 6295 File "save as" bug, new file is read-only
Environment: 0.137 driver on Windows NT 4.0 SP6a 1. Create a Java project and package 2. Create a Java class called "Test" in the project/package created in '1.' above. 3. Edit the "Test" class by adding a comment. 4. Select the "Test" class, the 'File' menu, 'Save Test.java As...', and save as a different file name. Y...
verified fixed
6af7848
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T08:56:28Z
2001-11-26T04:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
if (fBracketPainter == null) { ISourceViewer sourceViewer= getSourceViewer(); fBracketPainter= new BracketPainter(sourceViewer); fBracketPainter.setHighlightColor(getColor(MATCHING_BRACKETS_COLOR)); fPaintManager.addPainter(fBracketPainter); } } private void stopBracketHighlighting() { if (fBracketP...
6,295
Bug 6295 File "save as" bug, new file is read-only
Environment: 0.137 driver on Windows NT 4.0 SP6a 1. Create a Java project and package 2. Create a Java class called "Test" in the project/package created in '1.' above. 3. Edit the "Test" class by adding a comment. 4. Select the "Test" class, the 'File' menu, 'Save Test.java As...', and save as a different file name. Y...
verified fixed
6af7848
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T08:56:28Z
2001-11-26T04:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
private void stopLineHighlighting() { if (fLinePainter != null) { fPaintManager.removePainter(fLinePainter); fLinePainter.deactivate(true); fLinePainter.dispose(); fLinePainter= null; } } private boolean isLineHighlightingEnabled() { IPreferenceStore store= getPreferenceStore(); return store.get...
6,295
Bug 6295 File "save as" bug, new file is read-only
Environment: 0.137 driver on Windows NT 4.0 SP6a 1. Create a Java project and package 2. Create a Java class called "Test" in the project/package created in '1.' above. 3. Edit the "Test" class by adding a comment. 4. Select the "Test" class, the 'File' menu, 'Save Test.java As...', and save as a different file name. Y...
verified fixed
6af7848
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T08:56:28Z
2001-11-26T04:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
} } private boolean isPrintMarginVisible() { IPreferenceStore store= getPreferenceStore(); return store.getBoolean(PRINT_MARGIN); } private void startProblemIndication() { if (fProblemPainter == null) { fProblemPainter= new ProblemPainter(this, getSourceViewer()); fProblemPainter.setHighlightColor(g...
6,295
Bug 6295 File "save as" bug, new file is read-only
Environment: 0.137 driver on Windows NT 4.0 SP6a 1. Create a Java project and package 2. Create a Java class called "Test" in the project/package created in '1.' above. 3. Edit the "Test" class by adding a comment. 4. Select the "Test" class, the 'File' menu, 'Save Test.java As...', and save as a different file name. Y...
verified fixed
6af7848
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T08:56:28Z
2001-11-26T04:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
private void configureTabConverter() { if (fTabConverter != null) { IDocumentProvider provider= getDocumentProvider(); if (provider instanceof CompilationUnitDocumentProvider) { CompilationUnitDocumentProvider cup= (CompilationUnitDocumentProvider) provider; fTabConverter.setLineTracker(cup.createLineTr...
6,295
Bug 6295 File "save as" bug, new file is read-only
Environment: 0.137 driver on Windows NT 4.0 SP6a 1. Create a Java project and package 2. Create a Java class called "Test" in the project/package created in '1.' above. 3. Edit the "Test" class by adding a comment. 4. Select the "Test" class, the 'File' menu, 'Save Test.java As...', and save as a different file name. Y...
verified fixed
6af7848
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T08:56:28Z
2001-11-26T04:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
} } private boolean isTabConversionEnabled() { IPreferenceStore store= getPreferenceStore(); return store.getBoolean(SPACES_FOR_TABS); } private void showOverviewRuler() { AdaptedSourceViewer asv= (AdaptedSourceViewer) getSourceViewer(); asv.showOverviewRuler(); } private void hideOverviewRuler() { ...
6,295
Bug 6295 File "save as" bug, new file is read-only
Environment: 0.137 driver on Windows NT 4.0 SP6a 1. Create a Java project and package 2. Create a Java class called "Test" in the project/package created in '1.' above. 3. Edit the "Test" class by adding a comment. 4. Select the "Test" class, the 'File' menu, 'Save Test.java As...', and save as a different file name. Y...
verified fixed
6af7848
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T08:56:28Z
2001-11-26T04:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
return textTools.getColorManager().getColor(rgb); } /* * @see AbstractTextEditor#dispose() */ public void dispose() { if (fPropertyChangeListener != null) { Preferences preferences= JavaCore.getPlugin().getPluginPreferences(); preferences.removePropertyChangeListener(fPropertyChangeListener); fPrope...
6,295
Bug 6295 File "save as" bug, new file is read-only
Environment: 0.137 driver on Windows NT 4.0 SP6a 1. Create a Java project and package 2. Create a Java class called "Test" in the project/package created in '1.' above. 3. Edit the "Test" class by adding a comment. 4. Select the "Test" class, the 'File' menu, 'Save Test.java As...', and save as a different file name. Y...
verified fixed
6af7848
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T08:56:28Z
2001-11-26T04:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
fActionGroups.dispose(); super.dispose(); } /* * @see AbstractTextEditor#createPartControl(Composite) */ public void createPartControl(Composite parent) { super.createPartControl(parent); fPaintManager= new PaintManager(getSourceViewer()); if (isBracketHighlightingEnabled()) startBracketHigh...
6,295
Bug 6295 File "save as" bug, new file is read-only
Environment: 0.137 driver on Windows NT 4.0 SP6a 1. Create a Java project and package 2. Create a Java class called "Test" in the project/package created in '1.' above. 3. Edit the "Test" class by adding a comment. 4. Select the "Test" class, the 'File' menu, 'Save Test.java As...', and save as a different file name. Y...
verified fixed
6af7848
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T08:56:28Z
2001-11-26T04:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
protected void handlePreferenceStoreChanged(PropertyChangeEvent event) { try { AdaptedSourceViewer asv= (AdaptedSourceViewer) getSourceViewer(); if (asv != null) { String p= event.getProperty(); if (SPACES_FOR_TABS.equals(p)) { if (isTabConversionEnabled()) startTabConvers...
6,295
Bug 6295 File "save as" bug, new file is read-only
Environment: 0.137 driver on Windows NT 4.0 SP6a 1. Create a Java project and package 2. Create a Java class called "Test" in the project/package created in '1.' above. 3. Edit the "Test" class by adding a comment. 4. Select the "Test" class, the 'File' menu, 'Save Test.java As...', and save as a different file name. Y...
verified fixed
6af7848
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T08:56:28Z
2001-11-26T04:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
if (CURRENT_LINE.equals(p)) { if (isLineHighlightingEnabled()) startLineHighlighting(); else stopLineHighlighting(); return; } if (CURRENT_LINE_COLOR.equals(p)) { if (fLinePainter != null) { stopLineHighlighting(); startLineHighlighting(); } return...
6,295
Bug 6295 File "save as" bug, new file is read-only
Environment: 0.137 driver on Windows NT 4.0 SP6a 1. Create a Java project and package 2. Create a Java class called "Test" in the project/package created in '1.' above. 3. Edit the "Test" class by adding a comment. 4. Select the "Test" class, the 'File' menu, 'Save Test.java As...', and save as a different file name. Y...
verified fixed
6af7848
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T08:56:28Z
2001-11-26T04:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
if (PRINT_MARGIN_COLUMN.equals(p)) { if (fPrintMarginPainter != null) fPrintMarginPainter.setMarginRulerColumn(getPreferenceStore().getInt(PRINT_MARGIN_COLUMN)); return; } if (PROBLEM_INDICATION.equals(p)) { if (isProblemIndicationEnabled()) startProblemIndication(); else ...
6,295
Bug 6295 File "save as" bug, new file is read-only
Environment: 0.137 driver on Windows NT 4.0 SP6a 1. Create a Java project and package 2. Create a Java class called "Test" in the project/package created in '1.' above. 3. Edit the "Test" class by adding a comment. 4. Select the "Test" class, the 'File' menu, 'Save Test.java As...', and save as a different file name. Y...
verified fixed
6af7848
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T08:56:28Z
2001-11-26T04:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
if (c instanceof ContentAssistant) ContentAssistPreference.changeConfiguration((ContentAssistant) c, getPreferenceStore(), event); } } finally { super.handlePreferenceStoreChanged(event); } } /** * Handles a property change event describing a change * of the java core's preferences and updates...
6,295
Bug 6295 File "save as" bug, new file is read-only
Environment: 0.137 driver on Windows NT 4.0 SP6a 1. Create a Java project and package 2. Create a Java class called "Test" in the project/package created in '1.' above. 3. Edit the "Test" class by adding a comment. 4. Select the "Test" class, the 'File' menu, 'Save Test.java As...', and save as a different file name. Y...
verified fixed
6af7848
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T08:56:28Z
2001-11-26T04:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
/* * @see AbstractTextEditor#affectsTextPresentation(PropertyChangeEvent) */ protected boolean affectsTextPresentation(PropertyChangeEvent event) { String p= event.getProperty(); boolean affects=MATCHING_BRACKETS_COLOR.equals(p) || CURRENT_LINE_COLOR.equals(p) || PROBLEM_INDICATION_COLOR....
6,295
Bug 6295 File "save as" bug, new file is read-only
Environment: 0.137 driver on Windows NT 4.0 SP6a 1. Create a Java project and package 2. Create a Java class called "Test" in the project/package created in '1.' above. 3. Edit the "Test" class by adding a comment. 4. Select the "Test" class, the 'File' menu, 'Save Test.java As...', and save as a different file name. Y...
verified fixed
6af7848
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T08:56:28Z
2001-11-26T04:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
if (sourceViewer == null || fOutlinePage == null) return; StyledText styledText= sourceViewer.getTextWidget(); if (styledText == null) return; int offset= sourceViewer.getVisibleRegion().getOffset(); int caret= offset + styledText.getCaretOffset(); IJavaElement element= getElementAt(caret, fal...
6,295
Bug 6295 File "save as" bug, new file is read-only
Environment: 0.137 driver on Windows NT 4.0 SP6a 1. Create a Java project and package 2. Create a Java class called "Test" in the project/package created in '1.' above. 3. Edit the "Test" class by adding a comment. 4. Select the "Test" class, the 'File' menu, 'Save Test.java As...', and save as a different file name. Y...
verified fixed
6af7848
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T08:56:28Z
2001-11-26T04:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
} if (srcRange != null && srcRange.getOffset() == offset) return container; } return (ISourceReference) element; } /* * @see IReconcilingParticipant#reconciled() */ public void reconciled() { if (!JavaEditorPreferencePage.synchronizeOutlineOnCursorMove()) { Shell shell= getSite().getShe...
19,367
Bug 19367 Generate Getter and Setter dialog for final fields takes the wrong action
As of F2, when generating a getters and setters for final fields, a dialog asks if it's "OK to only create getter". The options are Yes, Yes to All, No, and Cancel. It looks like selecting "Yes to All" actually acts like No (i.e. the setter gets created), and vice versa.
verified fixed
24939f0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:03Z
2002-06-05T15:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/AddMethodStubAction.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.actions; import java.lang.reflect.InvocationTargetException; import java.util.List; import org.eclipse.core.runtime.CoreException; import org.eclipse.swt.widgets.Shell; import org.eclipse.jface.action.Action; impor...
19,367
Bug 19367 Generate Getter and Setter dialog for final fields takes the wrong action
As of F2, when generating a getters and setters for final fields, a dialog asks if it's "OK to only create getter". The options are Yes, Yes to All, No, and Cancel. It looks like selecting "Yes to All" actually acts like No (i.e. the setter gets created), and vice versa.
verified fixed
24939f0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:03Z
2002-06-05T15:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/AddMethodStubAction.java
import org.eclipse.jface.dialogs.IDialogConstants; import org.eclipse.jface.dialogs.MessageDialog; import org.eclipse.jface.dialogs.ProgressMonitorDialog; import org.eclipse.jface.viewers.ISelection; import org.eclipse.jface.viewers.IStructuredSelection; import org.eclipse.ui.IEditorPart; import org.eclipse.ui.help.Wor...
19,367
Bug 19367 Generate Getter and Setter dialog for final fields takes the wrong action
As of F2, when generating a getters and setters for final fields, a dialog asks if it's "OK to only create getter". The options are Yes, Yes to All, No, and Cancel. It looks like selecting "Yes to All" actually acts like No (i.e. the setter gets created), and vice versa.
verified fixed
24939f0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:03Z
2002-06-05T15:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/AddMethodStubAction.java
private ISelection fSelection; private IType fParentType; public AddMethodStubAction() { super(JavaUIMessages.getString("AddMethodStubAction.label")); setDescription(JavaUIMessages.getString("AddMethodStubAction.description")); setToolTipText(JavaUIMessages.getString("AddMethodStubAction.tooltip")); Wor...
19,367
Bug 19367 Generate Getter and Setter dialog for final fields takes the wrong action
As of F2, when generating a getters and setters for final fields, a dialog asks if it's "OK to only create getter". The options are Yes, Yes to All, No, and Cancel. It looks like selecting "Yes to All" actually acts like No (i.e. the setter gets created), and vice versa.
verified fixed
24939f0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:03Z
2002-06-05T15:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/AddMethodStubAction.java
return true; } fParentType= null; fSelection= null; return false; } public void run() { if (!canActionBeAdded(fParentType, fSelection)) { return; } Shell shell= JavaPlugin.getActiveWorkbenchShell(); try { IEditorPart editor= EditorUtility.openInEditor(fParentType); IType usedType= (...
19,367
Bug 19367 Generate Getter and Setter dialog for final fields takes the wrong action
As of F2, when generating a getters and setters for final fields, a dialog asks if it's "OK to only create getter". The options are Yes, Yes to All, No, and Cancel. It looks like selecting "Yes to All" actually acts like No (i.e. the setter gets created), and vice versa.
verified fixed
24939f0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:03Z
2002-06-05T15:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/AddMethodStubAction.java
EditorUtility.revealInEditor(editor, res[0]); } } catch (InvocationTargetException e) { ExceptionHandler.handle(e, shell, JavaUIMessages.getString("AddMethodStubAction.error.title"), null); } catch (CoreException e) { ExceptionHandler.handle(e, shell, JavaUIMessages.getString("AddMethodStubAction.error.ti...
19,367
Bug 19367 Generate Getter and Setter dialog for final fields takes the wrong action
As of F2, when generating a getters and setters for final fields, a dialog asks if it's "OK to only create getter". The options are Yes, Yes to All, No, and Cancel. It looks like selecting "Yes to All" actually acts like No (i.e. the setter gets created), and vice versa.
verified fixed
24939f0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:03Z
2002-06-05T15:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/AddMethodStubAction.java
} private IRequestQuery createReplaceQuery() { return new IRequestQuery() { public int doQuery(IMember method) { String methodName= JavaElementLabels.getElementLabel(method, JavaElementLabels.M_PARAMETER_TYPES); String formattedMessage= JavaUIMessages.getFormattedString("AddMethodStubAction.ReplaceExist...
19,367
Bug 19367 Generate Getter and Setter dialog for final fields takes the wrong action
As of F2, when generating a getters and setters for final fields, a dialog asks if it's "OK to only create getter". The options are Yes, Yes to All, No, and Cancel. It looks like selecting "Yes to All" actually acts like No (i.e. the setter gets created), and vice versa.
verified fixed
24939f0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:03Z
2002-06-05T15:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/AddMethodStubAction.java
return returnVal < 0 ? IRequestQuery.CANCEL : returnCodes[returnVal]; } /** * Tests if the action can run with given arguments */ public static boolean canActionBeAdded(IType parentType, ISelection selection) { if (parentType == null || parentType.getCompilationUnit() == null || !JavaModelUtil.isEditable(p...
19,367
Bug 19367 Generate Getter and Setter dialog for final fields takes the wrong action
As of F2, when generating a getters and setters for final fields, a dialog asks if it's "OK to only create getter". The options are Yes, Yes to All, No, and Cancel. It looks like selecting "Yes to All" actually acts like No (i.e. the setter gets created), and vice versa.
verified fixed
24939f0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:03Z
2002-06-05T15:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/FileTransferDropAdapter.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.packageview; import java.io.File; import java.lang.reflect.InvocationTargetException; import java.util.ArrayList; import java.util.List; import java.util.ResourceBundle; import org.eclipse.swt.SWT; import org.eclip...
19,367
Bug 19367 Generate Getter and Setter dialog for final fields takes the wrong action
As of F2, when generating a getters and setters for final fields, a dialog asks if it's "OK to only create getter". The options are Yes, Yes to All, No, and Cancel. It looks like selecting "Yes to All" actually acts like No (i.e. the setter gets created), and vice versa.
verified fixed
24939f0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:03Z
2002-06-05T15:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/FileTransferDropAdapter.java
import org.eclipse.swt.dnd.Transfer; import org.eclipse.swt.widgets.Control; import org.eclipse.swt.widgets.Shell; import org.eclipse.jface.dialogs.Dialog; import org.eclipse.jface.dialogs.ErrorDialog; import org.eclipse.jface.dialogs.IDialogConstants; import org.eclipse.jface.dialogs.MessageDialog; import org.eclipse....
19,367
Bug 19367 Generate Getter and Setter dialog for final fields takes the wrong action
As of F2, when generating a getters and setters for final fields, a dialog asks if it's "OK to only create getter". The options are Yes, Yes to All, No, and Cancel. It looks like selecting "Yes to All" actually acts like No (i.e. the setter gets created), and vice versa.
verified fixed
24939f0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:03Z
2002-06-05T15:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/FileTransferDropAdapter.java
FileTransferDropAdapter(AbstractTreeViewer viewer) { super(viewer, DND.FEEDBACK_SCROLL | DND.FEEDBACK_EXPAND); } public String queryOverwrite(String file) { String[] returnCodes= {YES, NO, ALL, CANCEL}; int returnVal= openDialog(getViewer().getControl(), file); return returnVal < 0 ? CANCEL : returnCodes[re...
19,367
Bug 19367 Generate Getter and Setter dialog for final fields takes the wrong action
As of F2, when generating a getters and setters for final fields, a dialog asks if it's "OK to only create getter". The options are Yes, Yes to All, No, and Cancel. It looks like selecting "Yes to All" actually acts like No (i.e. the setter gets created), and vice versa.
verified fixed
24939f0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:03Z
2002-06-05T15:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/FileTransferDropAdapter.java
}); return result[0]; } public Transfer getTransfer() { return FileTransfer.getInstance(); } public void validateDrop(Object target, DropTargetEvent event, int operation) { event.detail= DND.DROP_NONE; boolean isPackageFragment= target instanceof IPackageFragment; boolean isJavaProject= targ...
19,367
Bug 19367 Generate Getter and Setter dialog for final fields takes the wrong action
As of F2, when generating a getters and setters for final fields, a dialog asks if it's "OK to only create getter". The options are Yes, Yes to All, No, and Cancel. It looks like selecting "Yes to All" actually acts like No (i.e. the setter gets created), and vice versa.
verified fixed
24939f0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:03Z
2002-06-05T15:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/FileTransferDropAdapter.java
} return; } public void drop(Object dropTarget, DropTargetEvent event) { int operation= event.detail; event.detail= DND.DROP_NONE; Object data= event.data; if (data == null || operation != DND.DROP_COPY) return; IContainer target= null; if (dropTarget instanceof IContainer) { target= (...
19,367
Bug 19367 Generate Getter and Setter dialog for final fields takes the wrong action
As of F2, when generating a getters and setters for final fields, a dialog asks if it's "OK to only create getter". The options are Yes, Yes to All, No, and Cancel. It looks like selecting "Yes to All" actually acts like No (i.e. the setter gets created), and vice versa.
verified fixed
24939f0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:03Z
2002-06-05T15:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/FileTransferDropAdapter.java
ProgressMonitorDialog dialog= new ProgressMonitorDialog(shell); try { dialog.run(true, true, op); } catch (InvocationTargetException e) { String title= PackagesMessages.getString("DropAdapter.errorTitle"); String message= PackagesMessages.getString("DropAdapter.errorMessage"); ExceptionHandl...
19,367
Bug 19367 Generate Getter and Setter dialog for final fields takes the wrong action
As of F2, when generating a getters and setters for final fields, a dialog asks if it's "OK to only create getter". The options are Yes, Yes to All, No, and Cancel. It looks like selecting "Yes to All" actually acts like No (i.e. the setter gets created), and vice versa.
verified fixed
24939f0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:03Z
2002-06-05T15:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/FileTransferDropAdapter.java
} else { event.data= null; return; } } private List checkFiles(Shell shell, String[] files, IPath target) { List result= new ArrayList(10); int lengthCompare= target.segmentCount() + 1; for (int i= 0; i < files.length; i++) { String file= files[i]; IPath path= new Path(file); String error= nu...
19,367
Bug 19367 Generate Getter and Setter dialog for final fields takes the wrong action
As of F2, when generating a getters and setters for final fields, a dialog asks if it's "OK to only create getter". The options are Yes, Yes to All, No, and Cancel. It looks like selecting "Yes to All" actually acts like No (i.e. the setter gets created), and vice versa.
verified fixed
24939f0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:03Z
2002-06-05T15:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddGetterSetterAction.java
/******************************************************************************* * Copyright (c) 2000, 2002 International Business Machines Corp. and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v0.5 * which accompanie...
19,367
Bug 19367 Generate Getter and Setter dialog for final fields takes the wrong action
As of F2, when generating a getters and setters for final fields, a dialog asks if it's "OK to only create getter". The options are Yes, Yes to All, No, and Cancel. It looks like selecting "Yes to All" actually acts like No (i.e. the setter gets created), and vice versa.
verified fixed
24939f0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:03Z
2002-06-05T15:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddGetterSetterAction.java
import org.eclipse.swt.graphics.Image; import org.eclipse.swt.widgets.Shell; import org.eclipse.jface.dialogs.IDialogConstants; import org.eclipse.jface.dialogs.MessageDialog; import org.eclipse.jface.dialogs.ProgressMonitorDialog; import org.eclipse.jface.resource.ImageDescriptor; import org.eclipse.jface.text.ITextSe...
19,367
Bug 19367 Generate Getter and Setter dialog for final fields takes the wrong action
As of F2, when generating a getters and setters for final fields, a dialog asks if it's "OK to only create getter". The options are Yes, Yes to All, No, and Cancel. It looks like selecting "Yes to All" actually acts like No (i.e. the setter gets created), and vice versa.
verified fixed
24939f0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:03Z
2002-06-05T15:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddGetterSetterAction.java
import org.eclipse.jdt.internal.corext.codemanipulation.GetterSetterUtil; import org.eclipse.jdt.internal.corext.codemanipulation.IRequestQuery; import org.eclipse.jdt.internal.corext.codemanipulation.NameProposer; import org.eclipse.jdt.internal.corext.refactoring.util.JavaElementUtil; import org.eclipse.jdt.internal....
19,367
Bug 19367 Generate Getter and Setter dialog for final fields takes the wrong action
As of F2, when generating a getters and setters for final fields, a dialog asks if it's "OK to only create getter". The options are Yes, Yes to All, No, and Cancel. It looks like selecting "Yes to All" actually acts like No (i.e. the setter gets created), and vice versa.
verified fixed
24939f0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:03Z
2002-06-05T15:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddGetterSetterAction.java
private CompilationUnitEditor fEditor; private static final String dialogTitle= ActionMessages.getString("AddGetterSetterAction.error.title"); /** * Creates a new <code>AddGetterSetterAction</code>. * * @param site the site providing context information for this action */ public AddGetterSetterAction(IWork...
19,367
Bug 19367 Generate Getter and Setter dialog for final fields takes the wrong action
As of F2, when generating a getters and setters for final fields, a dialog asks if it's "OK to only create getter". The options are Yes, Yes to All, No, and Cancel. It looks like selecting "Yes to All" actually acts like No (i.e. the setter gets created), and vice versa.
verified fixed
24939f0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:03Z
2002-06-05T15:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddGetterSetterAction.java
public AddGetterSetterAction(CompilationUnitEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(checkEnabledEditor()); } /* (non-Javadoc) * Method declared on SelectionDispatchAction */ protected void selectionChanged(IStructuredSelection selection) { try { setEnabled(canE...
19,367
Bug 19367 Generate Getter and Setter dialog for final fields takes the wrong action
As of F2, when generating a getters and setters for final fields, a dialog asks if it's "OK to only create getter". The options are Yes, Yes to All, No, and Cancel. It looks like selecting "Yes to All" actually acts like No (i.e. the setter gets created), and vice versa.
verified fixed
24939f0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:03Z
2002-06-05T15:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddGetterSetterAction.java
Object firstElement= selection.getFirstElement(); if (firstElement instanceof IType) run((IType)firstElement, new IField[0]); else if (firstElement instanceof ICompilationUnit) run(JavaElementUtil.getMainType((ICompilationUnit)firstElement), new IField[0]); } catch (CoreException e) { JavaPlugin.log...
19,367
Bug 19367 Generate Getter and Setter dialog for final fields takes the wrong action
As of F2, when generating a getters and setters for final fields, a dialog asks if it's "OK to only create getter". The options are Yes, Yes to All, No, and Cancel. It looks like selecting "Yes to All" actually acts like No (i.e. the setter gets created), and vice versa.
verified fixed
24939f0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:03Z
2002-06-05T15:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddGetterSetterAction.java
return true; return false; } private static boolean canEnableOn(IField[] fields) throws JavaModelException { return fields != null && fields.length > 0 && JavaModelUtil.isEditable(fields[0].getCompilationUnit()); } private void run(IType type, IField[] preselected) throws CoreException{ ILabelProvider lp...
19,367
Bug 19367 Generate Getter and Setter dialog for final fields takes the wrong action
As of F2, when generating a getters and setters for final fields, a dialog asks if it's "OK to only create getter". The options are Yes, Yes to All, No, and Cancel. It looks like selecting "Yes to All" actually acts like No (i.e. the setter gets created), and vice versa.
verified fixed
24939f0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:03Z
2002-06-05T15:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddGetterSetterAction.java
return; IField[] getterFields= getGetterFields(result); IField[] setterFields= getSetterFields(result); generate(getterFields, setterFields); } private static ISelectionStatusValidator createValidator() { return new ISelectionStatusValidator(){ public IStatus validate(Object[] selection) { int count= c...
19,367
Bug 19367 Generate Getter and Setter dialog for final fields takes the wrong action
As of F2, when generating a getters and setters for final fields, a dialog asks if it's "OK to only create getter". The options are Yes, Yes to All, No, and Cancel. It looks like selecting "Yes to All" actually acts like No (i.e. the setter gets created), and vice versa.
verified fixed
24939f0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:03Z
2002-06-05T15:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddGetterSetterAction.java
Collection list= new ArrayList(0); for (int i = 0; i < result.length; i++) { Object each= result[i]; if ((each instanceof GetterSetterEntry)){ GetterSetterEntry entry= (GetterSetterEntry)each; if (entry.isGetterEntry) list.add(entry.field); } } return (IField[]) list.toArray(new IField[lis...
19,367
Bug 19367 Generate Getter and Setter dialog for final fields takes the wrong action
As of F2, when generating a getters and setters for final fields, a dialog asks if it's "OK to only create getter". The options are Yes, Yes to All, No, and Cancel. It looks like selecting "Yes to All" actually acts like No (i.e. the setter gets created), and vice versa.
verified fixed
24939f0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:03Z
2002-06-05T15:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddGetterSetterAction.java
return CodeGenerationPreferencePage.getGetterStetterPrefixes(); } private static String[] getGetterSetterSuffixes(){ return CodeGenerationPreferencePage.getGetterStetterSuffixes(); } private void generate(IField[] getterFields, IField[] setterFields) throws CoreException{ if (getterFields.length == 0 && set...
19,367
Bug 19367 Generate Getter and Setter dialog for final fields takes the wrong action
As of F2, when generating a getters and setters for final fields, a dialog asks if it's "OK to only create getter". The options are Yes, Yes to All, No, and Cancel. It looks like selecting "Yes to All" actually acts like No (i.e. the setter gets created), and vice versa.
verified fixed
24939f0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:03Z
2002-06-05T15:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddGetterSetterAction.java
ICompilationUnit workingCopyCU; IField[] workingCopyFields; if (cu.isWorkingCopy()) { workingCopyCU= cu; workingCopyFields= fields; } else { workingCopyCU= EditorUtility.getWorkingCopy(cu); if (workingCopyCU == null) { showError(ActionMessages.getString("AddGetterSetterAction.error.actionfailed"))...
19,367
Bug 19367 Generate Getter and Setter dialog for final fields takes the wrong action
As of F2, when generating a getters and setters for final fields, a dialog asks if it's "OK to only create getter". The options are Yes, Yes to All, No, and Cancel. It looks like selecting "Yes to All" actually acts like No (i.e. the setter gets created), and vice versa.
verified fixed
24939f0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:03Z
2002-06-05T15:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddGetterSetterAction.java
} /* (non-Javadoc) * Method declared on SelectionDispatchAction */ protected void run(ITextSelection selection) { try { IJavaElement[] elements= SelectionConverter.codeResolve(fEditor); if (elements.length == 1 && (elements[0] instanceof IField)) { IField field= (IField)elements[0]; if (! chec...
19,367
Bug 19367 Generate Getter and Setter dialog for final fields takes the wrong action
As of F2, when generating a getters and setters for final fields, a dialog asks if it's "OK to only create getter". The options are Yes, Yes to All, No, and Cancel. It looks like selecting "Yes to All" actually acts like No (i.e. the setter gets created), and vice versa.
verified fixed
24939f0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:03Z
2002-06-05T15:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddGetterSetterAction.java
JavaPlugin.log(e.getStatus()); showError(ActionMessages.getString("AddGetterSetterAction.error.actionfailed")); } } void editorStateChanged() { setEnabled(checkEnabledEditor()); } private boolean checkEnabledEditor() { return fEditor != null && !fEditor.isEditorInputReadOnly() && SelectionConverter.c...
19,367
Bug 19367 Generate Getter and Setter dialog for final fields takes the wrong action
As of F2, when generating a getters and setters for final fields, a dialog asks if it's "OK to only create getter". The options are Yes, Yes to All, No, and Cancel. It looks like selecting "Yes to All" actually acts like No (i.e. the setter gets created), and vice versa.
verified fixed
24939f0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:03Z
2002-06-05T15:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddGetterSetterAction.java
EditorUtility.revealInEditor(editor, createdMethods[0]); } } catch (InvocationTargetException e) { JavaPlugin.log(e); showError(ActionMessages.getString("AddGetterSetterAction.error.actionfailed")); } catch (InterruptedException e) { } } private AddGetterSetterOperation createAddGetterSetterOper...
19,367
Bug 19367 Generate Getter and Setter dialog for final fields takes the wrong action
As of F2, when generating a getters and setters for final fields, a dialog asks if it's "OK to only create getter". The options are Yes, Yes to All, No, and Cancel. It looks like selecting "Yes to All" actually acts like No (i.e. the setter gets created), and vice versa.
verified fixed
24939f0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:03Z
2002-06-05T15:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddGetterSetterAction.java
public int doQuery(IMember method) { int[] returnCodes= {IRequestQuery.YES, IRequestQuery.NO, IRequestQuery.YES_ALL, IRequestQuery.CANCEL}; String skipLabel= ActionMessages.getString("AddGetterSetterAction.SkipExistingDialog.skip.label"); String replaceLabel= ActionMessages.getString("AddGetterSetterAction...
19,367
Bug 19367 Generate Getter and Setter dialog for final fields takes the wrong action
As of F2, when generating a getters and setters for final fields, a dialog asks if it's "OK to only create getter". The options are Yes, Yes to All, No, and Cancel. It looks like selecting "Yes to All" actually acts like No (i.e. the setter gets created), and vice versa.
verified fixed
24939f0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:03Z
2002-06-05T15:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddGetterSetterAction.java
} private void showError(String message) { MessageDialog.openError(getShell(), dialogTitle, message); } /* * Returns fields in the selection or <code>null</code> if the selection is * empty or not valid. */ private IField[] getSelectedFields(IStructuredSelection selection) { List elements= selection.t...
19,367
Bug 19367 Generate Getter and Setter dialog for final fields takes the wrong action
As of F2, when generating a getters and setters for final fields, a dialog asks if it's "OK to only create getter". The options are Yes, Yes to All, No, and Cancel. It looks like selecting "Yes to All" actually acts like No (i.e. the setter gets created), and vice versa.
verified fixed
24939f0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:03Z
2002-06-05T15:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddGetterSetterAction.java
try { if (fld.getDeclaringType().isInterface()) { return null; } } catch (JavaModelException e) { JavaPlugin.logIgnoringNotPresentException(e); return null; } res[i]= fld; } else { return null; } } return res; } return null; } privat...
19,367
Bug 19367 Generate Getter and Setter dialog for final fields takes the wrong action
As of F2, when generating a getters and setters for final fields, a dialog asks if it's "OK to only create getter". The options are Yes, Yes to All, No, and Cancel. It looks like selecting "Yes to All" actually acts like No (i.e. the setter gets created), and vice versa.
verified fixed
24939f0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:03Z
2002-06-05T15:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddGetterSetterAction.java
private final NameProposer fNameProposer; AddGetterSetterLabelProvider(NameProposer nameProposer) { fNameProposer= nameProposer; } /* * @see ILabelProvider#getText(Object) */ public String getText(Object element) { if (element instanceof GetterSetterEntry) { GetterSetterEntry entry= (Gette...
19,367
Bug 19367 Generate Getter and Setter dialog for final fields takes the wrong action
As of F2, when generating a getters and setters for final fields, a dialog asks if it's "OK to only create getter". The options are Yes, Yes to All, No, and Cancel. It looks like selecting "Yes to All" actually acts like No (i.e. the setter gets created), and vice versa.
verified fixed
24939f0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:03Z
2002-06-05T15:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddGetterSetterAction.java
if (element instanceof GetterSetterEntry) { int flags= 0; try { flags= ((GetterSetterEntry) element).field.getFlags(); } catch (JavaModelException e) { JavaPlugin.logIgnoringNotPresentException(e); } ImageDescriptor desc= JavaElementImageProvider.getFieldImageDescriptor(false, Flags.AccPub...
19,367
Bug 19367 Generate Getter and Setter dialog for final fields takes the wrong action
As of F2, when generating a getters and setters for final fields, a dialog asks if it's "OK to only create getter". The options are Yes, Yes to All, No, and Cancel. It looks like selecting "Yes to All" actually acts like No (i.e. the setter gets created), and vice versa.
verified fixed
24939f0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:03Z
2002-06-05T15:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddGetterSetterAction.java
if (GetterSetterUtil.getSetter(fields[i], prefixes, suffixes) == null) l.add(new GetterSetterEntry(fields[i], false)); if (! l.isEmpty()) result.put(fields[i], (GetterSetterEntry[]) l.toArray(new GetterSetterEntry[l.size()])); } return result; } private static class AddGetterSetterContentProvider im...
19,367
Bug 19367 Generate Getter and Setter dialog for final fields takes the wrong action
As of F2, when generating a getters and setters for final fields, a dialog asks if it's "OK to only create getter". The options are Yes, Yes to All, No, and Cancel. It looks like selecting "Yes to All" actually acts like No (i.e. the setter gets created), and vice versa.
verified fixed
24939f0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:03Z
2002-06-05T15:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddGetterSetterAction.java
return ((GetterSetterEntry)element).field; return null; } /* * @see ITreeContentProvider#hasChildren(Object) */ public boolean hasChildren(Object element) { return getChildren(element).length > 0; } /* * @see IStructuredContentProvider#getElements(Object) */ public Object[] getElements(Obj...
19,014
Bug 19014 Empty CU after reorg
F2 - enable single click and show in members in packages view - open TestCase.java in editor - give focus to packages view - change it on disk - copy a method in TestCase using DnD - activate the TestCase.java editor - answer question with no - activate revert from context menu observe: CU is empty
verified fixed
75a0fe1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:31Z
2002-06-04T11:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
package org.eclipse.jdt.internal.ui.javaeditor; /* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ import java.io.ByteArrayInputStream; import java.io.InputStream; import java.util.ArrayList; import java.util.HashMap; import java.util.Hashtable; import java.util.Iterator; import java.util.List; impor...
19,014
Bug 19014 Empty CU after reorg
F2 - enable single click and show in members in packages view - open TestCase.java in editor - give focus to packages view - change it on disk - copy a method in TestCase using DnD - activate the TestCase.java editor - answer question with no - activate revert from context menu observe: CU is empty
verified fixed
75a0fe1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:31Z
2002-06-04T11:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.NullProgressMonitor; import org.eclipse.core.runtime.Status; import org.eclipse.swt.SWT; import org.eclipse.swt.graphics.GC; import org.eclipse.swt.gr...
19,014
Bug 19014 Empty CU after reorg
F2 - enable single click and show in members in packages view - open TestCase.java in editor - give focus to packages view - change it on disk - copy a method in TestCase using DnD - activate the TestCase.java editor - answer question with no - activate revert from context menu observe: CU is empty
verified fixed
75a0fe1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:31Z
2002-06-04T11:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
import org.eclipse.ui.part.FileEditorInput; import org.eclipse.ui.texteditor.AbstractMarkerAnnotationModel; import org.eclipse.ui.texteditor.MarkerAnnotation; import org.eclipse.ui.texteditor.ResourceMarkerAnnotationModel; import org.eclipse.jdt.core.IBuffer; import org.eclipse.jdt.core.IBufferFactory; import org.eclip...
19,014
Bug 19014 Empty CU after reorg
F2 - enable single click and show in members in packages view - open TestCase.java in editor - give focus to packages view - change it on disk - copy a method in TestCase using DnD - activate the TestCase.java editor - answer question with no - activate revert from context menu observe: CU is empty
verified fixed
75a0fe1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:31Z
2002-06-04T11:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
public _FileSynchronizer(IFileEditorInput fileEditorInput) { super(fileEditorInput); } }; /** * Bundle of all required informations to allow working copy management. */ protected class CompilationUnitInfo extends FileInfo { ICompilationUnit fCopy; CompilationUnitInfo(IDocument docum...
19,014
Bug 19014 Empty CU after reorg
F2 - enable single click and show in members in packages view - open TestCase.java in editor - give focus to packages view - change it on disk - copy a method in TestCase using DnD - activate the TestCase.java editor - answer question with no - activate revert from context menu observe: CU is empty
verified fixed
75a0fe1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:31Z
2002-06-04T11:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
private List fOverlaids; private IProblem fProblem; private Image fImage; private static Image fgImage; public ProblemAnnotation(IProblem problem) { fProblem= problem; setLayer(MarkerAnnotation.PROBLEM_LAYER + 1); if (fgImage == null) fgImage= JavaPluginImages.get(JavaPluginImages....
19,014
Bug 19014 Empty CU after reorg
F2 - enable single click and show in members in packages view - open TestCase.java in editor - give focus to packages view - change it on disk - copy a method in TestCase using DnD - activate the TestCase.java editor - answer question with no - activate revert from context menu observe: CU is empty
verified fixed
75a0fe1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:31Z
2002-06-04T11:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
/* * @see IProblemAnnotation#getImage(Display) */ public Image getImage(Display display) { return fImage; } /* * @see IProblemAnnotation#getMessage() */ public String getMessage() { return fProblem.getMessage(); } /* * @see IProblemAnnotation#isTemporaryProblem() */...
19,014
Bug 19014 Empty CU after reorg
F2 - enable single click and show in members in packages view - open TestCase.java in editor - give focus to packages view - change it on disk - copy a method in TestCase using DnD - activate the TestCase.java editor - answer question with no - activate revert from context menu observe: CU is empty
verified fixed
75a0fe1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:31Z
2002-06-04T11:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
} /* * @see IProblemAnnotation#getArguments() */ public String[] getArguments() { return fProblem.getArguments(); } /* * @see IProblemAnnotation#getId() */ public int getId() { return fProblem.getID(); } /* * @see IProblemAnnotation#isProblem() */ public boole...
19,014
Bug 19014 Empty CU after reorg
F2 - enable single click and show in members in packages view - open TestCase.java in editor - give focus to packages view - change it on disk - copy a method in TestCase using DnD - activate the TestCase.java editor - answer question with no - activate revert from context menu observe: CU is empty
verified fixed
75a0fe1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:31Z
2002-06-04T11:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
*/ public boolean hasOverlay() { return false; } /* * @see IProblemAnnotation#addOverlaid(IProblemAnnotation) */ public void addOverlaid(IProblemAnnotation annotation) { if (fOverlaids == null) fOverlaids= new ArrayList(1); fOverlaids.add(annotation); } /* * @see IProb...
19,014
Bug 19014 Empty CU after reorg
F2 - enable single click and show in members in packages view - open TestCase.java in editor - give focus to packages view - change it on disk - copy a method in TestCase using DnD - activate the TestCase.java editor - answer question with no - activate revert from context menu observe: CU is empty
verified fixed
75a0fe1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:31Z
2002-06-04T11:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
return null; } }; /** * Internal structure for mapping positions to some value. * The reason for this specific structure is that positions can * change over time. Thus a lookup is based on value and not * on hash value. */ protected static class ReverseMap { static class Entry { P...
19,014
Bug 19014 Empty CU after reorg
F2 - enable single click and show in members in packages view - open TestCase.java in editor - give focus to packages view - change it on disk - copy a method in TestCase using DnD - activate the TestCase.java editor - answer question with no - activate revert from context menu observe: CU is empty
verified fixed
75a0fe1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:31Z
2002-06-04T11:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
entry= (Entry) fList.get(i); if (entry.fPosition.equals(position)) { fAnchor= i; return entry.fValue; } } for (int i= 0; i < fAnchor; i++) { entry= (Entry) fList.get(i); if (entry.fPosition.equals(position)) { fAnchor= i; return entry.fValue; } } ...
19,014
Bug 19014 Empty CU after reorg
F2 - enable single click and show in members in packages view - open TestCase.java in editor - give focus to packages view - change it on disk - copy a method in TestCase using DnD - activate the TestCase.java editor - answer question with no - activate revert from context menu observe: CU is empty
verified fixed
75a0fe1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:31Z
2002-06-04T11:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
public void put(Position position, Object value) { int index= getIndex(position); if (index == -1) { Entry entry= new Entry(); entry.fPosition= position; entry.fValue= value; fList.add(entry); } else { Entry entry= (Entry) fList.get(index); entry.fValue= value; } } ...
19,014
Bug 19014 Empty CU after reorg
F2 - enable single click and show in members in packages view - open TestCase.java in editor - give focus to packages view - change it on disk - copy a method in TestCase using DnD - activate the TestCase.java editor - answer question with no - activate revert from context menu observe: CU is empty
verified fixed
75a0fe1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:31Z
2002-06-04T11:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
private IFileEditorInput fInput; private List fCollectedProblems; private List fGeneratedAnnotations; private IProgressMonitor fProgressMonitor; private boolean fIsActive= false; private ReverseMap fReverseMap= new ReverseMap(); private List fPreviouslyShadowed= null; private List fCurrentlySh...
19,014
Bug 19014 Empty CU after reorg
F2 - enable single click and show in members in packages view - open TestCase.java in editor - give focus to packages view - change it on disk - copy a method in TestCase using DnD - activate the TestCase.java editor - answer question with no - activate revert from context menu observe: CU is empty
verified fixed
75a0fe1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:31Z
2002-06-04T11:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
protected Position createPositionFromProblem(IProblem problem) { int start= problem.getSourceStart(); if (start < 0) return null; int length= problem.getSourceEnd() - problem.getSourceStart() + 1; if (length < 0) return null; return new Position(start, length); } /* ...
19,014
Bug 19014 Empty CU after reorg
F2 - enable single click and show in members in packages view - open TestCase.java in editor - give focus to packages view - change it on disk - copy a method in TestCase using DnD - activate the TestCase.java editor - answer question with no - activate revert from context menu observe: CU is empty
verified fixed
75a0fe1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:31Z
2002-06-04T11:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
public void acceptProblem(IProblem problem) { if (isActive()) fCollectedProblems.add(problem); } /* * @see IProblemRequestor#endReporting() */ public void endReporting() { if (!isActive()) return; if (fProgressMonitor != null && fProgressMonitor.isCanceled()) return; ...
19,014
Bug 19014 Empty CU after reorg
F2 - enable single click and show in members in packages view - open TestCase.java in editor - give focus to packages view - change it on disk - copy a method in TestCase using DnD - activate the TestCase.java editor - answer question with no - activate revert from context menu observe: CU is empty
verified fixed
75a0fe1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:31Z
2002-06-04T11:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
Iterator e= fCollectedProblems.iterator(); while (e.hasNext()) { IProblem problem= (IProblem) e.next(); if (fProgressMonitor != null && fProgressMonitor.isCanceled()) { isCanceled= true; break; } Position position= createPositionFromProblem(prob...
19,014
Bug 19014 Empty CU after reorg
F2 - enable single click and show in members in packages view - open TestCase.java in editor - give focus to packages view - change it on disk - copy a method in TestCase using DnD - activate the TestCase.java editor - answer question with no - activate revert from context menu observe: CU is empty
verified fixed
75a0fe1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:31Z
2002-06-04T11:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
if (temporaryProblemsChanged) fireModelChanged(new CompilationUnitAnnotationModelEvent(this, getResource(), false)); } private void removeMarkerOverlays(boolean isCanceled) { if (isCanceled) { fCurrentlyShadowed.addAll(fPreviouslyShadowed); } else { Iterator e= fPreviouslyShadowed.itera...
19,014
Bug 19014 Empty CU after reorg
F2 - enable single click and show in members in packages view - open TestCase.java in editor - give focus to packages view - change it on disk - copy a method in TestCase using DnD - activate the TestCase.java editor - answer question with no - activate revert from context menu observe: CU is empty
verified fixed
75a0fe1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:31Z
2002-06-04T11:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
List list= (List) value; for (Iterator e = list.iterator(); e.hasNext();) setOverlay(e.next(), problemAnnotation); } else { setOverlay(value, problemAnnotation); } } /** * Tells this annotation model to collect temporary problems from now on. */ private void startCollectingP...
19,014
Bug 19014 Empty CU after reorg
F2 - enable single click and show in members in packages view - open TestCase.java in editor - give focus to packages view - change it on disk - copy a method in TestCase using DnD - activate the TestCase.java editor - answer question with no - activate revert from context menu observe: CU is empty
verified fixed
75a0fe1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:31Z
2002-06-04T11:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
*/ protected void fireModelChanged() { fireModelChanged(new CompilationUnitAnnotationModelEvent(this, getResource(), true)); } /* * @see IProblemRequestor#isActive() */ public boolean isActive() { return fIsActive && (fCollectedProblems != null); } /* * @see IProblemRequest...
19,014
Bug 19014 Empty CU after reorg
F2 - enable single click and show in members in packages view - open TestCase.java in editor - give focus to packages view - change it on disk - copy a method in TestCase using DnD - activate the TestCase.java editor - answer question with no - activate revert from context menu observe: CU is empty
verified fixed
75a0fe1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:31Z
2002-06-04T11:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
} private Object getAnnotations(Position position) { return fReverseMap.get(position); } /* * @see AnnotationModel#addAnnotation(Annotation, Position, boolean) */ protected void addAnnotation(Annotation annotation, Position position, boolean fireModelChanged) { super.addAnnotation...
19,014
Bug 19014 Empty CU after reorg
F2 - enable single click and show in members in packages view - open TestCase.java in editor - give focus to packages view - change it on disk - copy a method in TestCase using DnD - activate the TestCase.java editor - answer question with no - activate revert from context menu observe: CU is empty
verified fixed
75a0fe1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:31Z
2002-06-04T11:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
super.removeAllAnnotations(fireModelChanged); fReverseMap.clear(); } /* * @see AnnotationModel#removeAnnotation(Annotation, boolean) */ protected void removeAnnotation(Annotation annotation, boolean fireModelChanged) { Position position= getPosition(annotation); Object cached= fReverseM...
19,014
Bug 19014 Empty CU after reorg
F2 - enable single click and show in members in packages view - open TestCase.java in editor - give focus to packages view - change it on disk - copy a method in TestCase using DnD - activate the TestCase.java editor - answer question with no - activate revert from context menu observe: CU is empty
verified fixed
75a0fe1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:31Z
2002-06-04T11:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
private IDocument internalGetDocument(IFileEditorInput input) throws CoreException { IDocument document= getDocument(input); if (document != null) return document; return CompilationUnitDocumentProvider.this.createDocument(input); } public IBuffer createBuffer(IOpenable owner) { if (owner...
19,014
Bug 19014 Empty CU after reorg
F2 - enable single click and show in members in packages view - open TestCase.java in editor - give focus to packages view - change it on disk - copy a method in TestCase using DnD - activate the TestCase.java editor - answer question with no - activate revert from context menu observe: CU is empty
verified fixed
75a0fe1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:31Z
2002-06-04T11:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
initializeDocument(document); } DocumentAdapter adapter= new DocumentAdapter(unit, document, new DefaultLineTracker(), CompilationUnitDocumentProvider.this, providerKey); adapter.setStatus(status); return adapter; } } catch (CoreException x) { handleCoreExcept...
19,014
Bug 19014 Empty CU after reorg
F2 - enable single click and show in members in packages view - open TestCase.java in editor - give focus to packages view - change it on disk - copy a method in TestCase using DnD - activate the TestCase.java editor - answer question with no - activate revert from context menu observe: CU is empty
verified fixed
75a0fe1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:31Z
2002-06-04T11:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
((IAnnotationModelListener) listeners[i]).modelChanged(model); } } /** * @see IAnnotationModelListenerExtension#modelChanged(AnnotationModelEvent) */ public void modelChanged(AnnotationModelEvent event) { Object[] listeners= fListenerList.getListeners(); for (int i= 0; i < listeners.length;...
19,014
Bug 19014 Empty CU after reorg
F2 - enable single click and show in members in packages view - open TestCase.java in editor - give focus to packages view - change it on disk - copy a method in TestCase using DnD - activate the TestCase.java editor - answer question with no - activate revert from context menu observe: CU is empty
verified fixed
75a0fe1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:31Z
2002-06-04T11:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
/* * @see IDocumentExtension#startSequentialRewrite(boolean) */ synchronized public void startSequentialRewrite(boolean normalized) { super.startSequentialRewrite(normalized); } /* * @see IDocumentExtension#stopSequentialRewrite() */ synchronized public void stopSequentialRewrite() { ...
19,014
Bug 19014 Empty CU after reorg
F2 - enable single click and show in members in packages view - open TestCase.java in editor - give focus to packages view - change it on disk - copy a method in TestCase using DnD - activate the TestCase.java editor - answer question with no - activate revert from context menu observe: CU is empty
verified fixed
75a0fe1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:31Z
2002-06-04T11:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
/* * @see IDocument#getChar(int) */ synchronized public char getChar(int offset) throws BadLocationException { return super.getChar(offset); } /* * @see IDocument#replace(int, int, String) */ synchronized public void replace(int offset, int length, String text) throws BadLocationExce...
19,014
Bug 19014 Empty CU after reorg
F2 - enable single click and show in members in packages view - open TestCase.java in editor - give focus to packages view - change it on disk - copy a method in TestCase using DnD - activate the TestCase.java editor - answer question with no - activate revert from context menu observe: CU is empty
verified fixed
75a0fe1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:31Z
2002-06-04T11:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
private boolean fIsAboutToSave= false; private ISavePolicy fSavePolicy; private IPropertyChangeListener fPropertyListener; private GlobalAnnotationModelListener fGlobalAnnotationModelListener; /** * Constructor */ public CompilationUnitDocumentProvider() { fPropertyListener= new IPropertyChangeLis...
19,014
Bug 19014 Empty CU after reorg
F2 - enable single click and show in members in packages view - open TestCase.java in editor - give focus to packages view - change it on disk - copy a method in TestCase using DnD - activate the TestCase.java editor - answer question with no - activate revert from context menu observe: CU is empty
verified fixed
75a0fe1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:31Z
2002-06-04T11:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
fSavePolicy= savePolicy; } /** * Creates a compilation unit from the given file. * * @param file the file from which to create the compilation unit */ protected ICompilationUnit createCompilationUnit(IFile file) { Object element= JavaCore.create(file); if (element instanceof ICompilationUnit) retur...
19,014
Bug 19014 Empty CU after reorg
F2 - enable single click and show in members in packages view - open TestCase.java in editor - give focus to packages view - change it on disk - copy a method in TestCase using DnD - activate the TestCase.java editor - answer question with no - activate revert from context menu observe: CU is empty
verified fixed
75a0fe1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:31Z
2002-06-04T11:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
if ( !(element instanceof IFileEditorInput)) return super.createElementInfo(element); IFileEditorInput input= (IFileEditorInput) element; ICompilationUnit original= createCompilationUnit(input.getFile()); if (original != null) { try { IProgressMonitor monitor= new NullProgressMonitor(); ...
19,014
Bug 19014 Empty CU after reorg
F2 - enable single click and show in members in packages view - open TestCase.java in editor - give focus to packages view - change it on disk - copy a method in TestCase using DnD - activate the TestCase.java editor - answer question with no - activate revert from context menu observe: CU is empty
verified fixed
75a0fe1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:31Z
2002-06-04T11:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
f.install(); CompilationUnitInfo info= new CompilationUnitInfo(a.getDocument(), m, f, c); info.setModificationStamp(computeModificationStamp(input.getFile())); info.fStatus= a.getStatus(); if (r instanceof IProblemRequestorExtension) { IProblemRequestorExtension extension= (IProblemReques...
19,014
Bug 19014 Empty CU after reorg
F2 - enable single click and show in members in packages view - open TestCase.java in editor - give focus to packages view - change it on disk - copy a method in TestCase using DnD - activate the TestCase.java editor - answer question with no - activate revert from context menu observe: CU is empty
verified fixed
75a0fe1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:31Z
2002-06-04T11:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
cuInfo.fModel.removeAnnotationModelListener(fGlobalAnnotationModelListener); } super.disposeElementInfo(element, info); } /* * @see AbstractDocumentProvider#doSaveDocument(IProgressMonitor, Object, IDocument, boolean) */ protected void doSaveDocument(IProgressMonitor monitor, Object element, IDocument d...
19,014
Bug 19014 Empty CU after reorg
F2 - enable single click and show in members in packages view - open TestCase.java in editor - give focus to packages view - change it on disk - copy a method in TestCase using DnD - activate the TestCase.java editor - answer question with no - activate revert from context menu observe: CU is empty
verified fixed
75a0fe1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:31Z
2002-06-04T11:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
} if (resource != null && !overwrite) checkSynchronizationState(info.fModificationStamp, resource); if (fSavePolicy != null) fSavePolicy.preSave(info.fCopy); try { fIsAboutToSave= true; info.fCopy.commit(overwrite, monitor); } finally { fIsAboutToSave= false; } ...
19,014
Bug 19014 Empty CU after reorg
F2 - enable single click and show in members in packages view - open TestCase.java in editor - give focus to packages view - change it on disk - copy a method in TestCase using DnD - activate the TestCase.java editor - answer question with no - activate revert from context menu observe: CU is empty
verified fixed
75a0fe1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:31Z
2002-06-04T11:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
} } } } else { super.doSaveDocument(monitor, element, document, overwrite); } } /** * Replaces createAnnotionModel of the super class. */ protected IAnnotationModel createCompilationUnitAnnotationModel(Object element) throws CoreException { if ( !(element instanceof IFileEditorInput...
19,014
Bug 19014 Empty CU after reorg
F2 - enable single click and show in members in packages view - open TestCase.java in editor - give focus to packages view - change it on disk - copy a method in TestCase using DnD - activate the TestCase.java editor - answer question with no - activate revert from context menu observe: CU is empty
verified fixed
75a0fe1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:31Z
2002-06-04T11:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
/* * @see AbstractDocumentProvider#createDocument(Object) */ protected IDocument createDocument(Object element) throws CoreException { if (element instanceof IEditorInput) { Document document= new PartiallySynchronizedDocument(); if (setDocumentContent(document, (IEditorInput) element, getEncoding(eleme...
19,014
Bug 19014 Empty CU after reorg
F2 - enable single click and show in members in packages view - open TestCase.java in editor - give focus to packages view - change it on disk - copy a method in TestCase using DnD - activate the TestCase.java editor - answer question with no - activate revert from context menu observe: CU is empty
verified fixed
75a0fe1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:31Z
2002-06-04T11:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
try { ICompilationUnit original= (ICompilationUnit) info.fCopy.getOriginalElement(); IResource resource= original.getUnderlyingResource(); if (resource instanceof IFile) { IFileEditorInput input= new FileEditorInput((IFile) resource); document= super.createDocument(input); } else doc...
19,014
Bug 19014 Empty CU after reorg
F2 - enable single click and show in members in packages view - open TestCase.java in editor - give focus to packages view - change it on disk - copy a method in TestCase using DnD - activate the TestCase.java editor - answer question with no - activate revert from context menu observe: CU is empty
verified fixed
75a0fe1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:31Z
2002-06-04T11:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
/** * Saves the content of the given document to the given element. * This is only performed when this provider initiated the save. * * @param monitor the progress monitor * @param element the element to which to save * @param document the document to save * @param overwrite <code>true</code> if the save...
19,014
Bug 19014 Empty CU after reorg
F2 - enable single click and show in members in packages view - open TestCase.java in editor - give focus to packages view - change it on disk - copy a method in TestCase using DnD - activate the TestCase.java editor - answer question with no - activate revert from context menu observe: CU is empty
verified fixed
75a0fe1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:31Z
2002-06-04T11:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
public IResource getUnderlyingResource(Object element) { if (element instanceof IFileEditorInput) { IFileEditorInput input= (IFileEditorInput) element; return input.getFile(); } return null; } /* * @see IWorkingCopyManager#connect(IEditorInput) */ public void connect(IEditorInput input) throws Core...
19,014
Bug 19014 Empty CU after reorg
F2 - enable single click and show in members in packages view - open TestCase.java in editor - give focus to packages view - change it on disk - copy a method in TestCase using DnD - activate the TestCase.java editor - answer question with no - activate revert from context menu observe: CU is empty
verified fixed
75a0fe1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:31Z
2002-06-04T11:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
return info.fCopy; } return null; } /** * Gets the BufferFactory. */ public IBufferFactory getBufferFactory() { return fBufferFactory; } public void shutdown() { JavaPlugin.getDefault().getPreferenceStore().removePropertyChangeListener(fPropertyListener); Iterator e= getConnectedElements...
19,014
Bug 19014 Empty CU after reorg
F2 - enable single click and show in members in packages view - open TestCase.java in editor - give focus to packages view - change it on disk - copy a method in TestCase using DnD - activate the TestCase.java editor - answer question with no - activate revert from context menu observe: CU is empty
verified fixed
75a0fe1
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T09:49:31Z
2002-06-04T11:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
* Switches the state of problem acceptance according to the value in the preference store. */ protected void enableHandlingTemporaryProblems() { boolean enable= isHandlingTemporaryProblems(); for (Iterator iter= getConnectedElements(); iter.hasNext();) { ElementInfo element= getElementInfo(iter.next()); if...
17,709
Bug 17709 Convert Line Delimiters should disable on read-only files
20020521 1. Make a CU read-only, open it in the editor 2. Source->Convert Line Delimiters actions are enabled, should be disabled
verified fixed
9549875
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T10:37:00Z
2002-05-24T14:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/GenerateActionGroup.java
/******************************************************************************* * Copyright (c) 2002 International Business Machines Corp. and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v0.5 * which accompanies this...
17,709
Bug 17709 Convert Line Delimiters should disable on read-only files
20020521 1. Make a CU read-only, open it in the editor 2. Source->Convert Line Delimiters actions are enabled, should be disabled
verified fixed
9549875
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T10:37:00Z
2002-05-24T14:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/GenerateActionGroup.java
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.jface.viewers.IStructuredSelection; import org.eclipse.jface.util.Assert; import org.eclipse.ui.IAct...
17,709
Bug 17709 Convert Line Delimiters should disable on read-only files
20020521 1. Make a CU read-only, open it in the editor 2. Source->Convert Line Delimiters actions are enabled, should be disabled
verified fixed
9549875
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T10:37:00Z
2002-05-24T14:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/GenerateActionGroup.java
private boolean fEditorIsOwner; private IWorkbenchSite fSite; private String fGroupName= IContextMenuConstants.GROUP_SOURCE; private List fRegisteredSelectionListeners; private AddImportOnSelectionAction fAddImport; private OverrideMethodsAction fOverrideMethods; private AddGetterSetterAction fAddGetterSetter; ...
17,709
Bug 17709 Convert Line Delimiters should disable on read-only files
20020521 1. Make a CU read-only, open it in the editor 2. Source->Convert Line Delimiters actions are enabled, should be disabled
verified fixed
9549875
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T10:37:00Z
2002-05-24T14:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/GenerateActionGroup.java
* Creates a new <code>GenerateActionGroup</code>. * <p> * Note: This constructor is for internal use only. Clients should not call this constructor. * </p> */ public GenerateActionGroup(CompilationUnitEditor editor, String groupName) { fSite= editor.getSite(); fEditorIsOwner= true; fGroupName= groupName;...
17,709
Bug 17709 Convert Line Delimiters should disable on read-only files
20020521 1. Make a CU read-only, open it in the editor 2. Source->Convert Line Delimiters actions are enabled, should be disabled
verified fixed
9549875
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T10:37:00Z
2002-05-24T14:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/GenerateActionGroup.java
fAddUnimplementedConstructors= new AddUnimplementedConstructorsAction(editor); fAddUnimplementedConstructors.setActionDefinitionId(IJavaEditorActionDefinitionIds.ADD_UNIMPLEMENTED_CONTRUCTORS); fAddUnimplementedConstructors.editorStateChanged(); editor.setAction("AddUnimplementedConstructors", fAddUnimplementedCo...
17,709
Bug 17709 Convert Line Delimiters should disable on read-only files
20020521 1. Make a CU read-only, open it in the editor 2. Source->Convert Line Delimiters actions are enabled, should be disabled
verified fixed
9549875
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-06-10T10:37:00Z
2002-05-24T14:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/GenerateActionGroup.java
/** * Creates a new <code>GenerateActionGroup</code>. * * @param page the page that owns this action group */ public GenerateActionGroup(Page page) { this(page.getSite()); } /** * Creates a new <code>GenerateActionGroup</code>. * * @param part the view part that owns this action group */ public ...