public class EclipseIntegration extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
activateEclipse()
Activates Eclipse.
|
static boolean |
addListener(Runnable r)
Adds a listener to connection state changes.
|
static boolean |
addProject(String dir)
Adds the project to Eclipse workspace.
|
static boolean |
cleanCurrentProject()
Cleans the current project in Eclipse.
|
static boolean |
doEclispeSaveAll(Consumer<String> saveAllCallback)
Requests Eclipse to save all.
|
static boolean |
doUpdateJVMConfig()
Call to update the JVM config for Eclipse.
|
static String |
getWorkspaceRootPath()
Gets the path to the workspace root.
|
static boolean |
handleConnection(AdminCommandProcessor acp)
Handles a new Phantom Editor connection.
|
static boolean |
isConnected()
Checks if connected.
|
void |
logInfo(String txt)
Logs an session pooling informational event in the event log.
|
void |
logWarning(String txt)
Logs an session pooling warning event in the event log.
|
static void |
onContinueLaunchClient(EclipseProject project,
String mode,
String errorMessage)
Continues launching Client in Eclipse.
|
static boolean |
openFile(String projectRelativeName)
Request open of a file in Eclipse.
|
static boolean |
processObjectSource(boolean isJava,
String name)
Request edit/create of REXX or Java source.
|
static boolean |
refreshEclipseFiles(Collection<File> files,
HashSet<File> changedDirectories)
Updates the files in Eclipse.
|
static void |
removeListener(Runnable r)
Removes a listener to connection state changes.
|
static void |
selectPanel(String param)
Select a panel/control in Eclipse.
|
static boolean |
sendLogToEclipse(int type,
String msg)
Calls from ConsoleOutput goes here, to be copied to Eclipse too.
|
static boolean |
showMessageBox(String title,
String msg,
int severity)
Show an Eclipse message box, severity 0=info, 1=warning, 2=error.
|
static boolean |
terminateClients()
Terminates all Eclipse-launched clients.
|
void |
trace(String txt)
Adds a trace output for session pooling if client verbose trace is turned on.
|
static boolean |
updateColors(Color[] colors)
Updates the console colors.
|
public static boolean handleConnection(AdminCommandProcessor acp)
No errors are returned, because this class will log the appropriate events.
public static boolean isConnected()
public static boolean addListener(Runnable r)
r
- Runnable that is called when state changes, null for none.public static void removeListener(Runnable r)
r
- Runnable that is called when state changes.public static boolean doEclispeSaveAll(Consumer<String> saveAllCallback)
saveAllCallback
- Callback when completed.public void trace(String txt)
public void logWarning(String txt)
public void logInfo(String txt)
public static boolean sendLogToEclipse(int type, String msg)
public static boolean updateColors(Color[] colors)
public static boolean cleanCurrentProject()
public static boolean processObjectSource(boolean isJava, String name)
public static boolean openFile(String projectRelativeName)
public static boolean showMessageBox(String title, String msg, int severity)
public static boolean terminateClients()
public static boolean refreshEclipseFiles(Collection<File> files, HashSet<File> changedDirectories)
public static String getWorkspaceRootPath()
public static boolean addProject(String dir)
public static boolean activateEclipse()
public static boolean doUpdateJVMConfig()
public static void selectPanel(String param)
public static void onContinueLaunchClient(EclipseProject project, String mode, String errorMessage)
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.