@Override public void onContextInitialize(final IWorkbenchApplicationContext context) { this.context = context; final ActionFactory actionFactory = new ActionFactory(); final IAction addFolderAction = actionFactory.createAddFolderAction(context); // create menus context.getPopupMenu().addAction(addFolderAction); final List<IComponentNode> componentList3 = new LinkedList<IComponentNode>(); componentList3.add(new ImportantComponentTreeNodeDemo1("IMPORTANT1", "Important")); final FolderNodeDemo folderNode2 = new FolderNodeDemo("MISC", "Misc", componentList3); context.add(folderNode2); }