1 11 package org.eclipse.jdt.internal.debug.ui.snippeteditor; 12 13 import org.eclipse.core.filebuffers.IDocumentSetupParticipant; 14 import org.eclipse.jdt.internal.debug.ui.JDIDebugUIPlugin; 15 import org.eclipse.jdt.ui.text.IJavaPartitions; 16 import org.eclipse.jdt.ui.text.JavaTextTools; 17 import org.eclipse.jface.text.IDocument; 18 19 22 public class SnippetDocumentSetupParticipant implements IDocumentSetupParticipant { 23 24 public SnippetDocumentSetupParticipant() { 25 } 26 27 30 public void setup(IDocument document) { 31 if (document != null) { 32 JavaTextTools tools= JDIDebugUIPlugin.getDefault().getJavaTextTools(); 33 tools.setupJavaDocumentPartitioner(document, IJavaPartitions.JAVA_PARTITIONING); 34 } 35 } 36 } 37 | Popular Tags |