CoCreate User Forum  

Go Back   CoCreate User Forum > Applications > Data Management

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 04-16-2008, 01:07 AM
sc3nic sc3nic is offline
Registered User
 
Join Date: Apr 2008
Location: Öflingen, Germany
Posts: 2
Unhappy 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.
Reply With Quote
  #2  
Old 04-17-2008, 04:44 AM
sc3nic sc3nic is offline
Registered User
 
Join Date: Apr 2008
Location: Öflingen, Germany
Posts: 2
Re: Some basic question in modelmanager costumizing

someone out there?
Reply With Quote
  #3  
Old 04-23-2008, 06:27 AM
mgb mgb is offline
Registered User
 
Join Date: Sep 2007
Posts: 82
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?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 01:05 AM.



Hosted by SureServer    Forums   Modeling FAQ   Macro Site   Vendor/Contractors   Software Resellers   CoCreate   Gallery   Home   Board Members   Regional User Groups  By-Laws  

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.