1 11 package org.eclipse.jdt.internal.ui.javaeditor; 12 13 import org.eclipse.core.filebuffers.IDocumentSetupParticipant; 14 15 import org.eclipse.jface.text.IDocument; 16 17 import org.eclipse.jdt.ui.text.IJavaPartitions; 18 import org.eclipse.jdt.ui.text.JavaTextTools; 19 20 import org.eclipse.jdt.internal.ui.JavaPlugin; 21 22 25 public class JavaDocumentSetupParticipant implements IDocumentSetupParticipant { 26 27 public JavaDocumentSetupParticipant() { 28 } 29 30 33 public void setup(IDocument document) { 34 JavaTextTools tools= JavaPlugin.getDefault().getJavaTextTools(); 35 tools.setupJavaDocumentPartitioner(document, IJavaPartitions.JAVA_PARTITIONING); 36 } 37 } 38 | Popular Tags |