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