Toolbar and console
I am trying to add toolbar to my console:
console = builder.getConsole();
AnAction action = new AnAction("connect","connect to Server", AllIcons.ToolbarDecorator.Import) {
@Override
public void actionPerformed(AnActionEvent anActionEvent) {
}
};
((ConsoleViewImpl) console).addCustomConsoleAction(action);
ContentFactory contentFactory = contentManager.getFactory();
Content content = contentFactory.createContent(console.getComponent(), tabName, true);
contentManager.addContent(content);
contentManager.setSelectedContent(content);
((ConsoleViewImpl) console).createConsoleActions();
But its not appear and no errors.
Can anyone help me?
Please sign in to leave a comment.