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
7,469
Bug 7469 Preferences -> Java -> Templates
The template body editor window at the bottom part of a Templates preferences page should contain both vertical and horizontal scroll bars.
resolved fixed
b728519
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-16T17:13:56Z
2002-01-11T09:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/TemplatePreferencePage.java
import org.eclipse.jface.viewers.CheckboxTableViewer; import org.eclipse.jface.viewers.ColumnWeightData; import org.eclipse.jface.viewers.DoubleClickEvent; import org.eclipse.jface.viewers.ICheckStateListener; import org.eclipse.jface.viewers.IDoubleClickListener; import org.eclipse.jface.viewers.ISelectionChangedListener; import org.eclipse.jface.viewers.IStructuredSelection; import org.eclipse.jface.viewers.SelectionChangedEvent; import org.eclipse.jface.viewers.StructuredSelection; import org.eclipse.jface.viewers.TableLayout; import org.eclipse.jface.viewers.Viewer; import org.eclipse.jface.viewers.ViewerSorter; import org.eclipse.ui.IWorkbench; import org.eclipse.ui.IWorkbenchPreferencePage; import org.eclipse.ui.help.DialogPageContextComputer; import org.eclipse.ui.help.WorkbenchHelp; import org.eclipse.jdt.ui.JavaUI; import org.eclipse.jdt.ui.text.JavaSourceViewerConfiguration; import org.eclipse.jdt.ui.text.JavaTextTools; import org.eclipse.jdt.internal.ui.IJavaHelpContextIds; import org.eclipse.jdt.internal.ui.JavaPlugin; import org.eclipse.jdt.internal.ui.text.template.Template; import org.eclipse.jdt.internal.ui.text.template.TemplateContentProvider; import org.eclipse.jdt.internal.ui.text.template.TemplateContext; import org.eclipse.jdt.internal.ui.text.template.TemplateLabelProvider; import org.eclipse.jdt.internal.ui.text.template.TemplateMessages; import org.eclipse.jdt.internal.ui.text.template.TemplateSet; import org.eclipse.jdt.internal.ui.text.template.Templates; import org.eclipse.jdt.internal.ui.util.SWTUtil; public class TemplatePreferencePage extends PreferencePage implements IWorkbenchPreferencePage {
7,469
Bug 7469 Preferences -> Java -> Templates
The template body editor window at the bottom part of a Templates preferences page should contain both vertical and horizontal scroll bars.
resolved fixed
b728519
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-16T17:13:56Z
2002-01-11T09:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/TemplatePreferencePage.java
private static final String PREF_FORMAT_TEMPLATES= JavaUI.ID_PLUGIN + ".template.format"; private Templates fTemplates; private CheckboxTableViewer fTableViewer; private Button fAddButton; private Button fEditButton; private Button fImportButton; private Button fExportButton; private Button fExportAllButton; private Button fRemoveButton; private Button fEnableAllButton; private Button fDisableAllButton; private SourceViewer fPatternViewer; private Button fFormatButton; public TemplatePreferencePage() { super(); setPreferenceStore(JavaPlugin.getDefault().getPreferenceStore());
7,469
Bug 7469 Preferences -> Java -> Templates
The template body editor window at the bottom part of a Templates preferences page should contain both vertical and horizontal scroll bars.
resolved fixed
b728519
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-16T17:13:56Z
2002-01-11T09:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/TemplatePreferencePage.java
setDescription(TemplateMessages.getString("TemplatePreferencePage.message")); fTemplates= Templates.getInstance(); } /** * @see PreferencePage#createContents(Composite) */ protected Control createContents(Composite ancestor) { Composite parent= new Composite(ancestor, SWT.NONE); GridLayout layout= new GridLayout(); layout.numColumns= 2; layout.marginHeight= 0; layout.marginWidth= 0; parent.setLayout(layout); Table table= new Table(parent, SWT.CHECK | SWT.BORDER | SWT.MULTI | SWT.FULL_SELECTION); GridData data= new GridData(GridData.FILL_BOTH); data.widthHint= convertWidthInCharsToPixels(80); data.heightHint= convertHeightInCharsToPixels(10); table.setLayoutData(data); table.setHeaderVisible(true); table.setLinesVisible(true); TableLayout tableLayout= new TableLayout(); table.setLayout(tableLayout); TableColumn column1= new TableColumn(table, SWT.NONE); column1.setText(TemplateMessages.getString("TemplatePreferencePage.column.name")); TableColumn column2= new TableColumn(table, SWT.NONE); column2.setText(TemplateMessages.getString("TemplatePreferencePage.column.context")); TableColumn column3= new TableColumn(table, SWT.NONE);
7,469
Bug 7469 Preferences -> Java -> Templates
The template body editor window at the bottom part of a Templates preferences page should contain both vertical and horizontal scroll bars.
resolved fixed
b728519
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-16T17:13:56Z
2002-01-11T09:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/TemplatePreferencePage.java
column3.setText(TemplateMessages.getString("TemplatePreferencePage.column.description")); tableLayout.addColumnData(new ColumnWeightData(30)); tableLayout.addColumnData(new ColumnWeightData(20)); tableLayout.addColumnData(new ColumnWeightData(70)); fTableViewer= new CheckboxTableViewer(table); fTableViewer.setLabelProvider(new TemplateLabelProvider()); fTableViewer.setContentProvider(new TemplateContentProvider()); fTableViewer.setSorter(new ViewerSorter() { public int compare(Viewer viewer, Object object1, Object object2) { if ((object1 instanceof Template) && (object2 instanceof Template)) { Template left= (Template) object1; Template right= (Template) object2; int result= left.getName().compareToIgnoreCase(right.getName()); if (result != 0) return result; return left.getDescription().compareToIgnoreCase(right.getDescription()); } return super.compare(viewer, object1, object2); } public boolean isSorterProperty(Object element, String property) { return true; } }); fTableViewer.addDoubleClickListener(new IDoubleClickListener() { public void doubleClick(DoubleClickEvent e) { edit(); }
7,469
Bug 7469 Preferences -> Java -> Templates
The template body editor window at the bottom part of a Templates preferences page should contain both vertical and horizontal scroll bars.
resolved fixed
b728519
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-16T17:13:56Z
2002-01-11T09:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/TemplatePreferencePage.java
}); fTableViewer.addSelectionChangedListener(new ISelectionChangedListener() { public void selectionChanged(SelectionChangedEvent e) { selectionChanged1(); } }); fTableViewer.addCheckStateListener(new ICheckStateListener() { public void checkStateChanged(CheckStateChangedEvent event) { Template template= (Template) event.getElement(); template.setEnabled(event.getChecked()); } }); Composite buttons= new Composite(parent, SWT.NULL); buttons.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_BEGINNING)); layout= new GridLayout(); layout.marginHeight= 0; layout.marginWidth= 0; buttons.setLayout(layout); fAddButton= new Button(buttons, SWT.PUSH); fAddButton.setLayoutData(getButtonGridData(fAddButton)); fAddButton.setText(TemplateMessages.getString("TemplatePreferencePage.new")); fAddButton.addListener(SWT.Selection, new Listener() { public void handleEvent(Event e) { add(); } }); fEditButton= new Button(buttons, SWT.PUSH); fEditButton.setLayoutData(getButtonGridData(fEditButton));
7,469
Bug 7469 Preferences -> Java -> Templates
The template body editor window at the bottom part of a Templates preferences page should contain both vertical and horizontal scroll bars.
resolved fixed
b728519
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-16T17:13:56Z
2002-01-11T09:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/TemplatePreferencePage.java
fEditButton.setText(TemplateMessages.getString("TemplatePreferencePage.edit")); fEditButton.addListener(SWT.Selection, new Listener() { public void handleEvent(Event e) { edit(); } }); fRemoveButton= new Button(buttons, SWT.PUSH); fRemoveButton.setLayoutData(getButtonGridData(fRemoveButton)); fRemoveButton.setText(TemplateMessages.getString("TemplatePreferencePage.remove")); fRemoveButton.addListener(SWT.Selection, new Listener() { public void handleEvent(Event e) { remove(); } }); createSpacer(buttons); fImportButton= new Button(buttons, SWT.PUSH); fImportButton.setLayoutData(getButtonGridData(fImportButton)); fImportButton.setText(TemplateMessages.getString("TemplatePreferencePage.import")); fImportButton.addListener(SWT.Selection, new Listener() { public void handleEvent(Event e) { import_(); } }); fExportButton= new Button(buttons, SWT.PUSH); fExportButton.setLayoutData(getButtonGridData(fExportButton)); fExportButton.setText(TemplateMessages.getString("TemplatePreferencePage.export")); fExportButton.addListener(SWT.Selection, new Listener() { public void handleEvent(Event e) { export();
7,469
Bug 7469 Preferences -> Java -> Templates
The template body editor window at the bottom part of a Templates preferences page should contain both vertical and horizontal scroll bars.
resolved fixed
b728519
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-16T17:13:56Z
2002-01-11T09:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/TemplatePreferencePage.java
} }); fExportAllButton= new Button(buttons, SWT.PUSH); fExportAllButton.setLayoutData(getButtonGridData(fExportAllButton)); fExportAllButton.setText(TemplateMessages.getString("TemplatePreferencePage.export.all")); fExportAllButton.addListener(SWT.Selection, new Listener() { public void handleEvent(Event e) { exportAll(); } }); createSpacer(buttons); fEnableAllButton= new Button(buttons, SWT.PUSH); fEnableAllButton.setLayoutData(getButtonGridData(fEnableAllButton)); fEnableAllButton.setText(TemplateMessages.getString("TemplatePreferencePage.enable.all")); fEnableAllButton.addListener(SWT.Selection, new Listener() { public void handleEvent(Event e) { enableAll(true); } }); fDisableAllButton= new Button(buttons, SWT.PUSH); fDisableAllButton.setLayoutData(getButtonGridData(fDisableAllButton)); fDisableAllButton.setText(TemplateMessages.getString("TemplatePreferencePage.disable.all")); fDisableAllButton.addListener(SWT.Selection, new Listener() { public void handleEvent(Event e) { enableAll(false); } }); fPatternViewer= createViewer(parent);
7,469
Bug 7469 Preferences -> Java -> Templates
The template body editor window at the bottom part of a Templates preferences page should contain both vertical and horizontal scroll bars.
resolved fixed
b728519
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-16T17:13:56Z
2002-01-11T09:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/TemplatePreferencePage.java
createSpacer(parent); fFormatButton= new Button(parent, SWT.CHECK); fFormatButton.setText(TemplateMessages.getString("TemplatePreferencePage.use.code.formatter")); fTableViewer.setInput(fTemplates); fTableViewer.setAllChecked(false); fTableViewer.setCheckedElements(getEnabledTemplates()); IPreferenceStore prefs= JavaPlugin.getDefault().getPreferenceStore(); fFormatButton.setSelection(prefs.getBoolean(PREF_FORMAT_TEMPLATES)); updateButtons(); WorkbenchHelp.setHelp(parent, new DialogPageContextComputer(this, IJavaHelpContextIds.TEMPLATE_PREFERENCE_PAGE)); return parent; } private Template[] getEnabledTemplates() { Template[] templates= fTemplates.getTemplates(); List list= new ArrayList(templates.length); for (int i= 0; i != templates.length; i++) if (templates[i].isEnabled()) list.add(templates[i]); return (Template[]) list.toArray(new Template[list.size()]); } private SourceViewer createViewer(Composite parent) { SourceViewer viewer= new SourceViewer(parent, null, SWT.BORDER ); JavaTextTools tools= JavaPlugin.getDefault().getJavaTextTools(); viewer.configure(new JavaSourceViewerConfiguration(tools, null));
7,469
Bug 7469 Preferences -> Java -> Templates
The template body editor window at the bottom part of a Templates preferences page should contain both vertical and horizontal scroll bars.
resolved fixed
b728519
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-16T17:13:56Z
2002-01-11T09:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/TemplatePreferencePage.java
viewer.setEditable(false); viewer.setDocument(new Document()); Font font= JFaceResources.getFontRegistry().get(JFaceResources.TEXT_FONT); viewer.getTextWidget().setFont(font); Control control= viewer.getControl(); GridData data= new GridData(GridData.FILL_BOTH); data.heightHint= convertHeightInCharsToPixels(5); control.setLayoutData(data); return viewer; } public void createSpacer(Composite parent) { Label spacer= new Label(parent, SWT.NONE); GridData data= new GridData(); data.horizontalAlignment= GridData.FILL; data.verticalAlignment= GridData.BEGINNING; data.heightHint= 4; spacer.setLayoutData(data); } private static GridData getButtonGridData(Button button) { GridData data= new GridData(GridData.FILL_HORIZONTAL); data.widthHint= SWTUtil.getButtonWidthHint(button); data.heightHint= SWTUtil.getButtonHeigthHint(button); return data; }
7,469
Bug 7469 Preferences -> Java -> Templates
The template body editor window at the bottom part of a Templates preferences page should contain both vertical and horizontal scroll bars.
resolved fixed
b728519
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-16T17:13:56Z
2002-01-11T09:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/TemplatePreferencePage.java
private void selectionChanged1() { IStructuredSelection selection= (IStructuredSelection) fTableViewer.getSelection(); if (selection.size() == 1) { Template template= (Template) selection.getFirstElement(); fPatternViewer.getTextWidget().setText(template.getPattern()); } else { fPatternViewer.getTextWidget().setText(""); } updateButtons(); } private void updateButtons() { int selectionCount= ((IStructuredSelection) fTableViewer.getSelection()).size(); int itemCount= fTableViewer.getTable().getItemCount(); fEditButton.setEnabled(selectionCount == 1); fExportButton.setEnabled(selectionCount > 0); fRemoveButton.setEnabled(selectionCount > 0 && selectionCount <= itemCount); fEnableAllButton.setEnabled(itemCount > 0); fDisableAllButton.setEnabled(itemCount > 0); } private void add() { Template template= new Template(); template.setContext(TemplateContext.JAVA); EditTemplateDialog dialog= new EditTemplateDialog(getShell(), template, false); if (dialog.open() == dialog.OK) { fTemplates.add(template);
7,469
Bug 7469 Preferences -> Java -> Templates
The template body editor window at the bottom part of a Templates preferences page should contain both vertical and horizontal scroll bars.
resolved fixed
b728519
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-16T17:13:56Z
2002-01-11T09:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/TemplatePreferencePage.java
fTableViewer.refresh(); fTableViewer.setChecked(template, template.isEnabled()); fTableViewer.setSelection(new StructuredSelection(template)); } } private void edit() { IStructuredSelection selection= (IStructuredSelection) fTableViewer.getSelection(); Object[] objects= selection.toArray(); if ((objects == null) || (objects.length != 1)) return; Template template= (Template) selection.getFirstElement(); edit(template); } private void edit(Template template) { EditTemplateDialog dialog= new EditTemplateDialog(getShell(), template, true); if (dialog.open() == dialog.OK) { fTableViewer.refresh(template); fTableViewer.setChecked(template, template.isEnabled()); fTableViewer.setSelection(new StructuredSelection(template)); } } private void import_() { FileDialog dialog= new FileDialog(getShell()); dialog.setText(TemplateMessages.getString("TemplatePreferencePage.import.title")); dialog.setFilterExtensions(new String[] {TemplateMessages.getString("TemplatePreferencePage.import.extension")}); String path= dialog.open(); if (path == null)
7,469
Bug 7469 Preferences -> Java -> Templates
The template body editor window at the bottom part of a Templates preferences page should contain both vertical and horizontal scroll bars.
resolved fixed
b728519
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-16T17:13:56Z
2002-01-11T09:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/TemplatePreferencePage.java
return; try { fTemplates.addFromFile(new File(path)); fTableViewer.refresh(); fTableViewer.setAllChecked(false); fTableViewer.setCheckedElements(getEnabledTemplates()); } catch (CoreException e) { JavaPlugin.log(e); openReadErrorDialog(e); } } private void exportAll() { export(fTemplates); } private void export() { IStructuredSelection selection= (IStructuredSelection) fTableViewer.getSelection(); Object[] templates= selection.toArray(); TemplateSet templateSet= new TemplateSet(); for (int i= 0; i != templates.length; i++) templateSet.add((Template) templates[i]); export(templateSet); } private void export(TemplateSet templateSet) { FileDialog dialog= new FileDialog(getShell(), SWT.SAVE);
7,469
Bug 7469 Preferences -> Java -> Templates
The template body editor window at the bottom part of a Templates preferences page should contain both vertical and horizontal scroll bars.
resolved fixed
b728519
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-16T17:13:56Z
2002-01-11T09:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/TemplatePreferencePage.java
dialog.setText(TemplateMessages.getFormattedString("TemplatePreferencePage.export.title", new Integer(templateSet.getTemplates().length))); dialog.setFilterExtensions(new String[] {TemplateMessages.getString("TemplatePreferencePage.export.extension")}); dialog.setFileName(TemplateMessages.getString("TemplatePreferencePage.export.filename")); String path= dialog.open(); if (path == null) return; try { templateSet.saveToFile(new File(path)); } catch (CoreException e) { JavaPlugin.log(e); openWriteErrorDialog(e); } } private void remove() { IStructuredSelection selection= (IStructuredSelection) fTableViewer.getSelection(); Iterator elements= selection.iterator(); while (elements.hasNext()) { Template template= (Template) elements.next(); fTemplates.remove(template); } fTableViewer.refresh(); } private void enableAll(boolean enable) { Template[] templates= fTemplates.getTemplates(); for (int i= 0; i != templates.length; i++)
7,469
Bug 7469 Preferences -> Java -> Templates
The template body editor window at the bottom part of a Templates preferences page should contain both vertical and horizontal scroll bars.
resolved fixed
b728519
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-16T17:13:56Z
2002-01-11T09:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/TemplatePreferencePage.java
templates[i].setEnabled(enable); fTableViewer.setAllChecked(enable); } /* * @see IWorkbenchPreferencePage#init(IWorkbench) */ public void init(IWorkbench workbench) {} /* * @see Control#setVisible(boolean) */ public void setVisible(boolean visible) { super.setVisible(visible); if (visible) setTitle(TemplateMessages.getString("TemplatePreferencePage.title")); } /* * @see PreferencePage#performDefaults() */ protected void performDefaults() { IPreferenceStore prefs= JavaPlugin.getDefault().getPreferenceStore(); fFormatButton.setSelection(prefs.getDefaultBoolean(PREF_FORMAT_TEMPLATES)); try { fTemplates.restoreDefaults(); } catch (CoreException e) { JavaPlugin.log(e); openReadErrorDialog(e); }
7,469
Bug 7469 Preferences -> Java -> Templates
The template body editor window at the bottom part of a Templates preferences page should contain both vertical and horizontal scroll bars.
resolved fixed
b728519
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-16T17:13:56Z
2002-01-11T09:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/TemplatePreferencePage.java
fTableViewer.refresh(); fTableViewer.setAllChecked(false); fTableViewer.setCheckedElements(getEnabledTemplates()); } /* * @see PreferencePage#performOk() */ public boolean performOk() { IPreferenceStore prefs= JavaPlugin.getDefault().getPreferenceStore(); prefs.setValue(PREF_FORMAT_TEMPLATES, fFormatButton.getSelection()); try { fTemplates.save(); } catch (CoreException e) { JavaPlugin.log(e); openWriteErrorDialog(e); } return super.performOk(); } /* * @see PreferencePage#performCancel() */ public boolean performCancel() { try { fTemplates.reset(); } catch (CoreException e) { JavaPlugin.log(e);
7,469
Bug 7469 Preferences -> Java -> Templates
The template body editor window at the bottom part of a Templates preferences page should contain both vertical and horizontal scroll bars.
resolved fixed
b728519
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-16T17:13:56Z
2002-01-11T09:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/TemplatePreferencePage.java
openReadErrorDialog(e); } return super.performCancel(); } /** * Initializes the default values of this page in the preference bundle. * Will be called on startup of the JavaPlugin */ public static void initDefaults(IPreferenceStore prefs) { prefs.setDefault(PREF_FORMAT_TEMPLATES, true); } public static boolean useCodeFormatter() { IPreferenceStore prefs= JavaPlugin.getDefault().getPreferenceStore(); return prefs.getBoolean(PREF_FORMAT_TEMPLATES); } private void openReadErrorDialog(CoreException e) { ErrorDialog.openError(getShell(), TemplateMessages.getString("TemplatePreferencePage.error.read.title"), e.getMessage(), e.getStatus()); } private void openWriteErrorDialog(CoreException e) { ErrorDialog.openError(getShell(), TemplateMessages.getString("TemplatePreferencePage.error.write.title"), e.getMessage(), e.getStatus()); } }
7,600
Bug 7600 Exception in TemplateCollector
Java Model Exception: Java Model Status [Invalid path: /A.java.] Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/core/runtime/CoreException.<init> (Lorg/eclipse/core/runtime/IStatus;)V org/eclipse/jdt/core/JavaModelException.<init> (Lorg/eclipse/jdt/core/IJavaModelStatus;)V org/eclipse/jdt/internal/core/JavaProject.findElement (Lorg/eclipse/core/runtime/IPath;)Lorg/eclipse/jdt/core/IJavaElement; org/eclipse/jdt/internal/corext/util/JavaModelUtil.findType (Lorg/eclipse/jdt/core/IJavaProject;Ljava/lang/String;) Lorg/eclipse/jdt/core/IType; org/eclipse/jdt/internal/ui/text/template/TemplateCollector.isSubclassOf (Ljava/lang/String;Ljava/lang/String;)Z org/eclipse/jdt/internal/ui/text/template/TemplateCollector.findLocalCollections ()[Lorg/eclipse/jdt/internal/ui/text/template/TemplateCollector$LocalVariable; org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V 4 org.eclipse.jdt.core 979 Invalid path: /A.java. Log: Tue Jan 15 14:58:19 CET 2002 4 org.eclipse.core.runtime 0 Unhandled exception caught in event loop. org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/swt/SWTException.<init>(ILjava/lang/String;)V org/eclipse/swt/SWTException.<init>(I)V org/eclipse/swt/SWT.error(ILjava/lang/Throwable;)V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V Log: Tue Jan 15 14:58:19 CET 2002 4 org.eclipse.core.runtime 0 Failed to execute runnable (java.lang.NullPointerException) org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/swt/SWTException.<init>(ILjava/lang/String;)V org/eclipse/swt/SWTException.<init>(I)V org/eclipse/swt/SWT.error(ILjava/lang/Throwable;)V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V
verified fixed
8ce960e
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-17T11:09:24Z
2002-01-15T13:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateCollector.java
package org.eclipse.jdt.internal.ui.text.template; import java.text.DateFormat; import java.util.Date; import java.util.Iterator; import java.util.Vector; import org.eclipse.swt.widgets.Shell; import org.eclipse.core.resources.IMarker; import org.eclipse.jface.dialogs.MessageDialog; import org.eclipse.jdt.core.ICompletionRequestor; import org.eclipse.jdt.core.ICompilationUnit; import org.eclipse.jdt.core.IJavaProject; import org.eclipse.jdt.core.IType; import org.eclipse.jdt.core.ITypeHierarchy; import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jdt.internal.core.Assert; import org.eclipse.jdt.internal.ui.JavaPlugin; import org.eclipse.jdt.internal.corext.util.JavaModelUtil; public class TemplateCollector implements ICompletionRequestor {
7,600
Bug 7600 Exception in TemplateCollector
Java Model Exception: Java Model Status [Invalid path: /A.java.] Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/core/runtime/CoreException.<init> (Lorg/eclipse/core/runtime/IStatus;)V org/eclipse/jdt/core/JavaModelException.<init> (Lorg/eclipse/jdt/core/IJavaModelStatus;)V org/eclipse/jdt/internal/core/JavaProject.findElement (Lorg/eclipse/core/runtime/IPath;)Lorg/eclipse/jdt/core/IJavaElement; org/eclipse/jdt/internal/corext/util/JavaModelUtil.findType (Lorg/eclipse/jdt/core/IJavaProject;Ljava/lang/String;) Lorg/eclipse/jdt/core/IType; org/eclipse/jdt/internal/ui/text/template/TemplateCollector.isSubclassOf (Ljava/lang/String;Ljava/lang/String;)Z org/eclipse/jdt/internal/ui/text/template/TemplateCollector.findLocalCollections ()[Lorg/eclipse/jdt/internal/ui/text/template/TemplateCollector$LocalVariable; org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V 4 org.eclipse.jdt.core 979 Invalid path: /A.java. Log: Tue Jan 15 14:58:19 CET 2002 4 org.eclipse.core.runtime 0 Unhandled exception caught in event loop. org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/swt/SWTException.<init>(ILjava/lang/String;)V org/eclipse/swt/SWTException.<init>(I)V org/eclipse/swt/SWT.error(ILjava/lang/Throwable;)V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V Log: Tue Jan 15 14:58:19 CET 2002 4 org.eclipse.core.runtime 0 Failed to execute runnable (java.lang.NullPointerException) org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/swt/SWTException.<init>(ILjava/lang/String;)V org/eclipse/swt/SWTException.<init>(I)V org/eclipse/swt/SWT.error(ILjava/lang/Throwable;)V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V
verified fixed
8ce960e
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-17T11:09:24Z
2002-01-15T13:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateCollector.java
private static final String FILE= "file"; private static final String LINE= "line"; private static final String DATE= "date"; private static final String TIME= "time"; private static final String USER= "user"; private static final String ARRAY= "array"; private static final String ARRAY_TYPE= "array_type"; private static final String ARRAY_ELEMENT= "array_element"; private static final String INDEX= "index"; private static final String COLLECTION= "collection"; private static final String ITERATOR= "iterator"; private static final String RETURN_TYPE= "return_type"; private static final String ARGUMENTS= "arguments";
7,600
Bug 7600 Exception in TemplateCollector
Java Model Exception: Java Model Status [Invalid path: /A.java.] Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/core/runtime/CoreException.<init> (Lorg/eclipse/core/runtime/IStatus;)V org/eclipse/jdt/core/JavaModelException.<init> (Lorg/eclipse/jdt/core/IJavaModelStatus;)V org/eclipse/jdt/internal/core/JavaProject.findElement (Lorg/eclipse/core/runtime/IPath;)Lorg/eclipse/jdt/core/IJavaElement; org/eclipse/jdt/internal/corext/util/JavaModelUtil.findType (Lorg/eclipse/jdt/core/IJavaProject;Ljava/lang/String;) Lorg/eclipse/jdt/core/IType; org/eclipse/jdt/internal/ui/text/template/TemplateCollector.isSubclassOf (Ljava/lang/String;Ljava/lang/String;)Z org/eclipse/jdt/internal/ui/text/template/TemplateCollector.findLocalCollections ()[Lorg/eclipse/jdt/internal/ui/text/template/TemplateCollector$LocalVariable; org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V 4 org.eclipse.jdt.core 979 Invalid path: /A.java. Log: Tue Jan 15 14:58:19 CET 2002 4 org.eclipse.core.runtime 0 Unhandled exception caught in event loop. org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/swt/SWTException.<init>(ILjava/lang/String;)V org/eclipse/swt/SWTException.<init>(I)V org/eclipse/swt/SWT.error(ILjava/lang/Throwable;)V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V Log: Tue Jan 15 14:58:19 CET 2002 4 org.eclipse.core.runtime 0 Failed to execute runnable (java.lang.NullPointerException) org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/swt/SWTException.<init>(ILjava/lang/String;)V org/eclipse/swt/SWTException.<init>(I)V org/eclipse/swt/SWT.error(ILjava/lang/Throwable;)V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V
verified fixed
8ce960e
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-17T11:09:24Z
2002-01-15T13:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateCollector.java
private static final String[][] fgVariables = { {FILE, TemplateMessages.getString("TemplateCollector.variable.description.file")}, {DATE, TemplateMessages.getString("TemplateCollector.variable.description.date")}, {TIME, TemplateMessages.getString("TemplateCollector.variable.description.time")}, {USER, TemplateMessages.getString("TemplateCollector.variable.description.user")}, {ARRAY, TemplateMessages.getString("TemplateCollector.variable.description.array")}, {ARRAY_TYPE, TemplateMessages.getString("TemplateCollector.variable.description.array.type")}, {ARRAY_ELEMENT, TemplateMessages.getString("TemplateCollector.variable.description.array.element")}, {INDEX, TemplateMessages.getString("TemplateCollector.variable.description.index")}, {COLLECTION, TemplateMessages.getString("TemplateCollector.variable.description.collector")}, {ITERATOR, TemplateMessages.getString("TemplateCollector.variable.description.iterator")}, {RETURN_TYPE, TemplateMessages.getString("TemplateCollector.variable.description.return.type")}, {ARGUMENTS, TemplateMessages.getString("TemplateCollector.variable.description.arguments")} }; private static class LocalVariable { String name; String typePackageName; String typeName; LocalVariable(String name, String typePackageName, String typeName) { this.name= name; this.typePackageName= typePackageName; this.typeName= typeName; } } private ICompilationUnit fUnit; private Vector fClasses; private Vector fFields; private Vector fInterfaces; private Vector fKeywords;
7,600
Bug 7600 Exception in TemplateCollector
Java Model Exception: Java Model Status [Invalid path: /A.java.] Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/core/runtime/CoreException.<init> (Lorg/eclipse/core/runtime/IStatus;)V org/eclipse/jdt/core/JavaModelException.<init> (Lorg/eclipse/jdt/core/IJavaModelStatus;)V org/eclipse/jdt/internal/core/JavaProject.findElement (Lorg/eclipse/core/runtime/IPath;)Lorg/eclipse/jdt/core/IJavaElement; org/eclipse/jdt/internal/corext/util/JavaModelUtil.findType (Lorg/eclipse/jdt/core/IJavaProject;Ljava/lang/String;) Lorg/eclipse/jdt/core/IType; org/eclipse/jdt/internal/ui/text/template/TemplateCollector.isSubclassOf (Ljava/lang/String;Ljava/lang/String;)Z org/eclipse/jdt/internal/ui/text/template/TemplateCollector.findLocalCollections ()[Lorg/eclipse/jdt/internal/ui/text/template/TemplateCollector$LocalVariable; org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V 4 org.eclipse.jdt.core 979 Invalid path: /A.java. Log: Tue Jan 15 14:58:19 CET 2002 4 org.eclipse.core.runtime 0 Unhandled exception caught in event loop. org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/swt/SWTException.<init>(ILjava/lang/String;)V org/eclipse/swt/SWTException.<init>(I)V org/eclipse/swt/SWT.error(ILjava/lang/Throwable;)V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V Log: Tue Jan 15 14:58:19 CET 2002 4 org.eclipse.core.runtime 0 Failed to execute runnable (java.lang.NullPointerException) org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/swt/SWTException.<init>(ILjava/lang/String;)V org/eclipse/swt/SWTException.<init>(I)V org/eclipse/swt/SWT.error(ILjava/lang/Throwable;)V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V
verified fixed
8ce960e
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-17T11:09:24Z
2002-01-15T13:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateCollector.java
private Vector fLabels; private Vector fLocalVariables; private Vector fMethods; private Vector fMethodDeclarations; private Vector fModifiers; private Vector fPackages; private Vector fTypes; private Vector fVariableNames; private boolean fError; public TemplateCollector(ICompilationUnit unit) { Assert.isNotNull(unit); reset(unit); } public void reset(ICompilationUnit unit) { Assert.isNotNull(unit); fUnit= unit; fClasses= new Vector(); fFields= new Vector(); fInterfaces= new Vector(); fKeywords= new Vector(); fLabels= new Vector(); fLocalVariables= new Vector(); fMethods= new Vector(); fMethodDeclarations= new Vector(); fModifiers= new Vector(); fPackages= new Vector(); fTypes= new Vector();
7,600
Bug 7600 Exception in TemplateCollector
Java Model Exception: Java Model Status [Invalid path: /A.java.] Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/core/runtime/CoreException.<init> (Lorg/eclipse/core/runtime/IStatus;)V org/eclipse/jdt/core/JavaModelException.<init> (Lorg/eclipse/jdt/core/IJavaModelStatus;)V org/eclipse/jdt/internal/core/JavaProject.findElement (Lorg/eclipse/core/runtime/IPath;)Lorg/eclipse/jdt/core/IJavaElement; org/eclipse/jdt/internal/corext/util/JavaModelUtil.findType (Lorg/eclipse/jdt/core/IJavaProject;Ljava/lang/String;) Lorg/eclipse/jdt/core/IType; org/eclipse/jdt/internal/ui/text/template/TemplateCollector.isSubclassOf (Ljava/lang/String;Ljava/lang/String;)Z org/eclipse/jdt/internal/ui/text/template/TemplateCollector.findLocalCollections ()[Lorg/eclipse/jdt/internal/ui/text/template/TemplateCollector$LocalVariable; org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V 4 org.eclipse.jdt.core 979 Invalid path: /A.java. Log: Tue Jan 15 14:58:19 CET 2002 4 org.eclipse.core.runtime 0 Unhandled exception caught in event loop. org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/swt/SWTException.<init>(ILjava/lang/String;)V org/eclipse/swt/SWTException.<init>(I)V org/eclipse/swt/SWT.error(ILjava/lang/Throwable;)V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V Log: Tue Jan 15 14:58:19 CET 2002 4 org.eclipse.core.runtime 0 Failed to execute runnable (java.lang.NullPointerException) org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/swt/SWTException.<init>(ILjava/lang/String;)V org/eclipse/swt/SWTException.<init>(I)V org/eclipse/swt/SWT.error(ILjava/lang/Throwable;)V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V
verified fixed
8ce960e
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-17T11:09:24Z
2002-01-15T13:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateCollector.java
fVariableNames= new Vector(); fError= false; } /* * @see ICompletionRequestor#acceptClass(char[], char[], char[], int, int, int) */ public void acceptClass( char[] packageName, char[] className, char[] completionName, int modifiers, int completionStart, int completionEnd) { } /* * @see ICompletionRequestor#acceptError(IMarker) */ public void acceptError(IMarker marker) { fError= true; } /* * @see ICompletionRequestor#acceptField(char[], char[], char[], char[], char[], char[], int, int, int) */ public void acceptField( char[] declaringTypePackageName, char[] declaringTypeName, char[] name, char[] typePackageName, char[] typeName,
7,600
Bug 7600 Exception in TemplateCollector
Java Model Exception: Java Model Status [Invalid path: /A.java.] Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/core/runtime/CoreException.<init> (Lorg/eclipse/core/runtime/IStatus;)V org/eclipse/jdt/core/JavaModelException.<init> (Lorg/eclipse/jdt/core/IJavaModelStatus;)V org/eclipse/jdt/internal/core/JavaProject.findElement (Lorg/eclipse/core/runtime/IPath;)Lorg/eclipse/jdt/core/IJavaElement; org/eclipse/jdt/internal/corext/util/JavaModelUtil.findType (Lorg/eclipse/jdt/core/IJavaProject;Ljava/lang/String;) Lorg/eclipse/jdt/core/IType; org/eclipse/jdt/internal/ui/text/template/TemplateCollector.isSubclassOf (Ljava/lang/String;Ljava/lang/String;)Z org/eclipse/jdt/internal/ui/text/template/TemplateCollector.findLocalCollections ()[Lorg/eclipse/jdt/internal/ui/text/template/TemplateCollector$LocalVariable; org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V 4 org.eclipse.jdt.core 979 Invalid path: /A.java. Log: Tue Jan 15 14:58:19 CET 2002 4 org.eclipse.core.runtime 0 Unhandled exception caught in event loop. org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/swt/SWTException.<init>(ILjava/lang/String;)V org/eclipse/swt/SWTException.<init>(I)V org/eclipse/swt/SWT.error(ILjava/lang/Throwable;)V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V Log: Tue Jan 15 14:58:19 CET 2002 4 org.eclipse.core.runtime 0 Failed to execute runnable (java.lang.NullPointerException) org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/swt/SWTException.<init>(ILjava/lang/String;)V org/eclipse/swt/SWTException.<init>(I)V org/eclipse/swt/SWT.error(ILjava/lang/Throwable;)V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V
verified fixed
8ce960e
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-17T11:09:24Z
2002-01-15T13:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateCollector.java
char[] completionName, int modifiers, int completionStart, int completionEnd) { } /* * @see ICompletionRequestor#acceptInterface(char[], char[], char[], int, int, int) */ public void acceptInterface( char[] packageName, char[] interfaceName, char[] completionName, int modifiers, int completionStart, int completionEnd) { } /* * @see ICompletionRequestor#acceptKeyword(char[], int, int) */ public void acceptKeyword( char[] keywordName, int completionStart, int completionEnd) { } /* * @see ICompletionRequestor#acceptLabel(char[], int, int) */ public void acceptLabel( char[] labelName, int completionStart,
7,600
Bug 7600 Exception in TemplateCollector
Java Model Exception: Java Model Status [Invalid path: /A.java.] Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/core/runtime/CoreException.<init> (Lorg/eclipse/core/runtime/IStatus;)V org/eclipse/jdt/core/JavaModelException.<init> (Lorg/eclipse/jdt/core/IJavaModelStatus;)V org/eclipse/jdt/internal/core/JavaProject.findElement (Lorg/eclipse/core/runtime/IPath;)Lorg/eclipse/jdt/core/IJavaElement; org/eclipse/jdt/internal/corext/util/JavaModelUtil.findType (Lorg/eclipse/jdt/core/IJavaProject;Ljava/lang/String;) Lorg/eclipse/jdt/core/IType; org/eclipse/jdt/internal/ui/text/template/TemplateCollector.isSubclassOf (Ljava/lang/String;Ljava/lang/String;)Z org/eclipse/jdt/internal/ui/text/template/TemplateCollector.findLocalCollections ()[Lorg/eclipse/jdt/internal/ui/text/template/TemplateCollector$LocalVariable; org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V 4 org.eclipse.jdt.core 979 Invalid path: /A.java. Log: Tue Jan 15 14:58:19 CET 2002 4 org.eclipse.core.runtime 0 Unhandled exception caught in event loop. org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/swt/SWTException.<init>(ILjava/lang/String;)V org/eclipse/swt/SWTException.<init>(I)V org/eclipse/swt/SWT.error(ILjava/lang/Throwable;)V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V Log: Tue Jan 15 14:58:19 CET 2002 4 org.eclipse.core.runtime 0 Failed to execute runnable (java.lang.NullPointerException) org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/swt/SWTException.<init>(ILjava/lang/String;)V org/eclipse/swt/SWTException.<init>(I)V org/eclipse/swt/SWT.error(ILjava/lang/Throwable;)V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V
verified fixed
8ce960e
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-17T11:09:24Z
2002-01-15T13:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateCollector.java
int completionEnd) { } /* * @see ICompletionRequestor#acceptLocalVariable(char[], char[], char[], int, int, int) */ public void acceptLocalVariable(char[] name, char[] typePackageName, char[] typeName, int modifiers, int completionStart, int completionEnd) { fLocalVariables.add(new LocalVariable( new String(name), new String(typePackageName), new String(typeName))); } /* * @see ICompletionRequestor#acceptMethod(char[], char[], char[], char[][], char[][], char[][], char[], char[], char[], int, int, int) */ public void acceptMethod( char[] declaringTypePackageName, char[] declaringTypeName, char[] selector, char[][] parameterPackageNames, char[][] parameterTypeNames, char[][] parameterNames, char[] returnTypePackageName, char[] returnTypeName, char[] completionName, int modifiers, int completionStart, int completionEnd) { } /* * @see ICompletionRequestor#acceptMethodDeclaration(char[], char[], char[], char[][], char[][], char[][], char[], char[], char[], int, int, int)
7,600
Bug 7600 Exception in TemplateCollector
Java Model Exception: Java Model Status [Invalid path: /A.java.] Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/core/runtime/CoreException.<init> (Lorg/eclipse/core/runtime/IStatus;)V org/eclipse/jdt/core/JavaModelException.<init> (Lorg/eclipse/jdt/core/IJavaModelStatus;)V org/eclipse/jdt/internal/core/JavaProject.findElement (Lorg/eclipse/core/runtime/IPath;)Lorg/eclipse/jdt/core/IJavaElement; org/eclipse/jdt/internal/corext/util/JavaModelUtil.findType (Lorg/eclipse/jdt/core/IJavaProject;Ljava/lang/String;) Lorg/eclipse/jdt/core/IType; org/eclipse/jdt/internal/ui/text/template/TemplateCollector.isSubclassOf (Ljava/lang/String;Ljava/lang/String;)Z org/eclipse/jdt/internal/ui/text/template/TemplateCollector.findLocalCollections ()[Lorg/eclipse/jdt/internal/ui/text/template/TemplateCollector$LocalVariable; org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V 4 org.eclipse.jdt.core 979 Invalid path: /A.java. Log: Tue Jan 15 14:58:19 CET 2002 4 org.eclipse.core.runtime 0 Unhandled exception caught in event loop. org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/swt/SWTException.<init>(ILjava/lang/String;)V org/eclipse/swt/SWTException.<init>(I)V org/eclipse/swt/SWT.error(ILjava/lang/Throwable;)V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V Log: Tue Jan 15 14:58:19 CET 2002 4 org.eclipse.core.runtime 0 Failed to execute runnable (java.lang.NullPointerException) org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/swt/SWTException.<init>(ILjava/lang/String;)V org/eclipse/swt/SWTException.<init>(I)V org/eclipse/swt/SWT.error(ILjava/lang/Throwable;)V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V
verified fixed
8ce960e
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-17T11:09:24Z
2002-01-15T13:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateCollector.java
*/ public void acceptMethodDeclaration( char[] declaringTypePackageName, char[] declaringTypeName, char[] selector, char[][] parameterPackageNames, char[][] parameterTypeNames, char[][] parameterNames, char[] returnTypePackageName, char[] returnTypeName, char[] completionName, int modifiers, int completionStart, int completionEnd) { } /* * @see ICompletionRequestor#acceptModifier(char[], int, int) */ public void acceptModifier( char[] modifierName, int completionStart, int completionEnd) { } /* * @see ICompletionRequestor#acceptPackage(char[], char[], int, int) */ public void acceptPackage( char[] packageName, char[] completionName, int completionStart,
7,600
Bug 7600 Exception in TemplateCollector
Java Model Exception: Java Model Status [Invalid path: /A.java.] Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/core/runtime/CoreException.<init> (Lorg/eclipse/core/runtime/IStatus;)V org/eclipse/jdt/core/JavaModelException.<init> (Lorg/eclipse/jdt/core/IJavaModelStatus;)V org/eclipse/jdt/internal/core/JavaProject.findElement (Lorg/eclipse/core/runtime/IPath;)Lorg/eclipse/jdt/core/IJavaElement; org/eclipse/jdt/internal/corext/util/JavaModelUtil.findType (Lorg/eclipse/jdt/core/IJavaProject;Ljava/lang/String;) Lorg/eclipse/jdt/core/IType; org/eclipse/jdt/internal/ui/text/template/TemplateCollector.isSubclassOf (Ljava/lang/String;Ljava/lang/String;)Z org/eclipse/jdt/internal/ui/text/template/TemplateCollector.findLocalCollections ()[Lorg/eclipse/jdt/internal/ui/text/template/TemplateCollector$LocalVariable; org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V 4 org.eclipse.jdt.core 979 Invalid path: /A.java. Log: Tue Jan 15 14:58:19 CET 2002 4 org.eclipse.core.runtime 0 Unhandled exception caught in event loop. org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/swt/SWTException.<init>(ILjava/lang/String;)V org/eclipse/swt/SWTException.<init>(I)V org/eclipse/swt/SWT.error(ILjava/lang/Throwable;)V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V Log: Tue Jan 15 14:58:19 CET 2002 4 org.eclipse.core.runtime 0 Failed to execute runnable (java.lang.NullPointerException) org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/swt/SWTException.<init>(ILjava/lang/String;)V org/eclipse/swt/SWTException.<init>(I)V org/eclipse/swt/SWT.error(ILjava/lang/Throwable;)V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V
verified fixed
8ce960e
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-17T11:09:24Z
2002-01-15T13:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateCollector.java
int completionEnd) { } /* * @see ICompletionRequestor#acceptType(char[], char[], char[], int, int) */ public void acceptType( char[] packageName, char[] typeName, char[] completionName, int completionStart, int completionEnd) { } /* * @see ICompletionRequestor#acceptVariableName(char[], char[], char[], char[], int, int) */ public void acceptVariableName( char[] typePackageName, char[] typeName, char[] name, char[] completionName, int completionStart, int completionEnd) { } /* * @see ICompletionRequestor#acceptAnonymousType(char[], char[], char[][], char[][], char[][], char[], int, int, int) */ public void acceptAnonymousType(char[] superTypePackageName, char[] superTypeName, char[][] parameterPackageNames, char[][] parameterTypeNames, char[][] parameterNames, char[] completionName, int modifiers, int completionStart, int completionEnd) { }
7,600
Bug 7600 Exception in TemplateCollector
Java Model Exception: Java Model Status [Invalid path: /A.java.] Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/core/runtime/CoreException.<init> (Lorg/eclipse/core/runtime/IStatus;)V org/eclipse/jdt/core/JavaModelException.<init> (Lorg/eclipse/jdt/core/IJavaModelStatus;)V org/eclipse/jdt/internal/core/JavaProject.findElement (Lorg/eclipse/core/runtime/IPath;)Lorg/eclipse/jdt/core/IJavaElement; org/eclipse/jdt/internal/corext/util/JavaModelUtil.findType (Lorg/eclipse/jdt/core/IJavaProject;Ljava/lang/String;) Lorg/eclipse/jdt/core/IType; org/eclipse/jdt/internal/ui/text/template/TemplateCollector.isSubclassOf (Ljava/lang/String;Ljava/lang/String;)Z org/eclipse/jdt/internal/ui/text/template/TemplateCollector.findLocalCollections ()[Lorg/eclipse/jdt/internal/ui/text/template/TemplateCollector$LocalVariable; org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V 4 org.eclipse.jdt.core 979 Invalid path: /A.java. Log: Tue Jan 15 14:58:19 CET 2002 4 org.eclipse.core.runtime 0 Unhandled exception caught in event loop. org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/swt/SWTException.<init>(ILjava/lang/String;)V org/eclipse/swt/SWTException.<init>(I)V org/eclipse/swt/SWT.error(ILjava/lang/Throwable;)V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V Log: Tue Jan 15 14:58:19 CET 2002 4 org.eclipse.core.runtime 0 Failed to execute runnable (java.lang.NullPointerException) org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/swt/SWTException.<init>(ILjava/lang/String;)V org/eclipse/swt/SWTException.<init>(I)V org/eclipse/swt/SWT.error(ILjava/lang/Throwable;)V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V
verified fixed
8ce960e
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-17T11:09:24Z
2002-01-15T13:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateCollector.java
/** * Tests if the code completion process produced errors. */ public boolean hasErrors() { return fError; } /** * Evaluate a variable. Returns <code>null</code> for unrecognized * variables or ambiguous matches. */ public String evaluate(String variable) { try { if (variable.equals(ARRAY)) { LocalVariable[] localArrays= findLocalArrays(); if (localArrays.length > 0) return localArrays[localArrays.length - 1].name; } else if (variable.equals(ARRAY_TYPE)) { LocalVariable[] localArrays= findLocalArrays(); if (localArrays.length > 0) { String typeName= localArrays[localArrays.length - 1].typeName; return typeName.substring(0, typeName.indexOf('[')); }
7,600
Bug 7600 Exception in TemplateCollector
Java Model Exception: Java Model Status [Invalid path: /A.java.] Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/core/runtime/CoreException.<init> (Lorg/eclipse/core/runtime/IStatus;)V org/eclipse/jdt/core/JavaModelException.<init> (Lorg/eclipse/jdt/core/IJavaModelStatus;)V org/eclipse/jdt/internal/core/JavaProject.findElement (Lorg/eclipse/core/runtime/IPath;)Lorg/eclipse/jdt/core/IJavaElement; org/eclipse/jdt/internal/corext/util/JavaModelUtil.findType (Lorg/eclipse/jdt/core/IJavaProject;Ljava/lang/String;) Lorg/eclipse/jdt/core/IType; org/eclipse/jdt/internal/ui/text/template/TemplateCollector.isSubclassOf (Ljava/lang/String;Ljava/lang/String;)Z org/eclipse/jdt/internal/ui/text/template/TemplateCollector.findLocalCollections ()[Lorg/eclipse/jdt/internal/ui/text/template/TemplateCollector$LocalVariable; org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V 4 org.eclipse.jdt.core 979 Invalid path: /A.java. Log: Tue Jan 15 14:58:19 CET 2002 4 org.eclipse.core.runtime 0 Unhandled exception caught in event loop. org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/swt/SWTException.<init>(ILjava/lang/String;)V org/eclipse/swt/SWTException.<init>(I)V org/eclipse/swt/SWT.error(ILjava/lang/Throwable;)V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V Log: Tue Jan 15 14:58:19 CET 2002 4 org.eclipse.core.runtime 0 Failed to execute runnable (java.lang.NullPointerException) org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/swt/SWTException.<init>(ILjava/lang/String;)V org/eclipse/swt/SWTException.<init>(I)V org/eclipse/swt/SWT.error(ILjava/lang/Throwable;)V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V
verified fixed
8ce960e
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-17T11:09:24Z
2002-01-15T13:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateCollector.java
} else if (variable.equals(ARRAY_ELEMENT)) { LocalVariable[] localArrays= findLocalArrays(); if (localArrays.length > 0) { String typeName= localArrays[localArrays.length - 1].typeName; String baseTypeName= typeName.substring(0, typeName.indexOf('[')); String variableName= typeToVariable(baseTypeName); if (!existsLocalName(variableName)) return variableName; } } else if (variable.equals(COLLECTION)) { LocalVariable[] localCollections= findLocalCollections(); if (localCollections.length > 0) return localCollections[localCollections.length - 1].name; } else if (variable.equals(INDEX)) { String[] proposals= {"i", "j", "k"}; for (int i= 0; i != proposals.length; i++) { String proposal = proposals[i]; if (!existsLocalName(proposal)) return proposal; }
7,600
Bug 7600 Exception in TemplateCollector
Java Model Exception: Java Model Status [Invalid path: /A.java.] Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/core/runtime/CoreException.<init> (Lorg/eclipse/core/runtime/IStatus;)V org/eclipse/jdt/core/JavaModelException.<init> (Lorg/eclipse/jdt/core/IJavaModelStatus;)V org/eclipse/jdt/internal/core/JavaProject.findElement (Lorg/eclipse/core/runtime/IPath;)Lorg/eclipse/jdt/core/IJavaElement; org/eclipse/jdt/internal/corext/util/JavaModelUtil.findType (Lorg/eclipse/jdt/core/IJavaProject;Ljava/lang/String;) Lorg/eclipse/jdt/core/IType; org/eclipse/jdt/internal/ui/text/template/TemplateCollector.isSubclassOf (Ljava/lang/String;Ljava/lang/String;)Z org/eclipse/jdt/internal/ui/text/template/TemplateCollector.findLocalCollections ()[Lorg/eclipse/jdt/internal/ui/text/template/TemplateCollector$LocalVariable; org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V 4 org.eclipse.jdt.core 979 Invalid path: /A.java. Log: Tue Jan 15 14:58:19 CET 2002 4 org.eclipse.core.runtime 0 Unhandled exception caught in event loop. org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/swt/SWTException.<init>(ILjava/lang/String;)V org/eclipse/swt/SWTException.<init>(I)V org/eclipse/swt/SWT.error(ILjava/lang/Throwable;)V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V Log: Tue Jan 15 14:58:19 CET 2002 4 org.eclipse.core.runtime 0 Failed to execute runnable (java.lang.NullPointerException) org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/swt/SWTException.<init>(ILjava/lang/String;)V org/eclipse/swt/SWTException.<init>(I)V org/eclipse/swt/SWT.error(ILjava/lang/Throwable;)V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V
verified fixed
8ce960e
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-17T11:09:24Z
2002-01-15T13:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateCollector.java
} else if (variable.equals(ITERATOR)) { String[] proposals= {"iter"}; for (int i= 0; i != proposals.length; i++) { String proposal = proposals[i]; if (!existsLocalName(proposal)) return proposal; } } else if (variable.equals(RETURN_TYPE)) { return "void"; } else if (variable.equals(ARGUMENTS)) { return ""; } else if (variable.equals(FILE)) { if (fUnit != null) return fUnit.getElementName(); } else if (variable.equals(DATE)) { return DateFormat.getDateInstance().format(new Date()); } else if (variable.equals(TIME)) { return DateFormat.getTimeInstance().format(new Date()); } else if (variable.equals(USER)) {
7,600
Bug 7600 Exception in TemplateCollector
Java Model Exception: Java Model Status [Invalid path: /A.java.] Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/core/runtime/CoreException.<init> (Lorg/eclipse/core/runtime/IStatus;)V org/eclipse/jdt/core/JavaModelException.<init> (Lorg/eclipse/jdt/core/IJavaModelStatus;)V org/eclipse/jdt/internal/core/JavaProject.findElement (Lorg/eclipse/core/runtime/IPath;)Lorg/eclipse/jdt/core/IJavaElement; org/eclipse/jdt/internal/corext/util/JavaModelUtil.findType (Lorg/eclipse/jdt/core/IJavaProject;Ljava/lang/String;) Lorg/eclipse/jdt/core/IType; org/eclipse/jdt/internal/ui/text/template/TemplateCollector.isSubclassOf (Ljava/lang/String;Ljava/lang/String;)Z org/eclipse/jdt/internal/ui/text/template/TemplateCollector.findLocalCollections ()[Lorg/eclipse/jdt/internal/ui/text/template/TemplateCollector$LocalVariable; org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V 4 org.eclipse.jdt.core 979 Invalid path: /A.java. Log: Tue Jan 15 14:58:19 CET 2002 4 org.eclipse.core.runtime 0 Unhandled exception caught in event loop. org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/swt/SWTException.<init>(ILjava/lang/String;)V org/eclipse/swt/SWTException.<init>(I)V org/eclipse/swt/SWT.error(ILjava/lang/Throwable;)V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V Log: Tue Jan 15 14:58:19 CET 2002 4 org.eclipse.core.runtime 0 Failed to execute runnable (java.lang.NullPointerException) org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/swt/SWTException.<init>(ILjava/lang/String;)V org/eclipse/swt/SWTException.<init>(I)V org/eclipse/swt/SWT.error(ILjava/lang/Throwable;)V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V
verified fixed
8ce960e
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-17T11:09:24Z
2002-01-15T13:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateCollector.java
return System.getProperty("user.name"); } } catch (JavaModelException e) { JavaPlugin.log(e); openErrorDialog(null, e); } return null; } private boolean existsLocalName(String name) { for (Iterator iterator = fLocalVariables.iterator(); iterator.hasNext();) { LocalVariable localVariable = (LocalVariable) iterator.next(); if (localVariable.name.equals(name)) return true; } return false; } private LocalVariable[] findLocalArrays() { Vector vector= new Vector(); for (Iterator iterator= fLocalVariables.iterator(); iterator.hasNext();) { LocalVariable localVariable= (LocalVariable) iterator.next(); if (isArray(localVariable.typeName)) vector.add(localVariable); } return (LocalVariable[]) vector.toArray(new LocalVariable[vector.size()]); } private LocalVariable[] findLocalCollections() throws JavaModelException { Vector vector= new Vector(); for (Iterator iterator= fLocalVariables.iterator(); iterator.hasNext();) {
7,600
Bug 7600 Exception in TemplateCollector
Java Model Exception: Java Model Status [Invalid path: /A.java.] Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/core/runtime/CoreException.<init> (Lorg/eclipse/core/runtime/IStatus;)V org/eclipse/jdt/core/JavaModelException.<init> (Lorg/eclipse/jdt/core/IJavaModelStatus;)V org/eclipse/jdt/internal/core/JavaProject.findElement (Lorg/eclipse/core/runtime/IPath;)Lorg/eclipse/jdt/core/IJavaElement; org/eclipse/jdt/internal/corext/util/JavaModelUtil.findType (Lorg/eclipse/jdt/core/IJavaProject;Ljava/lang/String;) Lorg/eclipse/jdt/core/IType; org/eclipse/jdt/internal/ui/text/template/TemplateCollector.isSubclassOf (Ljava/lang/String;Ljava/lang/String;)Z org/eclipse/jdt/internal/ui/text/template/TemplateCollector.findLocalCollections ()[Lorg/eclipse/jdt/internal/ui/text/template/TemplateCollector$LocalVariable; org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V 4 org.eclipse.jdt.core 979 Invalid path: /A.java. Log: Tue Jan 15 14:58:19 CET 2002 4 org.eclipse.core.runtime 0 Unhandled exception caught in event loop. org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/swt/SWTException.<init>(ILjava/lang/String;)V org/eclipse/swt/SWTException.<init>(I)V org/eclipse/swt/SWT.error(ILjava/lang/Throwable;)V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V Log: Tue Jan 15 14:58:19 CET 2002 4 org.eclipse.core.runtime 0 Failed to execute runnable (java.lang.NullPointerException) org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/swt/SWTException.<init>(ILjava/lang/String;)V org/eclipse/swt/SWTException.<init>(I)V org/eclipse/swt/SWT.error(ILjava/lang/Throwable;)V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V
verified fixed
8ce960e
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-17T11:09:24Z
2002-01-15T13:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateCollector.java
LocalVariable localVariable= (LocalVariable) iterator.next(); String typeName= qualify(localVariable.typeName); if (typeName == null) continue; if (isSubclassOf(typeName, "java.util.Collection")) vector.add(localVariable); } return (LocalVariable[]) vector.toArray(new LocalVariable[vector.size()]); } private LocalVariable[] findLocalIntegers() { Vector vector= new Vector(); for (Iterator iterator= fLocalVariables.iterator(); iterator.hasNext();) { LocalVariable localVariable= (LocalVariable) iterator.next(); if (localVariable.typeName.equals("int")) vector.add(localVariable); } return (LocalVariable[]) vector.toArray(new LocalVariable[vector.size()]); } private LocalVariable[] findLocalIterator() throws JavaModelException { Vector vector= new Vector(); for (Iterator iterator= fLocalVariables.iterator(); iterator.hasNext();) { LocalVariable localVariable= (LocalVariable) iterator.next(); String typeName= qualify(localVariable.typeName); if (typeName == null) continue; if (isSubclassOf(typeName, "java.util.Iterator")) vector.add(localVariable); }
7,600
Bug 7600 Exception in TemplateCollector
Java Model Exception: Java Model Status [Invalid path: /A.java.] Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/core/runtime/CoreException.<init> (Lorg/eclipse/core/runtime/IStatus;)V org/eclipse/jdt/core/JavaModelException.<init> (Lorg/eclipse/jdt/core/IJavaModelStatus;)V org/eclipse/jdt/internal/core/JavaProject.findElement (Lorg/eclipse/core/runtime/IPath;)Lorg/eclipse/jdt/core/IJavaElement; org/eclipse/jdt/internal/corext/util/JavaModelUtil.findType (Lorg/eclipse/jdt/core/IJavaProject;Ljava/lang/String;) Lorg/eclipse/jdt/core/IType; org/eclipse/jdt/internal/ui/text/template/TemplateCollector.isSubclassOf (Ljava/lang/String;Ljava/lang/String;)Z org/eclipse/jdt/internal/ui/text/template/TemplateCollector.findLocalCollections ()[Lorg/eclipse/jdt/internal/ui/text/template/TemplateCollector$LocalVariable; org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V 4 org.eclipse.jdt.core 979 Invalid path: /A.java. Log: Tue Jan 15 14:58:19 CET 2002 4 org.eclipse.core.runtime 0 Unhandled exception caught in event loop. org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/swt/SWTException.<init>(ILjava/lang/String;)V org/eclipse/swt/SWTException.<init>(I)V org/eclipse/swt/SWT.error(ILjava/lang/Throwable;)V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V Log: Tue Jan 15 14:58:19 CET 2002 4 org.eclipse.core.runtime 0 Failed to execute runnable (java.lang.NullPointerException) org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/swt/SWTException.<init>(ILjava/lang/String;)V org/eclipse/swt/SWTException.<init>(I)V org/eclipse/swt/SWT.error(ILjava/lang/Throwable;)V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V
verified fixed
8ce960e
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-17T11:09:24Z
2002-01-15T13:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateCollector.java
return (LocalVariable[]) vector.toArray(new LocalVariable[vector.size()]); } private static boolean isArray(String type) { return type.endsWith("[]"); } private String qualify(String typeName) throws JavaModelException { IType[] types= fUnit.getTypes(); if (types.length == 0) return null; String[][] resolvedTypeNames= types[0].resolveType(typeName); if (resolvedTypeNames == null) return null; return resolvedTypeNames[0][0] + '.' + resolvedTypeNames[0][1]; } private boolean isSubclassOf(String typeName0, String typeName1) throws JavaModelException { if (typeName0.equals(typeName1)) return true; IJavaProject project= fUnit.getJavaProject(); IType type0= JavaModelUtil.findType(project, typeName0); IType type1= JavaModelUtil.findType(project, typeName1); ITypeHierarchy hierarchy= type0.newSupertypeHierarchy(null); IType[] superTypes= hierarchy.getAllSupertypes(type0); for (int i= 0; i < superTypes.length; i++)
7,600
Bug 7600 Exception in TemplateCollector
Java Model Exception: Java Model Status [Invalid path: /A.java.] Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/core/runtime/CoreException.<init> (Lorg/eclipse/core/runtime/IStatus;)V org/eclipse/jdt/core/JavaModelException.<init> (Lorg/eclipse/jdt/core/IJavaModelStatus;)V org/eclipse/jdt/internal/core/JavaProject.findElement (Lorg/eclipse/core/runtime/IPath;)Lorg/eclipse/jdt/core/IJavaElement; org/eclipse/jdt/internal/corext/util/JavaModelUtil.findType (Lorg/eclipse/jdt/core/IJavaProject;Ljava/lang/String;) Lorg/eclipse/jdt/core/IType; org/eclipse/jdt/internal/ui/text/template/TemplateCollector.isSubclassOf (Ljava/lang/String;Ljava/lang/String;)Z org/eclipse/jdt/internal/ui/text/template/TemplateCollector.findLocalCollections ()[Lorg/eclipse/jdt/internal/ui/text/template/TemplateCollector$LocalVariable; org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V 4 org.eclipse.jdt.core 979 Invalid path: /A.java. Log: Tue Jan 15 14:58:19 CET 2002 4 org.eclipse.core.runtime 0 Unhandled exception caught in event loop. org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/swt/SWTException.<init>(ILjava/lang/String;)V org/eclipse/swt/SWTException.<init>(I)V org/eclipse/swt/SWT.error(ILjava/lang/Throwable;)V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V Log: Tue Jan 15 14:58:19 CET 2002 4 org.eclipse.core.runtime 0 Failed to execute runnable (java.lang.NullPointerException) org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/swt/SWTException.<init>(ILjava/lang/String;)V org/eclipse/swt/SWTException.<init>(I)V org/eclipse/swt/SWT.error(ILjava/lang/Throwable;)V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;) V org/eclipse/jface/window/Window.open()I org/eclipse/jface/dialogs/MessageDialog.openError (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.openErrorDialog (Lorg/eclipse/swt/widgets/Shell;Ljava/lang/Exception;)V org/eclipse/jdt/internal/ui/text/template/TemplateCollector.evaluate (Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.guessVariableNames() V org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.getDocument(I) Lorg/eclipse/jface/text/IDocument; org/eclipse/jdt/internal/ui/text/template/TemplateEvaluator.evaluate() Ljava/lang/String; org/eclipse/jdt/internal/ui/text/template/TemplateProposal.getAdditionalProposal Info()Ljava/lang/String; org/eclipse/jface/text/contentassist/AdditionalInfoController.computeInformation ()V org/eclipse/jface/text/AbstractInformationControlManager.showInformation()V org/eclipse/jface/text/contentassist/AdditionalInfoController$1.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; SlimLauncher.main([Ljava/lang/String;)V
verified fixed
8ce960e
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-17T11:09:24Z
2002-01-15T13:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateCollector.java
if (superTypes[i].equals(type1)) return true; return false; } private static String typeToVariable(String string) { Assert.isTrue(string.length() > 0); char first= string.charAt(0); if (Character.isLowerCase(first)) return "value"; return Character.toLowerCase(first) + string.substring(1); } private static void openErrorDialog(Shell shell, Exception e) { MessageDialog.openError(shell, TemplateMessages.getString("TemplateCollector.error.title"), e.getMessage()); } /** * Returns all variables with special meaning. * The size of the second dimension is two. The first value is the * name of the variable, the second value is its description. */ public static String[][] getVariables() { return fgVariables; } }
3,487
Bug 3487 Smoke 20: Rendering of methods different in Class Hierarchy / Outliner (1FZOKGK)
MA (8/14/00 6:09:15 PM) 1. open java.lang object form rt.jar with correct source annotation 2. activate static methods in the class hierrachy viewer 3. the hierarhcy viewer renders a method <clinit>, which is not shown in the outliner MA (8/14/00 6:09:20 PM) I think, static initializers should be rendered which a human readable name, also in source files NOTES: KUM (8/15/00 6:11:17 PM) <clinit> are compiler generated initializers. They are different from the initializer code which can be placed directly into the source of a class such as class X { { // initializer per instance } static { // class initializer } } Such initializers show up in the outline and in the method view. <clinit> shouldn't show up in the type viewer's method list. EG (8/31/00 8:00:37 PM) agreed, synthetic initializers should be hidden MA (11/7/00 6:05:24 PM) filtered out in TypeHierarchy > 25 AK (11/16/00 4:30:18 PM) not fixed initializers show up only in the outliner now (so it's changed since KUM wrote the comment above) EG (12/5/00 1:05:46 PM) consider once we are on new SEF DM (1/29/01 12:34:40 PM) Verified --> not fixed The problem is now also in the Ouline view and the problem is even worse in my opinion because the default constructor is now rendered as if it would be real (i.e. explicitly defined in the class). Test Case: java.applet.Applet.class ==> synthetic members should be shown but recognizable as such. MINOR PROBLEM - NOT FOR WEDNESDAY MA (20.08.2001 17:23:13) Initializers were not rendered in the type hierarchy. added in 200 Can't see constructors in outline for class files.
verified fixed
0d5f538
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-17T18:43:51Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewerFilter.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.typehierarchy; import org.eclipse.jface.viewers.Viewer; import org.eclipse.jface.viewers.ViewerFilter; import org.eclipse.jdt.core.Flags; import org.eclipse.jdt.core.IField; import org.eclipse.jdt.core.IMember; import org.eclipse.jdt.core.IType; import org.eclipse.jdt.core.JavaModelException; /** * Filter for the methods viewer. * Changing a filter property does not trigger a refiltering of the viewer */ public class MethodsViewerFilter extends ViewerFilter { public static final int FILTER_NONPUBLIC= 1;
3,487
Bug 3487 Smoke 20: Rendering of methods different in Class Hierarchy / Outliner (1FZOKGK)
MA (8/14/00 6:09:15 PM) 1. open java.lang object form rt.jar with correct source annotation 2. activate static methods in the class hierrachy viewer 3. the hierarhcy viewer renders a method <clinit>, which is not shown in the outliner MA (8/14/00 6:09:20 PM) I think, static initializers should be rendered which a human readable name, also in source files NOTES: KUM (8/15/00 6:11:17 PM) <clinit> are compiler generated initializers. They are different from the initializer code which can be placed directly into the source of a class such as class X { { // initializer per instance } static { // class initializer } } Such initializers show up in the outline and in the method view. <clinit> shouldn't show up in the type viewer's method list. EG (8/31/00 8:00:37 PM) agreed, synthetic initializers should be hidden MA (11/7/00 6:05:24 PM) filtered out in TypeHierarchy > 25 AK (11/16/00 4:30:18 PM) not fixed initializers show up only in the outliner now (so it's changed since KUM wrote the comment above) EG (12/5/00 1:05:46 PM) consider once we are on new SEF DM (1/29/01 12:34:40 PM) Verified --> not fixed The problem is now also in the Ouline view and the problem is even worse in my opinion because the default constructor is now rendered as if it would be real (i.e. explicitly defined in the class). Test Case: java.applet.Applet.class ==> synthetic members should be shown but recognizable as such. MINOR PROBLEM - NOT FOR WEDNESDAY MA (20.08.2001 17:23:13) Initializers were not rendered in the type hierarchy. added in 200 Can't see constructors in outline for class files.
verified fixed
0d5f538
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-17T18:43:51Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewerFilter.java
public static final int FILTER_STATIC= 2; public static final int FILTER_FIELDS= 4; private int fFilterProperties; /** * Modifies filter and add a property to filter for */ public final void addFilter(int filter) { fFilterProperties |= filter; } /** * Modifies filter and remove a property to filter for */ public final void removeFilter(int filter) { fFilterProperties &= (-1 ^ filter); } /** * Tests if a property is filtered */ public final boolean hasFilter(int filter) { return (fFilterProperties & filter) != 0; } /* * @see ViewerFilter@isFilterProperty */ public boolean isFilterProperty(Object element, Object property) { return false;
3,487
Bug 3487 Smoke 20: Rendering of methods different in Class Hierarchy / Outliner (1FZOKGK)
MA (8/14/00 6:09:15 PM) 1. open java.lang object form rt.jar with correct source annotation 2. activate static methods in the class hierrachy viewer 3. the hierarhcy viewer renders a method <clinit>, which is not shown in the outliner MA (8/14/00 6:09:20 PM) I think, static initializers should be rendered which a human readable name, also in source files NOTES: KUM (8/15/00 6:11:17 PM) <clinit> are compiler generated initializers. They are different from the initializer code which can be placed directly into the source of a class such as class X { { // initializer per instance } static { // class initializer } } Such initializers show up in the outline and in the method view. <clinit> shouldn't show up in the type viewer's method list. EG (8/31/00 8:00:37 PM) agreed, synthetic initializers should be hidden MA (11/7/00 6:05:24 PM) filtered out in TypeHierarchy > 25 AK (11/16/00 4:30:18 PM) not fixed initializers show up only in the outliner now (so it's changed since KUM wrote the comment above) EG (12/5/00 1:05:46 PM) consider once we are on new SEF DM (1/29/01 12:34:40 PM) Verified --> not fixed The problem is now also in the Ouline view and the problem is even worse in my opinion because the default constructor is now rendered as if it would be real (i.e. explicitly defined in the class). Test Case: java.applet.Applet.class ==> synthetic members should be shown but recognizable as such. MINOR PROBLEM - NOT FOR WEDNESDAY MA (20.08.2001 17:23:13) Initializers were not rendered in the type hierarchy. added in 200 Can't see constructors in outline for class files.
verified fixed
0d5f538
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-17T18:43:51Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewerFilter.java
} /* * @see ViewerFilter@select */ public boolean select(Viewer viewer, Object parentElement, Object element) { try { if (hasFilter(FILTER_FIELDS) && element instanceof IField) { return false; } if (element instanceof IMember) { IMember member= (IMember)element; int flags= member.getFlags(); if (hasFilter(FILTER_STATIC) && (Flags.isStatic(flags) || "<clinit>".equals(member.getElementName()))) { return false; } if (hasFilter(FILTER_NONPUBLIC) && !Flags.isPublic(flags) && !isMemberInInterface(member)) { return false; } } } catch (JavaModelException e) { } return true; } private boolean isMemberInInterface(IMember member) throws JavaModelException { IType parent= member.getDeclaringType(); return parent != null && parent.isInterface(); } }
7,653
Bug 7653 Outline doesn't sort overloaded methods
When you set the Outline view to sort by name (the A-Z button) it does not consider the methods' arguments when sorting them. #1 - create the following class in Eclipse: public class OutlineTest { public void foo(int x) {} public void foo(float x) {} public void foo(long x) {} public void foo(double x) {} public void bar() {} } #2 - open an Outline view on the class #3 - by default (unsorted) it shows foo(int x) foo(float x) foo(long x) foo(double x) bar() #3 - if you choose the 'A-Z' button, the outline re-sorts to bar() foo(int x) foo(float x) foo(long x) foo(double x) I had expected it to consider the arguments for overloaded functions and to sort like: bar() foo(double x) foo(float x) foo(int x) foo(long x) (I just noticed that the Packages view seems to use the same ordering as the Outline, so this bug is not restricted to the Outline.) (I'm pretty sure that VisualAge for Java takes the arguments into account when sorting overloaded functions.) (Tested against 20011219 build)
verified fixed
efbeea0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-17T19:18:01Z
2002-01-15T21:26:40Z
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; import org.eclipse.swt.widgets.Table; import org.eclipse.jface.action.IMenuListener; import org.eclipse.jface.action.IMenuManager; import org.eclipse.jface.action.MenuManager; import org.eclipse.jface.action.Separator; import org.eclipse.jface.action.ToolBarManager; import org.eclipse.jface.viewers.DoubleClickEvent; import org.eclipse.jface.viewers.IDoubleClickListener; import org.eclipse.jface.viewers.ISelection; import org.eclipse.jface.viewers.StructuredSelection; import org.eclipse.jface.viewers.Viewer; import org.eclipse.ui.IMemento; import org.eclipse.ui.IWorkbenchPart; import org.eclipse.ui.IWorkbenchPartSite;
7,653
Bug 7653 Outline doesn't sort overloaded methods
When you set the Outline view to sort by name (the A-Z button) it does not consider the methods' arguments when sorting them. #1 - create the following class in Eclipse: public class OutlineTest { public void foo(int x) {} public void foo(float x) {} public void foo(long x) {} public void foo(double x) {} public void bar() {} } #2 - open an Outline view on the class #3 - by default (unsorted) it shows foo(int x) foo(float x) foo(long x) foo(double x) bar() #3 - if you choose the 'A-Z' button, the outline re-sorts to bar() foo(int x) foo(float x) foo(long x) foo(double x) I had expected it to consider the arguments for overloaded functions and to sort like: bar() foo(double x) foo(float x) foo(int x) foo(long x) (I just noticed that the Packages view seems to use the same ordering as the Outline, so this bug is not restricted to the Outline.) (I'm pretty sure that VisualAge for Java takes the arguments into account when sorting overloaded functions.) (Tested against 20011219 build)
verified fixed
efbeea0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-17T19:18:01Z
2002-01-15T21:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
import org.eclipse.jdt.core.IJavaElement; import org.eclipse.jdt.core.IMethod; import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jdt.ui.IContextMenuConstants; import org.eclipse.jdt.ui.JavaElementLabelProvider; import org.eclipse.jdt.internal.corext.util.JavaModelUtil; import org.eclipse.jdt.internal.ui.IJavaHelpContextIds; import org.eclipse.jdt.internal.ui.JavaPlugin; import org.eclipse.jdt.internal.ui.JavaPluginImages; import org.eclipse.jdt.internal.ui.actions.ContextMenuGroup; import org.eclipse.jdt.internal.ui.actions.GenerateGroup; import org.eclipse.jdt.internal.ui.actions.OpenJavaElementAction; import org.eclipse.jdt.internal.ui.search.JavaSearchGroup; import org.eclipse.jdt.internal.ui.util.ExceptionHandler; import org.eclipse.jdt.internal.ui.util.SelectionUtil; import org.eclipse.jdt.internal.ui.viewsupport.JavaElementLabels; import org.eclipse.jdt.internal.ui.viewsupport.JavaElementSorter; import org.eclipse.jdt.internal.ui.viewsupport.MarkerErrorTickProvider; import org.eclipse.jdt.internal.ui.viewsupport.ProblemTableViewer; /** * Method viewer shows a list of methods of a input type. * Offers filter actions. * No dependency to the type hierarchy view */ public class MethodsViewer extends ProblemTableViewer { /** * Sorter that uses the unmodified labelprovider (No declaring class names) */ private static class MethodsViewerSorter extends JavaElementSorter {
7,653
Bug 7653 Outline doesn't sort overloaded methods
When you set the Outline view to sort by name (the A-Z button) it does not consider the methods' arguments when sorting them. #1 - create the following class in Eclipse: public class OutlineTest { public void foo(int x) {} public void foo(float x) {} public void foo(long x) {} public void foo(double x) {} public void bar() {} } #2 - open an Outline view on the class #3 - by default (unsorted) it shows foo(int x) foo(float x) foo(long x) foo(double x) bar() #3 - if you choose the 'A-Z' button, the outline re-sorts to bar() foo(int x) foo(float x) foo(long x) foo(double x) I had expected it to consider the arguments for overloaded functions and to sort like: bar() foo(double x) foo(float x) foo(int x) foo(long x) (I just noticed that the Packages view seems to use the same ordering as the Outline, so this bug is not restricted to the Outline.) (I'm pretty sure that VisualAge for Java takes the arguments into account when sorting overloaded functions.) (Tested against 20011219 build)
verified fixed
efbeea0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-17T19:18:01Z
2002-01-15T21:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
public MethodsViewerSorter() { } public int compare(Viewer viewer, Object e1, Object e2) { int cat1 = category(e1); int cat2 = category(e2); if (cat1 != cat2) return cat1 - cat2; String name1= JavaElementLabels.getElementLabel((IJavaElement) e1, JavaElementLabels.ALL_DEFAULT); String name2= JavaElementLabels.getElementLabel((IJavaElement) e2, JavaElementLabels.ALL_DEFAULT); return getCollator().compare(name1, name2); } } private static final String TAG_HIDEFIELDS= "hidefields"; private static final String TAG_HIDESTATIC= "hidestatic"; private static final String TAG_HIDENONPUBLIC= "hidenonpublic"; private static final String TAG_SHOWINHERITED= "showinherited"; private static final String TAG_VERTICAL_SCROLL= "mv_vertical_scroll"; private MethodsViewerFilterAction[] fFilterActions; private MethodsViewerFilter fFilter; private OpenJavaElementAction fOpen; private ShowInheritedMembersAction fShowInheritedMembersAction; private ContextMenuGroup[] fStandardGroups;
7,653
Bug 7653 Outline doesn't sort overloaded methods
When you set the Outline view to sort by name (the A-Z button) it does not consider the methods' arguments when sorting them. #1 - create the following class in Eclipse: public class OutlineTest { public void foo(int x) {} public void foo(float x) {} public void foo(long x) {} public void foo(double x) {} public void bar() {} } #2 - open an Outline view on the class #3 - by default (unsorted) it shows foo(int x) foo(float x) foo(long x) foo(double x) bar() #3 - if you choose the 'A-Z' button, the outline re-sorts to bar() foo(int x) foo(float x) foo(long x) foo(double x) I had expected it to consider the arguments for overloaded functions and to sort like: bar() foo(double x) foo(float x) foo(int x) foo(long x) (I just noticed that the Packages view seems to use the same ordering as the Outline, so this bug is not restricted to the Outline.) (I'm pretty sure that VisualAge for Java takes the arguments into account when sorting overloaded functions.) (Tested against 20011219 build)
verified fixed
efbeea0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-17T19:18:01Z
2002-01-15T21:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
public MethodsViewer(Composite parent, IWorkbenchPart part) { super(new Table(parent, SWT.MULTI)); JavaElementLabelProvider lprovider= new JavaElementLabelProvider(JavaElementLabelProvider.SHOW_DEFAULT); lprovider.setErrorTickManager(new MarkerErrorTickProvider()); MethodsContentProvider contentProvider= new MethodsContentProvider(); setLabelProvider(lprovider); setContentProvider(contentProvider); fOpen= new OpenJavaElementAction(this); addDoubleClickListener(new IDoubleClickListener() { public void doubleClick(DoubleClickEvent event) { fOpen.run(); } }); fFilter= new MethodsViewerFilter(); String title= TypeHierarchyMessages.getString("MethodsViewer.hide_fields.label"); String helpContext= IJavaHelpContextIds.FILTER_FIELDS_ACTION; MethodsViewerFilterAction hideFields= new MethodsViewerFilterAction(this, title, MethodsViewerFilter.FILTER_FIELDS, helpContext, false); hideFields.setDescription(TypeHierarchyMessages.getString("MethodsViewer.hide_fields.description")); hideFields.setToolTipChecked(TypeHierarchyMessages.getString("MethodsViewer.hide_fields.tooltip.checked")); hideFields.setToolTipUnchecked(TypeHierarchyMessages.getString("MethodsViewer.hide_fields.tooltip.unchecked")); JavaPluginImages.setLocalImageDescriptors(hideFields, "fields_co.gif");
7,653
Bug 7653 Outline doesn't sort overloaded methods
When you set the Outline view to sort by name (the A-Z button) it does not consider the methods' arguments when sorting them. #1 - create the following class in Eclipse: public class OutlineTest { public void foo(int x) {} public void foo(float x) {} public void foo(long x) {} public void foo(double x) {} public void bar() {} } #2 - open an Outline view on the class #3 - by default (unsorted) it shows foo(int x) foo(float x) foo(long x) foo(double x) bar() #3 - if you choose the 'A-Z' button, the outline re-sorts to bar() foo(int x) foo(float x) foo(long x) foo(double x) I had expected it to consider the arguments for overloaded functions and to sort like: bar() foo(double x) foo(float x) foo(int x) foo(long x) (I just noticed that the Packages view seems to use the same ordering as the Outline, so this bug is not restricted to the Outline.) (I'm pretty sure that VisualAge for Java takes the arguments into account when sorting overloaded functions.) (Tested against 20011219 build)
verified fixed
efbeea0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-17T19:18:01Z
2002-01-15T21:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
title= TypeHierarchyMessages.getString("MethodsViewer.hide_static.label"); helpContext= IJavaHelpContextIds.FILTER_STATIC_ACTION; MethodsViewerFilterAction hideStatic= new MethodsViewerFilterAction(this, title, MethodsViewerFilter.FILTER_STATIC, helpContext, false); hideStatic.setDescription(TypeHierarchyMessages.getString("MethodsViewer.hide_static.description")); hideStatic.setToolTipChecked(TypeHierarchyMessages.getString("MethodsViewer.hide_static.tooltip.checked")); hideStatic.setToolTipUnchecked(TypeHierarchyMessages.getString("MethodsViewer.hide_static.tooltip.unchecked")); JavaPluginImages.setLocalImageDescriptors(hideStatic, "static_co.gif"); title= TypeHierarchyMessages.getString("MethodsViewer.hide_nonpublic.label"); helpContext= IJavaHelpContextIds.FILTER_PUBLIC_ACTION; MethodsViewerFilterAction hideNonPublic= new MethodsViewerFilterAction(this, title, MethodsViewerFilter.FILTER_NONPUBLIC, helpContext, false); hideNonPublic.setDescription(TypeHierarchyMessages.getString("MethodsViewer.hide_nonpublic.description")); hideNonPublic.setToolTipChecked(TypeHierarchyMessages.getString("MethodsViewer.hide_nonpublic.tooltip.checked")); hideNonPublic.setToolTipUnchecked(TypeHierarchyMessages.getString("MethodsViewer.hide_nonpublic.tooltip.unchecked")); JavaPluginImages.setLocalImageDescriptors(hideNonPublic, "public_co.gif"); fFilterActions= new MethodsViewerFilterAction[] { hideFields, hideStatic, hideNonPublic }; addFilter(fFilter); fShowInheritedMembersAction= new ShowInheritedMembersAction(this, false); showInheritedMethods(false); fStandardGroups= new ContextMenuGroup[] { new JavaSearchGroup(), new GenerateGroup() };
7,653
Bug 7653 Outline doesn't sort overloaded methods
When you set the Outline view to sort by name (the A-Z button) it does not consider the methods' arguments when sorting them. #1 - create the following class in Eclipse: public class OutlineTest { public void foo(int x) {} public void foo(float x) {} public void foo(long x) {} public void foo(double x) {} public void bar() {} } #2 - open an Outline view on the class #3 - by default (unsorted) it shows foo(int x) foo(float x) foo(long x) foo(double x) bar() #3 - if you choose the 'A-Z' button, the outline re-sorts to bar() foo(int x) foo(float x) foo(long x) foo(double x) I had expected it to consider the arguments for overloaded functions and to sort like: bar() foo(double x) foo(float x) foo(int x) foo(long x) (I just noticed that the Packages view seems to use the same ordering as the Outline, so this bug is not restricted to the Outline.) (I'm pretty sure that VisualAge for Java takes the arguments into account when sorting overloaded functions.) (Tested against 20011219 build)
verified fixed
efbeea0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-17T19:18:01Z
2002-01-15T21:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
setSorter(new MethodsViewerSorter()); } /** * Show inherited methods */ public void showInheritedMethods(boolean on) { MethodsContentProvider cprovider= (MethodsContentProvider) getContentProvider(); try { getTable().setRedraw(false); cprovider.showInheritedMethods(on); fShowInheritedMembersAction.setChecked(on); JavaElementLabelProvider lprovider= (JavaElementLabelProvider) getLabelProvider(); if (on) { lprovider.turnOn(JavaElementLabelProvider.SHOW_POST_QUALIFIED); } else { lprovider.turnOff(JavaElementLabelProvider.SHOW_POST_QUALIFIED); } refresh(); } catch (JavaModelException e) { ExceptionHandler.handle(e, getControl().getShell(), TypeHierarchyMessages.getString("MethodsViewer.toggle.error.title"), TypeHierarchyMessages.getString("MethodsViewer.toggle.error.message")); } finally { getTable().setRedraw(true); } } /* * @see Viewer#inputChanged(Object, Object)
7,653
Bug 7653 Outline doesn't sort overloaded methods
When you set the Outline view to sort by name (the A-Z button) it does not consider the methods' arguments when sorting them. #1 - create the following class in Eclipse: public class OutlineTest { public void foo(int x) {} public void foo(float x) {} public void foo(long x) {} public void foo(double x) {} public void bar() {} } #2 - open an Outline view on the class #3 - by default (unsorted) it shows foo(int x) foo(float x) foo(long x) foo(double x) bar() #3 - if you choose the 'A-Z' button, the outline re-sorts to bar() foo(int x) foo(float x) foo(long x) foo(double x) I had expected it to consider the arguments for overloaded functions and to sort like: bar() foo(double x) foo(float x) foo(int x) foo(long x) (I just noticed that the Packages view seems to use the same ordering as the Outline, so this bug is not restricted to the Outline.) (I'm pretty sure that VisualAge for Java takes the arguments into account when sorting overloaded functions.) (Tested against 20011219 build)
verified fixed
efbeea0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-17T19:18:01Z
2002-01-15T21:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
*/ 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) getContentProvider()).isShowInheritedMethods(); } /** * Filters the method list */ public void setMemberFilter(int filterProperty, boolean set) { if (set) { fFilter.addFilter(filterProperty); } else { fFilter.removeFilter(filterProperty); } for (int i= 0; i < fFilterActions.length; i++) { if (fFilterActions[i].getFilterProperty() == filterProperty) { fFilterActions[i].setChecked(set); } } refresh(); } /** * Returns <code>true</code> if the given filter is set. */
7,653
Bug 7653 Outline doesn't sort overloaded methods
When you set the Outline view to sort by name (the A-Z button) it does not consider the methods' arguments when sorting them. #1 - create the following class in Eclipse: public class OutlineTest { public void foo(int x) {} public void foo(float x) {} public void foo(long x) {} public void foo(double x) {} public void bar() {} } #2 - open an Outline view on the class #3 - by default (unsorted) it shows foo(int x) foo(float x) foo(long x) foo(double x) bar() #3 - if you choose the 'A-Z' button, the outline re-sorts to bar() foo(int x) foo(float x) foo(long x) foo(double x) I had expected it to consider the arguments for overloaded functions and to sort like: bar() foo(double x) foo(float x) foo(int x) foo(long x) (I just noticed that the Packages view seems to use the same ordering as the Outline, so this bug is not restricted to the Outline.) (I'm pretty sure that VisualAge for Java takes the arguments into account when sorting overloaded functions.) (Tested against 20011219 build)
verified fixed
efbeea0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-17T19:18:01Z
2002-01-15T21:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
public boolean hasMemberFilter(int filterProperty) { return fFilter.hasFilter(filterProperty); } /** * Saves the state of the filter actions */ public void saveState(IMemento memento) { memento.putString(TAG_HIDEFIELDS, String.valueOf(hasMemberFilter(MethodsViewerFilter.FILTER_FIELDS))); memento.putString(TAG_HIDESTATIC, String.valueOf(hasMemberFilter(MethodsViewerFilter.FILTER_STATIC))); memento.putString(TAG_HIDENONPUBLIC, String.valueOf(hasMemberFilter(MethodsViewerFilter.FILTER_NONPUBLIC))); memento.putString(TAG_SHOWINHERITED, String.valueOf(isShowInheritedMethods())); ScrollBar bar= getTable().getVerticalBar(); int position= bar != null ? bar.getSelection() : 0; memento.putString(TAG_VERTICAL_SCROLL, String.valueOf(position)); } /** * Restores the state of the filter actions */ public void restoreState(IMemento memento) { boolean set= Boolean.valueOf(memento.getString(TAG_HIDEFIELDS)).booleanValue(); setMemberFilter(MethodsViewerFilter.FILTER_FIELDS, set); set= Boolean.valueOf(memento.getString(TAG_HIDESTATIC)).booleanValue(); setMemberFilter(MethodsViewerFilter.FILTER_STATIC, set); set= Boolean.valueOf(memento.getString(TAG_HIDENONPUBLIC)).booleanValue(); setMemberFilter(MethodsViewerFilter.FILTER_NONPUBLIC, set); set= Boolean.valueOf(memento.getString(TAG_SHOWINHERITED)).booleanValue(); showInheritedMethods(set);
7,653
Bug 7653 Outline doesn't sort overloaded methods
When you set the Outline view to sort by name (the A-Z button) it does not consider the methods' arguments when sorting them. #1 - create the following class in Eclipse: public class OutlineTest { public void foo(int x) {} public void foo(float x) {} public void foo(long x) {} public void foo(double x) {} public void bar() {} } #2 - open an Outline view on the class #3 - by default (unsorted) it shows foo(int x) foo(float x) foo(long x) foo(double x) bar() #3 - if you choose the 'A-Z' button, the outline re-sorts to bar() foo(int x) foo(float x) foo(long x) foo(double x) I had expected it to consider the arguments for overloaded functions and to sort like: bar() foo(double x) foo(float x) foo(int x) foo(long x) (I just noticed that the Packages view seems to use the same ordering as the Outline, so this bug is not restricted to the Outline.) (I'm pretty sure that VisualAge for Java takes the arguments into account when sorting overloaded functions.) (Tested against 20011219 build)
verified fixed
efbeea0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-17T19:18:01Z
2002-01-15T21:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
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 initContextMenu(IMenuListener menuListener, String popupId, IWorkbenchPartSite viewSite) { MenuManager menuMgr= new MenuManager(); menuMgr.setRemoveAllWhenShown(true); menuMgr.addMenuListener(menuListener); Menu menu= menuMgr.createContextMenu(getTable()); getTable().setMenu(menu); viewSite.registerContextMenu(popupId, menuMgr, this); } /** * Fills up the context menu with items for the method viewer * Should be called by the creator of the context menu */ public void contributeToContextMenu(IMenuManager menu) { if (fOpen.canActionBeAdded()) { menu.appendToGroup(IContextMenuConstants.GROUP_OPEN, fOpen); }
7,653
Bug 7653 Outline doesn't sort overloaded methods
When you set the Outline view to sort by name (the A-Z button) it does not consider the methods' arguments when sorting them. #1 - create the following class in Eclipse: public class OutlineTest { public void foo(int x) {} public void foo(float x) {} public void foo(long x) {} public void foo(double x) {} public void bar() {} } #2 - open an Outline view on the class #3 - by default (unsorted) it shows foo(int x) foo(float x) foo(long x) foo(double x) bar() #3 - if you choose the 'A-Z' button, the outline re-sorts to bar() foo(int x) foo(float x) foo(long x) foo(double x) I had expected it to consider the arguments for overloaded functions and to sort like: bar() foo(double x) foo(float x) foo(int x) foo(long x) (I just noticed that the Packages view seems to use the same ordering as the Outline, so this bug is not restricted to the Outline.) (I'm pretty sure that VisualAge for Java takes the arguments into account when sorting overloaded functions.) (Tested against 20011219 build)
verified fixed
efbeea0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-17T19:18:01Z
2002-01-15T21:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
ContextMenuGroup.add(menu, fStandardGroups, this); } /** * Fills up the tool bar with items for the method viewer * Should be called by the creator of the tool bar */ public void contributeToToolBar(ToolBarManager tbm) { tbm.add(fShowInheritedMembersAction); tbm.add(new Separator()); tbm.add(fFilterActions[0]); tbm.add(fFilterActions[1]); tbm.add(fFilterActions[2]); } /* * @see StructuredViewer#handleInvalidSelection(ISelection, ISelection) */ protected void handleInvalidSelection(ISelection invalidSelection, ISelection newSelection) { List oldSelections= SelectionUtil.toList(invalidSelection); List newSelections= SelectionUtil.toList(newSelection); if (!oldSelections.isEmpty()) { ArrayList newSelectionElements= new ArrayList(newSelections); try { Object[] currElements= getFilteredChildren(getInput()); for (int i= 0; i < oldSelections.size(); i++) { Object curr= oldSelections.get(i); if (curr instanceof IMethod && !newSelections.contains(curr)) { IMethod method= (IMethod) curr; if (method.exists()) {
7,653
Bug 7653 Outline doesn't sort overloaded methods
When you set the Outline view to sort by name (the A-Z button) it does not consider the methods' arguments when sorting them. #1 - create the following class in Eclipse: public class OutlineTest { public void foo(int x) {} public void foo(float x) {} public void foo(long x) {} public void foo(double x) {} public void bar() {} } #2 - open an Outline view on the class #3 - by default (unsorted) it shows foo(int x) foo(float x) foo(long x) foo(double x) bar() #3 - if you choose the 'A-Z' button, the outline re-sorts to bar() foo(int x) foo(float x) foo(long x) foo(double x) I had expected it to consider the arguments for overloaded functions and to sort like: bar() foo(double x) foo(float x) foo(int x) foo(long x) (I just noticed that the Packages view seems to use the same ordering as the Outline, so this bug is not restricted to the Outline.) (I'm pretty sure that VisualAge for Java takes the arguments into account when sorting overloaded functions.) (Tested against 20011219 build)
verified fixed
efbeea0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-17T19:18:01Z
2002-01-15T21:26:40Z
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(newSelection); updateSelection(newSelection); } private IMethod findSimilarMethod(IMethod meth, Object[] elements) throws JavaModelException { String name= meth.getElementName(); String[] paramTypes= meth.getParameterTypes(); boolean isConstructor= meth.isConstructor(); for (int i= 0; i < elements.length; i++) { Object curr= elements[i]; if (curr instanceof IMethod && JavaModelUtil.isSameMethodSignature(name, paramTypes, isConstructor, (IMethod) curr)) { return (IMethod) curr; } } return null; } }
7,653
Bug 7653 Outline doesn't sort overloaded methods
When you set the Outline view to sort by name (the A-Z button) it does not consider the methods' arguments when sorting them. #1 - create the following class in Eclipse: public class OutlineTest { public void foo(int x) {} public void foo(float x) {} public void foo(long x) {} public void foo(double x) {} public void bar() {} } #2 - open an Outline view on the class #3 - by default (unsorted) it shows foo(int x) foo(float x) foo(long x) foo(double x) bar() #3 - if you choose the 'A-Z' button, the outline re-sorts to bar() foo(int x) foo(float x) foo(long x) foo(double x) I had expected it to consider the arguments for overloaded functions and to sort like: bar() foo(double x) foo(float x) foo(int x) foo(long x) (I just noticed that the Packages view seems to use the same ordering as the Outline, so this bug is not restricted to the Outline.) (I'm pretty sure that VisualAge for Java takes the arguments into account when sorting overloaded functions.) (Tested against 20011219 build)
verified fixed
efbeea0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-17T19:18:01Z
2002-01-15T21:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/JavaElementSorter.java
package org.eclipse.jdt.internal.ui.viewsupport; import java.text.Collator; import org.eclipse.core.resources.IContainer; import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IProject; import org.eclipse.core.resources.IResource; import org.eclipse.core.resources.IStorage; import org.eclipse.jface.viewers.Viewer; import org.eclipse.jface.viewers.ViewerSorter; import org.eclipse.jdt.core.Flags; import org.eclipse.jdt.core.IClasspathEntry; import org.eclipse.jdt.core.IField; import org.eclipse.jdt.core.IInitializer; import org.eclipse.jdt.core.IJavaElement; import org.eclipse.jdt.core.IMethod; import org.eclipse.jdt.core.IPackageFragment; import org.eclipse.jdt.core.IPackageFragmentRoot; import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jdt.internal.corext.util.JavaModelUtil; import org.eclipse.jdt.internal.ui.JavaPlugin; /** * Sorts Java elements: * Package fragment roots are sorted as ordered in the classpath. */ public class JavaElementSorter extends ViewerSorter {
7,653
Bug 7653 Outline doesn't sort overloaded methods
When you set the Outline view to sort by name (the A-Z button) it does not consider the methods' arguments when sorting them. #1 - create the following class in Eclipse: public class OutlineTest { public void foo(int x) {} public void foo(float x) {} public void foo(long x) {} public void foo(double x) {} public void bar() {} } #2 - open an Outline view on the class #3 - by default (unsorted) it shows foo(int x) foo(float x) foo(long x) foo(double x) bar() #3 - if you choose the 'A-Z' button, the outline re-sorts to bar() foo(int x) foo(float x) foo(long x) foo(double x) I had expected it to consider the arguments for overloaded functions and to sort like: bar() foo(double x) foo(float x) foo(int x) foo(long x) (I just noticed that the Packages view seems to use the same ordering as the Outline, so this bug is not restricted to the Outline.) (I'm pretty sure that VisualAge for Java takes the arguments into account when sorting overloaded functions.) (Tested against 20011219 build)
verified fixed
efbeea0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-17T19:18:01Z
2002-01-15T21:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/JavaElementSorter.java
private static final int PACKAGE_DECL= 1; private static final int IMPORT_CONTAINER= 2; private static final int TYPES= 3; private static final int CONSTRUCTORS= 4; private static final int STATIC_INIT= 5; private static final int STATIC_METHODS= 6; private static final int INIT= 7; private static final int METHODS= 8; private static final int STATIC_FIELDS= 9; private static final int FIELDS= 10; private static final int JAVAELEMENTS= 11; private static final int PACKAGEFRAGMENTROOTS= 12; private static final int PACKAGEFRAGMENT= 13; private static final int JAVAPROJECTS= 14; private static final int RESOURCEPACKAGES= 15; private static final int RESOURCEFOLDERS= 16; private static final int RESOURCES= 17; private static final int STORAGE= 18; private static final int OTHERS= 20; private IClasspathEntry[] fClassPath; /* * @see ViewerSorter#sort */ public void sort(Viewer v, Object[] property) { fClassPath= null; try { super.sort(v, property); } finally { fClassPath= null;
7,653
Bug 7653 Outline doesn't sort overloaded methods
When you set the Outline view to sort by name (the A-Z button) it does not consider the methods' arguments when sorting them. #1 - create the following class in Eclipse: public class OutlineTest { public void foo(int x) {} public void foo(float x) {} public void foo(long x) {} public void foo(double x) {} public void bar() {} } #2 - open an Outline view on the class #3 - by default (unsorted) it shows foo(int x) foo(float x) foo(long x) foo(double x) bar() #3 - if you choose the 'A-Z' button, the outline re-sorts to bar() foo(int x) foo(float x) foo(long x) foo(double x) I had expected it to consider the arguments for overloaded functions and to sort like: bar() foo(double x) foo(float x) foo(int x) foo(long x) (I just noticed that the Packages view seems to use the same ordering as the Outline, so this bug is not restricted to the Outline.) (I'm pretty sure that VisualAge for Java takes the arguments into account when sorting overloaded functions.) (Tested against 20011219 build)
verified fixed
efbeea0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-17T19:18:01Z
2002-01-15T21:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/JavaElementSorter.java
} } /* * @see ViewerSorter#isSorterProperty */ public boolean isSorterProperty(Object element, Object property) { return true; } /* * @see ViewerSorter#category */ public int category(Object element) { if (element instanceof IJavaElement) { try { IJavaElement je= (IJavaElement) element; switch (je.getElementType()) { case IJavaElement.METHOD: { IMethod method= (IMethod) je; if (method.isConstructor()) return CONSTRUCTORS; int flags= method.getFlags(); return Flags.isStatic(flags) ? STATIC_METHODS : METHODS; } case IJavaElement.FIELD: { int flags= ((IField) je).getFlags(); return Flags.isStatic(flags) ? STATIC_FIELDS : FIELDS;
7,653
Bug 7653 Outline doesn't sort overloaded methods
When you set the Outline view to sort by name (the A-Z button) it does not consider the methods' arguments when sorting them. #1 - create the following class in Eclipse: public class OutlineTest { public void foo(int x) {} public void foo(float x) {} public void foo(long x) {} public void foo(double x) {} public void bar() {} } #2 - open an Outline view on the class #3 - by default (unsorted) it shows foo(int x) foo(float x) foo(long x) foo(double x) bar() #3 - if you choose the 'A-Z' button, the outline re-sorts to bar() foo(int x) foo(float x) foo(long x) foo(double x) I had expected it to consider the arguments for overloaded functions and to sort like: bar() foo(double x) foo(float x) foo(int x) foo(long x) (I just noticed that the Packages view seems to use the same ordering as the Outline, so this bug is not restricted to the Outline.) (I'm pretty sure that VisualAge for Java takes the arguments into account when sorting overloaded functions.) (Tested against 20011219 build)
verified fixed
efbeea0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-17T19:18:01Z
2002-01-15T21:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/JavaElementSorter.java
} case IJavaElement.INITIALIZER: { int flags= ((IInitializer) je).getFlags(); return Flags.isStatic(flags) ? STATIC_INIT : INIT; } case IJavaElement.TYPE: return TYPES; case IJavaElement.PACKAGE_DECLARATION: return PACKAGE_DECL; case IJavaElement.IMPORT_CONTAINER: return IMPORT_CONTAINER; case IJavaElement.PACKAGE_FRAGMENT: IPackageFragment pack= (IPackageFragment) je; if (!pack.hasChildren() && pack.getNonJavaResources().length > 0) { return RESOURCEPACKAGES; } if (pack.getParent().getUnderlyingResource() instanceof IProject) { return PACKAGEFRAGMENTROOTS; } return PACKAGEFRAGMENT; case IJavaElement.PACKAGE_FRAGMENT_ROOT: return PACKAGEFRAGMENTROOTS; case IJavaElement.JAVA_PROJECT: return JAVAPROJECTS; } } catch (JavaModelException x) { JavaPlugin.log(x);
7,653
Bug 7653 Outline doesn't sort overloaded methods
When you set the Outline view to sort by name (the A-Z button) it does not consider the methods' arguments when sorting them. #1 - create the following class in Eclipse: public class OutlineTest { public void foo(int x) {} public void foo(float x) {} public void foo(long x) {} public void foo(double x) {} public void bar() {} } #2 - open an Outline view on the class #3 - by default (unsorted) it shows foo(int x) foo(float x) foo(long x) foo(double x) bar() #3 - if you choose the 'A-Z' button, the outline re-sorts to bar() foo(int x) foo(float x) foo(long x) foo(double x) I had expected it to consider the arguments for overloaded functions and to sort like: bar() foo(double x) foo(float x) foo(int x) foo(long x) (I just noticed that the Packages view seems to use the same ordering as the Outline, so this bug is not restricted to the Outline.) (I'm pretty sure that VisualAge for Java takes the arguments into account when sorting overloaded functions.) (Tested against 20011219 build)
verified fixed
efbeea0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-17T19:18:01Z
2002-01-15T21:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/JavaElementSorter.java
} return JAVAELEMENTS; } else if (element instanceof IFile) { return RESOURCES; } else if (element instanceof IContainer) { return RESOURCEFOLDERS; } else if (element instanceof IStorage) { return STORAGE; } return OTHERS; } /* * @see ViewerSorter#compare */ public int compare(Viewer viewer, Object e1, Object e2) { int cat1= category(e1); int cat2= category(e2); if (cat1 != cat2) return cat1 - cat2; Collator collator= getCollator(); switch (cat1) { case OTHERS: return 0; case PACKAGEFRAGMENTROOTS: int p1= getClassPathIndex(JavaModelUtil.getPackageFragmentRoot((IJavaElement)e1)); int p2= getClassPathIndex(JavaModelUtil.getPackageFragmentRoot((IJavaElement)e2));
7,653
Bug 7653 Outline doesn't sort overloaded methods
When you set the Outline view to sort by name (the A-Z button) it does not consider the methods' arguments when sorting them. #1 - create the following class in Eclipse: public class OutlineTest { public void foo(int x) {} public void foo(float x) {} public void foo(long x) {} public void foo(double x) {} public void bar() {} } #2 - open an Outline view on the class #3 - by default (unsorted) it shows foo(int x) foo(float x) foo(long x) foo(double x) bar() #3 - if you choose the 'A-Z' button, the outline re-sorts to bar() foo(int x) foo(float x) foo(long x) foo(double x) I had expected it to consider the arguments for overloaded functions and to sort like: bar() foo(double x) foo(float x) foo(int x) foo(long x) (I just noticed that the Packages view seems to use the same ordering as the Outline, so this bug is not restricted to the Outline.) (I'm pretty sure that VisualAge for Java takes the arguments into account when sorting overloaded functions.) (Tested against 20011219 build)
verified fixed
efbeea0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-17T19:18:01Z
2002-01-15T21:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/JavaElementSorter.java
if (p1 == p2) { return collator.compare(((IJavaElement)e1).getElementName(), ((IJavaElement)e2).getElementName()); } return p1 - p2; case STORAGE: return collator.compare(((IStorage)e1).getName(), ((IStorage)e2).getName()); case RESOURCES: case RESOURCEFOLDERS: return collator.compare(((IResource)e1).getName(), ((IResource)e2).getName()); default: return collator.compare(((IJavaElement)e1).getElementName(), ((IJavaElement)e2).getElementName()); } } private int getClassPathIndex(IPackageFragmentRoot root) { try { if (fClassPath == null) fClassPath= root.getJavaProject().getResolvedClasspath(true); } catch (JavaModelException e) { return Integer.MAX_VALUE; } for (int i= 0; i < fClassPath.length; i++) { if (fClassPath[i].getPath().equals(root.getPath())) return i; } return Integer.MAX_VALUE; } };
4,074
Bug 4074 Add Import does not add to right group (1GI182E)
1. Ensure that at least "java" and "org.eclipse.swt" are defined in the import order pref page 2. Ensure SWT is on the build path of the test project 3. Add a new class with the following source: ------------------------------------------ import java.util.List; import org.eclipse.swt.SWT; public class AddImportBug { Set } ------------------------------------------ 4. Select Set 5. Add Import ==> The import is added to the org.eclipse group (before SWT) BTW: Organize import adds it to the right group NOTES: MA (27.08.2001 12:24:06) Need to change the separator placeholder structure. The information that the entry was matched to an other entry is lost.
verified fixed
971e3c5
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T09:53:28Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/AnonymousTypeCompletionProposal.java
package org.eclipse.jdt.internal.ui.text.java; import org.eclipse.core.runtime.CoreException; import org.eclipse.swt.graphics.Image; import org.eclipse.jface.text.BadLocationException; import org.eclipse.jface.text.IDocument; import org.eclipse.jface.text.IRegion; import org.eclipse.jface.util.Assert; import org.eclipse.jdt.core.ICompilationUnit; import org.eclipse.jdt.core.IJavaProject; import org.eclipse.jdt.core.IType; import org.eclipse.jdt.core.ITypeHierarchy; import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jdt.internal.corext.codemanipulation.CodeGenerationSettings; import org.eclipse.jdt.internal.corext.codemanipulation.ImportsStructure; import org.eclipse.jdt.internal.corext.codemanipulation.StubUtility; import org.eclipse.jdt.internal.corext.textmanipulation.TextUtil; import org.eclipse.jdt.internal.corext.util.JavaModelUtil; import org.eclipse.jdt.internal.ui.JavaPlugin; import org.eclipse.jdt.internal.ui.JavaPluginImages; import org.eclipse.jdt.internal.ui.actions.OverrideMethodQuery; import org.eclipse.jdt.internal.ui.preferences.CodeFormatterPreferencePage; import org.eclipse.jdt.internal.ui.preferences.ImportOrganizePreferencePage; import org.eclipse.jdt.internal.ui.preferences.JavaPreferencesSettings; public class AnonymousTypeCompletionProposal extends JavaCompletionProposal {
4,074
Bug 4074 Add Import does not add to right group (1GI182E)
1. Ensure that at least "java" and "org.eclipse.swt" are defined in the import order pref page 2. Ensure SWT is on the build path of the test project 3. Add a new class with the following source: ------------------------------------------ import java.util.List; import org.eclipse.swt.SWT; public class AddImportBug { Set } ------------------------------------------ 4. Select Set 5. Add Import ==> The import is added to the org.eclipse group (before SWT) BTW: Organize import adds it to the right group NOTES: MA (27.08.2001 12:24:06) Need to change the separator placeholder structure. The information that the entry was matched to an other entry is lost.
verified fixed
971e3c5
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T09:53:28Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/AnonymousTypeCompletionProposal.java
private IType fDeclaringType; private ICompilationUnit fCompilationUnit; private ImportsStructure fImportStructure; public AnonymousTypeCompletionProposal(ICompilationUnit cu, int start, int length, String constructorCompletion, String displayName, String declaringTypeName) { super(constructorCompletion, start, length, null, displayName); Assert.isNotNull(cu); Assert.isNotNull(declaringTypeName); fCompilationUnit= cu; fDeclaringType= getDeclaringType(cu.getJavaProject(), declaringTypeName); setImage(getImageForType(fDeclaringType)); setCursorPosition(constructorCompletion.indexOf('(') + 1); } private Image getImageForType(IType type) { String imageName= JavaPluginImages.IMG_OBJS_CLASS; if (type != null) { try { if (type.isInterface()) { imageName= JavaPluginImages.IMG_OBJS_INTERFACE;
4,074
Bug 4074 Add Import does not add to right group (1GI182E)
1. Ensure that at least "java" and "org.eclipse.swt" are defined in the import order pref page 2. Ensure SWT is on the build path of the test project 3. Add a new class with the following source: ------------------------------------------ import java.util.List; import org.eclipse.swt.SWT; public class AddImportBug { Set } ------------------------------------------ 4. Select Set 5. Add Import ==> The import is added to the org.eclipse group (before SWT) BTW: Organize import adds it to the right group NOTES: MA (27.08.2001 12:24:06) Need to change the separator placeholder structure. The information that the entry was matched to an other entry is lost.
verified fixed
971e3c5
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T09:53:28Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/AnonymousTypeCompletionProposal.java
} } catch (JavaModelException e) { JavaPlugin.log(e); } } return JavaPluginImages.get(imageName); } private IType getDeclaringType(IJavaProject project, String typeName) { try { return JavaModelUtil.findType(project, typeName); } catch (JavaModelException e) { JavaPlugin.log(e); } return null; } /* * @see JavaCompletionProposal#applyImports(IDocument) */ protected void applyImports(IDocument document) { if (fImportStructure != null) { try { fImportStructure.create(false, null); } catch (CoreException e) { JavaPlugin.log(e); } } } /*
4,074
Bug 4074 Add Import does not add to right group (1GI182E)
1. Ensure that at least "java" and "org.eclipse.swt" are defined in the import order pref page 2. Ensure SWT is on the build path of the test project 3. Add a new class with the following source: ------------------------------------------ import java.util.List; import org.eclipse.swt.SWT; public class AddImportBug { Set } ------------------------------------------ 4. Select Set 5. Add Import ==> The import is added to the org.eclipse group (before SWT) BTW: Organize import adds it to the right group NOTES: MA (27.08.2001 12:24:06) Need to change the separator placeholder structure. The information that the entry was matched to an other entry is lost.
verified fixed
971e3c5
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T09:53:28Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/AnonymousTypeCompletionProposal.java
* @see ICompletionProposalExtension#apply(IDocument, char) */ public void apply(IDocument document, char trigger, int offset) { try { String[] prefOrder= ImportOrganizePreferencePage.getImportOrderPreference(); int threshold= ImportOrganizePreferencePage.getImportNumberThreshold(); fImportStructure= new ImportsStructure(fCompilationUnit, prefOrder, threshold, true); String replacementString= getReplacementString(); StringBuffer buf= new StringBuffer(); buf.append(replacementString); if (!replacementString.endsWith(")")) { buf.append(')'); } buf.append(" {\n"); if (!createStubs(buf, fImportStructure)) { return; } buf.append("}"); String lineDelim= StubUtility.getLineDelimiterFor(document); int tabWidth= CodeFormatterPreferencePage.getTabSize(); IRegion region= document.getLineInformationOfOffset(getReplacementOffset()); int indent= TextUtil.getIndent(document.get(region.getOffset(), region.getLength()), tabWidth); String replacement= StubUtility.codeFormat(buf.toString(), indent, lineDelim); replacement= TextUtil.removeLeadingWhiteSpaces(replacement);
4,074
Bug 4074 Add Import does not add to right group (1GI182E)
1. Ensure that at least "java" and "org.eclipse.swt" are defined in the import order pref page 2. Ensure SWT is on the build path of the test project 3. Add a new class with the following source: ------------------------------------------ import java.util.List; import org.eclipse.swt.SWT; public class AddImportBug { Set } ------------------------------------------ 4. Select Set 5. Add Import ==> The import is added to the org.eclipse group (before SWT) BTW: Organize import adds it to the right group NOTES: MA (27.08.2001 12:24:06) Need to change the separator placeholder structure. The information that the entry was matched to an other entry is lost.
verified fixed
971e3c5
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T09:53:28Z
2001-10-11T03:13:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/AnonymousTypeCompletionProposal.java
setReplacementString(replacement); } catch (BadLocationException e) { JavaPlugin.log(e); } catch (JavaModelException e) { JavaPlugin.log(e); } super.apply(document, trigger, offset); } private boolean createStubs(StringBuffer buf, ImportsStructure imports) throws JavaModelException { if (fDeclaringType == null) { return true; } CodeGenerationSettings settings= JavaPreferencesSettings.getCodeGenerationSettings(); ITypeHierarchy hierarchy= fDeclaringType.newSupertypeHierarchy(null); OverrideMethodQuery selectionQuery= fDeclaringType.isClass() ? new OverrideMethodQuery(JavaPlugin.getActiveWorkbenchShell(), true) : null; String[] unimplemented= StubUtility.evalUnimplementedMethods(fDeclaringType, hierarchy, true, settings, selectionQuery, imports); if (unimplemented != null) { for (int i= 0; i < unimplemented.length; i++) { buf.append(unimplemented[i]); buf.append('\n'); } return true; } return false; } }
7,914
Bug 7914 Cannot copy a Java project in the packages view
There is no way to copy a Java project in the packages view. You can copy a project in the Navigator. This is a functional gap.
verified fixed
270c706
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:15:46Z
2002-01-19T22:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/CopyAction.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.reorg; import java.util.List; import org.eclipse.jface.viewers.ISelectionProvider; import org.eclipse.jdt.internal.corext.refactoring.reorg.CopyRefactoring; import org.eclipse.jdt.internal.corext.refactoring.reorg.ReorgRefactoring; import org.eclipse.jdt.internal.ui.actions.StructuredSelectionProvider; public class CopyAction extends ReorgDestinationAction {
7,914
Bug 7914 Cannot copy a Java project in the packages view
There is no way to copy a Java project in the packages view. You can copy a project in the Navigator. This is a functional gap.
verified fixed
270c706
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:15:46Z
2002-01-19T22:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/CopyAction.java
public CopyAction(StructuredSelectionProvider provider) { super(ReorgMessages.getString("copyAction.label"), provider); setDescription(ReorgMessages.getString("copyAction.description")); } public CopyAction(String name, StructuredSelectionProvider provider) { super(name, provider); } ReorgRefactoring createRefactoring(List elements){ return new CopyRefactoring(elements); } String getActionName() { return ReorgMessages.getString("copyAction.name"); } String getDestinationDialogMessage() { return ReorgMessages.getString("copyAction.destination.label"); } }
7,914
Bug 7914 Cannot copy a Java project in the packages view
There is no way to copy a Java project in the packages view. You can copy a project in the Navigator. This is a functional gap.
verified fixed
270c706
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:15:46Z
2002-01-19T22:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/JdtDeleteResourceAction.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */
7,914
Bug 7914 Cannot copy a Java project in the packages view
There is no way to copy a Java project in the packages view. You can copy a project in the Navigator. This is a functional gap.
verified fixed
270c706
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:15:46Z
2002-01-19T22:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/JdtDeleteResourceAction.java
package org.eclipse.jdt.internal.ui.reorg; import java.text.MessageFormat; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import org.eclipse.core.resources.IProject; import org.eclipse.core.runtime.MultiStatus; import org.eclipse.jdt.core.IJavaProject; import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jdt.internal.corext.refactoring.Assert; import org.eclipse.jdt.internal.corext.refactoring.reorg.DeleteRefactoring; import org.eclipse.jdt.internal.corext.refactoring.reorg.ReorgUtils; import org.eclipse.jdt.internal.ui.JavaPlugin; import org.eclipse.jdt.internal.ui.JavaUIException; import org.eclipse.jdt.internal.ui.actions.StructuredSelectionProvider; import org.eclipse.jdt.internal.ui.util.ExceptionHandler; import org.eclipse.jface.dialogs.IDialogConstants; import org.eclipse.jface.dialogs.MessageDialog; import org.eclipse.jface.viewers.ISelectionProvider; import org.eclipse.jface.viewers.IStructuredSelection; import org.eclipse.ui.actions.DeleteResourceAction; import org.eclipse.swt.widgets.Shell; import org.eclipse.jdt.internal.corext.refactoring.reorg.*; /** * Action for deleting elements in a delete target. */ class JdtDeleteResourceAction extends ReorgAction { private boolean fDeleteProjectContent; public JdtDeleteResourceAction(ISelectionProvider provider) { super(ReorgMessages.getString("deleteAction.label"), provider);
7,914
Bug 7914 Cannot copy a Java project in the packages view
There is no way to copy a Java project in the packages view. You can copy a project in the Navigator. This is a functional gap.
verified fixed
270c706
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:15:46Z
2002-01-19T22:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/JdtDeleteResourceAction.java
setDescription(ReorgMessages.getString("deleteAction.description")); } /** * The user has invoked this action */ public void run() { if (hasOnlyProjects()){ deleteProjects(); return; } DeleteRefactoring refactoring= new DeleteRefactoring(getStructuredSelection().toList()); fDeleteProjectContent= false; if (!confirmDelete()) return; if (hasReadOnlyResources() && !isOkToDeleteReadOnly()) return; refactoring.setDeleteProjectContents(fDeleteProjectContent); try{ MultiStatus status= ReorgAction.perform(refactoring); if (!status.isOK()) { JavaUIException t= new JavaUIException(status); ExceptionHandler.handle(t, "Delete", "Unexpected exception. See log for details."); } } catch (JavaModelException e){ ExceptionHandler.handle(e, "Delete", "Unexpected exception. See log for details."); return; } }
7,914
Bug 7914 Cannot copy a Java project in the packages view
There is no way to copy a Java project in the packages view. You can copy a project in the Navigator. This is a functional gap.
verified fixed
270c706
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:15:46Z
2002-01-19T22:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/JdtDeleteResourceAction.java
private boolean hasOnlyProjects(){ return (! getStructuredSelection().isEmpty() && getStructuredSelection().size() == getProjects().size()); } private void deleteProjects(){ DeleteResourceAction action= new DeleteResourceAction(JavaPlugin.getActiveWorkbenchShell()); action.selectionChanged(getStructuredSelection()); action.run(); } private static boolean isOkToDeleteReadOnly(){ String msg= ReorgMessages.getString("deleteAction.confirmReadOnly"); String title= ReorgMessages.getString("deleteAction.checkDeletion"); return MessageDialog.openQuestion( JavaPlugin.getActiveWorkbenchShell(), title, msg); } private boolean hasReadOnlyResources(){ for (Iterator iter= getStructuredSelection().iterator(); iter.hasNext();){ if (ReorgUtils.shouldConfirmReadOnly(iter.next())) return true; } return false; } /* non java-doc * @see IRefactoringAction#canOperateOn(IStructuredSelection) */ public boolean canOperateOn(IStructuredSelection selection) {
7,914
Bug 7914 Cannot copy a Java project in the packages view
There is no way to copy a Java project in the packages view. You can copy a project in the Navigator. This is a functional gap.
verified fixed
270c706
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:15:46Z
2002-01-19T22:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/JdtDeleteResourceAction.java
return ReorgAction.canActivate(new DeleteRefactoring(selection.toList())); } private boolean confirmDelete() { Assert.isTrue(getProjects().isEmpty()); String title= ReorgMessages.getString("deleteAction.confirm.title"); String label= ReorgMessages.getString("deleteAction.confirm.message"); Shell parent= JavaPlugin.getActiveWorkbenchShell(); return MessageDialog.openConfirm(parent, title, label); } private List getProjects() { List result= new ArrayList(getStructuredSelection().size()); for(Iterator iter= getStructuredSelection().iterator(); iter.hasNext(); ) { Object element= iter.next(); if (element instanceof IJavaProject) { try { result.add(((IJavaProject)element).getUnderlyingResource()); } catch (JavaModelException e) { if (!e.isDoesNotExist()) { JavaPlugin.log(e); } } } } return result; } }
7,914
Bug 7914 Cannot copy a Java project in the packages view
There is no way to copy a Java project in the packages view. You can copy a project in the Navigator. This is a functional gap.
verified fixed
270c706
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:15:46Z
2002-01-19T22:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/MoveAction.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.reorg; import java.lang.reflect.InvocationTargetException; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Set; import org.eclipse.core.runtime.CoreException; import org.eclipse.swt.SWT; import org.eclipse.swt.events.SelectionAdapter; import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.widgets.Button; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Control; import org.eclipse.swt.widgets.Shell; import org.eclipse.jface.dialogs.IDialogConstants; import org.eclipse.jface.dialogs.MessageDialog;
7,914
Bug 7914 Cannot copy a Java project in the packages view
There is no way to copy a Java project in the packages view. You can copy a project in the Navigator. This is a functional gap.
verified fixed
270c706
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:15:46Z
2002-01-19T22:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/MoveAction.java
import org.eclipse.jface.dialogs.ProgressMonitorDialog; import org.eclipse.jface.viewers.ILabelProvider; import org.eclipse.jface.viewers.ISelectionProvider; import org.eclipse.jface.viewers.ITreeContentProvider; import org.eclipse.ui.texteditor.IDocumentProvider; import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jdt.ui.JavaElementContentProvider; import org.eclipse.jdt.internal.corext.refactoring.Assert; import org.eclipse.jdt.internal.corext.refactoring.base.IChange; import org.eclipse.jdt.internal.corext.refactoring.base.Refactoring; import org.eclipse.jdt.internal.corext.refactoring.reorg.MoveRefactoring; import org.eclipse.jdt.internal.corext.refactoring.reorg.ReorgRefactoring; import org.eclipse.jdt.internal.corext.refactoring.reorg.ReorgUtils; import org.eclipse.jdt.internal.ui.IJavaHelpContextIds; import org.eclipse.jdt.internal.ui.JavaPlugin; import org.eclipse.jdt.internal.ui.actions.StructuredSelectionProvider; import org.eclipse.jdt.internal.ui.dialogs.ElementTreeSelectionDialog; import org.eclipse.jdt.internal.ui.preferences.JavaPreferencesSettings; import org.eclipse.jdt.internal.ui.refactoring.CreateChangeOperation; import org.eclipse.jdt.internal.ui.refactoring.RefactoringWizard; import org.eclipse.jdt.internal.ui.refactoring.RefactoringWizardDialog; import org.eclipse.jdt.internal.ui.util.ExceptionHandler; public class MoveAction extends ReorgDestinationAction { private boolean fShowPreview= false; public MoveAction(String name, StructuredSelectionProvider provider) { super(name, provider); setDescription(ReorgMessages.getString("moveAction.description")); }
7,914
Bug 7914 Cannot copy a Java project in the packages view
There is no way to copy a Java project in the packages view. You can copy a project in the Navigator. This is a functional gap.
verified fixed
270c706
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:15:46Z
2002-01-19T22:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/MoveAction.java
public MoveAction(StructuredSelectionProvider provider) { super(ReorgMessages.getString("moveAction.label"), provider); } /* non java-doc * see @ReorgDestinationAction#isOkToProceed */ String getActionName() { return ReorgMessages.getString("moveAction.name"); } /* non java-doc * see @ReorgDestinationAction#getDestinationDialogMessage */ String getDestinationDialogMessage() { return ReorgMessages.getString("moveAction.destination.label"); } /* non java-doc * see @ReorgDestinationAction#createRefactoring */ ReorgRefactoring createRefactoring(List elements){ return new MoveRefactoring(elements, JavaPreferencesSettings.getCodeGenerationSettings()); } ElementTreeSelectionDialog createDestinationSelectionDialog(Shell parent, ILabelProvider labelProvider, JavaElementContentProvider cp, ReorgRefactoring refactoring){ return new MoveDestinationDialog(parent, labelProvider, cp, (MoveRefactoring)refactoring); } /* non java-doc
7,914
Bug 7914 Cannot copy a Java project in the packages view
There is no way to copy a Java project in the packages view. You can copy a project in the Navigator. This is a functional gap.
verified fixed
270c706
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:15:46Z
2002-01-19T22:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/MoveAction.java
* see @ReorgDestinationAction#isOkToProceed */ protected boolean isOkToProceed(ReorgRefactoring refactoring) throws JavaModelException{ return (isOkToMoveReadOnly(refactoring)); } /* * @see ReorgDestinationAction#getExcluded(ReorgRefactoring) */ Set getExcluded(ReorgRefactoring refactoring) throws JavaModelException{ Set elements= refactoring.getElementsThatExistInTarget(); Set result= new HashSet(); for (Iterator iter= elements.iterator(); iter.hasNext(); ){ Object o= iter.next(); int action= askIfOverwrite(ReorgUtils.getName(o)); if (action == IDialogConstants.CANCEL_ID) return null; if (action == IDialogConstants.YES_TO_ALL_ID) return new HashSet(0); if (action == IDialogConstants.NO_ID) result.add(o); } return result; } private static int askIfOverwrite(String elementName){ Shell shell= JavaPlugin.getActiveWorkbenchShell().getShell(); String title= "Move"; String question= "Element '" + elementName + "' already exists. Would you like to overwrite?";
7,914
Bug 7914 Cannot copy a Java project in the packages view
There is no way to copy a Java project in the packages view. You can copy a project in the Navigator. This is a functional gap.
verified fixed
270c706
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:15:46Z
2002-01-19T22:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/MoveAction.java
String[] labels= new String[] {IDialogConstants.YES_LABEL, IDialogConstants.YES_TO_ALL_LABEL, IDialogConstants.NO_LABEL, IDialogConstants.CANCEL_LABEL }; final MessageDialog dialog = new MessageDialog(shell, title, null, question, MessageDialog.QUESTION, labels, 0); shell.getDisplay().syncExec(new Runnable() { public void run() { dialog.open(); } }); int result = dialog.getReturnCode(); if (result == 0) return IDialogConstants.YES_ID; if (result == 1) return IDialogConstants.YES_TO_ALL_ID; if (result == 2) return IDialogConstants.NO_ID; return IDialogConstants.CANCEL_ID; } protected void setShowPreview(boolean showPreview) { fShowPreview = showPreview; } private static boolean isOkToMoveReadOnly(ReorgRefactoring refactoring){ if (! hasReadOnlyElements(refactoring)) return true; return MessageDialog.openQuestion( JavaPlugin.getActiveWorkbenchShell(), ReorgMessages.getString("moveAction.checkMove"),
7,914
Bug 7914 Cannot copy a Java project in the packages view
There is no way to copy a Java project in the packages view. You can copy a project in the Navigator. This is a functional gap.
verified fixed
270c706
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:15:46Z
2002-01-19T22:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/MoveAction.java
ReorgMessages.getString("moveAction.error.readOnly")); } private static boolean hasReadOnlyElements(ReorgRefactoring refactoring){ for (Iterator iter= refactoring.getElementsToReorg().iterator(); iter.hasNext(); ){ if (ReorgUtils.shouldConfirmReadOnly(iter.next())) return true; } return false; } /* non java-doc * @see ReorgDestinationAction#doReorg(ReorgRefactoring) */ void doReorg(ReorgRefactoring refactoring) throws JavaModelException{ if (!fShowPreview){ super.doReorg(refactoring); return; } RefactoringWizard wizard= new RefactoringWizard(refactoring, "Move", IJavaHelpContextIds.MOVE_CU_ERROR_WIZARD_PAGE); new RefactoringWizardDialog(JavaPlugin.getActiveWorkbenchShell(), wizard).open(); } private class MoveDestinationDialog extends ElementTreeSelectionDialog { private static final int PREVIEW_ID= IDialogConstants.CLIENT_ID + 1; private MoveRefactoring fRefactoring; private Button fCheckbox;
7,914
Bug 7914 Cannot copy a Java project in the packages view
There is no way to copy a Java project in the packages view. You can copy a project in the Navigator. This is a functional gap.
verified fixed
270c706
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:15:46Z
2002-01-19T22:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/MoveAction.java
private Button fPreview; MoveDestinationDialog(Shell parent, ILabelProvider labelProvider, ITreeContentProvider contentProvider, MoveRefactoring refactoring){ super(parent, labelProvider, contentProvider); fRefactoring= refactoring; fShowPreview= false; } protected Control createDialogArea(Composite parent) { Composite result= (Composite)super.createDialogArea(parent); fCheckbox= new Button(result, SWT.CHECK); fCheckbox.setText("Update references to the moved element(s)."); fCheckbox.setEnabled(canUpdateReferences()); fCheckbox.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { updatePreviewButton(); fRefactoring.setUpdateReferences(fCheckbox.getEnabled() && fCheckbox.getSelection()); } }); fCheckbox.setSelection(canUpdateReferences()); return result; } protected void createButtonsForButtonBar(Composite parent) { super.createButtonsForButtonBar(parent); fPreview= createButton(parent, PREVIEW_ID, "Preview", false); } protected void updateOKStatus() { super.updateOKStatus();
7,914
Bug 7914 Cannot copy a Java project in the packages view
There is no way to copy a Java project in the packages view. You can copy a project in the Navigator. This is a functional gap.
verified fixed
270c706
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:15:46Z
2002-01-19T22:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/MoveAction.java
try{ fRefactoring.setDestination(getFirstResult()); fCheckbox.setEnabled(getOkButton().getEnabled() && canUpdateReferences()); updatePreviewButton(); } catch (JavaModelException e){ ExceptionHandler.handle(e, "Move", "Unexpected exception occurred. See log for details."); } } protected void buttonPressed(int buttonId) { fShowPreview= (buttonId == PREVIEW_ID); super.buttonPressed(buttonId); if (buttonId == PREVIEW_ID) close(); } private void updatePreviewButton(){ fPreview.setEnabled(fCheckbox.getEnabled() && fCheckbox.getSelection()); } private boolean canUpdateReferences(){ try{ return fRefactoring.canUpdateReferences(); } catch (JavaModelException e){ return false; } } } }
7,914
Bug 7914 Cannot copy a Java project in the packages view
There is no way to copy a Java project in the packages view. You can copy a project in the Navigator. This is a functional gap.
verified fixed
270c706
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:15:46Z
2002-01-19T22:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/ReorgAction.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.reorg; import java.lang.reflect.InvocationTargetException; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.MultiStatus; import org.eclipse.core.runtime.NullProgressMonitor; import org.eclipse.jface.dialogs.ProgressMonitorDialog; import org.eclipse.jface.viewers.ISelectionProvider; import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jdt.internal.corext.refactoring.base.ChangeContext; import org.eclipse.jdt.internal.corext.refactoring.base.Refactoring; import org.eclipse.jdt.internal.ui.JavaPlugin; import org.eclipse.jdt.internal.ui.actions.StructuredSelectionProvider; import org.eclipse.jdt.internal.ui.refactoring.CreateChangeOperation; import org.eclipse.jdt.internal.ui.refactoring.PerformChangeOperation; import org.eclipse.jdt.internal.ui.refactoring.actions.RefactoringAction; import org.eclipse.jdt.internal.ui.util.ExceptionHandler; /** * Base class for actions related to reorganizing resources */ public abstract class ReorgAction extends RefactoringAction {
7,914
Bug 7914 Cannot copy a Java project in the packages view
There is no way to copy a Java project in the packages view. You can copy a project in the Navigator. This is a functional gap.
verified fixed
270c706
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:15:46Z
2002-01-19T22:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/ReorgAction.java
public ReorgAction(String name, StructuredSelectionProvider p) { super(name, p); } public ReorgAction(String name, ISelectionProvider p) { super(name, p);
7,914
Bug 7914 Cannot copy a Java project in the packages view
There is no way to copy a Java project in the packages view. You can copy a project in the Navigator. This is a functional gap.
verified fixed
270c706
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:15:46Z
2002-01-19T22:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/ReorgAction.java
} static boolean canActivate(Refactoring ref){ try { return ref.checkActivation(new NullProgressMonitor()).isOK(); } catch (JavaModelException e) { ExceptionHandler.handle(e, "Exception", "Unexpected exception. See log for details."); return false; } } static MultiStatus perform(Refactoring ref) throws JavaModelException{ PerformChangeOperation op= new PerformChangeOperation(new CreateChangeOperation(ref, CreateChangeOperation.CHECK_NONE)); ReorgExceptionHandler handler= new ReorgExceptionHandler(); op.setChangeContext(new ChangeContext(handler)); try { new ProgressMonitorDialog(JavaPlugin.getActiveWorkbenchShell()).run(false, true, op); } catch (InvocationTargetException e) { Throwable target= e.getTargetException(); if (target instanceof CoreException) handler.getStatus().merge(((CoreException) target).getStatus()); JavaPlugin.log(e); } catch (InterruptedException e) { } return handler.getStatus(); } }
7,914
Bug 7914 Cannot copy a Java project in the packages view
There is no way to copy a Java project in the packages view. You can copy a project in the Navigator. This is a functional gap.
verified fixed
270c706
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:15:46Z
2002-01-19T22:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/ReorgDestinationAction.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.reorg; import java.lang.reflect.InvocationTargetException; import java.util.ArrayList; import java.util.Arrays; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Set; import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IProject; import org.eclipse.core.resources.IResource; import org.eclipse.core.resources.ResourcesPlugin; import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.MultiStatus; import org.eclipse.core.runtime.Path; import org.eclipse.core.runtime.SubProgressMonitor; import org.eclipse.swt.widgets.Shell; import org.eclipse.jface.dialogs.MessageDialog; import org.eclipse.jface.dialogs.ProgressMonitorDialog; import org.eclipse.jface.operation.IRunnableWithProgress;
7,914
Bug 7914 Cannot copy a Java project in the packages view
There is no way to copy a Java project in the packages view. You can copy a project in the Navigator. This is a functional gap.
verified fixed
270c706
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:15:46Z
2002-01-19T22:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/ReorgDestinationAction.java
import org.eclipse.jface.viewers.ILabelProvider; import org.eclipse.jface.viewers.ISelectionProvider; import org.eclipse.jface.viewers.IStructuredSelection; import org.eclipse.jface.viewers.Viewer; import org.eclipse.ui.IEditorInput; import org.eclipse.ui.IEditorPart; import org.eclipse.ui.IFileEditorInput; import org.eclipse.ui.dialogs.ListSelectionDialog; import org.eclipse.jdt.core.IJavaElement; import org.eclipse.jdt.core.IPackageFragment; import org.eclipse.jdt.core.IPackageFragmentRoot; import org.eclipse.jdt.core.JavaCore; import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jdt.ui.JavaElementContentProvider; import org.eclipse.jdt.ui.JavaElementLabelProvider; import org.eclipse.jdt.internal.corext.refactoring.Assert; import org.eclipse.jdt.internal.corext.refactoring.reorg.ReorgRefactoring; import org.eclipse.jdt.internal.corext.refactoring.reorg.ReorgUtils; import org.eclipse.jdt.internal.ui.JavaPlugin; import org.eclipse.jdt.internal.ui.JavaUIException; import org.eclipse.jdt.internal.ui.actions.StructuredSelectionProvider; import org.eclipse.jdt.internal.ui.dialogs.ElementTreeSelectionDialog; import org.eclipse.jdt.internal.ui.dialogs.ISelectionValidator; import org.eclipse.jdt.internal.ui.dialogs.StatusInfo; import org.eclipse.jdt.internal.ui.javaeditor.EditorUtility; import org.eclipse.jdt.internal.ui.packageview.PackageFilter; import org.eclipse.jdt.internal.ui.util.ExceptionHandler; import org.eclipse.jdt.internal.ui.viewsupport.JavaElementSorter; import org.eclipse.jdt.internal.ui.viewsupport.ListContentProvider; abstract class ReorgDestinationAction extends ReorgAction {
7,914
Bug 7914 Cannot copy a Java project in the packages view
There is no way to copy a Java project in the packages view. You can copy a project in the Navigator. This is a functional gap.
verified fixed
270c706
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:15:46Z
2002-01-19T22:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/ReorgDestinationAction.java
public ReorgDestinationAction(String name, ISelectionProvider provider) { super(name, provider); } public ReorgDestinationAction(String name, StructuredSelectionProvider provider) { super(name, provider); } public void run() { List elements= getStructuredSelection().toList(); if (!ensureSaved(elements, getActionName())) return; ReorgRefactoring refactoring= createRefactoring(elements); setUnsavedFileList(refactoring, elements); Object destination= selectDestination(refactoring); if (destination == null) return; try{ String duplicate= getDuplicatedElementName(elements); if (duplicate != null){ String message= "Two or more elements named " + duplicate + " are selected."; MessageDialog.openInformation(JavaPlugin.getActiveWorkbenchShell().getShell(), "Duplicate Element Name", message); return; }
7,914
Bug 7914 Cannot copy a Java project in the packages view
There is no way to copy a Java project in the packages view. You can copy a project in the Navigator. This is a functional gap.
verified fixed
270c706
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:15:46Z
2002-01-19T22:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/ReorgDestinationAction.java
refactoring.setDestination(destination); Set excluded= getExcluded(refactoring); if (excluded == null) return; if (excluded.size() == elements.size()) return; refactoring.setExcludedElements(excluded); if (! isOkToProceed(refactoring)) return; doReorg(refactoring); } catch (JavaModelException e){ ExceptionHandler.handle(e, "Exception", "Unexpected exception occurred. See log for details."); } } /** * returns null if no 2 elements have the same name */ private static String getDuplicatedElementName(List elements){ String[] names= getElementNames(elements); if (names.length == 0) return null; Arrays.sort(names); String last= names[0]; for (int i= 1; i < names.length; i++){ if (last.equals(names[i])) return last;
7,914
Bug 7914 Cannot copy a Java project in the packages view
There is no way to copy a Java project in the packages view. You can copy a project in the Navigator. This is a functional gap.
verified fixed
270c706
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:15:46Z
2002-01-19T22:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/ReorgDestinationAction.java
last= names[i]; } return null; } abstract String getActionName(); abstract String getDestinationDialogMessage(); abstract ReorgRefactoring createRefactoring(List elements); Set getExcluded(ReorgRefactoring refactoring) throws JavaModelException{ return new HashSet(0); } protected boolean isOkToProceed(ReorgRefactoring refactoring) throws JavaModelException{ return true; } void doReorg(ReorgRefactoring refactoring) throws JavaModelException{ MultiStatus status= perform(refactoring); if (status.isOK()) return; ExceptionHandler.handle(new JavaUIException(status), ReorgMessages.getString("copyAction.exception.title"), ReorgMessages.getString("copyAction.exception.label")); } private static boolean ensureSaved(List elements, String actionName) {
7,914
Bug 7914 Cannot copy a Java project in the packages view
There is no way to copy a Java project in the packages view. You can copy a project in the Navigator. This is a functional gap.
verified fixed
270c706
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:15:46Z
2002-01-19T22:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/ReorgDestinationAction.java
List unsavedEditors= new ArrayList(); List unsavedElements= new ArrayList(); collectUnsavedEditors(elements, unsavedEditors, unsavedElements); if (unsavedEditors.isEmpty()) return true; ListSelectionDialog dialog = createUnsavedEditorDialog(unsavedElements); if (dialog.open() != dialog.OK) return false; IRunnableWithProgress r= createSaveEditorOperation(dialog.getResult(), elements, unsavedEditors); try { new ProgressMonitorDialog(JavaPlugin.getActiveWorkbenchShell()).run(false, false, r); } catch (InvocationTargetException e) { ExceptionHandler.handle(e, actionName, ReorgMessages.getString("ReorgAction.exception.saving")); return false; } catch (InterruptedException e) { } return true; } private static void setUnsavedFileList(ReorgRefactoring refactoring, List elements){ List unsavedEditors= new ArrayList(0); collectUnsavedEditors(elements, unsavedEditors, new ArrayList(0)); refactoring.setUnsavedFiles(getFiles(unsavedEditors)); } private static IFile[] getFiles(List editorParts){ List result= new ArrayList(editorParts.size());
7,914
Bug 7914 Cannot copy a Java project in the packages view
There is no way to copy a Java project in the packages view. You can copy a project in the Navigator. This is a functional gap.
verified fixed
270c706
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:15:46Z
2002-01-19T22:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/ReorgDestinationAction.java
for (Iterator iter= editorParts.iterator(); iter.hasNext(); ){ IEditorPart each= (IEditorPart)iter.next(); IEditorInput input= each.getEditorInput(); if (input instanceof IFileEditorInput) result.add(((IFileEditorInput)input).getFile()); } return (IFile[]) result.toArray(new IFile[result.size()]); } private static IRunnableWithProgress createSaveEditorOperation(final Object[] elementsToSave, final List elements, final List unsavedEditors) { return new IRunnableWithProgress() { public void run(IProgressMonitor pm) { pm.beginTask(ReorgMessages.getString("ReorgAction.task.saving"), elementsToSave.length); for (int i= 0; i < elementsToSave.length; i++) { IEditorPart editor= (IEditorPart)unsavedEditors.get(elements.indexOf(elementsToSave[i])); editor.doSave(new SubProgressMonitor(pm, 1)); } pm.done(); } }; } private static ListSelectionDialog createUnsavedEditorDialog(List unsavedElements) { int labelFlags= JavaElementLabelProvider.SHOW_DEFAULT | JavaElementLabelProvider.SHOW_POST_QUALIFIED; Shell parent= JavaPlugin.getActiveWorkbenchShell(); String msg= ReorgMessages.getString("ReorgAction.checkSaveTargets"); ListSelectionDialog dialog= new ListSelectionDialog(parent, unsavedElements, new ListContentProvider(), new JavaElementLabelProvider(labelFlags), msg); dialog.setInitialSelections(unsavedElements.toArray()); return dialog; }
7,914
Bug 7914 Cannot copy a Java project in the packages view
There is no way to copy a Java project in the packages view. You can copy a project in the Navigator. This is a functional gap.
verified fixed
270c706
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:15:46Z
2002-01-19T22:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/ReorgDestinationAction.java
private static void collectUnsavedEditors(List elements, List unsavedEditors, List unsavedElements) { IEditorPart[] editors= JavaPlugin.getDirtyEditors(); for (int i= 0; i < editors.length; i++) { for (Iterator iter= elements.iterator(); iter.hasNext(); ){ Object element= iter.next(); if (EditorUtility.isEditorInput(element, editors[i])) { unsavedEditors.add(editors[i]); unsavedElements.add(element); } } } } private static String[] getElementNames(List elements){ String[] result= new String[elements.size()]; int i= 0; for (Iterator iter= elements.iterator(); iter.hasNext(); ){ result[i]= ReorgUtils.getName(iter.next()); i++; } return result; } protected Object selectDestination(ReorgRefactoring refactoring) { JavaElementContentProvider cp= new JavaElementContentProvider() { public boolean hasChildren(Object element) { return !(element instanceof IPackageFragment) && super.hasChildren(element); }
7,914
Bug 7914 Cannot copy a Java project in the packages view
There is no way to copy a Java project in the packages view. You can copy a project in the Navigator. This is a functional gap.
verified fixed
270c706
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:15:46Z
2002-01-19T22:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/ReorgDestinationAction.java
}; ElementTreeSelectionDialog dialog= createDestinationSelectionDialog(JavaPlugin.getActiveWorkbenchShell(), new DestinationRenderer(JavaElementLabelProvider.SHOW_SMALL_ICONS ), cp, refactoring); dialog.setTitle(getActionName()); dialog.setValidator(new ReorgSelectionValidator(refactoring)); dialog.addFilter(new ContainerFilter(refactoring)); dialog.setSorter(new JavaElementSorter()); dialog.setMessage(getDestinationDialogMessage()); dialog.setSize(60, 18); dialog.setInput(JavaCore.create(ResourcesPlugin.getWorkspace().getRoot())); dialog.setInitialSelection(computeCommonParent(refactoring.getElementsToReorg())); if (dialog.open() != dialog.CANCEL) return dialog.getFirstResult(); return null; } ElementTreeSelectionDialog createDestinationSelectionDialog(Shell parent, ILabelProvider labelProvider, JavaElementContentProvider cp, ReorgRefactoring refactoring){ return new ElementTreeSelectionDialog(parent, labelProvider, cp); } private static Object computeCommonParent(List elements){ if (elements.isEmpty()) return null; Object parent= elements.get(0); for (Iterator iter= elements.iterator(); iter.hasNext(); ){ parent= computeCommonParent(parent, iter.next()); }
7,914
Bug 7914 Cannot copy a Java project in the packages view
There is no way to copy a Java project in the packages view. You can copy a project in the Navigator. This is a functional gap.
verified fixed
270c706
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:15:46Z
2002-01-19T22:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/ReorgDestinationAction.java
IResource parentRes= getResource(parent); IJavaElement parentElement= JavaCore.create(parentRes); if (parentElement != null) return parentElement; return getResource(parent); } private static Object computeCommonParent(Object e1, Object e2){ IResource r1= getResource(e1); IResource r2= getResource(e2); if (r1 == null && r2 == null) return null; if (r1 == null) return r2.getParent(); if (r2 == null) return r1.getParent(); if (r1.equals(r2)) return r1.getParent(); if (r1.getFullPath().isPrefixOf(r2.getFullPath())) return r1; if (r2.getFullPath().isPrefixOf(r1.getFullPath())) return r2; IPath p1= r1.getParent().getFullPath(); IPath p2= r2.getParent().getFullPath(); IPath commonPath= new Path(""); int segCount= Math.min(p1.segmentCount(), p2.segmentCount()); for (int i= 0; i < segCount; i++){
7,914
Bug 7914 Cannot copy a Java project in the packages view
There is no way to copy a Java project in the packages view. You can copy a project in the Navigator. This is a functional gap.
verified fixed
270c706
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:15:46Z
2002-01-19T22:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/ReorgDestinationAction.java
if (p1.segment(i).equals(p2.segment(i))) commonPath= commonPath.append(p1.segment(i)); else break; } return ResourcesPlugin.getWorkspace().getRoot().findMember(commonPath); } private static IResource getResource(Object o) { try{ if (o instanceof IResource) return (IResource)o; else if (o instanceof IJavaElement) return ((IJavaElement)o).getCorrespondingResource(); else return null; } catch (JavaModelException e){ JavaPlugin.log(e); return null; } } /* non java-doc * @see IRefactoringAction#canOperateOn(IStructuredSelection) */ public boolean canOperateOn(IStructuredSelection selection) { return canActivate(createRefactoring(selection.toList())); } private static class ContainerFilter extends PackageFilter {
7,914
Bug 7914 Cannot copy a Java project in the packages view
There is no way to copy a Java project in the packages view. You can copy a project in the Navigator. This is a functional gap.
verified fixed
270c706
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:15:46Z
2002-01-19T22:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/ReorgDestinationAction.java
private ReorgRefactoring fRefactoring; ContainerFilter(ReorgRefactoring refactoring) { Assert.isNotNull(refactoring); fRefactoring= refactoring; } public boolean select(Viewer viewer, Object parent, Object o) { if (fRefactoring.getElementsToReorg().contains(o)) return false; return fRefactoring.canBeAncestor(o); } } private static class DestinationRenderer extends JavaElementLabelProvider {
7,914
Bug 7914 Cannot copy a Java project in the packages view
There is no way to copy a Java project in the packages view. You can copy a project in the Navigator. This is a functional gap.
verified fixed
270c706
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:15:46Z
2002-01-19T22:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/ReorgDestinationAction.java
public DestinationRenderer(int flags) { super(flags); } public String getText(Object element) { try { if (element instanceof IPackageFragmentRoot) { IPackageFragmentRoot root= (IPackageFragmentRoot)element; if (root.getUnderlyingResource() instanceof IProject) return ReorgMessages.getString("DestinationRenderer.packages"); } } catch (JavaModelException e) { ExceptionHandler.handle(e, "Exception", "Unexpected exception occurred. See log for details."); } return super.getText(element); } } private static class ReorgSelectionValidator implements ISelectionValidator {
7,914
Bug 7914 Cannot copy a Java project in the packages view
There is no way to copy a Java project in the packages view. You can copy a project in the Navigator. This is a functional gap.
verified fixed
270c706
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:15:46Z
2002-01-19T22:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/ReorgDestinationAction.java
private ReorgRefactoring fRefactoring; public ReorgSelectionValidator(ReorgRefactoring refactoring) { Assert.isNotNull(refactoring); fRefactoring= refactoring; } public IStatus validate(Object[] selection) { if (selection.length != 1) return new StatusInfo(IStatus.ERROR, ""); try{ if (fRefactoring.isValidDestination(selection[0])) return new StatusInfo(); return new StatusInfo(IStatus.ERROR, ""); } catch (JavaModelException e){ ExceptionHandler.handle(e, "Exception", "Unexpected exception occurred. See log for details."); return new StatusInfo(IStatus.ERROR, ""); } } } }
6,146
Bug 6146 Java Editor Preference Page is missing most of the mnemonics
summary says it all.
resolved fixed
0322ef0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:20:26Z
2001-11-21T08:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.preferences; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import org.eclipse.swt.SWT; import org.eclipse.swt.events.ModifyEvent; import org.eclipse.swt.events.ModifyListener; import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.events.SelectionListener; import org.eclipse.swt.graphics.Color; import org.eclipse.swt.graphics.RGB; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Button; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Control; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Label; import org.eclipse.swt.widgets.List; import org.eclipse.swt.widgets.TabFolder; import org.eclipse.swt.widgets.TabItem; import org.eclipse.swt.widgets.Text;
6,146
Bug 6146 Java Editor Preference Page is missing most of the mnemonics
summary says it all.
resolved fixed
0322ef0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:20:26Z
2001-11-21T08:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
import org.eclipse.jface.preference.IPreferenceStore; import org.eclipse.jface.preference.PreferenceConverter; import org.eclipse.jface.preference.PreferencePage; import org.eclipse.jface.resource.JFaceResources; import org.eclipse.jface.text.Document; import org.eclipse.jface.text.IDocument; import org.eclipse.jface.text.IDocumentPartitioner; import org.eclipse.jface.text.source.SourceViewer; import org.eclipse.jface.util.IPropertyChangeListener; import org.eclipse.jface.util.PropertyChangeEvent; import org.eclipse.ui.IWorkbench; import org.eclipse.ui.IWorkbenchPreferencePage; import org.eclipse.ui.help.DialogPageContextComputer; import org.eclipse.ui.help.WorkbenchHelp; import org.eclipse.ui.texteditor.AbstractTextEditor; import org.eclipse.ui.texteditor.WorkbenchChainedTextFontFieldEditor; import org.eclipse.jdt.ui.text.IJavaColorConstants; import org.eclipse.jdt.ui.text.JavaSourceViewerConfiguration; import org.eclipse.jdt.ui.text.JavaTextTools; import org.eclipse.jdt.internal.ui.IJavaHelpContextIds; import org.eclipse.jdt.internal.ui.JavaPlugin; import org.eclipse.jdt.internal.ui.JavaPluginImages; import org.eclipse.jdt.internal.ui.JavaUIMessages; import org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor; import org.eclipse.jdt.internal.ui.text.ContentAssistPreference; import org.eclipse.jdt.internal.ui.util.TabFolderLayout; /* * The page for setting the editor options. */ public class JavaEditorPreferencePage extends PreferencePage implements IWorkbenchPreferencePage {
6,146
Bug 6146 Java Editor Preference Page is missing most of the mnemonics
summary says it all.
resolved fixed
0322ef0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:20:26Z
2001-11-21T08:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
public final OverlayPreferenceStore.OverlayKey[] fKeys= new OverlayPreferenceStore.OverlayKey[] { new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, AbstractTextEditor.PREFERENCE_COLOR_FOREGROUND), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.INT, JavaSourceViewerConfiguration.PREFERENCE_TAB_WIDTH), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, IJavaColorConstants.JAVA_MULTI_LINE_COMMENT), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, IJavaColorConstants.JAVA_MULTI_LINE_COMMENT + "_bold"), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, IJavaColorConstants.JAVA_SINGLE_LINE_COMMENT),
6,146
Bug 6146 Java Editor Preference Page is missing most of the mnemonics
summary says it all.
resolved fixed
0322ef0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:20:26Z
2001-11-21T08:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, IJavaColorConstants.JAVA_SINGLE_LINE_COMMENT + "_bold"), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, IJavaColorConstants.JAVA_KEYWORD), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, IJavaColorConstants.JAVA_KEYWORD + "_bold"), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, IJavaColorConstants.JAVA_STRING), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, IJavaColorConstants.JAVA_STRING + "_bold"), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, IJavaColorConstants.JAVA_DEFAULT), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, IJavaColorConstants.JAVA_DEFAULT + "_bold"), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, IJavaColorConstants.JAVADOC_KEYWORD), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, IJavaColorConstants.JAVADOC_KEYWORD + "_bold"), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, IJavaColorConstants.JAVADOC_TAG), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, IJavaColorConstants.JAVADOC_TAG + "_bold"), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, IJavaColorConstants.JAVADOC_LINK), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, IJavaColorConstants.JAVADOC_LINK + "_bold"), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, IJavaColorConstants.JAVADOC_DEFAULT), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, IJavaColorConstants.JAVADOC_DEFAULT + "_bold"), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, CompilationUnitEditor.MATCHING_BRACKETS_COLOR), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, CompilationUnitEditor.MATCHING_BRACKETS), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, ContentAssistPreference.AUTOACTIVATION), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.INT, ContentAssistPreference.AUTOACTIVATION_DELAY), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, ContentAssistPreference.AUTOINSERT), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, ContentAssistPreference.PROPOSALS_BACKGROUND),
6,146
Bug 6146 Java Editor Preference Page is missing most of the mnemonics
summary says it all.
resolved fixed
0322ef0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:20:26Z
2001-11-21T08:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, ContentAssistPreference.PROPOSALS_FOREGROUND), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, ContentAssistPreference.PARAMETERS_BACKGROUND), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, ContentAssistPreference.PARAMETERS_FOREGROUND), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, ContentAssistPreference.AUTOACTIVATION_TRIGGERS_JAVA), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, ContentAssistPreference.AUTOACTIVATION_TRIGGERS_JAVADOC), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, ContentAssistPreference.SHOW_VISIBLE_PROPOSALS), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, ContentAssistPreference.ORDER_PROPOSALS), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, ContentAssistPreference.CASE_SENSITIVITY), new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, ContentAssistPreference.ADD_IMPORT) }; private final String[][] fListModel= new String[][] { { "Multi-line comment", IJavaColorConstants.JAVA_MULTI_LINE_COMMENT }, { "Single-line comment", IJavaColorConstants.JAVA_SINGLE_LINE_COMMENT }, { "Keywords", IJavaColorConstants.JAVA_KEYWORD }, { "Strings", IJavaColorConstants.JAVA_STRING }, { "Others", IJavaColorConstants.JAVA_DEFAULT }, { "JavaDoc keywords", IJavaColorConstants.JAVADOC_KEYWORD }, { "JavaDoc HTML tags", IJavaColorConstants.JAVADOC_TAG }, { "JavaDoc links", IJavaColorConstants.JAVADOC_LINK }, {"JavaDoc others", IJavaColorConstants.JAVADOC_DEFAULT } }; private OverlayPreferenceStore fOverlayStore; private JavaTextTools fJavaTextTools; private Map fColorButtons= new HashMap(); private SelectionListener fColorButtonListener= new SelectionListener() { public void widgetDefaultSelected(SelectionEvent e) {
6,146
Bug 6146 Java Editor Preference Page is missing most of the mnemonics
summary says it all.
resolved fixed
0322ef0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:20:26Z
2001-11-21T08:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
} public void widgetSelected(SelectionEvent e) { ColorEditor editor= (ColorEditor) e.widget.getData(); PreferenceConverter.setValue(fOverlayStore, (String) fColorButtons.get(editor), editor.getColorValue()); } }; private Map fCheckBoxes= new HashMap(); private SelectionListener fCheckBoxListener= new SelectionListener() { public void widgetDefaultSelected(SelectionEvent e) { } public void widgetSelected(SelectionEvent e) { Button button= (Button) e.widget; fOverlayStore.setValue((String) fCheckBoxes.get(button), button.getSelection()); } }; private Map fTextFields= new HashMap(); private ModifyListener fTextFieldListener= new ModifyListener() { public void modifyText(ModifyEvent e) { Text text= (Text) e.widget; fOverlayStore.setValue((String) fTextFields.get(text), text.getText()); } }; private WorkbenchChainedTextFontFieldEditor fFontEditor; private List fList; private ColorEditor fColorEditor; private Button fBoldCheckBox; private SourceViewer fPreviewViewer;
6,146
Bug 6146 Java Editor Preference Page is missing most of the mnemonics
summary says it all.
resolved fixed
0322ef0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:20:26Z
2001-11-21T08:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
public JavaEditorPreferencePage() { setDescription(JavaUIMessages.getString("JavaEditorPreferencePage.description")); setPreferenceStore(JavaPlugin.getDefault().getPreferenceStore()); fOverlayStore= new OverlayPreferenceStore(getPreferenceStore(), fKeys); } public static void initDefaults(IPreferenceStore store) { Color color; Display display= Display.getDefault(); store.setDefault(CompilationUnitEditor.MATCHING_BRACKETS, true); color= display.getSystemColor(SWT.COLOR_GRAY); PreferenceConverter.setDefault(store, CompilationUnitEditor.MATCHING_BRACKETS_COLOR, color.getRGB()); WorkbenchChainedTextFontFieldEditor.startPropagate(store, JFaceResources.TEXT_FONT); color= display.getSystemColor(SWT.COLOR_LIST_FOREGROUND); PreferenceConverter.setDefault(store, AbstractTextEditor.PREFERENCE_COLOR_FOREGROUND, color.getRGB()); color= display.getSystemColor(SWT.COLOR_LIST_BACKGROUND); PreferenceConverter.setDefault(store, AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND, color.getRGB()); store.setDefault(JavaSourceViewerConfiguration.PREFERENCE_TAB_WIDTH, 4); PreferenceConverter.setDefault(store, IJavaColorConstants.JAVA_MULTI_LINE_COMMENT, new RGB(63, 127, 95)); store.setDefault(IJavaColorConstants.JAVA_MULTI_LINE_COMMENT + "_bold", false); PreferenceConverter.setDefault(store, IJavaColorConstants.JAVA_SINGLE_LINE_COMMENT, new RGB(63, 127, 95)); store.setDefault(IJavaColorConstants.JAVA_SINGLE_LINE_COMMENT + "_bold", false);
6,146
Bug 6146 Java Editor Preference Page is missing most of the mnemonics
summary says it all.
resolved fixed
0322ef0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:20:26Z
2001-11-21T08:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
PreferenceConverter.setDefault(store, IJavaColorConstants.JAVA_KEYWORD, new RGB(127, 0, 85)); store.setDefault(IJavaColorConstants.JAVA_KEYWORD + "_bold", true); PreferenceConverter.setDefault(store, IJavaColorConstants.JAVA_STRING, new RGB(42, 0, 255)); store.setDefault(IJavaColorConstants.JAVA_STRING + "_bold", false); PreferenceConverter.setDefault(store, IJavaColorConstants.JAVA_DEFAULT, new RGB(0, 0, 0)); store.setDefault(IJavaColorConstants.JAVA_DEFAULT + "_bold", false); PreferenceConverter.setDefault(store, IJavaColorConstants.JAVADOC_KEYWORD, new RGB(127, 159, 191)); store.setDefault(IJavaColorConstants.JAVADOC_KEYWORD + "_bold", true); PreferenceConverter.setDefault(store, IJavaColorConstants.JAVADOC_TAG, new RGB(127, 127, 159)); store.setDefault(IJavaColorConstants.JAVADOC_TAG + "_bold", false); PreferenceConverter.setDefault(store, IJavaColorConstants.JAVADOC_LINK, new RGB(63, 63, 191)); store.setDefault(IJavaColorConstants.JAVADOC_LINK + "_bold", false); PreferenceConverter.setDefault(store, IJavaColorConstants.JAVADOC_DEFAULT, new RGB(63, 95, 191)); store.setDefault(IJavaColorConstants.JAVADOC_DEFAULT + "_bold", false); store.setDefault(ContentAssistPreference.AUTOACTIVATION, true); store.setDefault(ContentAssistPreference.AUTOACTIVATION_DELAY, 500); store.setDefault(ContentAssistPreference.AUTOINSERT, false); PreferenceConverter.setDefault(store, ContentAssistPreference.PROPOSALS_BACKGROUND, new RGB(254, 241, 233)); PreferenceConverter.setDefault(store, ContentAssistPreference.PROPOSALS_FOREGROUND, new RGB(0, 0, 0)); PreferenceConverter.setDefault(store, ContentAssistPreference.PARAMETERS_BACKGROUND, new RGB(254, 241, 233)); PreferenceConverter.setDefault(store, ContentAssistPreference.PARAMETERS_FOREGROUND, new RGB(0, 0, 0));
6,146
Bug 6146 Java Editor Preference Page is missing most of the mnemonics
summary says it all.
resolved fixed
0322ef0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:20:26Z
2001-11-21T08:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
store.setDefault(ContentAssistPreference.AUTOACTIVATION_TRIGGERS_JAVA, ".,"); store.setDefault(ContentAssistPreference.AUTOACTIVATION_TRIGGERS_JAVADOC, "@"); store.setDefault(ContentAssistPreference.SHOW_VISIBLE_PROPOSALS, false); store.setDefault(ContentAssistPreference.CASE_SENSITIVITY, false); store.setDefault(ContentAssistPreference.ORDER_PROPOSALS, false); store.setDefault(ContentAssistPreference.ADD_IMPORT, true); } /* * @see IWorkbenchPreferencePage#init() */ public void init(IWorkbench workbench) { } /* * @see PreferencePage#createControl(Composite) */ public void createControl(Composite parent) { super.createControl(parent); WorkbenchHelp.setHelp(getControl(), new DialogPageContextComputer(this, IJavaHelpContextIds.JAVA_EDITOR_PREFERENCE_PAGE)); } private void handleListSelection() { int i= fList.getSelectionIndex(); String key= fListModel[i][1]; RGB rgb= PreferenceConverter.getColor(fOverlayStore, key); fColorEditor.setColorValue(rgb); fBoldCheckBox.setSelection(fOverlayStore.getBoolean(key + "_bold")); } private Control createColorPage(Composite parent) { Composite colorComposite= new Composite(parent, SWT.NULL);
6,146
Bug 6146 Java Editor Preference Page is missing most of the mnemonics
summary says it all.
resolved fixed
0322ef0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:20:26Z
2001-11-21T08:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
colorComposite.setLayout(new GridLayout()); Label label= new Label(colorComposite, SWT.LEFT); label.setText("Colors"); label.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); Composite editorComposite= new Composite(colorComposite, SWT.NULL); GridLayout layout= new GridLayout(); layout.numColumns= 2; layout.marginHeight= 0; layout.marginWidth= 0; editorComposite.setLayout(layout); GridData gd= new GridData(GridData.FILL_BOTH); editorComposite.setLayoutData(gd); fList= new List(editorComposite, SWT.SINGLE | SWT.V_SCROLL); gd= new GridData(GridData.FILL_BOTH); gd.heightHint= convertHeightInCharsToPixels(5); fList.setLayoutData(gd); Composite stylesComposite= new Composite(editorComposite, SWT.NULL); layout= new GridLayout(); layout.marginHeight= 0; layout.marginWidth= 0; layout.numColumns= 2; stylesComposite.setLayout(layout); stylesComposite.setLayoutData(new GridData(GridData.FILL_BOTH)); label= new Label(stylesComposite, SWT.LEFT); label.setText("Foreground:"); gd= new GridData();
6,146
Bug 6146 Java Editor Preference Page is missing most of the mnemonics
summary says it all.
resolved fixed
0322ef0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-01-21T12:20:26Z
2001-11-21T08:06:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
gd.horizontalAlignment= GridData.BEGINNING; label.setLayoutData(gd); fColorEditor= new ColorEditor(stylesComposite); Button colorButton= fColorEditor.getButton(); gd= new GridData(GridData.FILL_HORIZONTAL); gd.horizontalAlignment= GridData.BEGINNING; colorButton.setLayoutData(gd); label= new Label(stylesComposite, SWT.LEFT); label.setText("Bold:"); gd= new GridData(); gd.horizontalAlignment= GridData.BEGINNING; label.setLayoutData(gd); fBoldCheckBox= new Button(stylesComposite, SWT.CHECK); gd= new GridData(GridData.FILL_HORIZONTAL); gd.horizontalAlignment= GridData.BEGINNING; fBoldCheckBox.setLayoutData(gd); label= new Label(colorComposite, SWT.LEFT); label.setText("Preview"); label.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); Control previewer= createPreviewer(colorComposite); gd= new GridData(GridData.FILL_BOTH); gd.widthHint= convertWidthInCharsToPixels(80); gd.heightHint= convertHeightInCharsToPixels(15); previewer.setLayoutData(gd); fList.addSelectionListener(new SelectionListener() {