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 219595 Details for
Bug 386472
[block selection] Block selection editing does not work with Korean encoding
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Fix for visualSizeIncrement
eclipse.platform.text.patch (text/plain), 1.83 KB, created by
Dani Megert
on 2012-08-06 10:35:35 EDT
(
hide
)
Description:
Fix for visualSizeIncrement
Filename:
MIME Type:
Creator:
Dani Megert
Created:
2012-08-06 10:35:35 EDT
Size:
1.83 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jface.text >diff --git src/org/eclipse/jface/internal/text/SelectionProcessor.java src/org/eclipse/jface/internal/text/SelectionProcessor.java >index a7733f5..f38c6fb 100644 >--- src/org/eclipse/jface/internal/text/SelectionProcessor.java >+++ src/org/eclipse/jface/internal/text/SelectionProcessor.java >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2009, 2010 Avaloq Evolution AG and others. >+ * Copyright (c) 2009, 2012 Avaloq Evolution AG and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at >@@ -11,6 +11,8 @@ > package org.eclipse.jface.internal.text; > > import java.util.Arrays; >+ >+import org.eclipse.swt.graphics.GC; > > import org.eclipse.core.runtime.Assert; > >@@ -487,6 +489,8 @@ > * <code>[0,fTabWidth]</code> > */ > private int visualSizeIncrement(char character, int visual) { >+ if (fGC != null && character > 255) >+ return (int)Math.ceil(fGC.stringExtent(new String(Character.toString(character))).x / fSingleCharWidth); > if (character != '\t') > return 1; > if (fTabWidth <= 0) >@@ -503,6 +507,11 @@ > > private ISelectionProvider fSelectionProvider; > >+ private GC fGC; >+ >+ float fSingleCharWidth; >+ >+ > /** > * Creates a new processor on the given viewer. > * >@@ -510,6 +519,9 @@ > */ > public SelectionProcessor(ITextViewer viewer) { > this(viewer.getDocument(), viewer.getTextWidget().getTabs()); >+ fGC= new GC(viewer.getTextWidget()); >+ fSingleCharWidth= fGC.stringExtent(" ").x; //$NON-NLS-1$ >+ > if (viewer instanceof ITextViewerExtension) { > ITextViewerExtension ext= (ITextViewerExtension)viewer; > fRewriteTarget= ext.getRewriteTarget();
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 386472
:
219474
|
219475
|
219515
|
219589
|
219595
|
219602
|
222508
|
222518