01: /*******************************************************************************
02: * Copyright (c) 2000, 2007 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.pde.internal.core.text;
11:
12: import java.io.Serializable;
13:
14: public interface IDocumentTextNode extends IDocumentRange,
15: Serializable, IDocumentXMLNode {
16:
17: public static final String F_PROPERTY_CHANGE_TYPE_PCDATA = "type_pcdata"; //$NON-NLS-1$
18:
19: // Used by text edit operations
20: void setEnclosingElement(IDocumentElementNode node);
21:
22: IDocumentElementNode getEnclosingElement();
23:
24: void setText(String text);
25:
26: String getText();
27:
28: void setOffset(int offset);
29:
30: void setLength(int length);
31:
32: // Not used by text edit operations
33: public void reconnect(IDocumentElementNode parent);
34:
35: // Not used by text edit operations
36: public String write();
37:
38: }
|