file Menu Listener

5 years 5 months ago - 5 years 5 months ago #3318 by ua138
Hi everyone.
I have the intention to create a new tab when I click on an element from the menu. I have been reading the documentation , but I do not know how can I actually implement this, or what I am doing wrong.

How can I listen when I click on an element from the menu?



How can I create a new tabs in the editor?



This is what I do:

1) I create a new java class:

File Attachment:

File Name: MenuListener.zip
File Size:1 KB



2) In the method init() from the class <Name>Module.java:
@Override
	public void init() {
		// Add the module initialization code
	    super.init();
	    
	    INavigationService navigationService = Modelio.getInstance().getNavigationService();
	    MenuListener listener = new MenuListener();
	    navigationService.addNavigationListener(listener);
	    
	    
	}

What I am doing wrong? What I am not understanding well?
Attachments:

Please Log in or Create an account to join the conversation.

Moderators: tmachmaab
Time to create page: 0.259 seconds
^ Back to Top