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
try {
			fDocument.addPosition(fPositionCategoryName, new TypedPosition(offset, length, type));
		} catch (BadPositionCategoryException e) {
			JavaPlugin.log(e);
			Assert.isTrue(false);
		}
	}
	
	/**
	 * Adds a linked position to the manager. The current document content at the specified range is
	 * taken as the position type.
	 * <p> 
	 * There are the following constraints for linked positions:
	 * 
	 * <ul>
	 *   <li>Any two positions have spacing of at least one character.
	 *       This implies that two positions must not overlap.</li>
	 *
	 *   <li>The string at any position must not contain line delimiters.</li>
	 * </ul>
	 * 
	 * It is usually best to set the first item in <code>additionalChoices</code> to be equal with
	 * the text inserted at the current position.
	 * </p>
	 * 
	 * @param offset the offset of the position.
	 * @param length the length of the position.
	 * @param additionalChoices a number of additional choices to be displayed when selecting 
	 * a position of this <code>type</code>.
	 */