Search in sources :

Example 1 with Constraints

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;
    }
}
Also used : StatusToolbar(jetbrains.communicator.ide.StatusToolbar) Constraints(com.intellij.openapi.actionSystem.Constraints) DefaultActionGroup(com.intellij.openapi.actionSystem.DefaultActionGroup)

Aggregations

Constraints (com.intellij.openapi.actionSystem.Constraints)1 DefaultActionGroup (com.intellij.openapi.actionSystem.DefaultActionGroup)1 StatusToolbar (jetbrains.communicator.ide.StatusToolbar)1