use of com.intellij.openapi.actionSystem.Constraints in project intellij-plugins by JetBrains.
the class JabberIdeaUI method initPerProject.
public void initPerProject(MutablePicoContainer projectLevelContainer) {
StatusToolbar statusToolbar = ((StatusToolbar) projectLevelContainer.getComponentInstanceOfType(StatusToolbar.class));
if (statusToolbar != null) {
statusToolbar.addToolbarCommand(JabberConnectionCommand.class);
}
if (!ourInitialized && ApplicationManager.getApplication() != null && !Pico.isUnitTest()) {
DefaultActionGroup group = ((DefaultActionGroup) ActionManager.getInstance().getAction("IDEtalk.OptionsGroup"));
if (group != null) {
group.add(new EditJabberSettingsAction(), new Constraints(Anchor.FIRST, ""));
}
ourInitialized = true;
}
}
Aggregations