Skip to content

Can we have utPLSQL Icon in navigator menu? #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jgebal opened this issue Jan 27, 2018 · 2 comments
Closed

Can we have utPLSQL Icon in navigator menu? #3

jgebal opened this issue Jan 27, 2018 · 2 comments
Assignees
Milestone

Comments

@jgebal
Copy link
Member

jgebal commented Jan 27, 2018

I love the icon that shows in the code editor menu.
Can we have a similar icon in the navigator menu?

@PhilippSalvisberg
Copy link
Member

Me too. In fact I've tried to assign the utPLSQL.png, but failed. Based on my analysis it is not possible with the current implementation approach, using the "sqldev-action-hook" to extend the navigator menu. It is possible to define icons in the related related XML configuration (navigator_actions.xml in this case), but the icon must be visible to resource loader. This means I can use standard Oracle icons but not mine, since the Oracle extension implementing the navigator has not been given access to the utplsql extension and its resources. The hook for the PL/SQL editor is implemented differently. In this case it is possible to provide a own resource loader and therefore use own icons in the context menu.

Maybe there is a way to extend the navigator programatically, without XML configurations. It needs for sure more research before I can finally answer your question.

@PhilippSalvisberg PhilippSalvisberg added this to the v0.2.0 milestone Jan 28, 2018
@PhilippSalvisberg PhilippSalvisberg self-assigned this Jan 28, 2018
@PhilippSalvisberg
Copy link
Member

@krisrice suggested via twitter the following:

<item ….>..
<iconName>/org/utplsql/sqldev/resources/images/utPLSQL.png</iconName>
</item>

I've tried that and and worked!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants