| /******************************************************************************* |
| * Copyright (c) 2004 IBM Corporation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * IBM Corporation - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.jst.jsp.core.internal.document; |
| |
| import org.eclipse.core.filebuffers.IDocumentSetupParticipant; |
| import org.eclipse.jface.text.IDocument; |
| import org.eclipse.jface.text.IDocumentPartitioner; |
| import org.eclipse.jst.jsp.core.internal.text.StructuredTextPartitionerForJSP; |
| |
| /** |
| * @deprecated - not used and will be removed in WTP 1.0M4 |
| */ |
| |
| public class SetupParticipantForJSP implements IDocumentSetupParticipant { |
| |
| /* |
| * (non-Javadoc) |
| * |
| * @see org.eclipse.core.filebuffers.IDocumentSetupParticipant#setup(org.eclipse.jface.text.IDocument) |
| */ |
| public void setup(IDocument document) { |
| if (document != null) { |
| IDocumentPartitioner partitioner = new StructuredTextPartitionerForJSP(); |
| document.setDocumentPartitioner(partitioner); |
| partitioner.connect(document); |
| |
| // setup empty model here? coordinated via model manager? |
| |
| } |
| } |
| |
| } |