Bug 53742 [templates] add different ui for linked mode depending on usage
Linked mode should allow to be configured programmatically to have a different ui. This would allow the instance that is setting up linked mode to determine how it will look like. Use case is auto-closing: the box is too disturbing there, while it may be good for more complex templates.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
* 
		 * @return Offset in the document
		 */
		public int getOffset() {
			IJavaElement newElement= getElement();
			
			int offset= getRememberedOffset(newElement);
			
			if (offset != -1 && !containsOffset(newElement, offset) && (offset == 0 || !containsOffset(newElement, offset - 1)))
				return -1;
			
			return offset;
		}
		
		/**
		 * Return offset recomputed from stored visual properties.  
		 * 
		 * @param newElement Enclosing element
		 * @return Offset in the document
		 * @throws JavaModelException
		 * @throws BadLocationException
		 */
		public int getRememberedOffset(IJavaElement newElement) {
			try {
				if (newElement == null)
					return -1;
				
				IDocument document= getSourceViewer().getDocument();
				int newElementLine= -1;
				if (newElement instanceof IMember) {