Can I use the tab functionality of IDEA ?
hi there,
i want to use the tabs that IDEA have in its dialogs like TODO, FIND, ...
did anyone know if this is possible and what the name of the tabbedpane is?
a short sample usage would be great as well.
thanks a lot, strug
请先登录再写评论。
Hello leif,
Almost all of the IDEA UI components assume the presence of the entire IDEA
framework around them and are not designed to be used in standalone applications.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
hi dmitry,
sorry, but you got me wrong. i do not want to use it standalone. because we are in the plugin development forum, i thought it was clear that i want to use these ui components inside my IDEA plugin.
i'm totally new to the plugin development and swing programming. i want to use as much IDEA components as possible.
best regards, leif
Use the tool window ContentManager:
Content content = ContentFactory.SERVICE.getInstance().createContent(component, title, true);
ToolWindow window = ToolWindowManager.getInstance(project).getToolWindow(WINDOW_ID);
ContentManager manager = window.getContentManager();
// adds tab
manager.addContent(content);