tracefw/tracecompiler/src/com.nokia.tracecompiler/src/com/nokia/tracecompiler/utils/DocumentAdapter.java
changeset 56 aa2539c91954
parent 54 a151135b0cf9
child 60 e54443a6878c
child 62 1c2bb2fc7c87
--- a/tracefw/tracecompiler/src/com.nokia.tracecompiler/src/com/nokia/tracecompiler/utils/DocumentAdapter.java	Wed Sep 29 17:45:35 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,130 +0,0 @@
-/*
-* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). 
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description:
-*
-* Adapter for document interface
-*
-*/
-package com.nokia.tracecompiler.utils;
-
-import com.nokia.tracecompiler.source.SourceDocumentInterface;
-import com.nokia.tracecompiler.source.SourceLocationInterface;
-import com.nokia.tracecompiler.source.SourceParserException;
-import com.nokia.tracecompiler.source.SourcePropertyProvider;
-
-/**
- * Adapter for document interface
- * 
- */
-public class DocumentAdapter implements SourceDocumentInterface {
-
-	/**
-	 * Document owner
-	 */
-	private Object owner;
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see com.nokia.tracecompiler.source.SourceDocumentInterface#
-	 *      addLocation(com.nokia.tracecompiler.source.SourceLocationInterface)
-	 */
-	public void addLocation(SourceLocationInterface location) {
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see com.nokia.tracecompiler.source.SourceDocumentInterface#get(int, int)
-	 */
-	public String get(int start, int length) throws SourceParserException {
-		return ""; //$NON-NLS-1$
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see com.nokia.tracecompiler.source.SourceDocumentInterface#getChar(int)
-	 */
-	public char getChar(int offset) throws SourceParserException {
-		return '\0';
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see com.nokia.tracecompiler.source.SourceDocumentInterface#getLength()
-	 */
-	public int getLength() {
-		return 0;
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see com.nokia.tracecompiler.source.SourceDocumentInterface#
-	 *      getLineOfOffset(int)
-	 */
-	public int getLineOfOffset(int offset) throws SourceParserException {
-		return -1;
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see com.nokia.tracecompiler.source.SourceDocumentInterface#getOwner()
-	 */
-	public Object getOwner() {
-		return owner;
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see com.nokia.tracecompiler.source.SourceDocumentInterface#
-	 *      removeLocation(com.nokia.tracecompiler.source.SourceLocationInterface)
-	 */
-	public void removeLocation(SourceLocationInterface location) {
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see com.nokia.tracecompiler.source.SourceDocumentInterface#replace(int,
-	 *      int, java.lang.String)
-	 */
-	public void replace(int offset, int length, String newText)
-			throws SourceParserException {
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see com.nokia.tracecompiler.source.SourceDocumentInterface#
-	 *      setOwner(java.lang.Object)
-	 */
-	public void setOwner(Object owner) {
-		this.owner = owner;
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see com.nokia.tracecompiler.source.SourceDocumentInterface#getPropertyProvider()
-	 */
-	public SourcePropertyProvider getPropertyProvider() {
-		return null;
-	}
-
-}