Application programming interfaces for interaction with the Eclipse Java User Interface text support.

Linked Position Infrastructure

package org.eclipse.jface.text.link

The Linked Position Infrastructure lets one set up a mode in an editor in which regions in a document (or several documents) are linked, i.e. editions of one linked position will be reflected in the others.

Classes

Example

	IDocument doc1, doc2;
ITextViewer viewer1, viewer2;

/* create groups - this step is independent of the linked mode */
PositionGroup group1= new PositionGroup();
group1.addPosition(doc1, 3,4);
group1.addPosition(doc1, 7,8);

PositionGroup group2= newPositionGroup();
group2.addPosition(doc1, 15, 25);
group2.addPosition(doc2, 0, 10);

/* set up linked mode */
LinkedEnvironment env= new LinkedEnvironment();
env.addGroup(group1);
env.addGroup(group2);
env.forceInstall();

/* create UI */
LinkedUIControl ui= new LinkedUIControl(env, new ITextViewer[] { viewer1, viewer2 });
ui.enter();

Todo