|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.altair.hwm.toolkit.page.HWMModelInstance
com.altair.hwm.toolkit.page.HWMAppModelInstance
public class HWMAppModelInstance
Title: HWMAppModelInstance
Description: The model instance for the app mode of EPIC
Company: Altair Engineering, Inc.
Field Summary |
---|
Fields inherited from class com.altair.hwm.toolkit.page.HWMModelInstance |
---|
APPTYPE_APP, APPTYPE_TODO, PROP_MODEL_PRJNAME, PROP_MODEL_TPLNAME, PROP_TPLDISPLAY_NAME, VERSION_PRJ, VERSION_TPL |
Constructor Summary | |
---|---|
HWMAppModelInstance(java.awt.Component frameEPIC,
IHWMFrame iHWMFrame)
Constructor |
Method Summary | |
---|---|
java.lang.String |
GetInstanceName()
Will return the complete path of the prj file |
HWMMenuBarContainer |
GetMenuBar()
Returns the instance's menubar |
HWMToolBarContainer |
GetToolBar()
Returns the instance's toolbar |
void |
HandleSessionMessages(HWMClientComm hwmSession,
boolean bStart)
Request the framework to handle/stop handling the HWPM script messages received by the comm session. |
void |
InitMenuBar(HWMMenuBarContainer barMenu)
Customizes the menubar. |
void |
InitToolBar(HWMToolBarContainer barTool)
Adds a shortcut bar if required. |
boolean |
IsDesignMode()
This is invoked by a bean when it needs to know if its being used in design mode or app mode. |
boolean |
IsNewProject()
Return whether this model instance was created as a result of creating new or opening an existing prj |
void |
OnCloseInstance()
Close this instance |
java.lang.Object |
OnCommCommandReceived(HWMCommEvent hwmCommEvent)
A HWPM command has been received |
void |
OnMigrateProject(HWMAppModelInstance hwmOldPrjInst,
HWMAppModelInstance hwmOldDefPrjInst)
Migrates the old model instance to follow the new template. |
void |
OnNewInstance(java.io.File filePrj,
java.io.File fileTpl)
Create a new instance |
void |
OnOpenInstance(java.io.File filePrj,
java.io.File fileTpl,
boolean bForce)
Open an instance |
void |
OnSaveAsInstance(java.lang.String sSaveAsfilename)
Saves the insatnce. |
void |
OnSaveInstance()
Saves the insatnce. |
void |
OnSessionEnded(HWMCommEvent hwmCommEvent)
The session has ended |
java.lang.String |
SendPmgrTclCommand(java.lang.String strTCLCmd)
Invoke the required tcl command on PM tcl side |
void |
SetInteraction(HWPMInteraction pmInteraction)
Set the PM interaction |
void |
SetMenuToolBarHandler(HWMMenuToolBarHandler handlerMenuTool)
Sets a ref to the MenuToolBarHandler for customization. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HWMAppModelInstance(java.awt.Component frameEPIC, IHWMFrame iHWMFrame)
frameEPIC
- The main frame for EPICiHWMFrame
- The frame interface allows to create/close/save etc.
process instances with user exits.Method Detail |
---|
public void OnNewInstance(java.io.File filePrj, java.io.File fileTpl) throws java.lang.Exception
filePrj
- The file for which an instance should be createdfileTpl
- The template file that the prj should be based on
java.lang.Exception
public void OnOpenInstance(java.io.File filePrj, java.io.File fileTpl, boolean bForce) throws java.io.FileNotFoundException, java.lang.Exception
filePrj
- The file for which an instance should be openedfileTpl
- The template that the prj is based onbForce
- If true, the prj is opened using the def pmt even if the
pmt file name in prj does not match with the def pmt name
java.io.FileNotFoundException
- - Thrown when the pmt file name in the prj
does not match with the def pmt name
java.lang.Exception
public void OnCloseInstance() throws java.lang.Exception
OnCloseInstance
in class HWMModelInstance
java.lang.Exception
public void OnSaveInstance() throws java.lang.Exception
OnSaveInstance
in class HWMModelInstance
java.lang.Exception
public void OnMigrateProject(HWMAppModelInstance hwmOldPrjInst, HWMAppModelInstance hwmOldDefPrjInst) throws java.lang.Exception
hwmOldPrjInst
- -- The model instance representing the old projecthwmOldDefPrjInst
- -- The model instance representing the default
old project
java.lang.Exception
- - when any other error occurspublic java.lang.String GetInstanceName()
GetInstanceName
in class HWMModelInstance
String
- The complete path of the prj filepublic HWMMenuBarContainer GetMenuBar()
public HWMToolBarContainer GetToolBar()
public void InitMenuBar(HWMMenuBarContainer barMenu)
InitMenuBar
in class HWMModelInstance
barMenu
- public void InitToolBar(HWMToolBarContainer barTool)
InitToolBar
in class HWMModelInstance
barTool
- The toolbar container to customizepublic void SetMenuToolBarHandler(HWMMenuToolBarHandler handlerMenuTool)
SetMenuToolBarHandler
in class HWMModelInstance
handlerMenuTool
- public boolean IsNewProject()
public java.lang.String SendPmgrTclCommand(java.lang.String strTCLCmd) throws java.lang.Exception
SendPmgrTclCommand
in class HWMModelInstance
strTCLCmd
- The command to be executedbEncloseInCatch
- If true, enclose the command in a catch statement
java.lang.Exception
public void SetInteraction(HWPMInteraction pmInteraction)
SetInteraction
in class HWMModelInstance
pmInteraction
- The PM interaction classpublic boolean IsDesignMode()
IsDesignMode
in interface IHWMFrameWork
IsDesignMode
in class HWMModelInstance
public void HandleSessionMessages(HWMClientComm hwmSession, boolean bStart)
HandleSessionMessages
in interface IHWMFrameWork
HandleSessionMessages
in class HWMModelInstance
hwmSession
- The session for which the framework should start or
stop handling the incoming messagesbStart
- If true, it starts handling else stops handlingpublic java.lang.Object OnCommCommandReceived(HWMCommEvent hwmCommEvent) throws java.lang.Exception
OnCommCommandReceived
in interface HWMCommListener
hwmCommEvent
- The comm event
java.lang.Exception
public void OnSessionEnded(HWMCommEvent hwmCommEvent)
OnSessionEnded
in interface HWMCommListener
hwmCommEvent
- The comm eventpublic void OnSaveAsInstance(java.lang.String sSaveAsfilename) throws java.lang.Exception
HWMModelInstance
OnSaveAsInstance
in class HWMModelInstance
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |