{"id":267642,"date":"2015-11-06T14:29:02","date_gmt":"2015-11-06T11:29:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=267642"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=267642","title":{"rendered":"\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u043b\u0430\u0433\u0438\u043d\u0430 \u0434\u043b\u044f Intellij IDEA. \u0417\u0430\u043c\u0435\u0442\u043a\u0438 \u0438 \u043c\u0435\u043b\u043a\u0438\u0435 \u0441\u043e\u0432\u0435\u0442\u044b"},"content":{"rendered":"<p>       \u041f\u043e\u043b\u0433\u043e\u0434\u0430 \u043d\u0430\u0437\u0430\u0434 \u0438\u043b\u0438 \u043e\u043a\u043e\u043b\u043e \u0442\u043e\u0433\u043e \u044f \u0437\u0430\u0433\u043e\u0440\u0435\u043b\u0441\u044f-\u0442\u0430\u043a\u0438 \u0438\u0434\u0435\u0439 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u043f\u043b\u0430\u0433\u0438\u043d \u0434\u043b\u044f Intellij IDEA. \u0421\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u0437\u0430\u0434\u0443\u043c\u043a\u0435, \u043e\u043d \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u043b \u0441\u0447\u0438\u0442\u0430\u0442\u044c, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u043f\u043e\u0442\u0440\u0430\u0442\u0438\u043b \u043d\u0430 \u043f\u0440\u043e\u0435\u043a\u0442 (\u0432\u0441\u0435\u0433\u043e, \u0437\u0430 \u0434\u0435\u043d\u044c, \u0437\u0430 \u0441\u0435\u0430\u043d\u0441) \u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043d\u0430 \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0435. \u041d\u0438\u043a\u0430\u043a\u043e\u0439 \u043c\u0430\u0433\u0438\u0438, \u043d\u043e \u0442\u0430\u043a\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0437\u0434\u043e\u0440\u043e\u0432\u043e \u043f\u043e\u043c\u043e\u0433\u043b\u0430 \u0431\u044b \u043c\u043d\u0435 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0431\u043e\u0442\u044b. <\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/550\/c43\/130\/550c431301474e55be9c302426770c55.png\"\/><br \/>  <a name=\"habracut\"><\/a><br \/>  \u041f\u0440\u043e\u043b\u0438\u0441\u0442\u0430\u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432, \u044f \u0432\u0441\u0435 \u0436\u0435 \u043d\u0430\u0448\u0435\u043b \u043e\u0434\u0438\u043d \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0439. \u041d\u043e \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c \u043e\u043d \u043d\u0435 \u0440\u0438\u0441\u043e\u0432\u0430\u043b, \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u043b\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u0434\u0432\u0430 \u0432\u044b\u043f\u0430\u0434\u0430\u044e\u0449\u0438\u0445 \u0441\u043f\u0438\u0441\u043a\u0430 \u2014 \u0447\u0442\u043e \u0436\u0443\u0442\u044c, \u043a\u0430\u043a \u043d\u0435\u0443\u0434\u043e\u0431\u043d\u043e, \u2014 \u0434\u0430 \u0438 \u043d\u0430 \u0432\u0438\u0434 \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0441\u043a\u0443\u0434\u043d\u044b\u043c.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/87c\/49e\/466\/87c49e4668574b258e456a556e9013f8.PNG\"\/><\/p>\n<p>  \u041a\u043e\u0440\u043e\u0447\u0435, \u044f \u0435\u0449\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u0443\u043a\u0440\u0435\u043f\u0438\u043b\u0441\u044f \u0432 \u0432\u0435\u0440\u0435, \u0447\u0442\u043e \u043c\u043e\u0439 \u043f\u043b\u0430\u0433\u0438\u043d \u0431\u044b\u043b \u0431\u044b \u043f\u043e\u043b\u0435\u0437\u0435\u043d, \u0438 \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043b \u043a \u0440\u0430\u0431\u043e\u0442\u0435. \u0421\u0440\u0430\u0437\u0443 \u0445\u043e\u0447\u0443 \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u043e\u0432 \u043f\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432 Intellij IDEA \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043c\u0430\u043b\u043e, \u0430 \u0438\u0445 \u043f\u043e\u0447\u0442\u0438 \u0447\u0442\u043e \u043d\u0435\u0442. <\/p>\n<p>  \u041d\u043e \u043a\u043e\u0435-\u0447\u0442\u043e \u0432\u0441\u0435 \u0436\u0435 \u0440\u0430\u0441\u043a\u043e\u043f\u0430\u0442\u044c \u0443\u0434\u0430\u043b\u043e\u0441\u044c.<\/p>\n<h2>\u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0441\u0441\u044b\u043b\u043a\u0438 <\/h2>\n<p>  <a href=\"http:\/\/www.jetbrains.org\/intellij\/sdk\/docs\/basics\/getting_started.html\">\u041d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0433\u0430\u0439\u0434 \u043e\u0442 JetBrains<\/a><br \/>  <a href=\"https:\/\/devnet.jetbrains.com\/community\/idea\/open_api_and_plugin_development\">\u0424\u043e\u0440\u0443\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432 \u0434\u043b\u044f Intellij Platform <\/a><br \/>  <a href=\"http:\/\/www.jetbrains.org\/intellij\/sdk\/docs\/basics\/checkout_and_build_community.html\">\u041a\u043e\u0440\u043e\u0442\u043a\u043e \u0438 \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u043e \u0442\u043e\u043c, \u0433\u0434\u0435 \u0432\u0437\u044f\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 IDE<\/a><br \/>  <a href=\"http:\/\/tomaszdziurko.pl\/2011\/09\/developing-plugin-intellij-idea-some-tips-and-links\/\">\u041f\u043e\u0441\u0442 \u043e\u0434\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430<\/a><br \/>  <a href=\"http:\/\/habrahabr.ru\/post\/187106\/\">\u041e\u0447\u0435\u043d\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u0439 \u0446\u0438\u043a\u043b \u0441\u0442\u0430\u0442\u0435\u0439 \u043d\u0430 \u0425\u0430\u0431\u0440\u0435 \u043e\u0442  <a href=\"http:\/\/habrahabr.ru\/users\/lucyfer\/\" class=\"user_link\">Lucyfer<\/a><\/a><br \/>  <a href=\"http:\/\/www.programcreek.com\/java-api-examples\/\">Java API Examples<\/a><\/p>\n<h2>\u041c\u0435\u043b\u043a\u0438\u0435 \u0441\u043e\u0432\u0435\u0442\u044b<\/h2>\n<p>  \u042f \u0440\u0435\u0448\u0438\u043b \u043d\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043e \u0442\u0430\u043a\u0438\u0445 \u0432\u0435\u0449\u0430\u0445, \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0441\u0440\u0435\u0434\u044b \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043f\u043b\u0430\u0433\u0438\u043d\u0430, \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u0438 \u0434\u0440., \u0442\u0430\u043a \u043a\u0430\u043a \u0432\u0441\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u0438\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u0432 \u0440\u0443\u043d\u0435\u0442\u0435 \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d\u044b \u0438\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u043e\u043c\u0443. \u0417\u0430 \u0432\u0440\u0435\u043c\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u043b\u0430\u0433\u0438\u043d\u0430 \u044f \u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0437 \u0441\u043f\u043e\u0442\u044b\u043a\u0430\u043b\u0441\u044f \u043e \u043d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0435 (\u043c\u043d\u0435, \u0432\u043e \u0432\u0441\u044f\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435) \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438 Intellij IDEA. \u0417\u043d\u0430\u0439 \u044f \u043e \u043d\u0438\u0445 \u0440\u0430\u043d\u044c\u0448\u0435, \u0434\u0435\u043b\u043e \u043f\u043e\u0448\u043b\u043e \u0431\u044b \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0431\u044b\u0441\u0442\u0440\u0435\u0435. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0434\u0435\u043b\u044e\u0441\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043c\u043e\u043c\u0435\u043d\u0442\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442\u044c \u0432\u0430\u043c \u043f\u043e\u0440\u044f\u0434\u043e\u0447\u043d\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438.<\/p>\n<h4>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0432\u043e\u0439 CustomStatusBarWidget<\/h4>\n<p>  \u0414\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u044f \u0440\u0435\u0448\u0438\u043b \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u044c Status Bar \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u043b \u0431\u044b \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0431\u044b\u043b\u043e \u043f\u043e\u0442\u0440\u0430\u0447\u0435\u043d\u043e \u0437\u0430 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u0441\u0435\u0430\u043d\u0441 \u0440\u0430\u0431\u043e\u0442\u044b \u0432 \u0441\u0440\u0435\u0434\u0435, \u043d\u0435 \u043e\u0442\u0432\u043b\u0435\u043a\u0430\u044f \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u043e\u0442 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0430. \u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 StatusBar \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434 addWidget(), \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0449\u0438\u0439 CustomStatusBarWidget \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440:<\/p>\n<pre><code class=\"java\">public interface StatusBar extends StatusBarInfo, Disposable { ...     void addWidget(@NotNull StatusBarWidget var1);      void addWidget(@NotNull StatusBarWidget var1, @NotNull String var2);      void addWidget(@NotNull StatusBarWidget var1, @NotNull Disposable var2);      void addWidget(@NotNull StatusBarWidget var1, @NotNull String var2, @NotNull Disposable var3); ...  } <\/code><\/pre>\n<p>  \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0436\u0435 \u0441\u0430\u043c StatusBar \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043c\u043e\u0436\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<pre><code class=\"java\">statusBar = WindowManager.getInstance().getStatusBar(currentProject); <\/code><\/pre>\n<p>  \u0413\u043b\u0430\u0432\u043d\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439 \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u0441\u0442\u0430\u043b\u0430 \u0438\u043c\u043f\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f CustomStatusBarWidget, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0435\u0433\u043e \u043f\u043e \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u044e \u043a \u0434\u0440\u0443\u0433\u0438\u043c \u0432\u0438\u0434\u0436\u0435\u0442\u0430\u043c (\u044f \u043d\u0435 \u0437\u043d\u0430\u043b \u0438\u0445 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0439, \u0442\u0430\u043a \u0447\u0442\u043e \u043d\u0430\u0439\u0442\u0438 \u0438\u0445 \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u043c \u043a\u043e\u0434\u0435 \u0441\u0440\u0435\u0434\u044b \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c).<\/p>\n<p>  \u0421\u043f\u0430\u0441\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u0448\u043b\u043e <a href=\"http:\/\/www.programcreek.com\/java-api-examples\/index.php?api=com.intellij.openapi.wm.StatusBar\">\u043e\u0442\u0441\u044e\u0434\u0430<\/a>. \u0422\u043e \u0435\u0441\u0442\u044c, \u0432\u0438\u0434\u0436\u0435\u0442 \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<pre><code class=\"java\">statusBar.addWidget(myWidget1,&quot;before &quot; + IdeMessagePanel.FATAL_ERROR); statusBar.addWidget(myWidget2, &quot;after Encoding&quot;); statusBar.addWidget(myWidget3,&quot;after InsertOverwrite&quot;); statusBar.addWidget(myWidget4,&quot;after Position&quot;); <\/code><\/pre>\n<p>  \u0418\u043c\u043f\u043b\u0435\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0435\u043c CustomStatusBarWidget:<\/p>\n<pre><code class=\"xml\">    class Widget implements CustomStatusBarWidget{                  private JLabel myLabel = new JLabel(&quot;00:00:00&quot;);          @Override         public JComponent getComponent() {            return myLabel;         }          @NotNull         @Override         public String ID() {             return null;         }          @Nullable         @Override         public WidgetPresentation getPresentation(@NotNull PlatformType platformType) {             return null;         }          @Override         public void install(@NotNull StatusBar statusBar) {          }          @Override         public void dispose() {          }     } <\/code><\/pre>\n<p>  \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u043d\u0430\u0448 \u0432\u0438\u0434\u0436\u0435\u0442 \u043d\u0430 StatusBar, \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u043c JLabel \u0438\u043a\u043e\u043d\u043a\u043e\u0439\u2026<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/4cc\/e96\/ac6\/4cce96ac65144a98bf078fcba08bfecf.PNG\"\/><\/p>\n<h4>\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 ToolBar&#8217;a \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0438\u0437 Java \u043a\u043e\u0434\u0430<\/h4>\n<p>  \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043f\u0440\u043e \u0441\u0430\u043c\u0443 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0432 \u043f\u043b\u0430\u0433\u0438\u043d\u0430\u0445 Intellij IDEA \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c <a href=\"http:\/\/habrahabr.ru\/post\/187142\/\">\u0442\u0443\u0442<\/a>. <br \/>  \u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 ActionManager.<\/p>\n<pre><code class=\"java\">    private JComponent createActionToolBar(AnAction ...actions){         DefaultActionGroup actionGroup = new DefaultActionGroup();         for(AnAction anAction : actions){             actionGroup.add(anAction);         }         ActionToolbar toolbar = ActionManager.getInstance().createActionToolbar(&quot;Tempore.MainPanel&quot;, actionGroup, false);         return toolbar.getComponent();     } <\/code><\/pre>\n<p>  <\/p>\n<h4>\u0410\u0434\u0440\u0435\u0441 \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u043b\u0430\u0433\u0438\u043d<\/h4>\n<p>  \u041f\u0443\u0442\u044c \u043a \u043f\u0440\u043e\u0435\u043a\u0442\u0443 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 \u043a\u043b\u0430\u0441\u0441\u0430 Project. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0443\u0442\u044c \u043a \u043f\u0430\u043f\u043a\u0435 .idea \u043f\u0440\u043e\u0435\u043a\u0442\u0430:<\/p>\n<pre><code class=\"java\">String path = currentProject.getProjectFile().getParent().getPath(); <\/code><\/pre>\n<p>  <\/p>\n<h4>\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u0438\u0437 \u043c\u0435\u0442\u043e\u0434\u0430 actionPerformed()<\/h4>\n<p>  \u0418\u0437 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 AnActionEvent \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u043c:<\/p>\n<pre><code class=\"java\">Project currentProject = DataKeys.PROJECT.getData(actionEvent.getDataContext()); VirtualFile currentFile = DataKeys.VIRTUAL_FILE.getData(actionEvent.getDataContext()); Editor editor = DataKeys.EDITOR.getData(actionEvent.getDataContext()); StatusBar statusBar = WindowManager.getInstance().getStatusBar(DataKeys.PROJECT.getData(actionEvent.getDataContext()));                   . <\/code><\/pre>\n<p>  <\/p>\n<h4>\u0412\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0438\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f <\/h4>\n<p>  \u041f\u0440\u043e\u0441\u0442\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0441 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0435\u0439 \u0438\u043b\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0435 \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u0430 StatusBar \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<pre><code class=\"java\">                                    JBPopupFactory.getInstance()                                             .createHtmlTextBalloonBuilder(&quot;You have been working for two hours! Recommend to have a break &quot;, MessageType.INFO, null)                                             .setFadeoutTime(7500)                                             .createBalloon()                                             .show(RelativePoint.getCenterOf(statusBar.getComponent()),                                                     Balloon.Position.atRight);  <\/code><\/pre>\n<p>  \u0412\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0432\u043e\u0442 \u0442\u0430\u043a:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/483\/19c\/c25\/48319cc254b44da280d14da1db9ee3ae.png\"\/><\/p>\n<h4>\u0421\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u044c \u0441\u043e \u0441\u0440\u0435\u0434\u0430\u043c\u0438 Intellij Platform<\/h4>\n<p>  \u0422\u0430\u043a \u043a\u0430\u043a \u043f\u043e\u0434\u0441\u0447\u0435\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0430\u0434 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u043c \u043f\u043e\u043b\u0435\u0437\u0435\u043d \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 Intellij IDEA, \u044f \u0440\u0435\u0448\u0438\u043b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u043b\u0430\u0433\u0438\u043d \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u044b\u043c \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0441\u0440\u0435\u0434\u0430\u043c\u0438 Intellij Platform. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0442\u0435\u0433  \u0432 \u0444\u0430\u0439\u043b\u0435 plugin.xml:<\/p>\n<pre><code class=\"xml\">&lt;idea-plugin version=&quot;0.5.5b&quot;&gt;   ...   &lt;depends&gt;com.intellij.modules.lang&lt;\/depends&gt;   ... &lt;\/idea-plugin&gt; <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043c\u0438\u043c\u043e Intellij IDEA \u043f\u043b\u0430\u0433\u0438\u043d \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0435\u0449\u0435 \u0438 \u0434\u043b\u044f RubyMine, WebStorm, PhpStorm, PyCharm \u0438 AppCode.<\/p>\n<h2>\u0418\u0442\u043e\u0433\u0438 <\/h2>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0437\u0430 \u043c\u0435\u0441\u044f\u0446, \u043c\u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u043b\u0430\u0433\u0438\u043d, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043b\u0435\u0434\u0438\u0442 \u0437\u0430 \u0442\u0435\u043c, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0432\u044b \u0442\u0440\u0430\u0442\u0438\u0442\u0435 \u043d\u0430 \u0441\u0432\u043e\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u044b, \u0441\u043e\u0432\u0435\u0442\u0443\u0435\u0442 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u0440\u044b\u0432, \u0435\u0441\u043b\u0438 \u0432\u044b \u043f\u0438\u0448\u0435\u0442\u0435 \u043a\u043e\u0434 \u043d\u043e\u043d-\u0441\u0442\u043e\u043f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0447\u0430\u0441\u043e\u0432 \u0438 \u0440\u0438\u0441\u0443\u0435\u0442 \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0443 \u043f\u043e\u0442\u0440\u0430\u0447\u0435\u043d\u043d\u044b\u0445 \u0447\u0430\u0441\u043e\u0432 \u0437\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0434\u0435\u043d\u044c.<br \/>  \u0422\u0430\u043a \u0436\u0435 \u043e\u043d \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u0435\u0441\u043b\u0438 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u0432 \u0441\u0440\u0435\u0434\u0435 \u043f\u0440\u0435\u043a\u0440\u0430\u0442\u0438\u043b\u0430\u0441\u044c \u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u043d\u0430 5 \u043c\u0438\u043d\u0443\u0442 \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0441\u043d\u043e\u0432\u0430 \u043f\u0440\u0438\u043d\u044f\u043b\u0441\u044f \u0437\u0430 \u0440\u0430\u0431\u043e\u0442\u0443.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/f74\/1ab\/a82\/f741aba82fe2436fa464b25b6e32492a.PNG\"\/><\/p>\n<p>  \u041f\u0440\u0438 \u0436\u0435\u043b\u0430\u043d\u0438\u0438, \u0441\u0430\u043c \u043f\u043b\u0430\u0433\u0438\u043d \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c <a href=\"https:\/\/plugins.jetbrains.com\/plugin\/8025?pr=clion\">\u0442\u0443\u0442<\/a>. <\/p>\n<p>  \u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u043a\u043e\u043c\u0443-\u0442\u043e \u044d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0441 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0430\u0441\u043f\u0435\u043a\u0442\u0430\u043c\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438 \u0438\u0437\u0431\u0430\u0432\u0438\u0442 \u043e\u0442 \u0431\u0435\u0441\u0441\u043e\u043d\u043d\u044b\u0445 \u043d\u043e\u0447\u0435\u0439 \u0437\u0430 \u0447\u0442\u0435\u043d\u0438\u0435\u043c API.       <\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/270309\/\"> http:\/\/habrahabr.ru\/post\/270309\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u041f\u043e\u043b\u0433\u043e\u0434\u0430 \u043d\u0430\u0437\u0430\u0434 \u0438\u043b\u0438 \u043e\u043a\u043e\u043b\u043e \u0442\u043e\u0433\u043e \u044f \u0437\u0430\u0433\u043e\u0440\u0435\u043b\u0441\u044f-\u0442\u0430\u043a\u0438 \u0438\u0434\u0435\u0439 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u043f\u043b\u0430\u0433\u0438\u043d \u0434\u043b\u044f Intellij IDEA. \u0421\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u0437\u0430\u0434\u0443\u043c\u043a\u0435, \u043e\u043d \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u043b \u0441\u0447\u0438\u0442\u0430\u0442\u044c, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u043f\u043e\u0442\u0440\u0430\u0442\u0438\u043b \u043d\u0430 \u043f\u0440\u043e\u0435\u043a\u0442 (\u0432\u0441\u0435\u0433\u043e, \u0437\u0430 \u0434\u0435\u043d\u044c, \u0437\u0430 \u0441\u0435\u0430\u043d\u0441) \u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043d\u0430 \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0435. \u041d\u0438\u043a\u0430\u043a\u043e\u0439 \u043c\u0430\u0433\u0438\u0438, \u043d\u043e \u0442\u0430\u043a\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0437\u0434\u043e\u0440\u043e\u0432\u043e \u043f\u043e\u043c\u043e\u0433\u043b\u0430 \u0431\u044b \u043c\u043d\u0435 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0431\u043e\u0442\u044b. <\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/550\/c43\/130\/550c431301474e55be9c302426770c55.png\"\/>  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-267642","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/267642","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=267642"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/267642\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=267642"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=267642"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=267642"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}