Bug 41849 [typing] LinkedPositionManager sets illegal positions
Eclipse: 200308201005 on Mac OS X Jaguar Files I'm editing and saving are not being saved to disk. There are no errors in the logs. It appears that this is an editor problem, because the compiler compiles what is on disk. Chang
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/link/LinkedPositionManager.java
public int compare(Object object0, Object object1) {
			Position position0= (Position) object0;
			Position position1= (Position) object1;
			
			return position0.getOffset() - position1.getOffset();
		}
	}
	private static final String LINKED_POSITION_PREFIX= "LinkedPositionManager.linked.position"; 
	private static final Comparator fgPositionComparator= new PositionComparator();
	private static final Map fgActiveManagers= new HashMap();
	private static int fgCounter= 0;
		
	private IDocument fDocument;
	private ILinkedPositionListener fListener;
	private String fPositionCategoryName;
	/**
	 * Creates a <code>LinkedPositionManager</code> for a <code>IDocument</code>.
	 * 
	 * @param document the document to use with linked positions.
	 * @param canCoexist <code>true</code> if this manager can coexist with an already existing one
	 */
	public LinkedPositionManager(IDocument document, boolean canCoexist) {
		Assert.isNotNull(document);
		fDocument= document;
		fPositionCategoryName= LINKED_POSITION_PREFIX + (fgCounter++);
		install(canCoexist);
	}
	
	/**
	 * Creates a <code>LinkedPositionManager</code> for a <code>IDocument</code>.