public class IdeFacade extends MBeanSupport implements IdeFacadeMBean
Constructor and Description |
---|
IdeFacade() |
Modifier and Type | Method and Description |
---|---|
String |
findClassAbsoluteFileName(String fileName,
String className,
List<String> sourceRoots)
Given a class name and a file name, try to find the absolute file name of the
source file on the users machine or null if it cannot be found
|
protected String |
findInChildFolders(File dir,
String fileName) |
protected String |
findInFolder(File dir,
String relativeName) |
protected String |
findInSourceFolders(File baseDir,
String fileName)
Searches in this directory and in the source directories in src/main/* and src/test/* for the given file name path
|
File |
getBaseDir()
Returns the base directory of the current project
|
protected String |
getDefaultObjectName() |
static IdeFacade |
getSingleton() |
String |
ideaOpen(String fileName)
Open an absolute file name in IDEA
|
String |
ideaOpenAndNavigate(String fileName,
int line,
int column)
Uses Intellij's XmlRPC mechanism to open and navigate to a file
|
protected String |
ideaXmlRpc(String xml) |
void |
init() |
void |
setBaseDir(File baseDir) |
destroy, getMBeanServer, getObjectName, setMBeanServer, setObjectName
public static IdeFacade getSingleton()
public void init() throws Exception
init
in class MBeanSupport
Exception
protected String getDefaultObjectName()
getDefaultObjectName
in class MBeanSupport
public File getBaseDir()
public void setBaseDir(File baseDir)
public String findClassAbsoluteFileName(String fileName, String className, List<String> sourceRoots)
findClassAbsoluteFileName
in interface IdeFacadeMBean
protected String findInSourceFolders(File baseDir, String fileName)
public String ideaOpenAndNavigate(String fileName, int line, int column) throws Exception
ideaOpenAndNavigate
in interface IdeFacadeMBean
Exception
public String ideaOpen(String fileName) throws Exception
IdeFacadeMBean
ideaOpen
in interface IdeFacadeMBean
Exception
protected String ideaXmlRpc(String xml) throws IOException
IOException
Copyright © 2018 JBoss by Red Hat. All rights reserved.