|
TPTP 4.5.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.tptp.platform.iac.administrator.internal.common.AdminUtil
public class AdminUtil
Contains common util functions used in this plugin
| Constructor Summary | |
|---|---|
AdminUtil()
|
|
| Method Summary | |
|---|---|
static org.eclipse.swt.layout.GridData |
createFill()
Creates a grid data object that occupies vertical and horizontal space. |
static org.eclipse.swt.layout.GridData |
createHorizontalFill()
Creates a grid data object that occupies horizontal space. |
static org.eclipse.swt.layout.GridData |
createVerticalFill()
Creates a grid data object that occupies vertical space. |
static void |
generateConfigFile()
Used to generate IAC's configuration file based on the options selected in the preference page |
static java.lang.String |
getAttributeOfElement(org.w3c.dom.Document document,
java.lang.String elementName,
java.lang.String attributeName,
int index)
Used to get the value of an attribute of an element in the config file. |
static java.lang.String |
getAttributeWithMoreDetails(org.w3c.dom.Document document,
java.lang.String elementName,
java.lang.String attributeToCheck,
java.lang.String attributeValueToCheck,
java.lang.String attributeToGet)
Returns the value of the attribute specified in 'attributeToGet' that meets the following criterias: It's specified in the element called 'elementName' that contains the attribute 'attributeToCheck' with value 'attributeValueToCheck' In other words, it returns what's specified with the question mark below: <elementName attributeToCheck=attributeValueToCheck attributeToGet=? |
static org.eclipse.jface.dialogs.MessageDialog |
getConfirmationDialog(org.eclipse.swt.widgets.Shell parentShell,
java.lang.String title,
java.lang.String message)
Returns a confirmation dialog with the given parameters |
static org.w3c.dom.Element |
getElement(org.w3c.dom.Document document,
java.lang.String elementName,
int index)
Returns the element with the given specifications |
static java.lang.String |
getElementValue(org.w3c.dom.Document document,
java.lang.String elementName,
int index)
Return value of the first child of the element with the given specifications |
static java.lang.String |
getIACBinFolder()
|
static java.lang.String |
getIACConfigFile()
|
static java.lang.String |
getIACExecutable()
|
static java.lang.String |
getIACHome()
|
static java.io.File[] |
getIACPlugins()
|
static java.lang.String |
getJVMExecutable()
|
static java.lang.String |
getJVMExecutable(java.lang.String jvmLocation)
|
static java.lang.String |
getJvmtiNativePath()
|
static java.lang.String |
getPluginsFolder()
|
static java.lang.String |
getShutdownCommand()
|
static boolean |
isConfigEmpty()
|
static boolean |
isConfigurationValid()
This function checks to see whether the main config file and the config file for the execution framework are valid. |
static boolean |
isIACConfigFileWritable()
|
static boolean |
isSupportedPlatform()
|
static void |
openErrorDialog(java.lang.String title,
java.lang.String message)
|
static org.w3c.dom.Document |
parseFile(java.lang.String fileName)
Provided for backward compatibility |
static org.w3c.dom.Document |
parseFile(java.lang.String fileName,
boolean validation)
Used to parse the given XML file. |
static boolean |
validString(java.lang.String stringToCheck)
True if stringToCheck is not NULL or empty; false otherwise |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AdminUtil()
| Method Detail |
|---|
public static boolean validString(java.lang.String stringToCheck)
public static org.w3c.dom.Document parseFile(java.lang.String fileName,
boolean validation)
fileName - The absolute path of the XML file to parsevalidation - DTD validation. set to true if DTD validation is required; false otherwise
public static org.w3c.dom.Document parseFile(java.lang.String fileName)
fileName -
public static java.lang.String getAttributeWithMoreDetails(org.w3c.dom.Document document,
java.lang.String elementName,
java.lang.String attributeToCheck,
java.lang.String attributeValueToCheck,
java.lang.String attributeToGet)
public static java.lang.String getAttributeOfElement(org.w3c.dom.Document document,
java.lang.String elementName,
java.lang.String attributeName,
int index)
document - Document to look inelementName - The name of the element the attribute belongs toattributeName - The attribute we're interested inindex - Indicates which element we should look into, incase there are multiple elements with the name specified in elementName
public static java.lang.String getElementValue(org.w3c.dom.Document document,
java.lang.String elementName,
int index)
document - Document to look inelementName - Name of the elementindex - The index of the element. In case there are multiple elements with the given name in the document
public static org.w3c.dom.Element getElement(org.w3c.dom.Document document,
java.lang.String elementName,
int index)
document - Document to look inelementName - Name of the elementindex - The index of the element. In case there are multiple elements with the given name in the document
public static org.eclipse.swt.layout.GridData createFill()
public static org.eclipse.swt.layout.GridData createHorizontalFill()
public static org.eclipse.swt.layout.GridData createVerticalFill()
public static java.io.File[] getIACPlugins()
java.io.IOExceptionpublic static void generateConfigFile()
public static java.lang.String getIACHome()
public static java.lang.String getPluginsFolder()
public static boolean isConfigEmpty()
public static java.lang.String getJVMExecutable()
public static java.lang.String getJVMExecutable(java.lang.String jvmLocation)
public static java.lang.String getIACExecutable()
public static java.lang.String getShutdownCommand()
public static java.lang.String getIACConfigFile()
public static boolean isIACConfigFileWritable()
public static java.lang.String getIACBinFolder()
public static org.eclipse.jface.dialogs.MessageDialog getConfirmationDialog(org.eclipse.swt.widgets.Shell parentShell,
java.lang.String title,
java.lang.String message)
public static java.lang.String getJvmtiNativePath()
public static boolean isConfigurationValid()
public static boolean isSupportedPlatform()
public static void openErrorDialog(java.lang.String title,
java.lang.String message)
|
TPTP 4.5.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||