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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4,369 | Bug 4369 F2 should work even if "Hide Text Hover" is enabled | - enable "Hide Text Hover" - position the cursor on a type - press F2 observe: nothing happens although I explicitly requested JavaDoc help. | resolved fixed | ce37c8c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T17:37:50Z | 2001-10-11T11:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | }
private void stopBracketHighlighting() {
if (fBracketHighlighter != null) {
fBracketHighlighter.dispose();
fBracketHighlighter= null;
}
}
private boolean isBracketHighlightingEnabled() {
IPreferenceStore store= getPreferenceStore();
return store.getBoolean(MATCHING_BRACKETS);
}
private Color ... |
4,369 | Bug 4369 F2 should work even if "Hide Text Hover" is enabled | - enable "Hide Text Hover" - position the cursor on a type - press F2 observe: nothing happens although I explicitly requested JavaDoc help. | resolved fixed | ce37c8c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T17:37:50Z | 2001-10-11T11:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | super.dispose();
}
/*
* @see AbstractTextEditor#createPartControl(Composite)
*/
public void createPartControl(Composite parent) {
super.createPartControl(parent);
if (isBracketHighlightingEnabled())
startBracketHighlighting();
}
/*
* @see AbstractTextEditor#handlePreferenceStoreChanged(PropertyCha... |
4,369 | Bug 4369 F2 should work even if "Hide Text Hover" is enabled | - enable "Hide Text Hover" - position the cursor on a type - press F2 observe: nothing happens although I explicitly requested JavaDoc help. | resolved fixed | ce37c8c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T17:37:50Z | 2001-10-11T11:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java | if (fBracketHighlighter != null)
fBracketHighlighter.setHighlightColor(getColor(MATCHING_BRACKETS_COLOR));
return;
}
InternalSourceViewer isv= (InternalSourceViewer) getSourceViewer();
IContentAssistant c= isv.getContentAssistant();
if (c instanceof ContentAssistant)
ContentAssistPreferenc... |
4,369 | Bug 4369 F2 should work even if "Hide Text Hover" is enabled | - enable "Hide Text Hover" - position the cursor on a type - press F2 observe: nothing happens although I explicitly requested JavaDoc help. | resolved fixed | ce37c8c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T17:37:50Z | 2001-10-11T11:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/WorkInProgressPreferencePage.java | /*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
package org.eclipse.jdt.internal.ui.preferences;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.jface.preference.BooleanFieldEditor;
import org.eclipse.jface.preference.FieldEditorPreferencePage;
import org.eclipse.jface.preference.IPre... |
4,369 | Bug 4369 F2 should work even if "Hide Text Hover" is enabled | - enable "Hide Text Hover" - position the cursor on a type - press F2 observe: nothing happens although I explicitly requested JavaDoc help. | resolved fixed | ce37c8c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T17:37:50Z | 2001-10-11T11:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/WorkInProgressPreferencePage.java | public static void initDefaults(IPreferenceStore store) {
store.setDefault(ExperimentalPreference.CODE_ASSIST_EXPERIMENTAL, false);
}
/*
* @see PreferencePage#createControl(Composite)
*/
public void createControl(Composite parent) {
super.createControl(parent);
WorkbenchHelp.setHelp(getControl(), new Dia... |
4,369 | Bug 4369 F2 should work even if "Hide Text Hover" is enabled | - enable "Hide Text Hover" - position the cursor on a type - press F2 observe: nothing happens although I explicitly requested JavaDoc help. | resolved fixed | ce37c8c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T17:37:50Z | 2001-10-11T11:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/hover/JavaTextHover.java | package org.eclipse.jdt.internal.ui.text.java.hover;
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
import org.eclipse.debug.ui.IDebugUIConstants;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.text.IRegion;
import org.eclipse.jface.text.ITextHover;
import org.ecli... |
4,369 | Bug 4369 F2 should work even if "Hide Text Hover" is enabled | - enable "Hide Text Hover" - position the cursor on a type - press F2 observe: nothing happens although I explicitly requested JavaDoc help. | resolved fixed | ce37c8c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T17:37:50Z | 2001-10-11T11:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/hover/JavaTextHover.java | class EditorWatcher implements IPartListener {
/**
* @see IPartListener#partOpened(IWorkbenchPart)
*/
public void partOpened(IWorkbenchPart part) {
}
/**
* @see IPartListener#partDeactivated(IWorkbenchPart)
*/
public void partDeactivated(IWorkbenchPart part) {
}
/**
* @see IPartLis... |
4,369 | Bug 4369 F2 should work even if "Hide Text Hover" is enabled | - enable "Hide Text Hover" - position the cursor on a type - press F2 observe: nothing happens although I explicitly requested JavaDoc help. | resolved fixed | ce37c8c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T17:37:50Z | 2001-10-11T11:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/hover/JavaTextHover.java | * @see IPartListener#partActivated(IWorkbenchPart)
*/
public void partActivated(IWorkbenchPart part) {
update();
}
public void partBroughtToTop(IWorkbenchPart part) {
update();
}
};
class PropertyChangeListener implements IPropertyChangeListener {
/**
* @see IPropertyChangeListener#propert... |
4,369 | Bug 4369 F2 should work even if "Hide Text Hover" is enabled | - enable "Hide Text Hover" - position the cursor on a type - press F2 observe: nothing happens although I explicitly requested JavaDoc help. | resolved fixed | ce37c8c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T17:37:50Z | 2001-10-11T11:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/hover/JavaTextHover.java | protected ITextHover[] fImplementations;
protected boolean fEnabled;
public JavaTextHover(IEditorPart editor) {
fEditor= editor;
if (fEditor != null) {
fPartListener= new EditorWatcher();
IWorkbenchWindow window= fEditor.getSite().getWorkbenchWindow();
window.getPartService().addPartListe... |
4,369 | Bug 4369 F2 should work even if "Hide Text Hover" is enabled | - enable "Hide Text Hover" - position the cursor on a type - press F2 observe: nothing happens although I explicitly requested JavaDoc help. | resolved fixed | ce37c8c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T17:37:50Z | 2001-10-11T11:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/hover/JavaTextHover.java | if (page != null) {
String newPerspective= page.getPerspective().getId();
if (fCurrentPerspective == null || fCurrentPerspective != newPerspective) {
fCurrentPerspective= newPerspective;
if (IDebugUIConstants.ID_DEBUG_PERSPECTIVE.equals(fCurrentPerspective))
fImplementations= new ITextHover[]... |
4,369 | Bug 4369 F2 should work even if "Hide Text Hover" is enabled | - enable "Hide Text Hover" - position the cursor on a type - press F2 observe: nothing happens although I explicitly requested JavaDoc help. | resolved fixed | ce37c8c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T17:37:50Z | 2001-10-11T11:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/hover/JavaTextHover.java | return getInformation(textViewer, hoverRegion);
}
/*
* @see IInformationProvider#getSubject(ITextViewer, int)
*/
public IRegion getSubject(ITextViewer textViewer, int offset) {
if (!fEnabled)
return null;
if (textViewer != null)
return JavaWordFinder.findWord(textViewer.getDocument(), offset);
... |
4,369 | Bug 4369 F2 should work even if "Hide Text Hover" is enabled | - enable "Hide Text Hover" - position the cursor on a type - press F2 observe: nothing happens although I explicitly requested JavaDoc help. | resolved fixed | ce37c8c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T17:37:50Z | 2001-10-11T11:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/hover/JavaTypeHover.java | package org.eclipse.jdt.internal.ui.text.java.hover;
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
import org.eclipse.jface.text.IRegion;
import org.eclipse.jface.text.ITextHover;
import org.eclipse.jface.text.ITextViewer;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IEditorPart;
im... |
4,369 | Bug 4369 F2 should work even if "Hide Text Hover" is enabled | - enable "Hide Text Hover" - position the cursor on a type - press F2 observe: nothing happens although I explicitly requested JavaDoc help. | resolved fixed | ce37c8c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T17:37:50Z | 2001-10-11T11:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/hover/JavaTypeHover.java | private IEditorPart fEditor;
private final int LABEL_FLAGS= JavaElementLabels.ALL_FULLY_QUALIFIED
| JavaElementLabels.M_PRE_RETURNTYPE | JavaElementLabels.M_PARAMETER_TYPES | JavaElementLabels.M_PARAMETER_NAMES | JavaElementLabels.M_EXCEPTIONS
| JavaElementLabels.F_PRE_TYPE_SIGNATURE;
public JavaTypeHover(I... |
4,369 | Bug 4369 F2 should work even if "Hide Text Hover" is enabled | - enable "Hide Text Hover" - position the cursor on a type - press F2 observe: nothing happens although I explicitly requested JavaDoc help. | resolved fixed | ce37c8c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T17:37:50Z | 2001-10-11T11:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/hover/JavaTypeHover.java | /*
* @see ITextHover#getHoverRegion(ITextViewer, int)
*/
public IRegion getHoverRegion(ITextViewer textViewer, int offset) {
return JavaWordFinder.findWord(textViewer.getDocument(), offset);
}
/*
* @see ITextHover#getHoverInfo(ITextViewer, IRegion)
*/
public String getHoverInfo(ITextViewer textViewer, I... |
4,369 | Bug 4369 F2 should work even if "Hide Text Hover" is enabled | - enable "Hide Text Hover" - position the cursor on a type - press F2 observe: nothing happens although I explicitly requested JavaDoc help. | resolved fixed | ce37c8c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T17:37:50Z | 2001-10-11T11:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/hover/JavaTypeHover.java | IJavaElement curr= result[i];
if (curr instanceof IMember)
HTMLPrinter.addBullet(buffer, getInfoText((IMember) curr));
HTMLPrinter.endBulletList(buffer);
}
} else {
IJavaElement curr= result[0];
if (curr instanceof IMember) {
IMember member= (IMember) curr;
... |
4,369 | Bug 4369 F2 should work even if "Hide Text Hover" is enabled | - enable "Hide Text Hover" - position the cursor on a type - press F2 observe: nothing happens although I explicitly requested JavaDoc help. | resolved fixed | ce37c8c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T17:37:50Z | 2001-10-11T11:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/JavaSourceViewerConfiguration.java | package org.eclipse.jdt.ui.text;
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.RGB;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jf... |
4,369 | Bug 4369 F2 should work even if "Hide Text Hover" is enabled | - enable "Hide Text Hover" - position the cursor on a type - press F2 observe: nothing happens although I explicitly requested JavaDoc help. | resolved fixed | ce37c8c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T17:37:50Z | 2001-10-11T11:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/JavaSourceViewerConfiguration.java | import org.eclipse.jface.text.presentation.PresentationReconciler;
import org.eclipse.jface.text.reconciler.IReconciler;
import org.eclipse.jface.text.reconciler.MonoReconciler;
import org.eclipse.jface.text.rules.RuleBasedDamagerRepairer;
import org.eclipse.jface.text.rules.RuleBasedScanner;
import org.eclipse.jface.t... |
4,369 | Bug 4369 F2 should work even if "Hide Text Hover" is enabled | - enable "Hide Text Hover" - position the cursor on a type - press F2 observe: nothing happens although I explicitly requested JavaDoc help. | resolved fixed | ce37c8c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T17:37:50Z | 2001-10-11T11:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/JavaSourceViewerConfiguration.java | private JavaTextTools fJavaTextTools;
private ITextEditor fTextEditor;
/**
* Creates a new Java source viewer configuration for viewers in the given editor
* using the given Java tools.
*
* @param tools the Java tools to be used
* @param editor the editor in which the configured viewer(s) will reside
*... |
4,369 | Bug 4369 F2 should work even if "Hide Text Hover" is enabled | - enable "Hide Text Hover" - position the cursor on a type - press F2 observe: nothing happens although I explicitly requested JavaDoc help. | resolved fixed | ce37c8c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T17:37:50Z | 2001-10-11T11:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/JavaSourceViewerConfiguration.java | /**
* Returns the Java multiline comment scanner for this configuration.
*
* @return the Java multiline comment scanner
*/
protected RuleBasedScanner getMultilineCommentScanner() {
return fJavaTextTools.getMultilineCommentScanner();
}
/**
* Returns the Java singleline comment scanner for this configura... |
4,369 | Bug 4369 F2 should work even if "Hide Text Hover" is enabled | - enable "Hide Text Hover" - position the cursor on a type - press F2 observe: nothing happens although I explicitly requested JavaDoc help. | resolved fixed | ce37c8c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T17:37:50Z | 2001-10-11T11:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/JavaSourceViewerConfiguration.java | *
* @return the color manager
*/
protected IColorManager getColorManager() {
return fJavaTextTools.getColorManager();
}
/**
* Returns the editor in which the configured viewer(s) will reside.
*
* @return the enclosing editor
*/
protected ITextEditor getEditor() {
return fTextEditor;
}
/**
* ... |
4,369 | Bug 4369 F2 should work even if "Hide Text Hover" is enabled | - enable "Hide Text Hover" - position the cursor on a type - press F2 observe: nothing happens although I explicitly requested JavaDoc help. | resolved fixed | ce37c8c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T17:37:50Z | 2001-10-11T11:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/JavaSourceViewerConfiguration.java | reconciler.setDamager(dr, IDocument.DEFAULT_CONTENT_TYPE);
reconciler.setRepairer(dr, IDocument.DEFAULT_CONTENT_TYPE);
dr= new RuleBasedDamagerRepairer(getJavaDocScanner());
reconciler.setDamager(dr, JavaPartitionScanner.JAVA_DOC);
reconciler.setRepairer(dr, JavaPartitionScanner.JAVA_DOC);
dr= new RuleBasedDa... |
4,369 | Bug 4369 F2 should work even if "Hide Text Hover" is enabled | - enable "Hide Text Hover" - position the cursor on a type - press F2 observe: nothing happens although I explicitly requested JavaDoc help. | resolved fixed | ce37c8c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T17:37:50Z | 2001-10-11T11:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/JavaSourceViewerConfiguration.java | return assistant;
}
return null;
}
/*
* @see SourceViewerConfiguration#getReconciler(ISourceViewer)
*/
public IReconciler getReconciler(ISourceViewer sourceViewer) {
if (getEditor() != null && getEditor().isEditable()) {
MonoReconciler reconciler= new MonoReconciler(new JavaReconcilingStrategy(getE... |
4,369 | Bug 4369 F2 should work even if "Hide Text Hover" is enabled | - enable "Hide Text Hover" - position the cursor on a type - press F2 observe: nothing happens although I explicitly requested JavaDoc help. | resolved fixed | ce37c8c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T17:37:50Z | 2001-10-11T11:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/JavaSourceViewerConfiguration.java | public ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer sourceViewer, String contentType) {
if (JavaPartitionScanner.JAVA_DOC.equals(contentType) ||
JavaPartitionScanner.JAVA_MULTI_LINE_COMMENT.equals(contentType) ||
JavaPartitionScanner.JAVA_SINGLE_LINE_COMMENT.equals(contentType))
return new... |
4,369 | Bug 4369 F2 should work even if "Hide Text Hover" is enabled | - enable "Hide Text Hover" - position the cursor on a type - press F2 observe: nothing happens although I explicitly requested JavaDoc help. | resolved fixed | ce37c8c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T17:37:50Z | 2001-10-11T11:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/JavaSourceViewerConfiguration.java | }
/*
* @see SourceViewerConfiguration#getTextHover(ISourceViewer, String)
*/
public ITextHover getTextHover(ISourceViewer sourceViewer, String contentType) {
return new JavaTextHover(getEditor());
}
/*
* @see SourceViewerConfiguration#getConfiguredContentTypes(ISourceViewer)
*/
public String[] getConfi... |
4,369 | Bug 4369 F2 should work even if "Hide Text Hover" is enabled | - enable "Hide Text Hover" - position the cursor on a type - press F2 observe: nothing happens although I explicitly requested JavaDoc help. | resolved fixed | ce37c8c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T17:37:50Z | 2001-10-11T11:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/JavaSourceViewerConfiguration.java | /*
* @see SourceViewerConfiguration#getHoverControlCreator(ISourceViewer)
*/
public IInformationControlCreator getInformationControlCreator(ISourceViewer sourceViewer) {
return getInformationControlCreator(sourceViewer, true);
}
private IInformationControlCreator getInformationControlCreator(ISourceViewer so... |
6,308 | Bug 6308 Open type dialog should trim entered value | Leading and trailing spaces should be ignored in the input field of this dialog | verified fixed | 6e296de | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T17:49:38Z | 2001-11-26T13:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/FilteredList.java | /*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
package org.eclipse.jdt.internal.ui.dialogs;
import java.util.Comparator;
import java.util.HashSet;
import java.util.Set;
import java.util.Vector;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.DisposeEvent;
import org.eclipse.swt.events.D... |
6,308 | Bug 6308 Open type dialog should trim entered value | Leading and trailing spaces should be ignored in the input field of this dialog | verified fixed | 6e296de | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T17:49:38Z | 2001-11-26T13:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/FilteredList.java | import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.TableItem;
import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.jdt.internal.core.Assert;
import org.eclipse.jdt.internal.ui.util.StringMatcher;
/**
* A composite widget which holds a list of eleme... |
6,308 | Bug 6308 Open type dialog should trim entered value | Leading and trailing spaces should be ignored in the input field of this dialog | verified fixed | 6e296de | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T17:49:38Z | 2001-11-26T13:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/FilteredList.java | private StringMatcher fMatcher;
public void setFilter(String pattern, boolean ignoreCase, boolean ignoreWildCards) {
fMatcher= new StringMatcher(pattern + '*', ignoreCase, ignoreWildCards);
}
public boolean match(Object element) {
return fMatcher.match(fRenderer.getText(element));
}
}
private Tab... |
6,308 | Bug 6308 Open type dialog should trim entered value | Leading and trailing spaces should be ignored in the input field of this dialog | verified fixed | 6e296de | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T17:49:38Z | 2001-11-26T13:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/FilteredList.java | public final String string;
public final Image image;
public Label(String string, Image image) {
this.string= string;
this.image= image;
}
public boolean equals(Label label) {
if (label == null)
return false;
return
string.equals(label.string) &&
image.equals(label.image);
}... |
6,308 | Bug 6308 Open type dialog should trim entered value | Leading and trailing spaces should be ignored in the input field of this dialog | verified fixed | 6e296de | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T17:49:38Z | 2001-11-26T13:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/FilteredList.java | private boolean fIgnoreCase;
LabelComparator(boolean ignoreCase) {
fIgnoreCase= ignoreCase;
}
public int compare(Object left, Object right) {
Label leftLabel= (Label) left;
Label rightLabel= (Label) right;
int value= fIgnoreCase
? leftLabel.string.compareToIgnoreCase(rightLabel.string)... |
6,308 | Bug 6308 Open type dialog should trim entered value | Leading and trailing spaces should be ignored in the input field of this dialog | verified fixed | 6e296de | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T17:49:38Z | 2001-11-26T13:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/FilteredList.java | } else if (rightLabel.image == null) {
return +1;
} else {
return
fImages.indexOf(leftLabel.image) -
fImages.indexOf(rightLabel.image);
}
}
}
/**
* Constructs a new instance of a filtered list.
* @param parent the parent composite.
* @param style the widg... |
6,308 | Bug 6308 Open type dialog should trim entered value | Leading and trailing spaces should be ignored in the input field of this dialog | verified fixed | 6e296de | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T17:49:38Z | 2001-11-26T13:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/FilteredList.java | fList.setLayoutData(new GridData(GridData.FILL_BOTH));
fList.addDisposeListener(new DisposeListener() {
public void widgetDisposed(DisposeEvent e) {
fRenderer.dispose();
}
});
fRenderer= renderer;
fIgnoreCase= ignoreCase;
fSorter= new TwoArrayQuickSorter(new LabelComparator(ignoreCase));
fAll... |
6,308 | Bug 6308 Open type dialog should trim entered value | Leading and trailing spaces should be ignored in the input field of this dialog | verified fixed | 6e296de | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T17:49:38Z | 2001-11-26T13:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/FilteredList.java | for (int i= 0; i != length; i++) {
String text= fRenderer.getText(fElements[i]);
Image image= fRenderer.getImage(fElements[i]);
fLabels[i]= new Label(text, image);
imageSet.add(image);
}
fImages.clear();
fImages.addAll(imageSet);
fSorter.sort(fLabels, fElements);
fFilteredIndices= new int[... |
6,308 | Bug 6308 Open type dialog should trim entered value | Leading and trailing spaces should be ignored in the input field of this dialog | verified fixed | 6e296de | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T17:49:38Z | 2001-11-26T13:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/FilteredList.java | }
/**
* Adds a selection listener to the list.
* @param listener the selection listener to be added.
*/
public void addSelectionListener(SelectionListener listener) {
fList.addSelectionListener(listener);
}
/**
* Removes a selection listener from the list.
* @param listener the sele... |
6,308 | Bug 6308 Open type dialog should trim entered value | Leading and trailing spaces should be ignored in the input field of this dialog | verified fixed | 6e296de | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T17:49:38Z | 2001-11-26T13:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/FilteredList.java | /**
* Returns the selection of the list.
* This is a convenience function for <code>getSelectionIndices()</code>.
* @return returns the index of the selection, -1 for no selection.
*/
public int getSelectionIndex() {
return fList.getSelectionIndex();
}
/**
* Sets the selection of the list.
* @param... |
6,308 | Bug 6308 Open type dialog should trim entered value | Leading and trailing spaces should be ignored in the input field of this dialog | verified fixed | 6e296de | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T17:49:38Z | 2001-11-26T13:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/FilteredList.java | indices[i]= j;
break;
}
}
if (l != max)
break;
}
if (j == fFoldedCount)
indices[i] = 0;
}
fList.setSelection(indices);
}
/**
* Returns an array of the selected elements. The type of the elements
* returned in the list are the same as the ones passed with
... |
6,308 | Bug 6308 Open type dialog should trim entered value | Leading and trailing spaces should be ignored in the input field of this dialog | verified fixed | 6e296de | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T17:49:38Z | 2001-11-26T13:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/FilteredList.java | elements[i]= fElements[fFilteredIndices[fFoldedIndices[indices[i]]]];
return elements;
}
/**
* Sets the filter pattern. Current only prefix filter patterns are supported.
* @param filter the filter pattern.
*/
public void setFilter(String filter) {
fFilter= (filter == null) ? "" : filter;
fFiltered... |
6,308 | Bug 6308 Open type dialog should trim entered value | Leading and trailing spaces should be ignored in the input field of this dialog | verified fixed | 6e296de | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T17:49:38Z | 2001-11-26T13:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/FilteredList.java | int start= fFoldedIndices[index];
int count= (index == fFoldedCount - 1)
? fFilteredCount - start
: fFoldedIndices[index + 1] - start;
Object[] elements= new Object[count];
for (int i= 0; i != count; i++)
elements[i]= fElements[fFilteredIndices[start + i]];
return elements;
}
/*
*... |
6,308 | Bug 6308 Open type dialog should trim entered value | Leading and trailing spaces should be ignored in the input field of this dialog | verified fixed | 6e296de | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T17:49:38Z | 2001-11-26T13:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/FilteredList.java | if (! current.equals(last)) {
fFoldedIndices[k]= i;
k++;
last= current;
}
}
return k;
}
}
/*
* Filters the list with the filter pattern.
* @return returns the number of elements after filtering.
*/
private int filter() {
if (((fFilter == null) || (fFilter.length() == 0)) && !fMa... |
6,308 | Bug 6308 Open type dialog should trim entered value | Leading and trailing spaces should be ignored in the input field of this dialog | verified fixed | 6e296de | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T17:49:38Z | 2001-11-26T13:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/FilteredList.java | if (fList.isDisposed())
return;
fList.setRedraw(false);
int itemCount= fList.getItemCount();
if (fFoldedCount < itemCount)
fList.remove(0, itemCount - fFoldedCount - 1);
else if (fFoldedCount > itemCount)
for (int i= 0; i != fFoldedCount - itemCount; i++)
new TableItem(fList, SWT.NONE);
... |
6,181 | Bug 6181 Edit template panel doesn't resize | The panel is small and can't be resized. It also has a maximize button that is not operational. | verified fixed | ac79605 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T19:09:41Z | 2001-11-21T19:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/AbstractElementListSelectionDialog.java | /*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
package org.eclipse.jdt.internal.ui.dialogs;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.BusyIndicator;
import org.eclipse.swt.events.KeyEvent;
import org.eclipse.swt.events.KeyListener... |
6,181 | Bug 6181 Edit template panel doesn't resize | The panel is small and can't be resized. It also has a maximize button that is not operational. | verified fixed | ac79605 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T19:09:41Z | 2001-11-21T19:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/AbstractElementListSelectionDialog.java | private ILabelProvider fRenderer;
private boolean fIgnoreCase= true;
private boolean fIsMultipleSelection= false; |
6,181 | Bug 6181 Edit template panel doesn't resize | The panel is small and can't be resized. It also has a maximize button that is not operational. | verified fixed | ac79605 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T19:09:41Z | 2001-11-21T19:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/AbstractElementListSelectionDialog.java | private boolean fMatchEmptyString= true;
private boolean fAllowDuplicates= true;
private Label fMessage;
protected FilteredList fFilteredList;
private Text fFilterText;
private ISelectionValidator fValidator;
private String fFilter= null;
private String fEmptyListMessage= "";
private String fEmptySelect... |
6,181 | Bug 6181 Edit template panel doesn't resize | The panel is small and can't be resized. It also has a maximize button that is not operational. | verified fixed | ac79605 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T19:09:41Z | 2001-11-21T19:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/AbstractElementListSelectionDialog.java | * Handles default selection (double click).
* By default, the OK button is pressed.
*/
protected void handleDefaultSelected() {
if (validateCurrentSelection())
buttonPressed(IDialogConstants.OK_ID);
}
/**
* Specifies if sorting, filtering and folding is case sensitive.
*/
public void setIgnoreCase(b... |
6,181 | Bug 6181 Edit template panel doesn't resize | The panel is small and can't be resized. It also has a maximize button that is not operational. | verified fixed | ac79605 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T19:09:41Z | 2001-11-21T19:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/AbstractElementListSelectionDialog.java | /**
* Specifies if multiple selection is allowed.
*/
public void setMultipleSelection(boolean multipleSelection) {
fIsMultipleSelection= multipleSelection;
}
/**
* Specifies whether duplicate entries are displayed or not.
*/
public void setAllowDuplicates(boolean allowDuplicates) {
fAllowDuplicates= all... |
6,181 | Bug 6181 Edit template panel doesn't resize | The panel is small and can't be resized. It also has a maximize button that is not operational. | verified fixed | ac79605 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T19:09:41Z | 2001-11-21T19:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/AbstractElementListSelectionDialog.java | /**
* Sets the message to be displayed if the selection is empty.
* @param message the message to be displayed.
*/
public void setEmptySelectionMessage(String message) {
fEmptySelectionMessage= message;
}
/**
* Sets an optional validator to check if the selection is valid.
* The validator is invoked wh... |
6,181 | Bug 6181 Edit template panel doesn't resize | The panel is small and can't be resized. It also has a maximize button that is not operational. | verified fixed | ac79605 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T19:09:41Z | 2001-11-21T19:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/AbstractElementListSelectionDialog.java | public void setFilter(String filter) {
if (fFilterText == null)
fFilter= filter;
else
fFilterText.setText(filter);
}
/**
* Returns the current filter pattern.
* @return returns the current filter pattern or <code>null<code> if filter was not set.
*/
public String getFilter() {
if (fFilteredList ... |
6,181 | Bug 6181 Edit template panel doesn't resize | The panel is small and can't be resized. It also has a maximize button that is not operational. | verified fixed | ac79605 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T19:09:41Z | 2001-11-21T19:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/AbstractElementListSelectionDialog.java | */
protected int getSelectionIndex() {
Assert.isNotNull(fFilteredList);
return fFilteredList.getSelectionIndex();
}
/**
* Sets the selection referenced by an array of elements.
* To be called within open().
* @param selection the indices of the selection.
*/
protected void setSelection(Object[] select... |
6,181 | Bug 6181 Edit template panel doesn't resize | The panel is small and can't be resized. It also has a maximize button that is not operational. | verified fixed | ac79605 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T19:09:41Z | 2001-11-21T19:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/AbstractElementListSelectionDialog.java | public Object[] getFoldedElements(int index) {
Assert.isNotNull(fFilteredList);
return fFilteredList.getFoldedElements(index);
}
/**
* Creates the message text widget and sets layout data.
* @param composite the parent composite of the message area.
*/
protected Label createMessageArea(Composite compos... |
6,181 | Bug 6181 Edit template panel doesn't resize | The panel is small and can't be resized. It also has a maximize button that is not operational. | verified fixed | ac79605 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T19:09:41Z | 2001-11-21T19:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/AbstractElementListSelectionDialog.java | /**
* Validates the current selection and updates the status line
* accordingly.
*/
protected boolean validateCurrentSelection() {
Assert.isNotNull(fFilteredList);
IStatus status;
Object[] elements= getSelectedElements();
if (elements.length > 0) {
if (fValidator != null) {
status= fValidator.vali... |
6,181 | Bug 6181 Edit template panel doesn't resize | The panel is small and can't be resized. It also has a maximize button that is not operational. | verified fixed | ac79605 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T19:09:41Z | 2001-11-21T19:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/AbstractElementListSelectionDialog.java | super.cancelPressed();
}
/**
* Creates a filtered list.
* @param parent the parent composite.
* @return returns the filtered list widget.
*/
protected FilteredList createFilteredList(Composite parent) {
int flags= SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL |
(fIsMultipleSelection ? SWT.MULTI : SWT.SINGLE... |
6,181 | Bug 6181 Edit template panel doesn't resize | The panel is small and can't be resized. It also has a maximize button that is not operational. | verified fixed | ac79605 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T19:09:41Z | 2001-11-21T19:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/AbstractElementListSelectionDialog.java | });
fFilteredList= list;
return list;
}
private void handleWidgetSelected() {
Object[] newSelection= fFilteredList.getSelection();
if (newSelection.length != fSelection.length) {
fSelection= newSelection;
handleSelectionChanged();
} else {
for (int i= 0; i != newSelection.length; i++) {
... |
6,181 | Bug 6181 Edit template panel doesn't resize | The panel is small and can't be resized. It also has a maximize button that is not operational. | verified fixed | ac79605 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T19:09:41Z | 2001-11-21T19:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/AbstractElementListSelectionDialog.java | Listener listener= new Listener() {
public void handleEvent(Event e) {
fFilteredList.setFilter(fFilterText.getText());
}
};
text.addListener(SWT.Modify, listener);
text.addKeyListener(new KeyListener() {
public void keyPressed(KeyEvent e) {
if (e.keyCode == SWT.ARROW_DOWN)
fFilteredList.se... |
6,181 | Bug 6181 Edit template panel doesn't resize | The panel is small and can't be resized. It also has a maximize button that is not operational. | verified fixed | ac79605 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T19:09:41Z | 2001-11-21T19:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/AbstractElementListSelectionDialog.java | private void access$superOpen() {
super.open();
}
/*
* @see Window#create(Shell)
*/
public void create() {
super.create();
Assert.isNotNull(fFilteredList);
if (fFilteredList.isEmpty()) {
handleEmptyList();
} else {
validateCurrentSelection();
fFilterText.selectAll();
fFilte... |
6,181 | Bug 6181 Edit template panel doesn't resize | The panel is small and can't be resized. It also has a maximize button that is not operational. | verified fixed | ac79605 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T19:09:41Z | 2001-11-21T19:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/EditTemplateDialog.java | /*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
package org.eclipse.jdt.internal.ui.preferences;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map; |
6,181 | Bug 6181 Edit template panel doesn't resize | The panel is small and can't be resized. It also has a maximize button that is not operational. | verified fixed | ac79605 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T19:09:41Z | 2001-11-21T19:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/EditTemplateDialog.java | import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.StyledText;
import org.eclipse.swt.events.KeyEvent;
import org.eclipse.swt.events.KeyListener;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.Se... |
6,181 | Bug 6181 Edit template panel doesn't resize | The panel is small and can't be resized. It also has a maximize button that is not operational. | verified fixed | ac79605 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T19:09:41Z | 2001-11-21T19:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/EditTemplateDialog.java | import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.ITextListener;
import org.eclipse.jface.text.ITextOperationTarget;
import org.eclipse.jface.text.TextEvent;
import org.eclipse.jface.text.contentassist.ContentAssistant;
import org.eclipse.jface.text.contentassist.IContentAssistant;
import org.eclip... |
6,181 | Bug 6181 Edit template panel doesn't resize | The panel is small and can't be resized. It also has a maximize button that is not operational. | verified fixed | ac79605 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T19:09:41Z | 2001-11-21T19:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/EditTemplateDialog.java | private static class SimpleJavaSourceViewerConfiguration extends JavaSourceViewerConfiguration {
SimpleJavaSourceViewerConfiguration(JavaTextTools tools, ITextEditor editor) {
super(tools, editor);
}
/*
* @see SourceViewerConfiguration#getContentAssistant(ISourceViewer)
*/
public IContentAssistant g... |
6,181 | Bug 6181 Edit template panel doesn't resize | The panel is small and can't be resized. It also has a maximize button that is not operational. | verified fixed | ac79605 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T19:09:41Z | 2001-11-21T19:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/EditTemplateDialog.java | private String fErrorMessage;
private boolean fHasAdjacentVariables;
private boolean fEndsWithVariable;
public void reset() {
fErrorMessage= null;
fHasAdjacentVariables= false;
fEndsWithVariable= false;
}
public void acceptError(String message) {
if (fErrorMessage == null)
fErrorMessage= me... |
6,181 | Bug 6181 Edit template panel doesn't resize | The panel is small and can't be resized. It also has a maximize button that is not operational. | verified fixed | ac79605 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T19:09:41Z | 2001-11-21T19:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/EditTemplateDialog.java | fEndsWithVariable= false;
}
public void acceptVariable(String variable) {
if (fEndsWithVariable)
fHasAdjacentVariables= true;
fEndsWithVariable= true;
}
public boolean hasErrors() {
return fHasAdjacentVariables || (fErrorMessage != null);
}
public String getErrorMessage() {
if (fH... |
6,181 | Bug 6181 Edit template panel doesn't resize | The panel is small and can't be resized. It also has a maximize button that is not operational. | verified fixed | ac79605 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T19:09:41Z | 2001-11-21T19:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/EditTemplateDialog.java | private Map fGlobalActions= new HashMap(10);
private List fSelectionActions = new ArrayList(3);
public EditTemplateDialog(Shell parent, Template template, boolean edit) {
super(parent);
if (edit)
setTitle(TemplateMessages.getString("EditTemplateDialog.title.edit"));
else
setTitle(TemplateMessages.g... |
6,181 | Bug 6181 Edit template panel doesn't resize | The panel is small and can't be resized. It also has a maximize button that is not operational. | verified fixed | ac79605 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T19:09:41Z | 2001-11-21T19:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/EditTemplateDialog.java | layout.marginWidth= 0;
layout.marginHeight= 0;
composite.setLayout(layout);
fNameText= createText(composite);
fNameText.addModifyListener(new ModifyListener() {
public void modifyText(ModifyEvent e) {
if (fSuppressError && (fNameText.getText().trim().length() != 0))
fSuppressError= false;
update... |
6,181 | Bug 6181 Edit template panel doesn't resize | The panel is small and can't be resized. It also has a maximize button that is not operational. | verified fixed | ac79605 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T19:09:41Z | 2001-11-21T19:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/EditTemplateDialog.java | fInsertVariableButton.setLayoutData(getButtonGridData(fInsertVariableButton));
fInsertVariableButton.setText(TemplateMessages.getString("EditTemplateDialog.insert.variable"));
fInsertVariableButton.addSelectionListener(new SelectionListener() {
public void widgetSelected(SelectionEvent e) {
fPatternEditor.d... |
6,181 | Bug 6181 Edit template panel doesn't resize | The panel is small and can't be resized. It also has a maximize button that is not operational. | verified fixed | ac79605 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T19:09:41Z | 2001-11-21T19:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/EditTemplateDialog.java | return text;
}
private SourceViewer createEditor(Composite parent) {
SourceViewer viewer= new SourceViewer(parent, null, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);
JavaTextTools tools= JavaPlugin.getDefault().getJavaTextTools();
viewer.configure(new SimpleJavaSourceViewerConfiguration(tools, null));
viewer.se... |
6,181 | Bug 6181 Edit template panel doesn't resize | The panel is small and can't be resized. It also has a maximize button that is not operational. | verified fixed | ac79605 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T19:09:41Z | 2001-11-21T19:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/EditTemplateDialog.java | });
viewer.getTextWidget().addKeyListener(new KeyListener() {
public void keyPressed(KeyEvent e) {
handleKeyPressed(e);
}
public void keyReleased(KeyEvent e) {}
});
return viewer;
}
private void handleKeyPressed(KeyEvent event) {
if (event.stateMask != SWT.CTRL)
return;
switch (even... |
6,181 | Bug 6181 Edit template panel doesn't resize | The panel is small and can't be resized. It also has a maximize button that is not operational. | verified fixed | ac79605 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T19:09:41Z | 2001-11-21T19:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/EditTemplateDialog.java | action.setText(TemplateMessages.getString("EditTemplateDialog.cut"));
fGlobalActions.put(ITextEditorActionConstants.CUT, action);
action= new TextViewerAction(fPatternEditor, fPatternEditor.COPY);
action.setText(TemplateMessages.getString("EditTemplateDialog.copy"));
fGlobalActions.put(ITextEditorActionConsta... |
6,181 | Bug 6181 Edit template panel doesn't resize | The panel is small and can't be resized. It also has a maximize button that is not operational. | verified fixed | ac79605 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T19:09:41Z | 2001-11-21T19:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/EditTemplateDialog.java | private void fillContextMenu(IMenuManager menu) {
menu.add(new GroupMarker(ITextEditorActionConstants.GROUP_UNDO));
menu.appendToGroup(ITextEditorActionConstants.GROUP_UNDO, (IAction) fGlobalActions.get(ITextEditorActionConstants.UNDO));
menu.add(new Separator(ITextEditorActionConstants.GROUP_EDIT));
menu.... |
6,181 | Bug 6181 Edit template panel doesn't resize | The panel is small and can't be resized. It also has a maximize button that is not operational. | verified fixed | ac79605 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-26T19:09:41Z | 2001-11-21T19:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/EditTemplateDialog.java | else if (context.equals(TemplateContext.JAVADOC))
return 1;
else
return -1;
}
protected void okPressed() {
fTemplate.setName(fNameText.getText());
fTemplate.setDescription(fDescriptionText.getText());
fTemplate.setContext(fContextCombo.getText());
fTemplate.setPattern(fPatternEditor.getTextWidget().... |
6,092 | Bug 6092 JavaEditor should honor the tab width setting of the JavaFormatter | null | verified fixed | 896299e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-27T15:00:03Z | 2001-11-20T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java | package org.eclipse.jdt.internal.ui.javaeditor;
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
import java.util.Iterator;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.core.IMember;
imp... |
6,092 | Bug 6092 JavaEditor should honor the tab width setting of the JavaFormatter | null | verified fixed | 896299e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-27T15:00:03Z | 2001-11-20T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java | import org.eclipse.jdt.internal.ui.actions.ShowInPackageViewAction;
import org.eclipse.jdt.internal.ui.actions.StructuredSelectionProvider;
import org.eclipse.jdt.internal.ui.search.JavaSearchGroup;
import org.eclipse.jdt.ui.IContextMenuConstants;
import org.eclipse.jdt.ui.text.JavaSourceViewerConfiguration;
import org... |
6,092 | Bug 6092 JavaEditor should honor the tab width setting of the JavaFormatter | null | verified fixed | 896299e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-27T15:00:03Z | 2001-11-20T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java | protected JavaOutlinePage fOutlinePage;
protected String fOutlinerContextMenuId;
/**
* Returns the most narrow java element including the given offset
*/
abstract protected IJavaElement getElementAt(int offset);
/**
* Returns the java element of this editor's input corresponding to the given IJavaEl... |
6,092 | Bug 6092 JavaEditor should honor the tab width setting of the JavaFormatter | null | verified fixed | 896299e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-27T15:00:03Z | 2001-11-20T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java | */
abstract protected IJavaElement getCorrespondingElement(IJavaElement element);
/**
* Sets the input of the editor's outline page.
*/
abstract protected void setOutlinePageInput(JavaOutlinePage page, IEditorInput input);
/**
* Default constructor.
*/
public JavaEditor() {
super();
JavaTextTools... |
6,092 | Bug 6092 JavaEditor should honor the tab width setting of the JavaFormatter | null | verified fixed | 896299e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-27T15:00:03Z | 2001-11-20T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java | return viewer;
}
*/
/**
* @see AbstractTextEditor#affectsTextPresentation(PropertyChangeEvent)
*/
protected boolean affectsTextPresentation(PropertyChangeEvent event) {
JavaTextTools textTools= JavaPlugin.getDefault().getJavaTextTools();
return textTools.affectsBehavior(event);
}
/**
* Sets the ou... |
6,092 | Bug 6092 JavaEditor should honor the tab width setting of the JavaFormatter | null | verified fixed | 896299e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-27T15:00:03Z | 2001-11-20T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java | addAction(menu, ITextEditorActionConstants.GROUP_FIND, "ShowJavaDoc");
addAction(menu, ITextEditorActionConstants.GROUP_FIND, "OpenSuperImplementation");
menu.appendToGroup(ITextEditorActionConstants.GROUP_FIND, new ShowInPackageViewAction());
addAction(menu, "RunToLine");
}
/**
* Creates the outline... |
6,092 | Bug 6092 JavaEditor should honor the tab width setting of the JavaFormatter | null | verified fixed | 896299e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-27T15:00:03Z | 2001-11-20T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java | public void outlinePageClosed() {
if (fOutlinePage != null) {
fOutlinePage.removeSelectionChangedListener(this);
fOutlinePage= null;
resetHighlightRange();
}
}
/*
* Get the dektop's StatusLineManager
*/
protected IStatusLineManager getStatusLineManager() {
IEditorActionBarContributor contributor... |
6,092 | Bug 6092 JavaEditor should honor the tab width setting of the JavaFormatter | null | verified fixed | 896299e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-27T15:00:03Z | 2001-11-20T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java | }
protected void setSelection(ISourceReference reference, boolean moveCursor) {
if (reference != null) {
try {
ISourceRange range= reference.getSourceRange();
if (range == null)
return;
int offset= range.getOffset();
int length= range.getLength();
if (offset > -1 &... |
6,092 | Bug 6092 JavaEditor should honor the tab width setting of the JavaFormatter | null | verified fixed | 896299e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-27T15:00:03Z | 2001-11-20T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java | }
return;
} catch (JavaModelException x) {
} catch (IllegalArgumentException x) {
}
}
if (moveCursor)
resetHighlightRange();
}
public void setSelection(IJavaElement element) {
if (element == null || element instanceof ICompilationUnit) {
/*
* If the element is an ICompi... |
6,092 | Bug 6092 JavaEditor should honor the tab width setting of the JavaFormatter | null | verified fixed | 896299e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-27T15:00:03Z | 2001-11-20T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java | if (fOutlinePage != null) {
fOutlinePage.removeSelectionChangedListener(this);
fOutlinePage.select(reference);
fOutlinePage.addSelectionChangedListener(this);
}
}
}
public void selectionChanged(SelectionChangedEvent event) {
ISourceReference reference= null;
ISelection selection= event.... |
6,092 | Bug 6092 JavaEditor should honor the tab width setting of the JavaFormatter | null | verified fixed | 896299e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-27T15:00:03Z | 2001-11-20T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java | try {
IJavaElement element= getElementAt(offset);
while (element instanceof ISourceReference) {
ISourceRange range= ((ISourceReference) element).getSourceRange();
if (offset < range.getOffset() + range.getLength() && range.getOffset() < offset + length) {
setHighlightRange(range.getOffset(), rang... |
6,092 | Bug 6092 JavaEditor should honor the tab width setting of the JavaFormatter | null | verified fixed | 896299e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-27T15:00:03Z | 2001-11-20T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java | /**
* @see AbstractTextEditor#doSetInput
*/
protected void doSetInput(IEditorInput input) throws CoreException {
super.doSetInput(input);
setOutlinePageInput(fOutlinePage, input);
}
protected void createActions() {
super.createActions();
setAction("ShowJavaDoc", new TextOperationAction(JavaEditorMes... |
6,092 | Bug 6092 JavaEditor should honor the tab width setting of the JavaFormatter | null | verified fixed | 896299e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-27T15:00:03Z | 2001-11-20T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CodeFormatterPreferencePage.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.ArrayList;
import java.util.Hashtable;
import org.eclipse.swt.SWT;
import org.eclipse.swt.e... |
6,092 | Bug 6092 JavaEditor should honor the tab width setting of the JavaFormatter | null | verified fixed | 896299e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-27T15:00:03Z | 2001-11-20T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CodeFormatterPreferencePage.java | import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.TabFolder;
import org.eclipse.swt.widgets.TabItem;
import org.eclipse.swt.widgets.Text;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.preference.PreferencePage;
import org.eclip... |
6,092 | Bug 6092 JavaEditor should honor the tab width setting of the JavaFormatter | null | verified fixed | 896299e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-27T15:00:03Z | 2001-11-20T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CodeFormatterPreferencePage.java | private static final String PREF_NEWLINE_OPENING_BRACES= "org.eclipse.jdt.core.formatter.newline.openingBrace";
private static final String PREF_NEWLINE_CONTROL_STATEMENT= "org.eclipse.jdt.core.formatter.newline.controlStatement";
private static final String PREF_NEWLINE_CLEAR_ALL= "org.eclipse.jdt.core.formatter.new... |
6,092 | Bug 6092 JavaEditor should honor the tab width setting of the JavaFormatter | null | verified fixed | 896299e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-27T15:00:03Z | 2001-11-20T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CodeFormatterPreferencePage.java | PREF_STYLE_COMPACT_ASSIGNEMENT, PREF_TAB_CHAR, PREF_TAB_SIZE
};
}
/**
* Gets the currently configured tab size
*/
public static int getTabSize() {
String string= (String) JavaCore.getOptions().get(PREF_TAB_SIZE);
return getIntValue(string, 4);
}
/**
* Gets the current compating assignement configu... |
6,092 | Bug 6092 JavaEditor should honor the tab width setting of the JavaFormatter | null | verified fixed | 896299e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-27T15:00:03Z | 2001-11-20T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CodeFormatterPreferencePage.java | } catch (NumberFormatException e) {
}
return dflt;
}
/**
* Initializes the current options (read from preference store)
*/
public static void initDefaults(IPreferenceStore store) {
Hashtable hashtable= JavaCore.getDefaultOptions();
Hashtable currOptions= JavaCore.getOptions();
String[] allKeys= g... |
6,092 | Bug 6092 JavaEditor should honor the tab width setting of the JavaFormatter | null | verified fixed | 896299e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-27T15:00:03Z | 2001-11-20T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CodeFormatterPreferencePage.java | private String fKey;
private String[] fValues;
public ControlData(String key, String[] values) {
fKey= key;
fValues= values;
}
public String getKey() {
return fKey;
}
public String getValue(boolean selection) {
int index= selection ? 0 : 1;
return fValues[index];
}
public Stri... |
6,092 | Bug 6092 JavaEditor should honor the tab width setting of the JavaFormatter | null | verified fixed | 896299e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-27T15:00:03Z | 2001-11-20T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CodeFormatterPreferencePage.java | public int getSelection(String value) {
for (int i= 0; i < fValues.length; i++) {
if (value.equals(fValues[i])) {
return i;
}
}
throw new IllegalArgumentException();
}
}
private Hashtable fWorkingValues;
private ArrayList fCheckBoxes;
private ArrayList fTextBoxes;
private SelectionListe... |
6,092 | Bug 6092 JavaEditor should honor the tab width setting of the JavaFormatter | null | verified fixed | 896299e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-27T15:00:03Z | 2001-11-20T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CodeFormatterPreferencePage.java | fButtonSelectionListener= new SelectionListener() {
public void widgetDefaultSelected(SelectionEvent e) {}
public void widgetSelected(SelectionEvent e) {
if (!e.widget.isDisposed()) {
controlChanged((Button) e.widget);
}
}
};
fTextModifyListener= new ModifyListener() {
public void modify... |
6,092 | Bug 6092 JavaEditor should honor the tab width setting of the JavaFormatter | null | verified fixed | 896299e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-27T15:00:03Z | 2001-11-20T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CodeFormatterPreferencePage.java | super.createControl(parent);
WorkbenchHelp.setHelp(getControl(), new DialogPageContextComputer(this, IJavaHelpContextIds.CODEFORMATTER_PREFERENCE_PAGE));
}
/*
* @see PreferencePage#createContents(Composite)
*/
protected Control createContents(Composite parent) {
GridLayout layout= new GridLayout();
lay... |
6,092 | Bug 6092 JavaEditor should honor the tab width setting of the JavaFormatter | null | verified fixed | 896299e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-27T15:00:03Z | 2001-11-20T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CodeFormatterPreferencePage.java | label= JavaUIMessages.getString("CodeFormatterPreferencePage.newline_control_statement.label");
addCheckBox(newlineComposite, label, PREF_NEWLINE_CONTROL_STATEMENT, insertNotInsert);
label= JavaUIMessages.getString("CodeFormatterPreferencePage.newline_clear_lines");
addCheckBox(newlineComposite, label, PREF_NE... |
6,092 | Bug 6092 JavaEditor should honor the tab width setting of the JavaFormatter | null | verified fixed | 896299e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-27T15:00:03Z | 2001-11-20T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CodeFormatterPreferencePage.java | item.setText(JavaUIMessages.getString("CodeFormatterPreferencePage.tab.newline.tabtitle"));
item.setImage(JavaPluginImages.get(JavaPluginImages.IMG_OBJS_IMPDECL));
item.setControl(newlineComposite);
item= new TabItem(folder, SWT.NONE);
item.setText(JavaUIMessages.getString("CodeFormatterPreferencePage.tab.line... |
6,092 | Bug 6092 JavaEditor should honor the tab width setting of the JavaFormatter | null | verified fixed | 896299e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-27T15:00:03Z | 2001-11-20T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CodeFormatterPreferencePage.java | gdata.heightHint= convertHeightInCharsToPixels(15);
control.setLayoutData(gdata);
return control;
}
private Button addCheckBox(Composite parent, String label, String key, String[] values) {
ControlData data= new ControlData(key, values);
GridData gd= new GridData(GridData.FILL_HORIZONTAL);
gd.horizonta... |
6,092 | Bug 6092 JavaEditor should honor the tab width setting of the JavaFormatter | null | verified fixed | 896299e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-27T15:00:03Z | 2001-11-20T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CodeFormatterPreferencePage.java | textBox.setData(key);
textBox.setLayoutData(new GridData());
String currValue= (String)fWorkingValues.get(key);
textBox.setText(String.valueOf(getIntValue(currValue, 1)));
textBox.setTextLimit(3);
textBox.addModifyListener(fTextModifyListener);
GridData gd= new GridData();
gd.widthHint= convertWidthIn... |
6,092 | Bug 6092 JavaEditor should honor the tab width setting of the JavaFormatter | null | verified fixed | 896299e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-27T15:00:03Z | 2001-11-20T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CodeFormatterPreferencePage.java | private void textChanged(Text textControl) {
String key= (String) textControl.getData();
String number= textControl.getText();
IStatus status= validatePositiveNumber(number);
if (!status.matches(IStatus.ERROR)) {
fWorkingValues.put(key, number);
}
updateStatus(status);
updatePreview();
}
/*
* ... |
6,092 | Bug 6092 JavaEditor should honor the tab width setting of the JavaFormatter | null | verified fixed | 896299e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-27T15:00:03Z | 2001-11-20T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CodeFormatterPreferencePage.java | /*
* @see PreferencePage#performDefaults()
*/
protected void performDefaults() {
fWorkingValues= JavaCore.getDefaultOptions();
updateControls();
super.performDefaults();
}
private String loadPreviewFile(String filename) {
String separator= System.getProperty("line.separator");
StringBuffer btxt= new S... |
6,092 | Bug 6092 JavaEditor should honor the tab width setting of the JavaFormatter | null | verified fixed | 896299e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-27T15:00:03Z | 2001-11-20T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CodeFormatterPreferencePage.java | fPreviewDocument.set(CodeFormatter.format(fPreviewText, 0, fWorkingValues));
}
private void updateControls() {
for (int i= fCheckBoxes.size() - 1; i >= 0; i--) {
Button curr= (Button) fCheckBoxes.get(i);
ControlData data= (ControlData) curr.getData();
String currValue= (String) fWorkingValues.g... |
6,092 | Bug 6092 JavaEditor should honor the tab width setting of the JavaFormatter | null | verified fixed | 896299e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-27T15:00:03Z | 2001-11-20T09:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CodeFormatterPreferencePage.java | }
} catch (NumberFormatException e) {
status.setError(JavaUIMessages.getFormattedString("CodeFormatterPreferencePage.invalid_input", number));
}
}
return status;
}
private void updateStatus(IStatus status) {
if (!status.matches(IStatus.ERROR)) {
for (int i= 0; i < fTextBoxes.size(); i++) ... |
6,092 | Bug 6092 JavaEditor should honor the tab width setting of the JavaFormatter | null | verified fixed | 896299e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-27T15:00:03Z | 2001-11-20T09:53:20Z | 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,092 | Bug 6092 JavaEditor should honor the tab width setting of the JavaFormatter | null | verified fixed | 896299e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-27T15:00:03Z | 2001-11-20T09:53:20Z | 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,092 | Bug 6092 JavaEditor should honor the tab width setting of the JavaFormatter | null | verified fixed | 896299e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2001-11-27T15:00:03Z | 2001-11-20T09:53:20Z | 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.