public class Environment
extends java.lang.Object
| Red (tfeng) |
| Red (tfeng) |
| Constructor and Description |
|---|
Environment() |
| Modifier and Type | Method and Description |
|---|---|
static void |
createFolders(org.eclipse.core.resources.IContainer container)
Create the folder represented by the container object, and all its
parent folders if necessary.
|
static org.eclipse.core.resources.IContainer |
getAffectedFolder()
Get the folder where all the transformed classes are placed.
|
static java.lang.String[] |
getClassPaths(org.eclipse.swt.widgets.Shell shell)
Get the default class paths.
|
static org.eclipse.core.resources.IContainer |
getContainer(org.eclipse.core.runtime.IPath path)
Given a path, return its container representation in Eclipse.
|
static java.lang.String |
getPtolemyHome()
Get the Ptolemy home.
|
static java.lang.String |
getPtolemyHome(org.eclipse.swt.widgets.Shell shell)
Get the Ptolemy home.
|
static org.eclipse.core.runtime.IPath |
getRefactoredFile(java.lang.String source,
java.lang.String packageName)
Given the source name of a Java file and its package name, return the
path to the transformed file with backtracking prefix added to it.
|
static java.lang.String |
getRefactoringRoot()
Get the root for the source transformer.
|
static java.lang.String |
getRefactoringRoot(org.eclipse.swt.widgets.Shell shell)
Get the root for the source transformer.
|
static java.lang.String |
getSourceList()
Get the file name of the refactoring source list.
|
static java.lang.String |
getSourceList(org.eclipse.swt.widgets.Shell shell)
Get the file name of the refactoring source list.
|
static boolean |
setupTransformerArguments(org.eclipse.swt.widgets.Shell shell,
boolean config,
boolean alwaysOverwrite)
Set up the transformation arguments according to the preferences set in
the preference page.
|
public static void createFolders(org.eclipse.core.resources.IContainer container)
throws org.eclipse.core.runtime.CoreException
container - The container representing the folder to be created.org.eclipse.core.runtime.CoreException - If the folder creation fails.public static org.eclipse.core.resources.IContainer getAffectedFolder()
public static java.lang.String[] getClassPaths(org.eclipse.swt.widgets.Shell shell)
shell - The shell object.public static org.eclipse.core.resources.IContainer getContainer(org.eclipse.core.runtime.IPath path)
path - The path.public static java.lang.String getPtolemyHome()
public static java.lang.String getPtolemyHome(org.eclipse.swt.widgets.Shell shell)
shell - The shell.public static org.eclipse.core.runtime.IPath getRefactoredFile(java.lang.String source,
java.lang.String packageName)
source - The Java source file.packageName - The package name.public static java.lang.String getRefactoringRoot()
public static java.lang.String getRefactoringRoot(org.eclipse.swt.widgets.Shell shell)
shell - The shell.public static java.lang.String getSourceList()
public static java.lang.String getSourceList(org.eclipse.swt.widgets.Shell shell)
shell - The shell.public static boolean setupTransformerArguments(org.eclipse.swt.widgets.Shell shell,
boolean config,
boolean alwaysOverwrite)
shell - The shell.config - Whether to generate MoML configuration.alwaysOverwrite - Whether to overwrite existing files.