1 11 package org.eclipse.jdt.internal.ui.javaeditor; 12 13 import org.eclipse.jface.text.IDocument; 14 15 import org.eclipse.ui.editors.text.StorageDocumentProvider; 16 17 import org.eclipse.jdt.ui.text.JavaTextTools; 18 19 import org.eclipse.jdt.internal.ui.JavaPlugin; 20 import org.eclipse.jdt.internal.ui.text.IJavaPartitions; 21 22 25 public class JavaStorageDocumentProvider extends StorageDocumentProvider { 26 27 public JavaStorageDocumentProvider() { 28 super(); 29 } 30 31 34 protected void setupDocument(Object element, IDocument document) { 35 if (document != null) { 36 JavaTextTools tools= JavaPlugin.getDefault().getJavaTextTools(); 37 tools.setupJavaDocumentPartitioner(document, IJavaPartitions.JAVA_PARTITIONING); 38 } 39 } 40 } 41 | Popular Tags |