Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » [NEON] AbstractBookMarkMenu
[NEON] AbstractBookMarkMenu [message #1750950] Mon, 02 January 2017 16:04 Go to next message
Benjamin Schulte is currently offline Benjamin SchulteFriend
Messages: 34
Registered: December 2016
Member
Hello,

I just found the nice AbstractBookMarkMenu and wanted to use it in my desktop. However, added bookmarks where not displayed with a label. I debugged it and found out that the execInitAction in the class ActivateBookmarkMenu is not called. When I change the method addBookmarkTreeInternal so it calls initAction() explicitely everything is working well.

		  private void addBookmarkTreeInternal(BookmarkFolder folder, List<IMenu> actionList) {
			   ...
			    for (Bookmark b : folder.getBookmarks()) {
			    	
			      ActivateBookmarkMenu activateBookmarkMenu = new ActivateBookmarkMenu(b);
--->			      activateBookmarkMenu.initAction();
			      
				actionList.add(activateBookmarkMenu);
			    }
			  }


Did I find a bug or do I need to change something else to get this working without overriding the methods?
Re: [NEON] AbstractBookMarkMenu [message #1750973 is a reply to message #1750950] Tue, 03 January 2017 09:53 Go to previous messageGo to next message
Benjamin Schulte is currently offline Benjamin SchulteFriend
Messages: 34
Registered: December 2016
Member
I spend some more time on the problem. The label texts are overwritten by the getConfiguredText method from AbstractAction class. Overriding this methods in AbstractBookMarkMenu and returning the bookmark text will also fix the problem.
Re: [NEON] AbstractBookMarkMenu [message #1751061 is a reply to message #1750973] Wed, 04 January 2017 09:03 Go to previous message
Benjamin Schulte is currently offline Benjamin SchulteFriend
Messages: 34
Registered: December 2016
Member
I have just seen there is a new version 6.0.200 where this problem is fixed.
Previous Topic:[NEON] Setting output log level
Next Topic:[neon] Problems migrating ITableColumnFilterManager to TableUserFilterManager
Goto Forum:
  


Current Time: Thu Mar 28 09:48:37 GMT 2024

Powered by FUDForum. Page generated in 0.02417 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top