org.eclipse.ocl.examples.debug.vm.utils
Class MiscUtil

java.lang.Object
  extended by org.eclipse.ocl.examples.debug.vm.utils.MiscUtil

public class MiscUtil
extends java.lang.Object

Author:
pkobiakov

Method Summary
static int getLineNumber(java.lang.CharSequence data, int pos)
           
static org.eclipse.core.runtime.IStatus makeErrorStatus(java.lang.Exception e)
           
static org.eclipse.core.runtime.IStatus makeErrorStatus(java.lang.String message)
           
static org.eclipse.core.runtime.IStatus makeErrorStatus(java.lang.String message, java.lang.Exception e)
           
static java.lang.String readAndClose(java.io.Reader reader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

makeErrorStatus

public static org.eclipse.core.runtime.IStatus makeErrorStatus(java.lang.Exception e)

makeErrorStatus

public static org.eclipse.core.runtime.IStatus makeErrorStatus(java.lang.String message,
                                                               java.lang.Exception e)

makeErrorStatus

public static org.eclipse.core.runtime.IStatus makeErrorStatus(java.lang.String message)

readAndClose

public static java.lang.String readAndClose(java.io.Reader reader)
                                     throws java.io.IOException
Throws:
java.io.IOException

getLineNumber

public static int getLineNumber(java.lang.CharSequence data,
                                int pos)