org.eclipse.emf.codegen.ecore.genmodel.impl
Class GenBaseImpl.EclipseUtil
java.lang.Object
org.eclipse.emf.codegen.ecore.genmodel.impl.GenBaseImpl.EclipseUtil
- Enclosing class:
- GenBaseImpl
- protected static class GenBaseImpl.EclipseUtil
- extends Object
|
Method Summary |
static InputStream |
createInputStream(String path)
|
static boolean |
exists(String path)
|
protected static IContainer |
findOrCreateContainer(GenBaseImpl genBase,
Monitor progressMonitor,
int style,
List pluginVariables,
IPath outputPath,
boolean forceStyle)
|
protected static IContainer |
findOrCreateContainer(GenBaseImpl genBase,
Monitor progressMonitor,
int style,
List pluginVariables,
String outputPath,
boolean forceStyle)
|
protected static boolean |
findOrCreateContainer(GenModel genModel,
Monitor progressMonitor,
int style,
List pluginVariables,
String output,
boolean forceStyle)
|
protected static String |
formatCode(String contents,
org.eclipse.jdt.core.formatter.CodeFormatter codeFormatter)
|
static String |
getEncoding(String path)
|
static boolean |
isReadOnly(String path)
|
static void |
setWriteable(String path)
|
static boolean |
validateEdit(String path,
Monitor progressMonitor)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenBaseImpl.EclipseUtil
protected GenBaseImpl.EclipseUtil()
formatCode
protected static String formatCode(String contents,
org.eclipse.jdt.core.formatter.CodeFormatter codeFormatter)
findOrCreateContainer
protected static IContainer findOrCreateContainer(GenBaseImpl genBase,
Monitor progressMonitor,
int style,
List pluginVariables,
String outputPath,
boolean forceStyle)
findOrCreateContainer
protected static IContainer findOrCreateContainer(GenBaseImpl genBase,
Monitor progressMonitor,
int style,
List pluginVariables,
IPath outputPath,
boolean forceStyle)
findOrCreateContainer
protected static boolean findOrCreateContainer(GenModel genModel,
Monitor progressMonitor,
int style,
List pluginVariables,
String output,
boolean forceStyle)
validateEdit
public static boolean validateEdit(String path,
Monitor progressMonitor)
exists
public static boolean exists(String path)
isReadOnly
public static boolean isReadOnly(String path)
createInputStream
public static InputStream createInputStream(String path)
throws Exception
- Throws:
Exception
getEncoding
public static String getEncoding(String path)
setWriteable
public static void setWriteable(String path)
throws Exception
- Throws:
Exception