|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
#1
|
|||
|
|||
A basic question in modelmanager customizing
Hi,
i'm a newbie in modelmanager customizing. I have a simple question: How can i create a new menue item in the "File" menue of modelmanager? For example such as a logout item. I've found the java class com.osm.datamgmt.menubar.FileMenu.java... So i createt a new java class, which extends the FileMenu.java: com.hk.datamgmt.menubar.HkFileMenu.java In this class i overwrite the method "createDefalutMenuItems()" like this: public void createDefaultMenuItems(WindowMenuListener wl) throws WMException { super.createDefaultMenuItems(wl); addCloseMenu(wl); } The Constructor of HkFileMenu.java looks like this: public HkFileMenu(WindowMenuListener wl, SelectionPanel selectPane) throws WMException{ super(wl, selectPane); } How can i configure the custom.xml of modelmanager, that mm use the HkFileMenu.java instead of FileMenu.java? <Class> <Name>FileMenu</Name> <BusinessObjectClass>com.hk.datamgmt.menubar.HkFileMenu</BusinessObjectClass> </Class> That dosen't work^^ :-( Did i made some erros in the java code? I know that my java code actually just add a second exit menu item, i think... Thanks a lot! Sry for bad english Last edited by sc3nic; 04-17-2008 at 01:11 AM. |
#2
|
|||
|
|||
Re: Some basic question in modelmanager costumizing
someone out there?
|
#3
|
|||
|
|||
Re: Some basic question in modelmanager costumizing
The Action menus in Model Manager were designer to be extended. However the implementation was not designed for easy extension of the ManagerPanel itself or the other menus on the ManagerPanel.
The File menu already has an Exit. How would this differ from the Logout you want to implement? |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | Rate This Thread |
|
|