Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 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: 31
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: 31
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: 31
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: Mon Oct 23 11:56:38 GMT 2017

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

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