Methods Summary |
---|
public java.awt.Window | createDialog(java.lang.String title, boolean modal)Used to create an (initially invisible) top level, Together owned window or dialog. A window created
using this entrypoint will behave correctly when Together is minimized/maximized via a system command.
|
public void | createMessage(java.lang.String strMessage)Use this method to put error messages into the Together/J
message window.
|
public void | createMessage(java.lang.String strFolder, java.lang.String strMessage, java.lang.String strPath, int line, int col, java.lang.String strType)Use these methods to put any messages into the Together/J
Message window. It is possible to navigate to edit panel from message window,
if url is path to java-file.
|
public void | createMessage(java.lang.String strFolder, java.lang.String strMessage, java.lang.String strType)
|
public boolean | customize(java.lang.Object customizableObject, java.lang.String strTitle)
|
public boolean | customize(java.lang.Object customizableObject, java.lang.String strTitle, java.lang.String strHelpFile)
|
public void | customize(java.lang.Object customizableObject)Use these methods (in overloaded forms) when you wish to customize
some JavaBean property for your script or some other object.
When you call customize() method, Together/J displays a panel
with the properties of object being customized
and those properties should meet the standard JavaBeans name convention.
You can use properties of standard types and of the
java.io.File type.
The first form of this method invokes the default customization dialog.
The second form of this method allows to control the dialog title and
user's response (due to the return value).
The third form of this method allows in addition to control
the Help support for the dialog:
Pass the HTML help file name, which will display on clicking the Help button.
You can use the Create Script master for examples
of customization and for automatic adding properties
to a script.
|
public java.util.Properties | getHostProperties()Use this method to access the system properties,
Together/J properties, or properties of your script.
The Properties this method returns are collected
from the system properties and properties from the
host.properties and together.properties files.
You can add your own properties and modify existing ones -
they will be saved for future use.
For example:
...
Properties props = apiManager.getHostProperties();
props.put("some_script.some_property", "some_value");
...
|
public java.lang.String | getIdeRootDir()Use this method for getting the full path to the Together/J
installation directory.
|
public java.lang.String | getOutputDirectory(java.lang.String strExtension)Use this method for getting the full path of the output directory.
Usually the implementation launches the standard "Save As" or
"Choose directory" dialog.
(Compare with getOutputStream(), which returns the full
path to file)
|
public java.lang.String | getOutputStream(java.lang.String strExtension)Use this method for getting the full path of the output document.
Usually the implementation launches the standard "Save As" dialog.
(Compare with getOutputDirectory(), which returns the full
path to directory).
|
public oisoft.togetherx.scriptapi.UML.UMLModel | getUMLModel()Use this method when you begin to work with a UML package
to access its elements and properties.
|
public void | openExternalViewer(java.lang.String strOutputName)Use this method when you wish to open the output
document in the associated application.
The document should be previously created. The implementation
launches the application associated with the file extension
using oistart.
|
public boolean | warningMessage(java.lang.String message)
|