jetbrains.buildServer.web.openapi.PositionConstraint Java Examples

The following examples show how to use jetbrains.buildServer.web.openapi.PositionConstraint. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SlackNotifierAdminPage.java    From tcSlackBuildNotifier with MIT License 6 votes vote down vote up
protected SlackNotifierAdminPage(@NotNull PagePlaces pagePlaces,
                                 @NotNull PluginDescriptor descriptor,
                                 @NotNull SBuildServer sBuildServer,
                                 @NotNull SlackNotificationMainSettings slackMainSettings
                                 ) {
    super(pagePlaces);
    this.sBuildServer = sBuildServer;
    this.slackMainSettings = slackMainSettings;

    setPluginName(PLUGIN_NAME);
    setIncludeUrl(descriptor.getPluginResourcesPath(PAGE));
    jspHome = descriptor.getPluginResourcesPath();
    setTabTitle(TAB_TITLE);
    ArrayList<String> after = new ArrayList<String>();
    after.add(AFTER_PAGE_ID);
    ArrayList<String> before = new ArrayList<String>();
    before.add(BEFORE_PAGE_ID);
    setPosition(PositionConstraint.between(after, before));
    register();
    Loggers.SERVER.info("Slack global configuration page registered");
}
 
Example #2
Source File: TelegramSettingsPage.java    From teamcity-telegram-plugin with Apache License 2.0 5 votes vote down vote up
public TelegramSettingsPage(@NotNull PagePlaces places,
                            @NotNull PluginDescriptor descriptor,
                            @NotNull TelegramSettingsManager settingsManager) {
  super(places);
  setPluginName(PLUGIN_NAME);
  setTabTitle("Telegram Notifier");
  setIncludeUrl(descriptor.getPluginResourcesPath("telegramSettings.jsp"));
  setPosition(PositionConstraint.after("email", "jabber"));
  register();
  this.settingsManager = settingsManager;
}
 
Example #3
Source File: SlackAdminPage.java    From TCSlackNotifierPlugin with MIT License 5 votes vote down vote up
public SlackAdminPage(PagePlaces pagePlaces, PluginDescriptor descriptor , SlackConfigProcessor configProcessor) {
    super(pagePlaces);
    setPluginName("slackNotifier");
    setIncludeUrl(descriptor.getPluginResourcesPath("/admin/slackAdminPage.jsp"));
    setTabTitle("Slack Notifier");
    setPosition(PositionConstraint.after("clouds", "email", "jabber"));
    register();

    this.configProcesser = configProcessor ;
}