diff options
author | Dani Megert | 2011-10-18 15:17:42 +0000 |
---|---|---|
committer | Dani Megert | 2011-10-18 15:17:42 +0000 |
commit | 10e6ec4fdd22131c8ce8631eabe9a66e5b34219c (patch) | |
tree | d6219a9c66452e120a0f13ace58399d13f07e1d7 | |
parent | 426b769e7fe9341d7b1cc78660223f861ffaf493 (diff) | |
download | eclipse.platform.text-10e6ec4fdd22131c8ce8631eabe9a66e5b34219c.tar.gz eclipse.platform.text-10e6ec4fdd22131c8ce8631eabe9a66e5b34219c.tar.xz eclipse.platform.text-10e6ec4fdd22131c8ce8631eabe9a66e5b34219c.zip |
Fixed bug 360446: Adopt new Combo.getCaretPosition() APIv20111021-0800
-rw-r--r-- | org.eclipse.jface.text/src/org/eclipse/jface/contentassist/ComboContentAssistSubjectAdapter.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/contentassist/ComboContentAssistSubjectAdapter.java b/org.eclipse.jface.text/src/org/eclipse/jface/contentassist/ComboContentAssistSubjectAdapter.java index 3b134c40f95..508999e61ba 100644 --- a/org.eclipse.jface.text/src/org/eclipse/jface/contentassist/ComboContentAssistSubjectAdapter.java +++ b/org.eclipse.jface.text/src/org/eclipse/jface/contentassist/ComboContentAssistSubjectAdapter.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2006 IBM Corporation and others. + * Copyright (c) 2000, 2011 IBM Corporation 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 @@ -119,7 +119,7 @@ public class ComboContentAssistSubjectAdapter extends AbstractControlContentAssi * @see org.eclipse.jface.text.contentassist.IContentAssistSubjectControl#getCaretOffset() */ public int getCaretOffset() { - return fCombo.getSelection().y; + return fCombo.getCaretPosition(); } /* |