public class ModelScriptMenu
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ModelScriptMenu.Type
Describes whether this menu is for models or scripts.
|
Constructor and Description |
---|
ModelScriptMenu(ModelScriptMenu.Type type,
javax.swing.JMenu menu,
ModelScriptActionListener actionListener,
RootModelManager rootModelManager) |
Modifier and Type | Method and Description |
---|---|
void |
createDefaultFiles() |
java.io.File |
getDefaultMenuFile() |
MenuEntry |
getMenuTree() |
java.io.File |
getOrCreateDefaultFile() |
ModelScriptMenu.Type |
getType() |
boolean |
isSimple() |
void |
read(java.io.File file) |
void |
readSimpleMenu(java.io.File file) |
void |
setMenuTree(MenuEntry tree) |
void |
updatePackageEntries() |
void |
write(java.io.File file) |
public ModelScriptMenu(ModelScriptMenu.Type type, javax.swing.JMenu menu, ModelScriptActionListener actionListener, RootModelManager rootModelManager)
public ModelScriptMenu.Type getType()
public MenuEntry getMenuTree()
public boolean isSimple()
public void setMenuTree(MenuEntry tree)
public void updatePackageEntries()
public void write(java.io.File file)
public void readSimpleMenu(java.io.File file) throws java.io.IOException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
public void read(java.io.File file) throws java.io.IOException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
public java.io.File getDefaultMenuFile()
public java.io.File getOrCreateDefaultFile()
public void createDefaultFiles()