Open plugin tool window on IntelliJ start

Hi,

I developed a plugin for IntelliJ, and I want to find a way to open it automatically when ide is started.
I know that, if plugin window was opened when IDE was closed, in next session it will also open.

However I want to force always opening plugin window on start.
How can I achieve that?

Thank You

5 comments
Comment actions Permalink

What exactly do you mean by "plugin window"? What kind of window is that?

0
Comment actions Permalink

I mean tool window, which is defined in plugin.xml as:

<extensions defaultExtensionNs="com.intellij">

    <toolWindow id="My Sample Tool Window" icon="/myPackage/icon.png" anchor="right" factoryClass="myPackage.MyToolWindowFactory">

    </toolWindow>
</extensions>

0
Comment actions Permalink

IntelliJ IDEA lets the user control the state of the user interface, by persisting the state of tool windows between sessions. Why exactly do you believe that the requirements of your plugin should take precedence over the user's preferences?

0
Comment actions Permalink

Because plugin contains data required to run code (connecting to selected hardware & some options), without which user shouldn't be able to do anything.
Always showing plugin toolwindow makes user more aware of what's his doing.

Alternative would be disabling start button in intellij until plugin is opened, but it is less intuitive.

0
Comment actions Permalink

To me it sounds like the best option is to show a modal dialog for entering the options the first time the user presses the Start button in a particular IntelliJ IDEA session.

0

Please sign in to leave a comment.