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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
23,459 | Bug 23459 add preference option to turn off variable guessing on method completion | request from Adam | resolved fixed | 75fbf65 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-12T15:39:37Z | 2002-09-12T08:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java | {JavaUIMessages.getString("JavaEditorPreferencePage.matchingBracketsHighlightColor2"), CompilationUnitEditor.MATCHING_BRACKETS_COLOR},
{JavaUIMessages.getString("JavaEditorPreferencePage.currentLineHighlighColor"), CompilationUnitEditor.CURRENT_LINE_COLOR},
{JavaUIMessages.getString("JavaEditorPreferencePage.prob... |
23,459 | Bug 23459 add preference option to turn off variable guessing on method completion | request from Adam | resolved fixed | 75fbf65 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-12T15:39:37Z | 2002-09-12T08:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java | private Map fTextFields= new HashMap();
private ModifyListener fTextFieldListener= new ModifyListener() {
public void modifyText(ModifyEvent e) {
Text text= (Text) e.widget;
fOverlayStore.setValue((String) fTextFields.get(text), text.getText());
}
};
private ArrayList fNumberFields= new ArrayList();
priva... |
23,459 | Bug 23459 add preference option to turn off variable guessing on method completion | request from Adam | resolved fixed | 75fbf65 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-12T15:39:37Z | 2002-09-12T08:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java | private Control fAutoInsertJavaDocTriggerText;
public JavaEditorPreferencePage() {
setDescription(JavaUIMessages.getString("JavaEditorPreferencePage.description"));
setPreferenceStore(JavaPlugin.getDefault().getPreferenceStore());
fOverlayStore= new OverlayPreferenceStore(getPreferenceStore(), fKeys);
}
p... |
23,459 | Bug 23459 add preference option to turn off variable guessing on method completion | request from Adam | resolved fixed | 75fbf65 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-12T15:39:37Z | 2002-09-12T08:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java | */
store.setDefault(CompilationUnitEditor.MATCHING_BRACKETS, true);
PreferenceConverter.setDefault(store, CompilationUnitEditor.MATCHING_BRACKETS_COLOR, rgbs[0]);
store.setDefault(CompilationUnitEditor.CURRENT_LINE, true);
PreferenceConverter.setDefault(store, CompilationUnitEditor.CURRENT_LINE_COLOR, new R... |
23,459 | Bug 23459 add preference option to turn off variable guessing on method completion | request from Adam | resolved fixed | 75fbf65 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-12T15:39:37Z | 2002-09-12T08:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java | PreferenceConverter.setDefault(store, AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND, rgbs[2]);
store.setDefault(AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND_SYSTEM_DEFAULT, true);
store.setDefault(JavaSourceViewerConfiguration.PREFERENCE_TAB_WIDTH, 4);
store.setDefault(CompilationUnitEditor.SPACES_FOR... |
23,459 | Bug 23459 add preference option to turn off variable guessing on method completion | request from Adam | resolved fixed | 75fbf65 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-12T15:39:37Z | 2002-09-12T08:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java | 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);
... |
23,459 | Bug 23459 add preference option to turn off variable guessing on method completion | request from Adam | resolved fixed | 75fbf65 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-12T15:39:37Z | 2002-09-12T08:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java | public void init(IWorkbench workbench) {
}
/*
* @see PreferencePage#createControl(Composite)
*/
public void createControl(Composite parent) {
super.createControl(parent);
WorkbenchHelp.setHelp(getControl(), IJavaHelpContextIds.JAVA_EDITOR_PREFERENCE_PAGE);
}
private void handleSyntaxColorListSelection() { ... |
23,459 | Bug 23459 add preference option to turn off variable guessing on method completion | request from Adam | resolved fixed | 75fbf65 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-12T15:39:37Z | 2002-09-12T08:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java | SelectionListener backgroundSelectionListener= new SelectionListener() {
public void widgetSelected(SelectionEvent e) {
boolean custom= fBackgroundCustomRadioButton.getSelection();
fBackgroundColorButton.setEnabled(custom);
fOverlayStore.setValue(AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND_SYSTEM_... |
23,459 | Bug 23459 add preference option to turn off variable guessing on method completion | request from Adam | resolved fixed | 75fbf65 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-12T15:39:37Z | 2002-09-12T08:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java | gd.heightHint= convertHeightInCharsToPixels(5);
fSyntaxColorList.setLayoutData(gd);
Composite stylesComposite= new Composite(editorComposite, SWT.NONE);
layout= new GridLayout();
layout.marginHeight= 0;
layout.marginWidth= 0;
layout.numColumns= 2;
stylesComposite.setLayout(layout);
stylesComposit... |
23,459 | Bug 23459 add preference option to turn off variable guessing on method completion | request from Adam | resolved fixed | 75fbf65 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-12T15:39:37Z | 2002-09-12T08:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java | label.setText(JavaUIMessages.getString("JavaEditorPreferencePage.preview"));
label.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
Control previewer= createPreviewer(colorComposite);
gd= new GridData(GridData.FILL_BOTH);
gd.widthHint= convertWidthInCharsToPixels(20);
gd.heightHint= convertHeightInC... |
23,459 | Bug 23459 add preference option to turn off variable guessing on method completion | request from Adam | resolved fixed | 75fbf65 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-12T15:39:37Z | 2002-09-12T08:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java | public void widgetDefaultSelected(SelectionEvent e) {
}
public void widgetSelected(SelectionEvent e) {
PreferenceConverter.setValue(fOverlayStore, AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND, fBackgroundColorEditor.getColorValue());
}
});
fBoldCheckBox.addSelectionListener(new SelectionLis... |
23,459 | Bug 23459 add preference option to turn off variable guessing on method completion | request from Adam | resolved fixed | 75fbf65 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-12T15:39:37Z | 2002-09-12T08:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java | initializeViewerColors(fPreviewViewer);
String content= loadPreviewContentFromFile("ColorSettingPreviewCode.txt");
IDocument document= new Document(content);
IDocumentPartitioner partitioner= fJavaTextTools.createDocumentPartitioner();
partitioner.connect(document);
document.setDocumentPartitioner(partiti... |
23,459 | Bug 23459 add preference option to turn off variable guessing on method completion | request from Adam | resolved fixed | 75fbf65 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-12T15:39:37Z | 2002-09-12T08:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java | */
private void initializeViewerColors(ISourceViewer viewer) {
IPreferenceStore store= fOverlayStore;
if (store != null) {
StyledText styledText= viewer.getTextWidget();
Color color= store.getBoolean(AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND_SYSTEM_DEFAULT)
? null
: createColor... |
23,459 | Bug 23459 add preference option to turn off variable guessing on method completion | request from Adam | resolved fixed | 75fbf65 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-12T15:39:37Z | 2002-09-12T08:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java | if (store.isDefault(key))
rgb= PreferenceConverter.getDefaultColor(store, key);
else
rgb= PreferenceConverter.getColor(store, key);
if (rgb != null)
return new Color(display, rgb);
}
return null;
}
private static void setEnabled(Control control, boolean enable) {
control.setEnabled(... |
23,459 | Bug 23459 add preference option to turn off variable guessing on method completion | request from Adam | resolved fixed | 75fbf65 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-12T15:39:37Z | 2002-09-12T08:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java | addTextField(behaviorComposite, label, JavaSourceViewerConfiguration.PREFERENCE_TAB_WIDTH, 3, 0, true);
label= JavaUIMessages.getString("JavaEditorPreferencePage.printMarginColumn");
addTextField(behaviorComposite, label, CompilationUnitEditor.PRINT_MARGIN_COLUMN, 3, 0, true);
label= JavaUIMessages.getStrin... |
23,459 | Bug 23459 add preference option to turn off variable guessing on method completion | request from Adam | resolved fixed | 75fbf65 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-12T15:39:37Z | 2002-09-12T08:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java | gd= new GridData(GridData.HORIZONTAL_ALIGN_FILL);
gd.horizontalSpan= 2;
l.setLayoutData(gd);
Composite editorComposite= new Composite(behaviorComposite, SWT.NONE);
layout= new GridLayout();
layout.numColumns= 2;
layout.marginHeight= 0;
layout.marginWidth= 0;
editorComposite.setLayout(layout);
gd= new ... |
23,459 | Bug 23459 add preference option to turn off variable guessing on method completion | request from Adam | resolved fixed | 75fbf65 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-12T15:39:37Z | 2002-09-12T08:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java | fAppearanceForegroundColorEditor= new ColorEditor(stylesComposite);
Button foregroundColorButton= fAppearanceForegroundColorEditor.getButton();
gd= new GridData(GridData.FILL_HORIZONTAL);
gd.horizontalAlignment= GridData.BEGINNING;
foregroundColorButton.setLayoutData(gd);
fAppearanceColorList.addSelectionList... |
23,459 | Bug 23459 add preference option to turn off variable guessing on method completion | request from Adam | resolved fixed | 75fbf65 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-12T15:39:37Z | 2002-09-12T08:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java | composite.setLayout(layout);
String label= JavaUIMessages.getString("JavaEditorPreferencePage.showProblemsBeforeCompiling");
addCheckBox(composite, label, CompilationUnitDocumentProvider.HANDLE_TEMPORARY_PROBLEMS, 0);
label= JavaUIMessages.getString("JavaEditorPreferencePage.highlightProblems");
addCheck... |
23,459 | Bug 23459 add preference option to turn off variable guessing on method completion | request from Adam | resolved fixed | 75fbf65 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-12T15:39:37Z | 2002-09-12T08:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java | addCheckBox(composite, label, CompilationUnitEditor.SKIP_CLOSING_BRACKETS, 1);
label= JavaUIMessages.getString("JavaEditorPreferencePage.closeJavaDocs");
final Button button= addCheckBox(composite, label, CompilationUnitEditor.CLOSE_JAVADOCS, 1);
label= JavaUIMessages.getString("JavaEditorPreferencePage.addJavaD... |
23,459 | Bug 23459 add preference option to turn off variable guessing on method completion | request from Adam | resolved fixed | 75fbf65 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-12T15:39:37Z | 2002-09-12T08:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java | label= JavaUIMessages.getString("JavaEditorPreferencePage.automaticallyAddImportInsteadOfQualifiedName");
addCheckBox(contentAssistComposite, label, ContentAssistPreference.ADD_IMPORT, 0);
label= JavaUIMessages.getString("JavaEditorPreferencePage.fillArgumentNamesOnMethodCompletion");
addCheckBox(contentAssi... |
23,459 | Bug 23459 add preference option to turn off variable guessing on method completion | request from Adam | resolved fixed | 75fbf65 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-12T15:39:37Z | 2002-09-12T08:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java | autoactivation.addSelectionListener(new SelectionAdapter(){
public void widgetSelected(SelectionEvent e) {
updateAutoactivationControls();
}
});
return contentAssistComposite;
}
/*
* @see PreferencePage#createContents(Composite)
*/
protected Control createContents(Compo... |
23,459 | Bug 23459 add preference option to turn off variable guessing on method completion | request from Adam | resolved fixed | 75fbf65 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-12T15:39:37Z | 2002-09-12T08:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java | item= new TabItem(folder, SWT.NONE);
item.setText(JavaUIMessages.getString("JavaEditorPreferencePage.problemIndicationTab.title"));
item.setControl(createProblemIndicationPage(folder));
item= new TabItem(folder, SWT.NONE);
item.setText(JavaUIMessages.getString("JavaEditorPreferencePage.behaviourTab.title"));
... |
23,459 | Bug 23459 add preference option to turn off variable guessing on method completion | request from Adam | resolved fixed | 75fbf65 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-12T15:39:37Z | 2002-09-12T08:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java | for (int i= 0; i < fAppearanceColorListModel.length; i++)
fAppearanceColorList.add(fAppearanceColorListModel[i][0]);
fAppearanceColorList.getDisplay().asyncExec(new Runnable() {
public void run() {
fAppearanceColorList.select(0);
handleAppearanceColorListSelection();
}
});
}
private void... |
23,459 | Bug 23459 add preference option to turn off variable guessing on method completion | request from Adam | resolved fixed | 75fbf65 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-12T15:39:37Z | 2002-09-12T08:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java | while (e.hasNext()) {
Text t= (Text) e.next();
String key= (String) fTextFields.get(t);
t.setText(fOverlayStore.getString(key));
}
RGB rgb= PreferenceConverter.getColor(fOverlayStore, AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND);
fBackgroundColorEditor.setColorValue(rgb);
boolean default_= f... |
23,459 | Bug 23459 add preference option to turn off variable guessing on method completion | request from Adam | resolved fixed | 75fbf65 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-12T15:39:37Z | 2002-09-12T08:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java | fOverlayStore.propagate();
JavaPlugin.getDefault().savePluginPreferences();
return true;
}
/*
* @see PreferencePage#performDefaults()
*/
protected void performDefaults() {
fFontEditor.loadDefault();
fOverlayStore.loadDefaults();
initializeFields();
handleSyntaxColorListSelection();
handleAp... |
23,459 | Bug 23459 add preference option to turn off variable guessing on method completion | request from Adam | resolved fixed | 75fbf65 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-12T15:39:37Z | 2002-09-12T08:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java | fFontEditor.setPreferencePage(null);
fFontEditor.setPreferenceStore(null);
if (fOverlayStore != null) {
fOverlayStore.stop();
fOverlayStore= null;
}
super.dispose();
}
private Control addColorButton(Composite composite, String label, String key, int indentation) {
Label labelControl= new Label... |
23,459 | Bug 23459 add preference option to turn off variable guessing on method completion | request from Adam | resolved fixed | 75fbf65 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-12T15:39:37Z | 2002-09-12T08:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java | }
private Button addCheckBox(Composite parent, String label, String key, int indentation) {
Button checkBox= new Button(parent, SWT.CHECK);
checkBox.setText(label);
GridData gd= new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);
gd.horizontalIndent= indentation;
gd.horizontalSpan= 2;
checkBox.setLay... |
23,459 | Bug 23459 add preference option to turn off variable guessing on method completion | request from Adam | resolved fixed | 75fbf65 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-12T15:39:37Z | 2002-09-12T08:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java | fTextFields.put(textControl, key);
if (isNumber) {
fNumberFields.add(textControl);
textControl.addModifyListener(fNumberFieldListener);
} else {
textControl.addModifyListener(fTextFieldListener);
}
return textControl;
}
private void addTextFontEditor(Composite parent, String label, String key) ... |
23,459 | Bug 23459 add preference option to turn off variable guessing on method completion | request from Adam | resolved fixed | 75fbf65 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-12T15:39:37Z | 2002-09-12T08:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java | try {
reader= new BufferedReader(new InputStreamReader(getClass().getResourceAsStream(filename)));
while ((line= reader.readLine()) != null) {
buffer.append(line);
buffer.append(separator);
}
} catch (IOException io) {
JavaPlugin.log(io);
} finally {
if (reader != null) {
try { reader.clo... |
23,459 | Bug 23459 add preference option to turn off variable guessing on method completion | request from Adam | resolved fixed | 75fbf65 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-12T15:39:37Z | 2002-09-12T08:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java | int value= Integer.parseInt(number);
if (value < 0)
status.setError(JavaUIMessages.getFormattedString("JavaEditorPreferencePage.invalid_input", number));
} catch (NumberFormatException e) {
status.setError(JavaUIMessages.getFormattedString("JavaEditorPreferencePage.invalid_input", number));
}
}
... |
23,459 | Bug 23459 add preference option to turn off variable guessing on method completion | request from Adam | resolved fixed | 75fbf65 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-12T15:39:37Z | 2002-09-12T08:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/ContentAssistPreference.java | /*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
package org.eclipse.jdt.internal.ui.text;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.RGB;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.preference.PreferenceConverter;
import org.eclipse.jf... |
23,459 | Bug 23459 add preference option to turn off variable guessing on method completion | request from Adam | resolved fixed | 75fbf65 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-12T15:39:37Z | 2002-09-12T08:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/ContentAssistPreference.java | public final static String AUTOACTIVATION_DELAY= "content_assist_autoactivation_delay";
public final static String PROPOSALS_FOREGROUND= "content_assist_proposals_foreground";
public final static String PROPOSALS_BACKGROUND= "content_assist_proposals_background";
public final static String PARAMETERS_FOR... |
23,459 | Bug 23459 add preference option to turn off variable guessing on method completion | request from Adam | resolved fixed | 75fbf65 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-12T15:39:37Z | 2002-09-12T08:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/ContentAssistPreference.java | RGB rgb= PreferenceConverter.getColor(store, key);
return manager.getColor(rgb);
}
private static Color getColor(IPreferenceStore store, String key) {
JavaTextTools textTools= JavaPlugin.getDefault().getJavaTextTools();
return getColor(store, key, textTools.getColorManager());
}
private static JavaComplet... |
23,459 | Bug 23459 add preference option to turn off variable guessing on method completion | request from Adam | resolved fixed | 75fbf65 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-12T15:39:37Z | 2002-09-12T08:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/ContentAssistPreference.java | jcp.setCompletionProposalAutoActivationCharacters(triggers.toCharArray());
boolean enabled= store.getBoolean(SHOW_VISIBLE_PROPOSALS);
jcp.restrictProposalsToVisibility(enabled);
enabled= store.getBoolean(CASE_SENSITIVITY);
jcp.restrictProposalsToMatchingCases(enabled);
enabled= store.getBoolean(ORDE... |
23,459 | Bug 23459 add preference option to turn off variable guessing on method completion | request from Adam | resolved fixed | 75fbf65 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-12T15:39:37Z | 2002-09-12T08:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/ContentAssistPreference.java | /**
* Configure the given content assistant from the given store.
*/
public static void configure(ContentAssistant assistant, IPreferenceStore store) {
JavaTextTools textTools= JavaPlugin.getDefault().getJavaTextTools();
IColorManager manager= textTools.getColorManager();
boolean enabled= store.ge... |
23,459 | Bug 23459 add preference option to turn off variable guessing on method completion | request from Adam | resolved fixed | 75fbf65 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-12T15:39:37Z | 2002-09-12T08:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/ContentAssistPreference.java | enabled= store.getBoolean(AUTOINSERT);
assistant.enableAutoInsert(enabled);
configureJavaProcessor(assistant, store);
configureJavaDocProcessor(assistant, store);
}
private static void changeJavaProcessor(ContentAssistant assistant, IPreferenceStore store, String key) {
JavaCompletionProcessor jcp= getJav... |
23,459 | Bug 23459 add preference option to turn off variable guessing on method completion | request from Adam | resolved fixed | 75fbf65 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-12T15:39:37Z | 2002-09-12T08:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/ContentAssistPreference.java | private static void changeJavaDocProcessor(ContentAssistant assistant, IPreferenceStore store, String key) {
JavaDocCompletionProcessor jdcp= getJavaDocProcessor(assistant);
if (jdcp == null)
return;
if (AUTOACTIVATION_TRIGGERS_JAVADOC.equals(key)) {
String triggers= store.getString(AUTOACTIVATION_TRIGG... |
23,459 | Bug 23459 add preference option to turn off variable guessing on method completion | request from Adam | resolved fixed | 75fbf65 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-12T15:39:37Z | 2002-09-12T08:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/ContentAssistPreference.java | } else if (AUTOACTIVATION_DELAY.equals(p)) {
int delay= store.getInt(AUTOACTIVATION_DELAY);
assistant.setAutoActivationDelay(delay);
} else if (PROPOSALS_FOREGROUND.equals(p)) {
Color c= getColor(store, PROPOSALS_FOREGROUND);
assistant.setProposalSelectorForeground(c);
} else if (PROPOSALS_BACKGROUND.eq... |
23,459 | Bug 23459 add preference option to turn off variable guessing on method completion | request from Adam | resolved fixed | 75fbf65 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-12T15:39:37Z | 2002-09-12T08:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ExperimentalResultCollector.java | /*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
package org.eclipse.jdt.internal.ui.text.java;
import org.eclipse.jface.text.ITextViewer;
/**
* Bin to collect the proposal of the infrastructure on code assist in a java text.
*/
public class ExperimentalResultCollector extends ResultCollector {
... |
23,459 | Bug 23459 add preference option to turn off variable guessing on method completion | request from Adam | resolved fixed | 75fbf65 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-12T15:39:37Z | 2002-09-12T08:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ExperimentalResultCollector.java | /**
* Creates a proposal that includes a best guess for each parameter. Best guesses are computed by the
* {@link ParameterGuessingEngine} when the {@link org.eclipse.jface.text.contentassist.ICompletionProposal#apply(org.eclipse.jface.text.IDocument)}
* method is called.
*/
protected JavaCompletionProposal c... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | package org.eclipse.jdt.ui.tests.astrewrite;
import java.util.Hashtable;
import java.util.List;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.IPackageFragment;
import org.eclipse.jdt.core... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | } else {
TestSuite suite= new TestSuite();
suite.addTest(new ASTRewritingExpressionsTest("testSuperConstructorInvocation"));
return suite;
}
}
protected void setUp() throws Exception {
Hashtable options= JavaCore.getOptions();
options.put(JavaCore.FORMATTER_TAB_CHAR, JavaCore.SPACE);
options.put(Ja... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | buf.append("}\n");
ICompilationUnit cu= pack1.createCompilationUnit("E.java", buf.toString(), false, null);
CompilationUnit astRoot= AST.parseCompilationUnit(cu, false);
ASTRewrite rewrite= new ASTRewrite(astRoot);
AST ast= astRoot.getAST();
assertTrue("Parse errors", (astRoot.getFlags() & ASTNode.M... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | ASTRewriteCorrectionProposal proposal= new ASTRewriteCorrectionProposal("", cu, rewrite, 10, null);
proposal.getCompilationUnitChange().setSave(true);
proposal.apply(null);
buf= new StringBuffer();
buf.append("package test1;\n");
buf.append("public class E {\n");
buf.append(" int[] o= new int[] { 1... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | buf.append("}\n");
ICompilationUnit cu= pack1.createCompilationUnit("E.java", buf.toString(), false, null);
CompilationUnit astRoot= AST.parseCompilationUnit(cu, false);
ASTRewrite rewrite= new ASTRewrite(astRoot);
AST ast= astRoot.getAST();
assertTrue("Parse errors", (astRoot.getFlags() & ASTNode.M... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | rewrite.markAsRemoved(arrayCreation.getInitializer());
List dimensions= arrayCreation.dimensions();
assertTrue("Number of dimension expressions not 0", dimensions.size() == 0);
NumberLiteral literal= ast.newNumberLiteral("10");
dimensions.add(literal);
rewrite.markAsInserted(literal);
}
{... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | List dimensions= arrayCreation.dimensions();
assertTrue("Number of dimension expressions not 1", dimensions.size() == 1);
NumberLiteral literal1= ast.newNumberLiteral("10");
dimensions.add(literal1);
rewrite.markAsInserted(literal1);
NumberLiteral literal2= ast.newNumberLiteral("11");
dimensio... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | dimensions.add(literal2);
rewrite.markAsInserted(literal2);
}
ASTRewriteCorrectionProposal proposal= new ASTRewriteCorrectionProposal("", cu, rewrite, 10, null);
proposal.getCompilationUnitChange().setSave(true);
proposal.apply(null);
buf= new StringBuffer();
buf.append("package test1;\n... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | buf.append(" goo(new int[] { 1, 2, 3 },\n");
buf.append(" new int[] { 1, 2, 3 },\n");
buf.append(" new int[] { 1, 2, 3 });\n");
buf.append(" }\n");
buf.append("}\n");
ICompilationUnit cu= pack1.createCompilationUnit("E.java", buf.toString(), false, null);
CompilationUnit astRoot=... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | rewrite.markAsRemoved((ASTNode) expressions.get(2));
}
{
ArrayCreation arrayCreation= (ArrayCreation) args.get(1);
ArrayInitializer initializer= arrayCreation.getInitializer();
List expressions= initializer.expressions();
assertTrue("Number of initializer expressions not 3", expressions.size() == 3... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | proposal.getCompilationUnitChange().setSave(true);
proposal.apply(null);
buf= new StringBuffer();
buf.append("package test1;\n");
buf.append("public class E {\n");
buf.append(" public void foo() {\n");
buf.append(" goo(new int[] { 2 },\n");
buf.append(" new int[] { 1, 10, 2, 3, 11 }... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | CompilationUnit astRoot= AST.parseCompilationUnit(cu, false);
ASTRewrite rewrite= new ASTRewrite(astRoot);
AST ast= astRoot.getAST();
assertTrue("Parse errors", (astRoot.getFlags() & ASTNode.MALFORMED) == 0);
TypeDeclaration type= findTypeDeclaration(astRoot, "E");
MethodDeclaration methodDecl= findMeth... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | rewrite.markAsModified(assignment, modifiedNode);
Assignment inner= (Assignment) assignment.getRightHandSide();
Assignment modifiedInner= ast.newAssignment();
modifiedInner.setOperator(Assignment.Operator.RIGHT_SHIFT_UNSIGNED_ASSIGN);
rewrite.markAsModified(inner, modifiedInner);
}
ASTRe... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | buf.append(" public void foo() {\n");
buf.append(" x= (E) clone();\n");
buf.append(" z= y.toList();\n");
buf.append(" }\n");
buf.append("}\n");
ICompilationUnit cu= pack1.createCompilationUnit("E.java", buf.toString(), false, null);
CompilationUnit astRoot= AST.parseCompilationUnit(c... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | ExpressionStatement stmt= (ExpressionStatement) statements.get(1);
Assignment assignment= (Assignment) stmt.getExpression();
Expression rightHand= assignment.getRightHandSide();
Expression placeholder= (Expression) rewrite.createCopyTarget(rightHand);
CastExpression newCastExpression= ast.newCas... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | public void testCatchClause() throws Exception {
IPackageFragment pack1= fSourceFolder.createPackageFragment("test1", false, null);
StringBuffer buf= new StringBuffer();
buf.append("package test1;\n");
buf.append("public class E {\n");
buf.append(" public void foo() {\n");
buf.append(" try {\n");
... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | SingleVariableDeclaration exception= clause.getException();
SingleVariableDeclaration newException= ast.newSingleVariableDeclaration();
newException.setType(ast.newSimpleType(ast.newSimpleName("NullPointerException")));
newException.setName(ast.newSimpleName("ex"));
rewrite.markAsReplaced(exc... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | buf.append(" } catch (NullPointerException ex) {\n");
buf.append(" } catch (CoreException e) {\n");
buf.append(" return;\n");
buf.append(" }\n");
buf.append(" }\n");
buf.append("}\n");
assertEqualString(cu.getSource(), buf.toString());
}
public void testClassInstanc... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | MethodDeclaration methodDecl= findMethodDeclaration(type, "foo");
Block block= methodDecl.getBody();
List statements= block.statements();
assertTrue("Number of statements not 2", statements.size() == 2);
{
ExpressionStatement stmt= (ExpressionStatement) statements.get(0);
ClassInstanceCreation creation= ... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | creation.setAnonymousClassDeclaration(anonymDecl);
rewrite.markAsInserted(anonymDecl);
}
{
ExpressionStatement stmt= (ExpressionStatement) statements.get(1);
ClassInstanceCreation creation= (ClassInstanceCreation) stmt.getExpression();
assertTrue("Has expression", creation.getExpression() == null);... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | buf.append(" new NewInner(\"Hello\", \"World\") {\n");
buf.append(" private void newMethod(String str) {\n");
buf.append(" }\n");
buf.append(" };\n");
buf.append(" x.new Runnable();\n");
buf.append(" }\n");
buf.append("}\n");
assertEqualString(cu.getSource(),... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | List statements= block.statements();
assertTrue("Number of statements not 1", statements.size() == 1);
{
ExpressionStatement stmt= (ExpressionStatement) statements.get(0);
Assignment assignment= (Assignment) stmt.getExpression();
ConditionalExpression condExpression= (ConditionalExpression) assignment.get... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | buf.append(" i= true ? x : 1 + 2;\n");
buf.append(" }\n");
buf.append("}\n");
assertEqualString(cu.getSource(), buf.toString());
}
public void testFieldAccess() throws Exception {
IPackageFragment pack1= fSourceFolder.createPackageFragment("test1", false, null);
StringBuffer buf= new StringBuff... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | Assignment assignment= (Assignment) stmt.getExpression();
FieldAccess leftFieldAccess= (FieldAccess) assignment.getLeftHandSide();
FieldAccess rightFieldAccess= (FieldAccess) assignment.getRightHandSide();
MethodInvocation invocation= ast.newMethodInvocation();
invocation.setName(ast.newSimpleName("xoo"... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | IPackageFragment pack1= fSourceFolder.createPackageFragment("test1", false, null);
StringBuffer buf= new StringBuffer();
buf.append("package test1;\n");
buf.append("public class E {\n");
buf.append(" public void foo() {\n");
buf.append(" i= 1 + 2;\n");
buf.append(" j= 1 + 2 + 3 + 4 + 5;\n")... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | SimpleName rightOp= ast.newSimpleName("j");
rewrite.markAsReplaced(expr.getRightOperand(), rightOp);
InfixExpression modifiedNode= ast.newInfixExpression();
modifiedNode.setOperator(InfixExpression.Operator.MINUS);
rewrite.markAsModified(expr, modifiedNode);
}
{
ExpressionStatement stmt=... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | Assignment assignment= (Assignment) stmt.getExpression();
InfixExpression expr= (InfixExpression) assignment.getRightHandSide();
InfixExpression modifiedNode= ast.newInfixExpression();
modifiedNode.setOperator(InfixExpression.Operator.TIMES);
rewrite.markAsModified(expr, modifiedNode);
}
A... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | buf.append(" goo(k instanceof Vector);\n");
buf.append(" }\n");
buf.append("}\n");
ICompilationUnit cu= pack1.createCompilationUnit("E.java", buf.toString(), false, null);
CompilationUnit astRoot= AST.parseCompilationUnit(cu, false);
ASTRewrite rewrite= new ASTRewrite(astRoot);
AST ast= ast... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | ASTRewriteCorrectionProposal proposal= new ASTRewriteCorrectionProposal("", cu, rewrite, 10, null);
proposal.getCompilationUnitChange().setSave(true);
proposal.apply(null);
buf= new StringBuffer();
buf.append("package test1;\n");
buf.append("public class E {\n");
buf.append(" public void foo() {\n"... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | AST ast= astRoot.getAST();
assertTrue("Parse errors", (astRoot.getFlags() & ASTNode.MALFORMED) == 0);
TypeDeclaration type= findTypeDeclaration(astRoot, "E");
MethodDeclaration methodDecl= findMethodDeclaration(type, "foo");
Block block= methodDecl.getBody();
List statements= block.statements();
assertTr... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | rewrite.markAsInserted(newExpression);
leftInvocation.setExpression(newExpression);
List args= leftInvocation.arguments();
rewrite.markAsRemoved((ASTNode) args.get(0));
rewrite.markAsRemoved((ASTNode) args.get(1));
}
{
ExpressionStatement stmt= (ExpressionStatement) statements.get(2);
Met... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | buf.append(" x.foo().goo();\n");
buf.append(" goo(foo(1, 2));\n");
buf.append(" }\n");
buf.append("}\n");
assertEqualString(cu.getSource(), buf.toString());
}
public void testParenthesizedExpression() throws Exception {
IPackageFragment pack1= fSourceFolder.createPackageFragment("test1... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | ExpressionStatement stmt= (ExpressionStatement) statements.get(0);
Assignment assignment= (Assignment) stmt.getExpression();
InfixExpression multiplication= (InfixExpression) assignment.getRightHandSide();
ParenthesizedExpression parenthesizedExpression= (ParenthesizedExpression) multiplication.getLeft... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | buf.append("public class E {\n");
buf.append(" public void foo() {\n");
buf.append(" i= --x;\n");
buf.append(" }\n");
buf.append("}\n");
ICompilationUnit cu= pack1.createCompilationUnit("E.java", buf.toString(), false, null);
CompilationUnit astRoot= AST.parseCompilationUnit(cu, false);
A... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | rewrite.markAsModified(preExpression, modifiedNode);
}
ASTRewriteCorrectionProposal proposal= new ASTRewriteCorrectionProposal("", cu, rewrite, 10, null);
proposal.getCompilationUnitChange().setSave(true);
proposal.apply(null);
buf= new StringBuffer();
buf.append("package test1;\n");
buf.append(... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | ASTRewrite rewrite= new ASTRewrite(astRoot);
AST ast= astRoot.getAST();
assertTrue("Parse errors", (astRoot.getFlags() & ASTNode.MALFORMED) == 0);
TypeDeclaration type= findTypeDeclaration(astRoot, "E");
MethodDeclaration methodDecl= findMethodDeclaration(type, "foo");
Block block= methodDecl.getBody();... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | buf= new StringBuffer();
buf.append("package test1;\n");
buf.append("public class E {\n");
buf.append(" public void foo() {\n");
buf.append(" i= 10++;\n");
buf.append(" }\n");
buf.append("}\n");
assertEqualString(cu.getSource(), buf.toString());
}
public void testSuperConstructorInvocati... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | assertTrue("Parse errors", (astRoot.getFlags() & ASTNode.MALFORMED) == 0);
TypeDeclaration type= findTypeDeclaration(astRoot, "E");
List bodyDeclarations= type.bodyDeclarations();
assertTrue("Number of bodyDeclarations not 3", bodyDeclarations.size() == 3);
{
MethodDeclaration methodDecl= (MethodDeclaration... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | {
MethodDeclaration methodDecl= (MethodDeclaration) bodyDeclarations.get(2);
SuperConstructorInvocation invocation= (SuperConstructorInvocation) methodDecl.getBody().statements().get(0);
MethodInvocation arg1= (MethodInvocation) invocation.arguments().get(0);
rewrite.markAsRemoved(arg1);
ASTNode... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | assertEqualString(cu.getSource(), buf.toString());
}
public void testSuperFieldInvocation() throws Exception {
IPackageFragment pack1= fSourceFolder.createPackageFragment("test1", false, null);
StringBuffer buf= new StringBuffer();
buf.append("package test1;\n");
buf.append("public class E {\n");
buf.appe... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | SimpleName newQualifier= ast.newSimpleName("X");
rewrite.markAsInserted(newQualifier);
leftFieldAccess.setQualifier(newQualifier);
SimpleName newName= ast.newSimpleName("y");
rewrite.markAsReplaced(leftFieldAccess.getName(), newName);
rewrite.markAsRemoved(rightFieldAccess.getQualifier());
}
A... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | buf.append(" super.foo();\n");
buf.append(" Outer.super.foo(i);\n");
buf.append(" Outer.super.foo(foo(X.goo()), 1);\n");
buf.append(" }\n");
buf.append("}\n");
ICompilationUnit cu= pack1.createCompilationUnit("E.java", buf.toString(), false, null);
CompilationUnit astRoot= AST.... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | invocation.arguments().add(arg);
}
{
ExpressionStatement statement= (ExpressionStatement) statements.get(1);
SuperMethodInvocation invocation= (SuperMethodInvocation) statement.getExpression();
Name qualifier= (Name) invocation.getQualifier();
rewrite.markAsRemoved(qualifier);
Name placeHolder... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | ASTRewriteCorrectionProposal proposal= new ASTRewriteCorrectionProposal("", cu, rewrite, 10, null);
proposal.getCompilationUnitChange().setSave(true);
proposal.apply(null);
buf= new StringBuffer();
buf.append("package test1;\n");
buf.append("public class E {\n");
buf.append(" public void foo() {\n"... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | CompilationUnit astRoot= AST.parseCompilationUnit(cu, false);
ASTRewrite rewrite= new ASTRewrite(astRoot);
AST ast= astRoot.getAST();
assertTrue("Parse errors", (astRoot.getFlags() & ASTNode.MALFORMED) == 0);
TypeDeclaration type= findTypeDeclaration(astRoot, "E");
MethodDeclaration methodDecl= findMeth... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | buf= new StringBuffer();
buf.append("package test1;\n");
buf.append("public class E {\n");
buf.append(" public void foo() {\n");
buf.append(" return X.this;\n");
buf.append(" return this;\n");
buf.append(" }\n");
buf.append("}\n");
assertEqualString(cu.getSource(), buf.toString())... |
23,362 | Bug 23362 DOM: incorrect length for InfixExpression. | Latest Head 2002/09/10. package test1; public class E { public void foo() { i= (1 + 2) * 3; } } The infix expression for "1 + 2" has a length of 3. It should be 5. | verified fixed | 84b1a3b | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T09:28:17Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java | MethodDeclaration methodDecl= findMethodDeclaration(type, "foo");
Block block= methodDecl.getBody();
List statements= block.statements();
assertTrue("Number of statements not 1", statements.size() == 1);
{
ReturnStatement returnStatement= (ReturnStatement) statements.get(0);
TypeLiteral typeLiteral= ... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | /*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
package org.eclipse.jdt.internal.ui.browsing;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Comparator;
import java.util.Iterator;
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IFile;
impo... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | import org.eclipse.jface.action.IMenuListener;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.IStatusLineManager;
import org.eclipse.jface.action.IToolBarManager;
import org.eclipse.jface.action.MenuManager;
import org.eclipse.jface.text.ITextSelection;
import org.eclipse.jface.util.Asser... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.IWorkbenchPartSite;
import org.eclipse.ui.IWorkingSet;
import org.eclipse.ui.IWorkingSetManager;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.actions.ActionContext;
import org.eclipse.ui.actions.ActionGroup;
... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | import org.eclipse.jdt.ui.actions.ImportActionGroup;
import org.eclipse.jdt.ui.actions.JavaSearchActionGroup;
import org.eclipse.jdt.ui.actions.OpenEditorActionGroup;
import org.eclipse.jdt.ui.actions.OpenViewActionGroup;
import org.eclipse.jdt.ui.actions.RefactorActionGroup;
import org.eclipse.jdt.ui.actions.ShowActio... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | private static final String TAG_SELECTED_ELEMENTS= "selectedElements";
private static final String TAG_SELECTED_ELEMENT= "selectedElement";
private static final String TAG_SELECTED_ELEMENT_PATH= "selectedElementPath";
private ILabelProvider fLabelProvider;
private ILabelProvider fTitleProvider;
private Structur... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | * initiated by user interaction with this part.
*/
private boolean fProcessSelectionEvents= true;
private IPartListener fPartListener= new IPartListener() {
public void partActivated(IWorkbenchPart part) {
setSelectionFromEditor(part);
}
public void partBroughtToTop(IWorkbenchPart part) {
setSelection... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | if (fMemento != null)
memento.putMemento(fMemento);
return;
}
if (fHasWorkingSetFilter)
fWorkingSetFilterActionGroup.saveState(memento);
if (fHasCustomFilter)
fCustomFiltersActionGroup.saveState(memento);
saveSelectionState(memento);
}
private void saveSelectionState(IMemento memento) {
Ob... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | if (fHasCustomFilter || fHasWorkingSetFilter) {
fViewer.getControl().setRedraw(false);
fViewer.refresh();
fViewer.getControl().setRedraw(true);
}
}
private ISelection restoreSelectionState(IMemento memento) {
if (memento == null)
return null;
IMemento childMem;
childMem= memento.getChild(TAG_S... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | fViewer= createViewer(parent);
fLabelProvider= createLabelProvider();
ILabelDecorator decorationMgr= PlatformUI.getWorkbench().getDecoratorManager().getLabelDecorator();
fViewer.setLabelProvider(new DecoratingLabelProvider(fLabelProvider, decorationMgr));
fViewer.setSorter(new JavaElementSorter());
fViewer... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | hookViewerListeners();
addFilters();
fViewer.setContentProvider(createContentProvider());
setInitialInput();
initDragAndDrop();
setInitialSelection();
fMemento= null;
getViewSite().getWorkbenchWindow().getSelectionService().addPostSelectionListener(this);
getViewSite().getPage().a... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | };
fViewer.addDropSupport(ops | DND.DROP_DEFAULT, transfers, new DelegatingDropAdapter(dropListeners));
Control control= fViewer.getControl();
TransferDragSourceListener[] dragListeners= new TransferDragSourceListener[] {
new SelectionTransferDragAdapter(fViewer),
new ResourceTransferDragAdapter(fView... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | actionBars.updateActionBars();
fActionGroups.fillActionBars(actionBars);
if (fHasCustomFilter)
fCustomFiltersActionGroup.fillActionBars(actionBars);
}
public void setFocus() {
fViewer.getControl().setFocus();
}
public void dispose() {
if (fViewer != null) {
getViewSite().getWorkbenchWindow(... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | handleKeyReleased(event);
}
});
}
protected void handleKeyReleased(KeyEvent event) {
if (event.stateMask != 0)
return;
int key= event.keyCode;
IAction action;
if (key == SWT.F5) {
action= fBuildActionGroup.getRefreshAction();
if (action.isEnabled())
action.run();
} if (event.characte... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.