public class EclipseEnvironmentBridge extends Object implements EnvironmentBridge
EnvironmentBridge.EnvironmentBridge.PreferenceEvent, EnvironmentBridge.PreferenceListener, EnvironmentBridge.SelectionHandler| Constructor and Description |
|---|
EclipseEnvironmentBridge()
Initialise for non
IJavaProject specific bridging. |
EclipseEnvironmentBridge(org.eclipse.jdt.core.IJavaProject javaProject)
Instantiate for
IJavaProject specific bridging. |
| Modifier and Type | Method and Description |
|---|---|
void |
addPreferenceListener(EnvironmentBridge.PreferenceListener listener) |
void |
dispose()
Disposes of resources.
|
ClassLoader |
getClassLoader() |
net.officefloor.compile.OfficeFloorCompiler |
getOfficeFloorCompiler() |
String |
getPreference(String preferenceId) |
void |
init(org.eclipse.swt.widgets.Shell parentShell)
Initialise.
|
boolean |
isClassOnClassPath(String className) |
boolean |
isResourceOnClassPath(String resourcePath) |
boolean |
isSuperType(String className,
String superTypeName) |
<T> Class<? extends T> |
loadClass(String className,
Class<T> superType) |
void |
resetPreference(String preferenceId) |
void |
selectClass(String searchText,
String superTypeName,
EnvironmentBridge.SelectionHandler handler) |
void |
selectClassPathResource(String searchText,
EnvironmentBridge.SelectionHandler handler) |
void |
setPreference(String preferenceId,
String value) |
public EclipseEnvironmentBridge(org.eclipse.jdt.core.IJavaProject javaProject)
IJavaProject specific bridging.javaProject - IJavaProject.public EclipseEnvironmentBridge()
IJavaProject specific bridging.public void init(org.eclipse.swt.widgets.Shell parentShell)
parentShell - Parent Shell.public void dispose()
throws IOException
IOException - If fails to dispose.public boolean isClassOnClassPath(String className) throws Exception
isClassOnClassPath in interface EnvironmentBridgeExceptionpublic boolean isSuperType(String className, String superTypeName) throws Exception
isSuperType in interface EnvironmentBridgeExceptionpublic void selectClass(String searchText, String superTypeName, EnvironmentBridge.SelectionHandler handler)
selectClass in interface EnvironmentBridgepublic <T> Class<? extends T> loadClass(String className, Class<T> superType) throws Exception
loadClass in interface EnvironmentBridgeExceptionpublic ClassLoader getClassLoader() throws Exception
getClassLoader in interface EnvironmentBridgeExceptionpublic net.officefloor.compile.OfficeFloorCompiler getOfficeFloorCompiler()
throws Exception
getOfficeFloorCompiler in interface EnvironmentBridgeExceptionpublic boolean isResourceOnClassPath(String resourcePath) throws Exception
isResourceOnClassPath in interface EnvironmentBridgeExceptionpublic void selectClassPathResource(String searchText, EnvironmentBridge.SelectionHandler handler)
selectClassPathResource in interface EnvironmentBridgepublic String getPreference(String preferenceId)
getPreference in interface EnvironmentBridgepublic void setPreference(String preferenceId, String value)
setPreference in interface EnvironmentBridgepublic void resetPreference(String preferenceId)
resetPreference in interface EnvironmentBridgepublic void addPreferenceListener(EnvironmentBridge.PreferenceListener listener)
addPreferenceListener in interface EnvironmentBridgeCopyright © 2005–2020 OfficeFloor. All rights reserved.