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.ISelectionChangedListe... |
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;
p... |
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 Gr... |
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);
fTableVie... |
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) {
Templat... |
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));
fRemo... |
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 ... |
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());
IPreferenceSt... |
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= convertHeightInCharsToP... |
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.getText... |
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 ((ob... |
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(fT... |
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("TemplatePrefe... |
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)
... |
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, fFormatB... |
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 stat... |
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/IJavaModel... | 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.IComplet... |
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/IJavaModel... | 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_typ... |
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/IJavaModel... | 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, ... |
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/IJavaModel... | 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.isNo... |
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/IJavaModel... | 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 ICo... |
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/IJavaModel... | 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 completionSta... |
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/IJavaModel... | 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 Str... |
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/IJavaModel... | 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 ... |
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/IJavaModel... | 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[], cha... |
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/IJavaModel... | 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)... |
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/IJavaModel... | 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(bas... |
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/IJavaModel... | 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 (va... |
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/IJavaModel... | 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 = (L... |
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/IJavaModel... | 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[v... |
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/IJavaModel... | 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... |
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/IJavaModel... | 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.substr... |
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... | 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;
imp... |
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... | 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 ... |
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... | 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... |
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 b... | 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;... |
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 b... | 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.u... |
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 b... | 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 name... |
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 b... | 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... |
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 b... | 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(TypeHierarchyMessage... |
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 b... | 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... |
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 b... | 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();
}
/**
* ... |
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 b... | 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.putStrin... |
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 b... | 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 menuListen... |
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 b... | 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(fFilterActio... |
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 b... | 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(newSelectio... |
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 b... | 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... |
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 b... | 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 METH... |
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 b... | 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;
... |
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 b... | 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_CONTA... |
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 b... | 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 ... |
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 b... | 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(((IR... |
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 { Se... | 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.eclips... |
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 { Se... | 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, ... |
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 { Se... | 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... |
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 { Se... | 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= ... |
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 { Se... | 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 (fDeclar... |
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.... |
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 cr... |
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.JavaMode... |
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());
fDeleteProjectConten... |
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(getStructuredSelect... |
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= J... |
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... |
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 ... |
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 @ReorgDestinat... |
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 JavaMo... |
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... |
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;
}
... |
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(Composi... |
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 v... |
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... |
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) ... |
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;
impo... |
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.... |
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, ge... |
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 (Ja... |
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 isOkT... |
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)
ret... |
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()]);
}
... |
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.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 | };
ElementTreeSelectionDialog dialog= createDestinationSelectionDialog(JavaPlugin.getActiveWorkbenchShell(),
new DestinationRenderer(JavaElementLabelProvider.SHOW_SMALL_ICONS ),
cp,
refactoring);
dialog.setTitle(g... |
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)... |
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... |
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 fRefactorin... |
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.getStr... |
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 (... |
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;
impor... |
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.t... |
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.PREFERENC... |
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, IJavaColorCo... |
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, ContentAssistP... |
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 Sel... |
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 sto... |
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 + "_b... |
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.setDefau... |
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... |
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(styl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.