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
13,269
Bug 13269 Incorrect operation order in jarpackager
null
resolved fixed
7a8abf9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-22T10:26:34Z
2002-04-10T14:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarFileExportOperation.java
addError(JarPackagerMessages.getString("JarFileExportOperation.errorSavingDescription"), ex); } catch (IOException ex) { addError(JarPackagerMessages.getString("JarFileExportOperation.errorSavingDescription"), ex); } } } protected void saveDescription() throws CoreException, IOException { if (fJarP...
13,269
Bug 13269 Incorrect operation order in jarpackager
null
resolved fixed
7a8abf9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-22T10:26:34Z
2002-04-10T14:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarFileExportOperation.java
ByteArrayOutputStream manifestOutput= new ByteArrayOutputStream(); ByteArrayInputStream fileInput= null; try { Manifest manifest= fJarPackage.getManifestProvider().create(fJarPackage); manifest.write(manifestOutput); fileInput= new ByteArrayInputStream(manifestOutput.toByteArray()); IFile manifestFile= ...
13,269
Bug 13269 Incorrect operation order in jarpackager
null
resolved fixed
7a8abf9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-22T10:26:34Z
2002-04-10T14:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarFileExportOperation.java
private void buildProjects(IProgressMonitor progressMonitor) { Set builtProjects= new HashSet(10); Object[] elements= fJarPackage.getElements(); for (int i= 0; i < elements.length; i++) { IProject project= null; Object element= elements[i]; if (element instanceof IResource) project= ((IResource)eleme...
13,269
Bug 13269 Incorrect operation order in jarpackager
null
resolved fixed
7a8abf9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-22T10:26:34Z
2002-04-10T14:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarFileExportOperation.java
*/ private boolean hasCompileErrors(IResource resource) throws CoreException { IMarker[] problemMarkers= resource.findMarkers(IJavaModelMarker.JAVA_MODEL_PROBLEM_MARKER, true, IResource.DEPTH_INFINITE); for (int i= 0; i < problemMarkers.length; i++) { if (problemMarkers[i].getAttribute(IMarker.SEVERITY, -1) == ...
12,676
Bug 12676 Code assist for type in javadoc does not show type itself
1. Open CU for X 2. add Javadoc for class X 3. enter @see 4. enter SPACE 5. open code assist ==> X not in list though X#... is allowed
resolved fixed
fafeb67
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-22T13:45:07Z
2002-04-03T13:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java
package org.eclipse.jdt.internal.ui.text.javadoc; /* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ import java.util.ArrayList; import java.util.List; import org.eclipse.swt.graphics.Image; import org.eclipse.jface.text.BadLocationException; import org.eclipse.jface.text.IDocument; import org.ecli...
12,676
Bug 12676 Code assist for type in javadoc does not show type itself
1. Open CU for X 2. add Javadoc for class X 3. enter @see 4. enter SPACE 5. open code assist ==> X not in list though X#... is allowed
resolved fixed
fafeb67
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-22T13:45:07Z
2002-04-03T13:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java
protected final static String[] fgTagProposals= { "@author", "@deprecated", "@exception", "@link", "@param", "@return", "@see", "@serial", "@serialData", "@serialField", "@since", "@throws", "@version" }; protected final static String[] fgHTMLProposals= { "<code>", "</code>", "<br>",...
12,676
Bug 12676 Code assist for type in javadoc does not show type itself
1. Open CU for X 2. add Javadoc for class X 3. enter @see 4. enter SPACE 5. open code assist ==> X not in list though X#... is allowed
resolved fixed
fafeb67
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-22T13:45:07Z
2002-04-03T13:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java
private JavaElementLabelProvider fLabelProvider; private List fResult; private boolean fRestrictToMatchingCase; public JavaDocCompletionEvaluator(ICompilationUnit cu, IDocument doc, int pos, int length) { fCompilationUnit= cu; fDocument= doc; fCurrentPos= pos; fCurrentLength= length; fResult= new Array...
12,676
Bug 12676 Code assist for type in javadoc does not show type itself
1. Open CU for X 2. add Javadoc for class X 3. enter @see 4. enter SPACE 5. open code assist ==> X not in list though X#... is allowed
resolved fixed
fafeb67
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-22T13:45:07Z
2002-04-03T13:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java
if (currPos > lineBeginPos) { try { while (currPos > lineBeginPos && isWordPart(doc.getChar(currPos))) { currPos--; } return currPos; } catch (BadLocationException e) { } } return pos; } private static int findLastWhitespace(IDocument doc, int lineBeginPos, int pos) { try { int cu...
12,676
Bug 12676 Code assist for type in javadoc does not show type itself
1. Open CU for X 2. add Javadoc for class X 3. enter @see 4. enter SPACE 5. open code assist ==> X not in list though X#... is allowed
resolved fixed
fafeb67
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-22T13:45:07Z
2002-04-03T13:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java
return curr + 1; } return pos; } private static int findReplaceEndPos(IDocument doc, String newText, String oldText, int pos) { if (oldText.length() == 0 || oldText.equals(newText)) { return pos; } try { IRegion lineInfo= doc.getLineInformationOfOffset(pos); int end= lineInfo.getOffset() + lin...
12,676
Bug 12676 Code assist for type in javadoc does not show type itself
1. Open CU for X 2. add Javadoc for class X 3. enter @see 4. enter SPACE 5. open code assist ==> X not in list though X#... is allowed
resolved fixed
fafeb67
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-22T13:45:07Z
2002-04-03T13:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java
return pos1; } } catch (BadLocationException e) { e.printStackTrace(); } return pos; } public JavaCompletionProposal[] computeProposals() throws JavaModelException { fLabelProvider= new JavaElementLabelProvider(JavaElementLabelProvider.SHOW_POST_QUALIFIED | JavaElementLabelProvider.SHOW_PARAMETERS); ...
12,676
Bug 12676 Code assist for type in javadoc does not show type itself
1. Open CU for X 2. add Javadoc for class X 3. enter @see 4. enter SPACE 5. open code assist ==> X not in list though X#... is allowed
resolved fixed
fafeb67
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-22T13:45:07Z
2002-04-03T13:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java
if (firstChar == '@') { String prefix= fDocument.get(word1Begin, fCurrentPos - word1Begin); addProposals(prefix, fgTagProposals, JavaPluginImages.IMG_OBJS_JAVADOCTAG); return; } else if (firstChar == '<') { String prefix= fDocument.get(word1Begin, fCurrentPos - word1Begin); addProposals(prefix, f...
12,676
Bug 12676 Code assist for type in javadoc does not show type itself
1. Open CU for X 2. add Javadoc for class X 3. enter @see 4. enter SPACE 5. open code assist ==> X not in list though X#... is allowed
resolved fixed
fafeb67
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-22T13:45:07Z
2002-04-03T13:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java
private boolean prefixMatches(String prefix, String proposal) { if (fRestrictToMatchingCase) { return proposal.startsWith(prefix); } else if (proposal.length() >= prefix.length()) { return prefix.equalsIgnoreCase(proposal.substring(0, prefix.length())); } return false; } private void addAllTags(...
12,676
Bug 12676 Code assist for type in javadoc does not show type itself
1. Open CU for X 2. add Javadoc for class X 3. enter @see 4. enter SPACE 5. open code assist ==> X not in list though X#... is allowed
resolved fixed
fafeb67
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-22T13:45:07Z
2002-04-03T13:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java
for (int i= 0; i < choices.length; i++) { String curr= choices[i]; if (prefixMatches(prefix, curr)) { fResult.add(createCompletion(curr, prefix, curr, JavaPluginImages.get(imageName), null)); } } } private void addProposals(String prefix, IJavaElement[] choices) { for (int i= 0; i < choices.length...
12,676
Bug 12676 Code assist for type in javadoc does not show type itself
1. Open CU for X 2. add Javadoc for class X 3. enter @see 4. enter SPACE 5. open code assist ==> X not in list though X#... is allowed
resolved fixed
fafeb67
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-22T13:45:07Z
2002-04-03T13:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java
buf.append(", "); } } buf.append(')'); return buf.toString(); } else { return elem.getElementName(); } } /** * Returns true if case is handeled */ private boolean addArgumentProposals(String tag, String argument) throws JavaModelException { if ("@see".equals(tag) || "@link".equals(tag)...
12,676
Bug 12676 Code assist for type in javadoc does not show type itself
1. Open CU for X 2. add Javadoc for class X 3. enter @see 4. enter SPACE 5. open code assist ==> X not in list though X#... is allowed
resolved fixed
fafeb67
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-22T13:45:07Z
2002-04-03T13:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java
if (prefixMatches(argument, curr)) { fResult.add(createCompletion(curr, argument, curr, JavaPluginImages.get(JavaPluginImages.IMG_OBJS_CLASS), null)); } } } return true; } else if ("@serialData".equals(tag)) { IJavaElement elem= fCompilationUnit.getElementAt(fCurrentPos); if (elem instance...
12,676
Bug 12676 Code assist for type in javadoc does not show type itself
1. Open CU for X 2. add Javadoc for class X 3. enter @see 4. enter SPACE 5. open code assist ==> X not in list though X#... is allowed
resolved fixed
fafeb67
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-22T13:45:07Z
2002-04-03T13:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java
if (elem != null) { parent= (IType) elem.getAncestor(IJavaElement.TYPE); } } if (parent != null) { int nidx= arg.indexOf('(', pidx); if (nidx == -1) { nidx= arg.length(); } String prefix= arg.substring(pidx + 1, nidx); addProposals(prefix, parent.getMethods()); ad...
12,676
Bug 12676 Code assist for type in javadoc does not show type itself
1. Open CU for X 2. add Javadoc for class X 3. enter @see 4. enter SPACE 5. open code assist ==> X not in list though X#... is allowed
resolved fixed
fafeb67
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-22T13:45:07Z
2002-04-03T13:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java
} }; try { preparedCU.codeComplete(fCurrentPos, requestor); } finally { preparedCU.destroy(); } } } private IType getTypeNameResolve(int wordStart, int wordEnd) throws JavaModelException { ICompilationUnit preparedCU= createPreparedCU(wordStart, wordEnd); if (preparedCU != null) { try ...
12,676
Bug 12676 Code assist for type in javadoc does not show type itself
1. Open CU for X 2. add Javadoc for class X 3. enter @see 4. enter SPACE 5. open code assist ==> X not in list though X#... is allowed
resolved fixed
fafeb67
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-22T13:45:07Z
2002-04-03T13:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java
} int startpos= ((ISourceReference)elem).getSourceRange().getOffset(); char[] content= (char[]) fCompilationUnit.getBuffer().getCharacters().clone(); if (elem instanceof IType && (((IType)elem).getDeclaringType() == null) && (wordStart + 6 < content.length)) { content[startpos++]= 'i'; content[startpos++]= 'm'...
12,676
Bug 12676 Code assist for type in javadoc does not show type itself
1. Open CU for X 2. add Javadoc for class X 3. enter @see 4. enter SPACE 5. open code assist ==> X not in list though X#... is allowed
resolved fixed
fafeb67
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-22T13:45:07Z
2002-04-03T13:20:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java
JavaCompletionProposal proposal= new JavaCompletionProposal(newText, offset, length, image, labelText, 0); proposal.setProposalInfo(proposalInfo); proposal.setTriggerCharacters( new char[] { '#' }); return proposal; } private JavaCompletionProposal createSeeTypeCompletion(boolean isClass, int start, int end, ...
13,196
Bug 13196 [Browsing] Consequences of changes
From the user's perspective, there is an unexpected behavioral difference when manipulation source in the type hierarchy and in the method list of the browser perspective. 1) open Java Browsing Perspective 2) select a type 3) select a method in the method list view 4) delete the method (context menu of the method list ...
resolved fixed
2f621a6
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-22T14:14:38Z
2002-04-10T12:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.typehierarchy; import java.util.ArrayList; import java.util.List; import org.eclipse.swt.SWT; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Menu; import org.eclipse.swt.widgets.ScrollBar;...
13,196
Bug 13196 [Browsing] Consequences of changes
From the user's perspective, there is an unexpected behavioral difference when manipulation source in the type hierarchy and in the method list of the browser perspective. 1) open Java Browsing Perspective 2) select a type 3) select a method in the method list view 4) delete the method (context menu of the method list ...
resolved fixed
2f621a6
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-22T14:14:38Z
2002-04-10T12:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
import org.eclipse.jface.viewers.StructuredSelection; import org.eclipse.ui.IMemento; import org.eclipse.ui.IWorkbenchPart; import org.eclipse.ui.IWorkbenchPartSite; import org.eclipse.ui.PlatformUI; import org.eclipse.jdt.core.IMethod; import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jdt.ui.IContextM...
13,196
Bug 13196 [Browsing] Consequences of changes
From the user's perspective, there is an unexpected behavioral difference when manipulation source in the type hierarchy and in the method list of the browser perspective. 1) open Java Browsing Perspective 2) select a type 3) select a method in the method list view 4) delete the method (context menu of the method list ...
resolved fixed
2f621a6
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-22T14:14:38Z
2002-04-10T12:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
private static final String TAG_SHOWINHERITED= "showinherited"; private static final String TAG_VERTICAL_SCROLL= "mv_vertical_scroll"; private static final int LABEL_BASEFLAGS= StandardJavaUILabelProvider.DEFAULT_TEXTFLAGS; private MemberFilterActionGroup fMemberFilterActionGroup; private JavaUILabelPro...
13,196
Bug 13196 [Browsing] Consequences of changes
From the user's perspective, there is an unexpected behavioral difference when manipulation source in the type hierarchy and in the method list of the browser perspective. 1) open Java Browsing Perspective 2) select a type 3) select a method in the method list view 4) delete the method (context menu of the method list ...
resolved fixed
2f621a6
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-22T14:14:38Z
2002-04-10T12:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
public MethodsViewer(Composite parent, TypeHierarchyLifeCycle lifeCycle, IWorkbenchPart part) { super(new Table(parent, SWT.MULTI)); fLabelProvider= new StandardJavaUILabelProvider( StandardJavaUILabelProvider.DEFAULT_TEXTFLAGS, StandardJavaUILabelProvider.DEFAULT_IMAGEFLAGS, StandardJavaUILabelProvider...
13,196
Bug 13196 [Browsing] Consequences of changes
From the user's perspective, there is an unexpected behavioral difference when manipulation source in the type hierarchy and in the method list of the browser perspective. 1) open Java Browsing Perspective 2) select a type 3) select a method in the method list view 4) delete the method (context menu of the method list ...
resolved fixed
2f621a6
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-22T14:14:38Z
2002-04-10T12:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
setSorter(new JavaElementSorter()); JavaUIHelp.setHelp(this, IJavaHelpContextIds.TYPE_HIERARCHY_VIEW); } /** * Show inherited methods */ public void showInheritedMethods(boolean on) { MethodsContentProvider cprovider= (MethodsContentProvider) getContentProvider(); try { getTable().setRedraw(false);...
13,196
Bug 13196 [Browsing] Consequences of changes
From the user's perspective, there is an unexpected behavioral difference when manipulation source in the type hierarchy and in the method list of the browser perspective. 1) open Java Browsing Perspective 2) select a type 3) select a method in the method list view 4) delete the method (context menu of the method list ...
resolved fixed
2f621a6
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-22T14:14:38Z
2002-04-10T12:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
* @see Viewer#inputChanged(Object, Object) */ protected void inputChanged(Object input, Object oldInput) { super.inputChanged(input, oldInput); } /** * Returns <code>true</code> if inherited methods are shown. */ public boolean isShowInheritedMethods() { return ((MethodsContentProvider) getContentProvi...
13,196
Bug 13196 [Browsing] Consequences of changes
From the user's perspective, there is an unexpected behavioral difference when manipulation source in the type hierarchy and in the method list of the browser perspective. 1) open Java Browsing Perspective 2) select a type 3) select a method in the method list view 4) delete the method (context menu of the method list ...
resolved fixed
2f621a6
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-22T14:14:38Z
2002-04-10T12:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
showInheritedMethods(set); ScrollBar bar= getTable().getVerticalBar(); if (bar != null) { Integer vScroll= memento.getInteger(TAG_VERTICAL_SCROLL); if (vScroll != null) { bar.setSelection(vScroll.intValue()); } } } /** * Attaches a contextmenu listener to the table */ public void initCont...
13,196
Bug 13196 [Browsing] Consequences of changes
From the user's perspective, there is an unexpected behavioral difference when manipulation source in the type hierarchy and in the method list of the browser perspective. 1) open Java Browsing Perspective 2) select a type 3) select a method in the method list view 4) delete the method (context menu of the method list ...
resolved fixed
2f621a6
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-22T14:14:38Z
2002-04-10T12:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
menu.appendToGroup(IContextMenuConstants.GROUP_OPEN, fOpen); } ContextMenuGroup.add(menu, fStandardGroups, this); } /** * Fills up the tool bar with items for the method viewer * Should be called by the creator of the tool bar */ public void contributeToToolBar(ToolBarManager tbm) { tbm.add(fShowInherite...
13,196
Bug 13196 [Browsing] Consequences of changes
From the user's perspective, there is an unexpected behavioral difference when manipulation source in the type hierarchy and in the method list of the browser perspective. 1) open Java Browsing Perspective 2) select a type 3) select a method in the method list view 4) delete the method (context menu of the method list ...
resolved fixed
2f621a6
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-22T14:14:38Z
2002-04-10T12:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
IMethod similar= findSimilarMethod(method, currElements); if (similar != null) { newSelectionElements.add(similar); } } } } newSelection= new StructuredSelection(newSelectionElements); } catch (JavaModelException e) { JavaPlugin.log(e); } } setSelection(newSelectio...
9,891
Bug 9891 'show in packages view' - surprising behavior
in the editor, when there's no selection or the selection cannot be resolved - 'show in packages view' finds the cu in the packages view. when the selection resolves to sth - it shows the cu that declares the thing the selection resolves to. this is highly surprising - i do not pay any attention to the current selectio...
resolved fixed
971fa6e
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-22T16:09:38Z
2002-02-15T10:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ShowInPackageViewAction.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...
9,891
Bug 9891 'show in packages view' - surprising behavior
in the editor, when there's no selection or the selection cannot be resolved - 'show in packages view' finds the cu in the packages view. when the selection resolves to sth - it shows the cu that declares the thing the selection resolves to. this is highly surprising - i do not pay any attention to the current selectio...
resolved fixed
971fa6e
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-22T16:09:38Z
2002-02-15T10:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ShowInPackageViewAction.java
package org.eclipse.jdt.ui.actions; import org.eclipse.jface.dialogs.ErrorDialog; import org.eclipse.jface.text.ITextSelection; import org.eclipse.jface.viewers.IStructuredSelection; import org.eclipse.jface.viewers.StructuredSelection; import org.eclipse.ui.help.WorkbenchHelp; import org.eclipse.jdt.core.IJavaElement;...
9,891
Bug 9891 'show in packages view' - surprising behavior
in the editor, when there's no selection or the selection cannot be resolved - 'show in packages view' finds the cu in the packages view. when the selection resolves to sth - it shows the cu that declares the thing the selection resolves to. this is highly surprising - i do not pay any attention to the current selectio...
resolved fixed
971fa6e
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-22T16:09:38Z
2002-02-15T10:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ShowInPackageViewAction.java
private JavaEditor fEditor; /** * Creates a new <code>ShowInPackageViewAction</code>. * * @param site the site providing context information for this action */ public ShowInPackageViewAction(UnifiedSite site) { super(site); setText(ActionMessages.getString("ShowInPackageViewAction.label")); setDescr...
9,891
Bug 9891 'show in packages view' - surprising behavior
in the editor, when there's no selection or the selection cannot be resolved - 'show in packages view' finds the cu in the packages view. when the selection resolves to sth - it shows the cu that declares the thing the selection resolves to. this is highly surprising - i do not pay any attention to the current selectio...
resolved fixed
971fa6e
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-22T16:09:38Z
2002-02-15T10:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ShowInPackageViewAction.java
/* (non-Javadoc) * Method declared on SelectionDispatchAction. */ protected void selectionChanged(ITextSelection selection) { setEnabled(fEditor != null); } /* (non-Javadoc) * Method declared on SelectionDispatchAction. */ protected void selectionChanged(IStructuredSelection selection) { setEnabled(chec...
9,891
Bug 9891 'show in packages view' - surprising behavior
in the editor, when there's no selection or the selection cannot be resolved - 'show in packages view' finds the cu in the packages view. when the selection resolves to sth - it shows the cu that declares the thing the selection resolves to. this is highly surprising - i do not pay any attention to the current selectio...
resolved fixed
971fa6e
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-22T16:09:38Z
2002-02-15T10:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ShowInPackageViewAction.java
*/ protected void run(IStructuredSelection selection) { if (!checkEnabled(selection)) return; run((IJavaElement)selection.getFirstElement()); } private void run(IJavaElement element) { if (element == null) return; try { element= OpenActionUtil.getElementToOpen(element); if (element == null) ...
14,228
Bug 14228 Too easy to create duplicate methods
Build 20020418 - I was browsing some source (not even actively editing). - Suddenly I noticed there was a squiggle on one of the constructors. - Hover told me that there were two methods (sp) with the same name. - Scrolled down to see that, in fact, I did have another copy of the constructor. Strange. How did this ever...
resolved fixed
7db8bed
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-23T13:43:23Z
2002-04-19T15:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/SelectionTransferDropAdapter.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.packageview; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import org.eclipse.core.runtime.NullProgressMonitor; import org.eclipse.swt.dnd.DND; import org.eclipse.swt.dnd.DropTargetE...
14,228
Bug 14228 Too easy to create duplicate methods
Build 20020418 - I was browsing some source (not even actively editing). - Suddenly I noticed there was a squiggle on one of the constructors. - Hover told me that there were two methods (sp) with the same name. - Scrolled down to see that, in fact, I did have another copy of the constructor. Strange. How did this ever...
resolved fixed
7db8bed
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-23T13:43:23Z
2002-04-19T15:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/SelectionTransferDropAdapter.java
import org.eclipse.swt.dnd.Transfer; import org.eclipse.swt.widgets.Shell; import org.eclipse.jface.dialogs.IDialogConstants; import org.eclipse.jface.dialogs.MessageDialog; import org.eclipse.jface.viewers.ISelection; import org.eclipse.jface.viewers.ISelectionProvider; import org.eclipse.jface.viewers.IStructuredSele...
14,228
Bug 14228 Too easy to create duplicate methods
Build 20020418 - I was browsing some source (not even actively editing). - Suddenly I noticed there was a squiggle on one of the constructors. - Hover told me that there were two methods (sp) with the same name. - Scrolled down to see that, in fact, I did have another copy of the constructor. Strange. How did this ever...
resolved fixed
7db8bed
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-23T13:43:23Z
2002-04-19T15:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/SelectionTransferDropAdapter.java
private List fElements; private MoveRefactoring fMoveRefactoring; private int fCanMoveElements; private CopyRefactoring fCopyRefactoring; private int fCanCopyElements; public SelectionTransferDropAdapter(StructuredViewer viewer) { super(viewer, DND.FEEDBACK_SCROLL | DND.FEEDBACK_EXPAND); } public Transfer ...
14,228
Bug 14228 Too easy to create duplicate methods
Build 20020418 - I was browsing some source (not even actively editing). - Suddenly I noticed there was a squiggle on one of the constructors. - Hover told me that there were two methods (sp) with the same name. - Scrolled down to see that, in fact, I did have another copy of the constructor. Strange. How did this ever...
resolved fixed
7db8bed
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-23T13:43:23Z
2002-04-19T15:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/SelectionTransferDropAdapter.java
super.dragLeave(event); } private void clear() { fElements= null; fMoveRefactoring= null; fCanMoveElements= 0; fCopyRefactoring= null; fCanCopyElements= 0; } public void validateDrop(Object target, DropTargetEvent event, int operation) { event.detail= DND.DROP_NONE; if (fElements == null) { ISe...
14,228
Bug 14228 Too easy to create duplicate methods
Build 20020418 - I was browsing some source (not even actively editing). - Suddenly I noticed there was a squiggle on one of the constructors. - Hover told me that there were two methods (sp) with the same name. - Scrolled down to see that, in fact, I did have another copy of the constructor. Strange. How did this ever...
resolved fixed
7db8bed
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-23T13:43:23Z
2002-04-19T15:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/SelectionTransferDropAdapter.java
public void drop(Object target, DropTargetEvent event) { try{ if (event.detail == DND.DROP_MOVE) { handleDropMove(target, event); if (! canPasteSourceReferences(target, event)) return; DeleteSourceReferencesAction delete= ReorgActionFactory.createDeleteSourceReferencesAction(getDragableSource...
14,228
Bug 14228 Too easy to create duplicate methods
Build 20020418 - I was browsing some source (not even actively editing). - Suddenly I noticed there was a squiggle on one of the constructors. - Hover told me that there were two methods (sp) with the same name. - Scrolled down to see that, in fact, I did have another copy of the constructor. Strange. How did this ever...
resolved fixed
7db8bed
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-23T13:43:23Z
2002-04-19T15:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/SelectionTransferDropAdapter.java
return DND.DROP_NONE; if (canPasteSourceReferences(target, event)) return DND.DROP_COPY; if (fMoveRefactoring == null){ fMoveRefactoring= new MoveRefactoring(fElements, JavaPreferencesSettings.getCodeGenerationSettings()); } if (!canMoveElements()) return DND.DROP_NONE; if (fMoveRefact...
14,228
Bug 14228 Too easy to create duplicate methods
Build 20020418 - I was browsing some source (not even actively editing). - Suddenly I noticed there was a squiggle on one of the constructors. - Hover told me that there were two methods (sp) with the same name. - Scrolled down to see that, in fact, I did have another copy of the constructor. Strange. How did this ever...
resolved fixed
7db8bed
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-23T13:43:23Z
2002-04-19T15:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/SelectionTransferDropAdapter.java
} catch(JavaModelException e){ ExceptionHandler.handle(e, PackagesMessages.getString("SelectionTransferDropAdapter.error.title"), PackagesMessages.getString("SelectionTransferDropAdapter.error.message")); return false; } } private void handleDropMove(final Object target, DropTargetEvent event) throws JavaM...
14,228
Bug 14228 Too easy to create duplicate methods
Build 20020418 - I was browsing some source (not even actively editing). - Suddenly I noticed there was a squiggle on one of the constructors. - Hover told me that there were two methods (sp) with the same name. - Scrolled down to see that, in fact, I did have another copy of the constructor. Strange. How did this ever...
resolved fixed
7db8bed
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-23T13:43:23Z
2002-04-19T15:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/SelectionTransferDropAdapter.java
fCopyRefactoring= new CopyRefactoring(fElements); if (!canCopyElements()) return DND.DROP_NONE; if (fCopyRefactoring.isValidDestination(target)) return DND.DROP_COPY; else return DND.DROP_NONE; } private boolean canPasteSourceReferences(Object target, DropTargetEvent event) throws JavaModelExc...
14,228
Bug 14228 Too easy to create duplicate methods
Build 20020418 - I was browsing some source (not even actively editing). - Suddenly I noticed there was a squiggle on one of the constructors. - Hover told me that there were two methods (sp) with the same name. - Scrolled down to see that, in fact, I did have another copy of the constructor. Strange. How did this ever...
resolved fixed
7db8bed
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-23T13:43:23Z
2002-04-19T15:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/SelectionTransferDropAdapter.java
return false; if (!(element instanceof IJavaElement)) return false; if (element instanceof ICompilationUnit) return false; return true; } private boolean canCopyElements() { if (fCanCopyElements == 0) { fCanCopyElements= 2; if (!canActivate(fCopyRefactoring)) fCanCopyElements= 1; } ...
14,228
Bug 14228 Too easy to create duplicate methods
Build 20020418 - I was browsing some source (not even actively editing). - Suddenly I noticed there was a squiggle on one of the constructors. - Hover told me that there were two methods (sp) with the same name. - Scrolled down to see that, in fact, I did have another copy of the constructor. Strange. How did this ever...
resolved fixed
7db8bed
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-23T13:43:23Z
2002-04-19T15:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/SelectionTransferDropAdapter.java
private Object fTarget; private static final int PREVIEW_ID= IDialogConstants.CLIENT_ID + 1; public DragNDropMoveAction(ISelectionProvider provider, Object target){ super(new MockUnifiedSite(provider)); Assert.isNotNull(target); fTarget= target; } protected Object selectDestination(ReorgRefactori...
14,228
Bug 14228 Too easy to create duplicate methods
Build 20020418 - I was browsing some source (not even actively editing). - Suddenly I noticed there was a squiggle on one of the constructors. - Hover told me that there were two methods (sp) with the same name. - Scrolled down to see that, in fact, I did have another copy of the constructor. Strange. How did this ever...
resolved fixed
7db8bed
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-23T13:43:23Z
2002-04-19T15:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/SelectionTransferDropAdapter.java
protected boolean isOkToProceed(ReorgRefactoring refactoring) throws JavaModelException{ if (!super.isOkToProceed(refactoring)) return false; return askIfUpdateReferences((MoveRefactoring)refactoring); } private boolean askIfUpdateReferences(MoveRefactoring ref) throws JavaModelException{ if (! r...
14,228
Bug 14228 Too easy to create duplicate methods
Build 20020418 - I was browsing some source (not even actively editing). - Suddenly I noticed there was a squiggle on one of the constructors. - Hover told me that there were two methods (sp) with the same name. - Scrolled down to see that, in fact, I did have another copy of the constructor. Strange. How did this ever...
resolved fixed
7db8bed
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-23T13:43:23Z
2002-04-19T15:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/SelectionTransferDropAdapter.java
Assert.isTrue(false); return false; } } private static int askIfUpdateReferences(){ Shell shell= JavaPlugin.getActiveWorkbenchShell().getShell(); String title= PackagesMessages.getString("SelectionTransferDropAdapter.dialog.title"); String preview= PackagesMessages.getString("SelectionTransfer...
14,390
Bug 14390 npe on sorting in outline
20020418+ (20020418.2) java.lang.NullPointerException at org.eclipse.jdt.internal.ui.text.link.LinkedPositionUI.initializeHighlightColor (LinkedPositionUI.java:109) at org.eclipse.jdt.internal.ui.text.link.LinkedPositionUI.propertyChange (LinkedPositionUI.java:100) at org.eclipse.ui.plugin.AbstractUIPlugin$Compatibilit...
resolved fixed
6663ac0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-23T14:25:04Z
2002-04-23T11:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/link/LinkedPositionUI.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.text.link; import org.eclipse.swt.SWT; import org.eclipse.swt.custom.StyledText; import org.eclipse.swt.custom.VerifyKeyListener; import org.eclipse.swt.events.ModifyEvent; import org.eclipse.swt.events.ModifyListe...
14,390
Bug 14390 npe on sorting in outline
20020418+ (20020418.2) java.lang.NullPointerException at org.eclipse.jdt.internal.ui.text.link.LinkedPositionUI.initializeHighlightColor (LinkedPositionUI.java:109) at org.eclipse.jdt.internal.ui.text.link.LinkedPositionUI.propertyChange (LinkedPositionUI.java:100) at org.eclipse.ui.plugin.AbstractUIPlugin$Compatibilit...
resolved fixed
6663ac0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-23T14:25:04Z
2002-04-23T11:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/link/LinkedPositionUI.java
import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; import org.eclipse.jface.dialogs.MessageDialog; import org.eclipse.jface.preference.IPreferenceStore; import org.eclipse.jface.preference.PreferenceConverter; import org.eclipse.jface.text.BadLocationException; import org.eclipse.jface.text.B...
14,390
Bug 14390 npe on sorting in outline
20020418+ (20020418.2) java.lang.NullPointerException at org.eclipse.jdt.internal.ui.text.link.LinkedPositionUI.initializeHighlightColor (LinkedPositionUI.java:109) at org.eclipse.jdt.internal.ui.text.link.LinkedPositionUI.propertyChange (LinkedPositionUI.java:100) at org.eclipse.ui.plugin.AbstractUIPlugin$Compatibilit...
resolved fixed
6663ac0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-23T14:25:04Z
2002-04-23T11:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/link/LinkedPositionUI.java
void exit(boolean accept); } private static final int UNINSTALL= 1; private static final int COMMIT= 2; private static final int DOCUMENT_CHANGED= 4; private static final int UPDATE_CARET= 8; private static final String CARET_POSITION= "LinkedPositionUI.caret.position"; private static final IPosit...
14,390
Bug 14390 npe on sorting in outline
20020418+ (20020418.2) java.lang.NullPointerException at org.eclipse.jdt.internal.ui.text.link.LinkedPositionUI.initializeHighlightColor (LinkedPositionUI.java:109) at org.eclipse.jdt.internal.ui.text.link.LinkedPositionUI.propertyChange (LinkedPositionUI.java:100) at org.eclipse.ui.plugin.AbstractUIPlugin$Compatibilit...
resolved fixed
6663ac0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-23T14:25:04Z
2002-04-23T11:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/link/LinkedPositionUI.java
Assert.isNotNull(viewer); Assert.isNotNull(manager); fViewer= viewer; fManager= manager; fManager.setLinkedPositionListener(this); initializeHighlightColor(viewer); } /** * @see IPropertyChangeListener#propertyChange(PropertyChangeEvent) */ public void propertyChange(PropertyChangeEvent event) { ...
14,390
Bug 14390 npe on sorting in outline
20020418+ (20020418.2) java.lang.NullPointerException at org.eclipse.jdt.internal.ui.text.link.LinkedPositionUI.initializeHighlightColor (LinkedPositionUI.java:109) at org.eclipse.jdt.internal.ui.text.link.LinkedPositionUI.propertyChange (LinkedPositionUI.java:100) at org.eclipse.ui.plugin.AbstractUIPlugin$Compatibilit...
resolved fixed
6663ac0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-23T14:25:04Z
2002-04-23T11:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/link/LinkedPositionUI.java
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); } return null; } /** * Sets the final position of the caret when the li...
14,390
Bug 14390 npe on sorting in outline
20020418+ (20020418.2) java.lang.NullPointerException at org.eclipse.jdt.internal.ui.text.link.LinkedPositionUI.initializeHighlightColor (LinkedPositionUI.java:109) at org.eclipse.jdt.internal.ui.text.link.LinkedPositionUI.propertyChange (LinkedPositionUI.java:100) at org.eclipse.ui.plugin.AbstractUIPlugin$Compatibilit...
resolved fixed
6663ac0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-23T14:25:04Z
2002-04-23T11:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/link/LinkedPositionUI.java
*/ public void setCurrentPosition(Position position, int caretOffset) { if (!fFramePosition.equals(position)) { redrawRegion(); fFramePosition= position; } fCaretOffset= caretOffset; } /** * Enters the linked mode. The linked mode can be left by calling * <code>exit</code>. * * @see exit(boolean...
14,390
Bug 14390 npe on sorting in outline
20020418+ (20020418.2) java.lang.NullPointerException at org.eclipse.jdt.internal.ui.text.link.LinkedPositionUI.initializeHighlightColor (LinkedPositionUI.java:109) at org.eclipse.jdt.internal.ui.text.link.LinkedPositionUI.propertyChange (LinkedPositionUI.java:100) at org.eclipse.ui.plugin.AbstractUIPlugin$Compatibilit...
resolved fixed
6663ac0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-23T14:25:04Z
2002-04-23T11:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/link/LinkedPositionUI.java
ITextViewerExtension extension= (ITextViewerExtension) fViewer; extension.prependVerifyKeyListener(this); StyledText text= fViewer.getTextWidget(); text.addVerifyListener(this); text.addModifyListener(this); text.addPaintListener(this); text.showSelection(); fFramePosition= fManager.getFirstPosition();...
14,390
Bug 14390 npe on sorting in outline
20020418+ (20020418.2) java.lang.NullPointerException at org.eclipse.jdt.internal.ui.text.link.LinkedPositionUI.initializeHighlightColor (LinkedPositionUI.java:109) at org.eclipse.jdt.internal.ui.text.link.LinkedPositionUI.propertyChange (LinkedPositionUI.java:100) at org.eclipse.ui.plugin.AbstractUIPlugin$Compatibilit...
resolved fixed
6663ac0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-23T14:25:04Z
2002-04-23T11:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/link/LinkedPositionUI.java
private void leave(int flags) { if ((flags & UNINSTALL) != 0) fManager.uninstall((flags & COMMIT) != 0); fgStore.removePropertyChangeListener(this); if (fFrameColor != null) { fFrameColor.dispose(); fFrameColor= null; } StyledText text= fViewer.getTextWidget(); text.removePaintListener(th...
14,390
Bug 14390 npe on sorting in outline
20020418+ (20020418.2) java.lang.NullPointerException at org.eclipse.jdt.internal.ui.text.link.LinkedPositionUI.initializeHighlightColor (LinkedPositionUI.java:109) at org.eclipse.jdt.internal.ui.text.link.LinkedPositionUI.propertyChange (LinkedPositionUI.java:100) at org.eclipse.ui.plugin.AbstractUIPlugin$Compatibilit...
resolved fixed
6663ac0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-23T14:25:04Z
2002-04-23T11:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/link/LinkedPositionUI.java
} } document.removePositionUpdater(fgUpdater); document.removePositionCategory(CARET_POSITION); if (fExitListener != null) fExitListener.exit( ((flags & COMMIT) != 0) || ((flags & DOCUMENT_CHANGED) != 0)); } catch (BadPositionCategoryException e) { JavaPlugin.log(e); Assert.isTrue(...
14,390
Bug 14390 npe on sorting in outline
20020418+ (20020418.2) java.lang.NullPointerException at org.eclipse.jdt.internal.ui.text.link.LinkedPositionUI.initializeHighlightColor (LinkedPositionUI.java:109) at org.eclipse.jdt.internal.ui.text.link.LinkedPositionUI.propertyChange (LinkedPositionUI.java:100) at org.eclipse.ui.plugin.AbstractUIPlugin$Compatibilit...
resolved fixed
6663ac0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-23T14:25:04Z
2002-04-23T11:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/link/LinkedPositionUI.java
Position position= fManager.getPreviousPosition(fFramePosition.getOffset()); if (position == null) { fViewer.getTextWidget().getDisplay().beep(); } else { fFramePosition= position; selectRegion(); redrawRegion(); } } /* * @see VerifyKeyListener#verifyKey(VerifyEvent) */ public void verifyKe...
14,390
Bug 14390 npe on sorting in outline
20020418+ (20020418.2) java.lang.NullPointerException at org.eclipse.jdt.internal.ui.text.link.LinkedPositionUI.initializeHighlightColor (LinkedPositionUI.java:109) at org.eclipse.jdt.internal.ui.text.link.LinkedPositionUI.propertyChange (LinkedPositionUI.java:100) at org.eclipse.ui.plugin.AbstractUIPlugin$Compatibilit...
resolved fixed
6663ac0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-23T14:25:04Z
2002-04-23T11:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/link/LinkedPositionUI.java
if (event.stateMask == SWT.SHIFT) previous(); else next(); event.doit= false; break; case 0x0D: leave(UNINSTALL | COMMIT | UPDATE_CARET); event.doit= false; break; case 0x1B: leave(UNINSTALL | COMMIT); event.doit= false; break; } } /* * @see VerifyListener#veri...
14,390
Bug 14390 npe on sorting in outline
20020418+ (20020418.2) java.lang.NullPointerException at org.eclipse.jdt.internal.ui.text.link.LinkedPositionUI.initializeHighlightColor (LinkedPositionUI.java:109) at org.eclipse.jdt.internal.ui.text.link.LinkedPositionUI.propertyChange (LinkedPositionUI.java:100) at org.eclipse.ui.plugin.AbstractUIPlugin$Compatibilit...
resolved fixed
6663ac0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-23T14:25:04Z
2002-04-23T11:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/link/LinkedPositionUI.java
leave(UNINSTALL | COMMIT); } /* * @see PaintListener#paintControl(PaintEvent) */ public void paintControl(PaintEvent event) { if (fFramePosition == null) return; IRegion region= fViewer.getVisibleRegion(); if (!includes(region, fFramePosition)) { leave(UNINSTALL | COMMIT | DOCUMENT_CHANGED); ...
14,390
Bug 14390 npe on sorting in outline
20020418+ (20020418.2) java.lang.NullPointerException at org.eclipse.jdt.internal.ui.text.link.LinkedPositionUI.initializeHighlightColor (LinkedPositionUI.java:109) at org.eclipse.jdt.internal.ui.text.link.LinkedPositionUI.propertyChange (LinkedPositionUI.java:100) at org.eclipse.ui.plugin.AbstractUIPlugin$Compatibilit...
resolved fixed
6663ac0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-23T14:25:04Z
2002-04-23T11:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/link/LinkedPositionUI.java
gc.drawLine(x1, y, x2, y); } private static Point getMinimumLocation(StyledText text, int offset, int length) { Point minLocation= new Point(Integer.MAX_VALUE, Integer.MAX_VALUE); for (int i= 0; i <= length; i++) { Point location= text.getLocationAtOffset(offset + i); if (location.x < minLocation.x) ...
14,390
Bug 14390 npe on sorting in outline
20020418+ (20020418.2) java.lang.NullPointerException at org.eclipse.jdt.internal.ui.text.link.LinkedPositionUI.initializeHighlightColor (LinkedPositionUI.java:109) at org.eclipse.jdt.internal.ui.text.link.LinkedPositionUI.propertyChange (LinkedPositionUI.java:100) at org.eclipse.ui.plugin.AbstractUIPlugin$Compatibilit...
resolved fixed
6663ac0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-23T14:25:04Z
2002-04-23T11:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/link/LinkedPositionUI.java
if (!includes(region, fFramePosition)) { leave(UNINSTALL | COMMIT | DOCUMENT_CHANGED); return; } int offset= fFramePosition.getOffset() - region.getOffset(); int length= fFramePosition.getLength(); fViewer.getTextWidget().redrawRange(offset, length, true); } private void selectRegion() { IReg...
14,390
Bug 14390 npe on sorting in outline
20020418+ (20020418.2) java.lang.NullPointerException at org.eclipse.jdt.internal.ui.text.link.LinkedPositionUI.initializeHighlightColor (LinkedPositionUI.java:109) at org.eclipse.jdt.internal.ui.text.link.LinkedPositionUI.propertyChange (LinkedPositionUI.java:100) at org.eclipse.ui.plugin.AbstractUIPlugin$Compatibilit...
resolved fixed
6663ac0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-23T14:25:04Z
2002-04-23T11:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/link/LinkedPositionUI.java
/* * @see ModifyListener#modifyText(ModifyEvent) */ public void modifyText(ModifyEvent e) { redrawRegion(); updateCaret(); } private static void openErrorDialog(Shell shell, Exception e) { MessageDialog.openError(shell, LinkedPositionMessages.getString("LinkedPositionUI.error.title"), e.getMessage());...
18,483
Bug 18483 IE6 causes conflict with SWT.APPLICATION_MODAL on Windows 98
Build 20020531 When IE 6 is installed on Windows 98 it replaces the task bar with one of its own (according to Dave Thomson). When this occurs the focus behaviour of shells with modality set to SWT.APPLICATION_MODAL changes. STEPS 1) Start Windows 98 on a machine with IE 5 or earlier 2) Select a file 3) Hit delete - a ...
resolved fixed
208c64c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-24T16:05:56Z
2002-05-31T18:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/JavaTextTools.java
package org.eclipse.jdt.ui.text; /* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ import org.eclipse.jface.preference.IPreferenceStore; import org.eclipse.jface.text.IDocumentPartitioner; import org.eclipse.jface.text.rules.DefaultPartitioner; import org.eclipse.jface.text.rules.RuleBasedPartitionS...
18,483
Bug 18483 IE6 causes conflict with SWT.APPLICATION_MODAL on Windows 98
Build 20020531 When IE 6 is installed on Windows 98 it replaces the task bar with one of its own (according to Dave Thomson). When this occurs the focus behaviour of shells with modality set to SWT.APPLICATION_MODAL changes. STEPS 1) Start Windows 98 on a machine with IE 5 or earlier 2) Select a file 3) Hit delete - a ...
resolved fixed
208c64c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-24T16:05:56Z
2002-05-31T18:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/JavaTextTools.java
private class PreferenceListener implements IPropertyChangeListener { public void propertyChange(PropertyChangeEvent event) { adaptToPreferenceChange(event); } }; private JavaColorManager fColorManager; private JavaCodeScanner fCodeScanner; private SingleTokenJavaScanner fMultilineCommentScanner; ...
18,483
Bug 18483 IE6 causes conflict with SWT.APPLICATION_MODAL on Windows 98
Build 20020531 When IE 6 is installed on Windows 98 it replaces the task bar with one of its own (according to Dave Thomson). When this occurs the focus behaviour of shells with modality set to SWT.APPLICATION_MODAL changes. STEPS 1) Start Windows 98 on a machine with IE 5 or earlier 2) Select a file 3) Hit delete - a ...
resolved fixed
208c64c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-24T16:05:56Z
2002-05-31T18:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/JavaTextTools.java
private JavaPartitionScanner fPartitionScanner; private IPreferenceStore fPreferenceStore; private PreferenceListener fPreferenceListener= new PreferenceListener(); /** * Creates a new Java text tools collection. */ public JavaTextTools(IPreferenceStore store) { fPreferenceStore= store; fPreference...
18,483
Bug 18483 IE6 causes conflict with SWT.APPLICATION_MODAL on Windows 98
Build 20020531 When IE 6 is installed on Windows 98 it replaces the task bar with one of its own (according to Dave Thomson). When this occurs the focus behaviour of shells with modality set to SWT.APPLICATION_MODAL changes. STEPS 1) Start Windows 98 on a machine with IE 5 or earlier 2) Select a file 3) Hit delete - a ...
resolved fixed
208c64c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-24T16:05:56Z
2002-05-31T18:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/JavaTextTools.java
fSinglelineCommentScanner= null; fStringScanner= null; fJavaDocScanner= null; fPartitionScanner= null; if (fColorManager != null) { fColorManager.dispose(); fColorManager= null; } if (fPreferenceStore != null) { fPreferenceStore.removePropertyChangeListener(fPreferenceListener); fPreferenc...
18,483
Bug 18483 IE6 causes conflict with SWT.APPLICATION_MODAL on Windows 98
Build 20020531 When IE 6 is installed on Windows 98 it replaces the task bar with one of its own (according to Dave Thomson). When this occurs the focus behaviour of shells with modality set to SWT.APPLICATION_MODAL changes. STEPS 1) Start Windows 98 on a machine with IE 5 or earlier 2) Select a file 3) Hit delete - a ...
resolved fixed
208c64c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-24T16:05:56Z
2002-05-31T18:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/JavaTextTools.java
* @return a Java source code scanner */ public RuleBasedScanner getCodeScanner() { return fCodeScanner; } /** * Returns a scanner which is configured to scan Java multiline comments. * * @return a Java multiline comment scanner */ public RuleBasedScanner getMultilineCommentScanner() { return fMultil...
18,483
Bug 18483 IE6 causes conflict with SWT.APPLICATION_MODAL on Windows 98
Build 20020531 When IE 6 is installed on Windows 98 it replaces the task bar with one of its own (according to Dave Thomson). When this occurs the focus behaviour of shells with modality set to SWT.APPLICATION_MODAL changes. STEPS 1) Start Windows 98 on a machine with IE 5 or earlier 2) Select a file 3) Hit delete - a ...
resolved fixed
208c64c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-24T16:05:56Z
2002-05-31T18:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/JavaTextTools.java
} /** * Returns a scanner which is configured to scan JavaDoc compliant comments. * Notes that the start sequence "/**" and the corresponding end sequence * are part of the JavaDoc comment. * * @return a JavaDoc scanner */ public RuleBasedScanner getJavaDocScanner() { return fJavaDocScanner; } /**...
18,483
Bug 18483 IE6 causes conflict with SWT.APPLICATION_MODAL on Windows 98
Build 20020531 When IE 6 is installed on Windows 98 it replaces the task bar with one of its own (according to Dave Thomson). When this occurs the focus behaviour of shells with modality set to SWT.APPLICATION_MODAL changes. STEPS 1) Start Windows 98 on a machine with IE 5 or earlier 2) Select a file 3) Hit delete - a ...
resolved fixed
208c64c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-24T16:05:56Z
2002-05-31T18:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/JavaTextTools.java
*/ public IDocumentPartitioner createDocumentPartitioner() { String[] types= new String[] { JavaPartitionScanner.JAVA_DOC, JavaPartitionScanner.JAVA_MULTI_LINE_COMMENT, JavaPartitionScanner.JAVA_SINGLE_LINE_COMMENT, JavaPartitionScanner.JAVA_STRING }; return new DefaultPartitioner(getPartitionS...
18,483
Bug 18483 IE6 causes conflict with SWT.APPLICATION_MODAL on Windows 98
Build 20020531 When IE 6 is installed on Windows 98 it replaces the task bar with one of its own (according to Dave Thomson). When this occurs the focus behaviour of shells with modality set to SWT.APPLICATION_MODAL changes. STEPS 1) Start Windows 98 on a machine with IE 5 or earlier 2) Select a file 3) Hit delete - a ...
resolved fixed
208c64c
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-24T16:05:56Z
2002-05-31T18:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/JavaTextTools.java
* @param event the event to be investigated * @return <code>true</code> if event causes a behavioral change */ public boolean affectsBehavior(PropertyChangeEvent event) { return fCodeScanner.affectsBehavior(event) || fMultilineCommentScanner.affectsBehavior(event) || fSinglelineCommentScanner.affectsB...
14,368
Bug 14368 Create getter and setter insert code into read-only file
1. Create a class C as follow: package jp1; public class C { private int id; } 2. Close it and mark it as read only 3. Reopen it and you should not be able to modify anything 4. From the outline view, select "id - int" and right mouse click and select "Create getter and setter". 5. The class becomes package jp1; public...
resolved fixed
e6ed913
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-26T12:41:25Z
2002-04-22T21:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/AddGetterSetterAction.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...
14,368
Bug 14368 Create getter and setter insert code into read-only file
1. Create a class C as follow: package jp1; public class C { private int id; } 2. Close it and mark it as read only 3. Reopen it and you should not be able to modify anything 4. From the outline view, select "id - int" and right mouse click and select "Create getter and setter". 5. The class becomes package jp1; public...
resolved fixed
e6ed913
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-26T12:41:25Z
2002-04-22T21:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/AddGetterSetterAction.java
import org.eclipse.jface.viewers.ISelection; import org.eclipse.jface.viewers.ISelectionProvider; import org.eclipse.jface.viewers.IStructuredSelection; import org.eclipse.ui.IEditorPart; import org.eclipse.ui.help.WorkbenchHelp; import org.eclipse.jdt.core.ICompilationUnit; import org.eclipse.jdt.core.IField; import o...
14,368
Bug 14368 Create getter and setter insert code into read-only file
1. Create a class C as follow: package jp1; public class C { private int id; } 2. Close it and mark it as read only 3. Reopen it and you should not be able to modify anything 4. From the outline view, select "id - int" and right mouse click and select "Create getter and setter". 5. The class becomes package jp1; public...
resolved fixed
e6ed913
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-26T12:41:25Z
2002-04-22T21:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/AddGetterSetterAction.java
private ISelectionProvider fSelectionProvider; public AddGetterSetterAction(ISelectionProvider selProvider) { super(JavaUIMessages.getString("AddGetterSetterAction.label")); setDescription(JavaUIMessages.getString("AddGetterSetterAction.description")); setToolTipText(JavaUIMessages.getString("AddGetterSetterAc...
14,368
Bug 14368 Create getter and setter insert code into read-only file
1. Create a class C as follow: package jp1; public class C { private int id; } 2. Close it and mark it as read only 3. Reopen it and you should not be able to modify anything 4. From the outline view, select "id - int" and right mouse click and select "Create getter and setter". 5. The class becomes package jp1; public...
resolved fixed
e6ed913
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-26T12:41:25Z
2002-04-22T21:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/AddGetterSetterAction.java
showError(JavaUIMessages.getString("AddGetterSetterAction.error.actionfailed")); return; } workingCopyFields= new IField[fields.length]; for (int i= 0; i < fields.length; i++) { IField field= fields[i]; IField workingCopyField= (IField) JavaModelUtil.findMemberInCompilationUnit(workingCopyCU...
14,368
Bug 14368 Create getter and setter insert code into read-only file
1. Create a class C as follow: package jp1; public class C { private int id; } 2. Close it and mark it as read only 3. Reopen it and you should not be able to modify anything 4. From the outline view, select "id - int" and right mouse click and select "Create getter and setter". 5. The class becomes package jp1; public...
resolved fixed
e6ed913
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-26T12:41:25Z
2002-04-22T21:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/AddGetterSetterAction.java
showError(JavaUIMessages.getString("AddGetterSetterAction.error.actionfailed")); } catch (CoreException e) { JavaPlugin.log(e.getStatus()); showError(JavaUIMessages.getString("AddGetterSetterAction.error.actionfailed")); return; } catch (InterruptedException e) { } } private IRequestQuery sk...
14,368
Bug 14368 Create getter and setter insert code into read-only file
1. Create a class C as follow: package jp1; public class C { private int id; } 2. Close it and mark it as read only 3. Reopen it and you should not be able to modify anything 4. From the outline view, select "id - int" and right mouse click and select "Create getter and setter". 5. The class becomes package jp1; public...
resolved fixed
e6ed913
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-26T12:41:25Z
2002-04-22T21:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/AddGetterSetterAction.java
String[] options= { skipLabel, replaceLabel, skipAllLabel, IDialogConstants.CANCEL_LABEL}; String methodName= JavaElementLabels.getElementLabel(method, JavaElementLabels.M_PARAMETER_TYPES); String formattedMessage= JavaUIMessages.getFormattedString("AddGetterSetterAction.SkipExistingDialog.message", methodName)...
14,368
Bug 14368 Create getter and setter insert code into read-only file
1. Create a class C as follow: package jp1; public class C { private int id; } 2. Close it and mark it as read only 3. Reopen it and you should not be able to modify anything 4. From the outline view, select "id - int" and right mouse click and select "Create getter and setter". 5. The class becomes package jp1; public...
resolved fixed
e6ed913
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-26T12:41:25Z
2002-04-22T21:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/AddGetterSetterAction.java
Shell shell= JavaPlugin.getActiveWorkbenchShell(); String title= JavaUIMessages.getString("AddGetterSetterAction.error.title"); MessageDialog.openError(shell, title, message); } /* * Returns fields in the selection or <code>null</code> if the selection is * empty or not valid. */ private IField[] getSe...
14,368
Bug 14368 Create getter and setter insert code into read-only file
1. Create a class C as follow: package jp1; public class C { private int id; } 2. Close it and mark it as read only 3. Reopen it and you should not be able to modify anything 4. From the outline view, select "id - int" and right mouse click and select "Create getter and setter". 5. The class becomes package jp1; public...
resolved fixed
e6ed913
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-26T12:41:25Z
2002-04-22T21:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/AddGetterSetterAction.java
return null; } try { if (fld.getDeclaringType().isInterface()) { return null; } } catch (JavaModelException e) { JavaPlugin.log(e); return null; } res[i]= fld; } else { return null; } } return res; } } retur...
14,368
Bug 14368 Create getter and setter insert code into read-only file
1. Create a class C as follow: package jp1; public class C { private int id; } 2. Close it and mark it as read only 3. Reopen it and you should not be able to modify anything 4. From the outline view, select "id - int" and right mouse click and select "Create getter and setter". 5. The class becomes package jp1; public...
resolved fixed
e6ed913
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-26T12:41:25Z
2002-04-22T21:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/AddJavaDocStubAction.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...
14,368
Bug 14368 Create getter and setter insert code into read-only file
1. Create a class C as follow: package jp1; public class C { private int id; } 2. Close it and mark it as read only 3. Reopen it and you should not be able to modify anything 4. From the outline view, select "id - int" and right mouse click and select "Create getter and setter". 5. The class becomes package jp1; public...
resolved fixed
e6ed913
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-26T12:41:25Z
2002-04-22T21:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/AddJavaDocStubAction.java
import org.eclipse.jdt.core.IMember; import org.eclipse.jdt.core.IMethod; import org.eclipse.jdt.core.IType; import org.eclipse.jdt.internal.corext.codemanipulation.AddJavaDocStubOperation; import org.eclipse.jdt.internal.corext.codemanipulation.CodeGenerationSettings; import org.eclipse.jdt.internal.corext.util.JavaMo...
14,368
Bug 14368 Create getter and setter insert code into read-only file
1. Create a class C as follow: package jp1; public class C { private int id; } 2. Close it and mark it as read only 3. Reopen it and you should not be able to modify anything 4. From the outline view, select "id - int" and right mouse click and select "Create getter and setter". 5. The class becomes package jp1; public...
resolved fixed
e6ed913
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-26T12:41:25Z
2002-04-22T21:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/AddJavaDocStubAction.java
try { ICompilationUnit cu= members[0].getCompilationUnit(); IEditorPart editor= EditorUtility.openInEditor(cu); ICompilationUnit workingCopyCU; IMember[] workingCopyMembers; if (cu.isWorkingCopy()) { workingCopyCU= cu; workingCopyMembers= members; } else { workingCopyCU= Edito...
14,368
Bug 14368 Create getter and setter insert code into read-only file
1. Create a class C as follow: package jp1; public class C { private int id; } 2. Close it and mark it as read only 3. Reopen it and you should not be able to modify anything 4. From the outline view, select "id - int" and right mouse click and select "Create getter and setter". 5. The class becomes package jp1; public...
resolved fixed
e6ed913
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-26T12:41:25Z
2002-04-22T21:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/AddJavaDocStubAction.java
CodeGenerationSettings settings= JavaPreferencesSettings.getCodeGenerationSettings(); AddJavaDocStubOperation op= new AddJavaDocStubOperation(workingCopyMembers, settings); ProgressMonitorDialog dialog= new ProgressMonitorDialog(JavaPlugin.getActiveWorkbenchShell()); dialog.run(false, true, new WorkbenchRunnab...
14,368
Bug 14368 Create getter and setter insert code into read-only file
1. Create a class C as follow: package jp1; public class C { private int id; } 2. Close it and mark it as read only 3. Reopen it and you should not be able to modify anything 4. From the outline view, select "id - int" and right mouse click and select "Create getter and setter". 5. The class becomes package jp1; public...
resolved fixed
e6ed913
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-26T12:41:25Z
2002-04-22T21:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/AddJavaDocStubAction.java
IMember[] res= new IMember[nElements]; ICompilationUnit cu= null; for (int i= 0; i < nElements; i++) { Object curr= elements.get(i); if (curr instanceof IMethod || curr instanceof IType) { IMember member= (IMember)curr; if (i == 0) { cu= member.getCompilationUnit(); i...
14,368
Bug 14368 Create getter and setter insert code into read-only file
1. Create a class C as follow: package jp1; public class C { private int id; } 2. Close it and mark it as read only 3. Reopen it and you should not be able to modify anything 4. From the outline view, select "id - int" and right mouse click and select "Create getter and setter". 5. The class becomes package jp1; public...
resolved fixed
e6ed913
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-26T12:41:25Z
2002-04-22T21: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;
14,368
Bug 14368 Create getter and setter insert code into read-only file
1. Create a class C as follow: package jp1; public class C { private int id; } 2. Close it and mark it as read only 3. Reopen it and you should not be able to modify anything 4. From the outline view, select "id - int" and right mouse click and select "Create getter and setter". 5. The class becomes package jp1; public...
resolved fixed
e6ed913
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-26T12:41:25Z
2002-04-22T21:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/AddMethodStubAction.java
import org.eclipse.jface.action.Action; import org.eclipse.jface.dialogs.ErrorDialog; 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.I...
14,368
Bug 14368 Create getter and setter insert code into read-only file
1. Create a class C as follow: package jp1; public class C { private int id; } 2. Close it and mark it as read only 3. Reopen it and you should not be able to modify anything 4. From the outline view, select "id - int" and right mouse click and select "Create getter and setter". 5. The class becomes package jp1; public...
resolved fixed
e6ed913
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-26T12:41:25Z
2002-04-22T21: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...
14,368
Bug 14368 Create getter and setter insert code into read-only file
1. Create a class C as follow: package jp1; public class C { private int id; } 2. Close it and mark it as read only 3. Reopen it and you should not be able to modify anything 4. From the outline view, select "id - int" and right mouse click and select "Create getter and setter". 5. The class becomes package jp1; public...
resolved fixed
e6ed913
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-26T12:41:25Z
2002-04-22T21:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/AddMethodStubAction.java
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= (IType)EditorUtility...
14,368
Bug 14368 Create getter and setter insert code into read-only file
1. Create a class C as follow: package jp1; public class C { private int id; } 2. Close it and mark it as read only 3. Reopen it and you should not be able to modify anything 4. From the outline view, select "id - int" and right mouse click and select "Create getter and setter". 5. The class becomes package jp1; public...
resolved fixed
e6ed913
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-26T12:41:25Z
2002-04-22T21:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/AddMethodStubAction.java
} catch (InvocationTargetException e) { MessageDialog.openError(shell, JavaUIMessages.getString("AddMethodStubAction.error.title"), e.getTargetException().getMessage()); JavaPlugin.log(e.getTargetException()); } catch (CoreException e) { ErrorDialog.openError(shell, JavaUIMessages.getString("AddMethodStubAc...
14,368
Bug 14368 Create getter and setter insert code into read-only file
1. Create a class C as follow: package jp1; public class C { private int id; } 2. Close it and mark it as read only 3. Reopen it and you should not be able to modify anything 4. From the outline view, select "id - int" and right mouse click and select "Create getter and setter". 5. The class becomes package jp1; public...
resolved fixed
e6ed913
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-26T12:41:25Z
2002-04-22T21: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...
14,368
Bug 14368 Create getter and setter insert code into read-only file
1. Create a class C as follow: package jp1; public class C { private int id; } 2. Close it and mark it as read only 3. Reopen it and you should not be able to modify anything 4. From the outline view, select "id - int" and right mouse click and select "Create getter and setter". 5. The class becomes package jp1; public...
resolved fixed
e6ed913
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-26T12:41:25Z
2002-04-22T21: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 || !(selection instanceof ...
14,368
Bug 14368 Create getter and setter insert code into read-only file
1. Create a class C as follow: package jp1; public class C { private int id; } 2. Close it and mark it as read only 3. Reopen it and you should not be able to modify anything 4. From the outline view, select "id - int" and right mouse click and select "Create getter and setter". 5. The class becomes package jp1; public...
resolved fixed
e6ed913
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-26T12:41:25Z
2002-04-22T21:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/AddUnimplementedConstructorsAction.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.actions; import java.lang.reflect.InvocationTargetException; import org.eclipse.core.runtime.CoreException; import org.eclipse.swt.widgets.Shell; import org.eclipse.jface.action.Action; import org.eclipse.jface.dia...
14,368
Bug 14368 Create getter and setter insert code into read-only file
1. Create a class C as follow: package jp1; public class C { private int id; } 2. Close it and mark it as read only 3. Reopen it and you should not be able to modify anything 4. From the outline view, select "id - int" and right mouse click and select "Create getter and setter". 5. The class becomes package jp1; public...
resolved fixed
e6ed913
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-26T12:41:25Z
2002-04-22T21:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/AddUnimplementedConstructorsAction.java
import org.eclipse.ui.help.WorkbenchHelp; import org.eclipse.jdt.core.IMethod; import org.eclipse.jdt.core.IType; import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jdt.internal.corext.codemanipulation.AddUnimplementedConstructorsOperation; import org.eclipse.jdt.internal.corext.codemanipulation.CodeGen...
14,368
Bug 14368 Create getter and setter insert code into read-only file
1. Create a class C as follow: package jp1; public class C { private int id; } 2. Close it and mark it as read only 3. Reopen it and you should not be able to modify anything 4. From the outline view, select "id - int" and right mouse click and select "Create getter and setter". 5. The class becomes package jp1; public...
resolved fixed
e6ed913
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-26T12:41:25Z
2002-04-22T21:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/AddUnimplementedConstructorsAction.java
try { IType type= getSelectedType(); if (type == null) { return; } IEditorPart editor= EditorUtility.openInEditor(type); type= (IType)EditorUtility.getWorkingCopy(type); if (type == null) { MessageDialog.openError(shell, JavaUIMessages.getString("AddUnimplementedConstructorsAction.er...
14,368
Bug 14368 Create getter and setter insert code into read-only file
1. Create a class C as follow: package jp1; public class C { private int id; } 2. Close it and mark it as read only 3. Reopen it and you should not be able to modify anything 4. From the outline view, select "id - int" and right mouse click and select "Create getter and setter". 5. The class becomes package jp1; public...
resolved fixed
e6ed913
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-26T12:41:25Z
2002-04-22T21:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/AddUnimplementedConstructorsAction.java
} } catch (CoreException e) { JavaPlugin.log(e); ErrorDialog.openError(shell, JavaUIMessages.getString("AddUnimplementedConstructorsAction.error.title"), null, e.getStatus()); } } private IType getSelectedType() throws JavaModelException { ISelection sel= fSelectionProvider.getSelection(); if (se...
14,368
Bug 14368 Create getter and setter insert code into read-only file
1. Create a class C as follow: package jp1; public class C { private int id; } 2. Close it and mark it as read only 3. Reopen it and you should not be able to modify anything 4. From the outline view, select "id - int" and right mouse click and select "Create getter and setter". 5. The class becomes package jp1; public...
resolved fixed
e6ed913
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-26T12:41:25Z
2002-04-22T21:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/AddUnimplementedMethodsAction.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.actions; import java.lang.reflect.InvocationTargetException; import org.eclipse.core.runtime.CoreException; import org.eclipse.swt.widgets.Shell; import org.eclipse.jface.action.Action; import org.eclipse.jface.dia...
14,368
Bug 14368 Create getter and setter insert code into read-only file
1. Create a class C as follow: package jp1; public class C { private int id; } 2. Close it and mark it as read only 3. Reopen it and you should not be able to modify anything 4. From the outline view, select "id - int" and right mouse click and select "Create getter and setter". 5. The class becomes package jp1; public...
resolved fixed
e6ed913
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-26T12:41:25Z
2002-04-22T21:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/AddUnimplementedMethodsAction.java
import org.eclipse.jdt.core.IType; import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jdt.internal.corext.codemanipulation.AddUnimplementedMethodsOperation; import org.eclipse.jdt.internal.corext.codemanipulation.CodeGenerationSettings; import org.eclipse.jdt.internal.ui.IJavaHelpContextIds; import org....
14,368
Bug 14368 Create getter and setter insert code into read-only file
1. Create a class C as follow: package jp1; public class C { private int id; } 2. Close it and mark it as read only 3. Reopen it and you should not be able to modify anything 4. From the outline view, select "id - int" and right mouse click and select "Create getter and setter". 5. The class becomes package jp1; public...
resolved fixed
e6ed913
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-26T12:41:25Z
2002-04-22T21:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/AddUnimplementedMethodsAction.java
IType type= getSelectedType(); if (type == null) { return; } IEditorPart editor= EditorUtility.openInEditor(type); type= (IType)EditorUtility.getWorkingCopy(type); if (type == null) { MessageDialog.openError(shell, JavaUIMessages.getString("AddUnimplementedMethodsAction.error.title"), J...
14,368
Bug 14368 Create getter and setter insert code into read-only file
1. Create a class C as follow: package jp1; public class C { private int id; } 2. Close it and mark it as read only 3. Reopen it and you should not be able to modify anything 4. From the outline view, select "id - int" and right mouse click and select "Create getter and setter". 5. The class becomes package jp1; public...
resolved fixed
e6ed913
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-26T12:41:25Z
2002-04-22T21:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/AddUnimplementedMethodsAction.java
} } catch (CoreException e) { JavaPlugin.log(e); ErrorDialog.openError(shell, JavaUIMessages.getString("AddUnimplementedMethodsAction.error.title"), null, e.getStatus()); } } private IType getSelectedType() throws JavaModelException { ISelection sel= fSelectionProvider.getSelection(); if (sel ins...
14,368
Bug 14368 Create getter and setter insert code into read-only file
1. Create a class C as follow: package jp1; public class C { private int id; } 2. Close it and mark it as read only 3. Reopen it and you should not be able to modify anything 4. From the outline view, select "id - int" and right mouse click and select "Create getter and setter". 5. The class becomes package jp1; public...
resolved fixed
e6ed913
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-26T12:41:25Z
2002-04-22T21:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/AddImportOnSelectionAction.java
package org.eclipse.jdt.internal.ui.javaeditor; /* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ import java.lang.reflect.InvocationTargetException; import java.util.ArrayList; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.swt.wi...
14,368
Bug 14368 Create getter and setter insert code into read-only file
1. Create a class C as follow: package jp1; public class C { private int id; } 2. Close it and mark it as read only 3. Reopen it and you should not be able to modify anything 4. From the outline view, select "id - int" and right mouse click and select "Create getter and setter". 5. The class becomes package jp1; public...
resolved fixed
e6ed913
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-26T12:41:25Z
2002-04-22T21:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/AddImportOnSelectionAction.java
import org.eclipse.jface.text.BadLocationException; import org.eclipse.jface.text.IDocument; import org.eclipse.jface.text.ITextSelection; import org.eclipse.jface.viewers.ISelection; import org.eclipse.ui.dialogs.ElementListSelectionDialog; import org.eclipse.ui.help.WorkbenchHelp; import org.eclipse.ui.texteditor.ITe...
14,368
Bug 14368 Create getter and setter insert code into read-only file
1. Create a class C as follow: package jp1; public class C { private int id; } 2. Close it and mark it as read only 3. Reopen it and you should not be able to modify anything 4. From the outline view, select "id - int" and right mouse click and select "Create getter and setter". 5. The class becomes package jp1; public...
resolved fixed
e6ed913
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-26T12:41:25Z
2002-04-22T21:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/AddImportOnSelectionAction.java
public AddImportOnSelectionAction(ITextEditor editor) { super(JavaEditorMessages.getString("AddImportOnSelection.label")); setToolTipText(JavaEditorMessages.getString("AddImportOnSelection.tooltip")); setDescription(JavaEditorMessages.getString("AddImportOnSelection.description")); fEditor= editor; W...
14,368
Bug 14368 Create getter and setter insert code into read-only file
1. Create a class C as follow: package jp1; public class C { private int id; } 2. Close it and mark it as read only 3. Reopen it and you should not be able to modify anything 4. From the outline view, select "id - int" and right mouse click and select "Create getter and setter". 5. The class becomes package jp1; public...
resolved fixed
e6ed913
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-26T12:41:25Z
2002-04-22T21:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/AddImportOnSelectionAction.java
public void run() { ICompilationUnit cu= getCompilationUnit(); if (cu != null) { ISelection s= fEditor.getSelectionProvider().getSelection(); IDocument doc= fEditor.getDocumentProvider().getDocument(fEditor.getEditorInput()); ITextSelection selection= (ITextSelection) s; if (doc != null) { try {...