Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ease-dev] Adding a button to the main toolbar

Hi Christian,

I build a prototype for that some time ago, but hadn't the time to
finish it and create a pull request for that. But the idea can be
extracted from here:
https://github.com/rage5474/de.ragedev.example.dynamictoolbar

Maybe someone else can bring it to the end. At the moment I have no
time for it. Sorry.

Raphael


2017-10-04 10:38 GMT+02:00 Christian Pontesegger <christian.pontesegger@xxxxxx>:
> Hi Mike,
>
> unfortunately this does not work yet. You may attach scripts to view
> toolbars, view menus and popups. Main toolbar and main menu are not
> supported yet. Reason is that the e4 workbench persists the state of such
> entries, which results in buttons added on each startup. After the 2nd
> startup you would have 2 buttons for each registered script and so on.
>
> Did not find a clean way yet of cleaning up the toolbar. There is an entry
> for Platform UI on bugzilla for this [1].
>
> Christian
>
> [1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=378815
>
>
> On 04.10.2017 07:50, Gerdes, Mike wrote:
>
> Hi all,
>
>
>
> I am new to EASE and wanted to add a button to the main toolbar (where Save,
> Save All … are located) and not just to the toolbar of a view. Another
> option that I would like to do is add  new category and menu action to the
> main menu.
>
>
>
> Is this possible? How do I set this up? Currently I use Py4j and included in
> the .py file:
>
>
>
> # toolbar       : Package Explorer
>
>
>
> I tried to use main or shell and other entries, but it seems not to work.
>
>
>
>
> _______________________________________________
> ease-dev mailing list
> ease-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/ease-dev


Back to the top