Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 12951 Details for
Bug 69253
Force monospace font feature (fixed width for bold and regular)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
for org.eclipse.ui.workbench.texteditor plugin
org.eclipse.ui.workbench.texteditor.patch (text/plain), 2.11 KB, created by
Michel Ishizuka
on 2004-07-04 03:03:36 EDT
(
hide
)
Description:
for org.eclipse.ui.workbench.texteditor plugin
Filename:
MIME Type:
Creator:
Michel Ishizuka
Created:
2004-07-04 03:03:36 EDT
Size:
2.11 KB
patch
obsolete
>Index: src/org/eclipse/ui/texteditor/AbstractTextEditor.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java,v >retrieving revision 1.138 >diff -u -r1.138 AbstractTextEditor.java >--- src/org/eclipse/ui/texteditor/AbstractTextEditor.java 23 Jun 2004 19:41:45 -0000 1.138 >+++ src/org/eclipse/ui/texteditor/AbstractTextEditor.java 4 Jul 2004 06:40:21 -0000 >@@ -1442,7 +1442,12 @@ > * @since 3.0 > */ > public final static String PREFERENCE_WIDE_CARET= "AbstractTextEditor.Accessibility.WideCaret"; //$NON-NLS-1$ >- >+ /** >+ * Key used to look up the force monospace preference. >+ * Value: {@value} >+ * @since 3.0 >+ */ >+ public final static String PREFERENCE_FORCE_MONOSPACE= "AbstractTextEditor.Accessibility.ForceMonospace"; //$NON-NLS-1$ > > /** Menu id for the editor context menu. */ > public final static String DEFAULT_EDITOR_CONTEXT_MENU_ID= "#EditorContext"; //$NON-NLS-1$ >@@ -2388,6 +2393,7 @@ > initializeViewerColors(fSourceViewer); > initializeFindScopeColor(fSourceViewer); > initializeDragAndDrop(fSourceViewer); >+ initializeForceMonospace(fSourceViewer); > > StyledText styledText= fSourceViewer.getTextWidget(); > >@@ -3163,6 +3169,8 @@ > updateCaret(); > } else if (PREFERENCE_WIDE_CARET.equals(property)) { > updateCaret(); >+ } else if (PREFERENCE_FORCE_MONOSPACE.equals(property)) { >+ initializeForceMonospace(fSourceViewer); > } > > if (affectsTextPresentation(event)) >@@ -5125,5 +5133,20 @@ > */ > public boolean isChangeInformationShowing() { > return false; >+ } >+ >+ /** >+ * force monospace. >+ * >+ * @param viewer the viewer to be initialized >+ * >+ * @see org.eclipse.swt.graphics.TextLayout#forceMonospace(int, StyleItem) >+ */ >+ public void initializeForceMonospace (ISourceViewer viewer) { >+ IPreferenceStore store= getPreferenceStore(); >+ if (store != null) { >+ StyledText styledText= viewer.getTextWidget(); >+ styledText.setForceMonospace(store.getBoolean(PREFERENCE_FORCE_MONOSPACE)); >+ } > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 69253
:
12949
|
12950
| 12951 |
12952
|
13082
|
13083
|
13084
|
13085
|
13088
|
13095
|
13096
|
13097
|
13098
|
13125