PDA

View Full Version : Some basic question in modelmanager costumizing


sc3nic
04-16-2008, 01:07 AM
Hi,
i'm a newbie in modelmanager customizing.
I have a simple question: :D

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? :confused:

<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 :(

sc3nic
04-17-2008, 04:44 AM
someone out there? :confused:

mgb
04-23-2008, 06:27 AM
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?