Hide Grails Nav. Toolbar?

Answered

Hello,

I'd like to hide the toolbar/icon bar that is directly under the
tab for any Grails file.  It is the one with the Model, Views, Controller, Tests Links on it.

Is this possible?

Thanks,
--Nate

4 comments
Comment actions Permalink

Currently not. You can file a request. But why do you want to hide it?

0
Comment actions Permalink

I'm a minimalist, I like all the screen space for code.

What about making the Grails toolbar hide-able, but also availalbe as
a pop-up, like the current Alt+Home key?.  I love that feature because
it gets out of the way and gives me another 2-3 lines of code that I can see on the screen.

Thanks for the consideration.  I'll probably file a request.

--Nate

0
Comment actions Permalink

I know this is quite an old issue but I had the same want so I found this work around.

To be honest this is a bit of a sledgehammer approach to fixing this issue.

Got to your IntelliJ directory and navigate to \plugins\Grails\lib to find grails_integration.jar

Copy the archive somewhere else (and make a back up)

Then extract the archive with "jar -xf grails_integration.jar"
Find plugin.xml in the META-INF folder and comment out this action group which is the UI for the toolbar:

<group id="grails.toolbar">
<action
id="grails.goto.domain"
class="org.jetbrains.plugins.grails.editor.toolbar.GoToDomainAction"
icon="JetgroovyIcons.Mvc.Domain_class"
text="Go To Domain"
/>
<action
id="grails.goto.controller"
class="org.jetbrains.plugins.grails.editor.toolbar.GoToControllerAction"
icon="JetgroovyIcons.Mvc.Controller"
text="Go To Controller"
/>
<action
id="grails.goto.service"
class="org.jetbrains.plugins.grails.editor.toolbar.GoToServiceAction"
icon="JetgroovyIcons.Mvc.Service"
text="Go To Service"
/>
<action
id="grails.goto.view"
class="org.jetbrains.plugins.grails.editor.toolbar.GoToViewAction"
icon="GroovyMvcIcons.Gsp_logo"
text="Go To View"
/>
<action
id="grails.goto.test"
class="org.jetbrains.plugins.grails.editor.toolbar.GoToTestAction"
icon="GroovyMvcIcons.Grails_test"
text="Go To Test"
/>
</group>

Save this edit and then repackage the jar with "jar -cvf grails_integration.jar *"

Then overwrite the grails_integration.jar in the IntelliJ directory.

Restart IntelliJ and the the toolbar should no longer show.  Also check the IntelliJ log file just to make sure the plugin.xml file was edited correctly.

I will probably put this as a change request as this is definitely not an ideal workaround as it cannot be switched on and off like other toolbars and also IntelliJ will complain
when it upgrades that the jar is different.  
Hope this helps someone else.  

0

Please sign in to leave a comment.