1 11 package org.eclipse.jdt.internal.debug.ui.snippeteditor; 12 13 import org.eclipse.jdt.internal.debug.ui.JDIDebugUIPlugin; 14 import org.eclipse.jdt.ui.text.IJavaPartitions; 15 import org.eclipse.jdt.ui.text.JavaTextTools; 16 import org.eclipse.jface.text.IDocument; 17 import org.eclipse.ui.editors.text.StorageDocumentProvider; 18 19 22 public class SnippetEditorStorageDocumentProvider extends StorageDocumentProvider { 23 24 28 protected void setupDocument(Object element, IDocument document) { 29 if (document != null) { 30 JavaTextTools tools= JDIDebugUIPlugin.getDefault().getJavaTextTools(); 31 tools.setupJavaDocumentPartitioner(document, IJavaPartitions.JAVA_PARTITIONING); 32 } 33 } 34 } 35 | Popular Tags |