diff options
author | nitind | 2007-02-15 03:47:56 +0000 |
---|---|---|
committer | nitind | 2007-02-15 03:47:56 +0000 |
commit | fcfcb8b0f54331a4094f1ac4518d338e4bb36bfd (patch) | |
tree | c917741c1e51687bfae9dce45f305bfb3109099a /bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/StructuredTextEditor.java | |
parent | 6af6289da5d34e81870c58a15e33f6a5a23913af (diff) | |
download | webtools.sourceediting-fcfcb8b0f54331a4094f1ac4518d338e4bb36bfd.tar.gz webtools.sourceediting-fcfcb8b0f54331a4094f1ac4518d338e4bb36bfd.tar.xz webtools.sourceediting-fcfcb8b0f54331a4094f1ac4518d338e4bb36bfd.zip |
[173405] (restore) Workaround for text editor IDragAndDropService usage incompatibilities
Diffstat (limited to 'bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/StructuredTextEditor.java')
-rw-r--r-- | bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/StructuredTextEditor.java | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/StructuredTextEditor.java b/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/StructuredTextEditor.java index 15121a3a81..6762a8e665 100644 --- a/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/StructuredTextEditor.java +++ b/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/StructuredTextEditor.java @@ -66,6 +66,7 @@ import org.eclipse.jface.text.contentassist.IContentAssistant; import org.eclipse.jface.text.information.IInformationProvider; import org.eclipse.jface.text.information.IInformationProviderExtension2; import org.eclipse.jface.text.information.InformationPresenter; +import org.eclipse.jface.text.source.DefaultCharacterPairMatcher; import org.eclipse.jface.text.source.ICharacterPairMatcher; import org.eclipse.jface.text.source.ISourceViewer; import org.eclipse.jface.text.source.IVerticalRuler; @@ -1691,22 +1692,7 @@ public class StructuredTextEditor extends TextEditor { matcher = (ICharacterPairMatcher) builder.getConfiguration(DocumentRegionEdgeMatcher.ID, ids[i]); } if (matcher == null) { - matcher = new ICharacterPairMatcher() { - - public void clear() { - } - - public void dispose() { - } - - public int getAnchor() { - return ICharacterPairMatcher.LEFT; - } - - public IRegion match(IDocument iDocument, int i) { - return null; - } - }; + matcher = new DefaultCharacterPairMatcher(new char[]{'(', ')', '{', '}', '[', ']', '<', '>'}); } return matcher; } @@ -2685,9 +2671,8 @@ public class StructuredTextEditor extends TextEditor { * @see org.eclipse.ui.texteditor.AbstractTextEditor#initializeDragAndDrop(org.eclipse.jface.text.source.ISourceViewer) */ protected void initializeDragAndDrop(ISourceViewer viewer) { - // disabled for pre-2.0M5 specific assembly -// IPreferenceStore store= getPreferenceStore(); -// if (store != null && store.getBoolean(PREFERENCE_TEXT_DRAG_AND_DROP_ENABLED)) + IPreferenceStore store= getPreferenceStore(); + if (store != null && store.getBoolean(PREFERENCE_TEXT_DRAG_AND_DROP_ENABLED)) initializeDrop(viewer); } |