Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [orion-dev] Buttons in the editor

We moved away from buttons when the menu bar was added.  One of the reasons to change to menus is the fact that there are so many commands in the editor page that we cannot possibly fit  them all in a toolbar.   There are no plans to show the items in the tools menu as buttons again.

Having said that, I believe it is still possible to add buttons directly to the menu bar by specifying a service property "scopeId".  The property itself and available scope ids are undocumented but you can try "extraActions" which will add the button just after the Tools menu.  Something like

        var serviceImpl = {
                run : function(text) {
                }
        };
        var serviceProps = {
                id : "test",
                name : "Test Command",
                scopeId: "extraActions"
        };
        provider.registerService("orion.edit.command", serviceImpl, serviceProps);

Silenio



From:        Andrew Audibert <aaudibert@xxxxxxxxxxxx>
To:        Orion developer discussions <orion-dev@xxxxxxxxxxx>
Date:        09/02/2015 03:49 PM
Subject:        [orion-dev] Buttons in the editor
Sent by:        orion-dev-bounces@xxxxxxxxxxx




Hi,

Is there a way to add buttons to the editor as shown here https://wiki.eclipse.org/File:Orion-editorplugin.png? It looks like new commands get placed in the tools menu now instead of at the top of the editor. Has it been intentionally decided that buttons above the editor are a bad design, or are there plans to bring them back? Could new commands be placed in the tools menu by default, but have the option of being in the editor toolbar?

Thanks,
Andrew_______________________________________________
orion-dev mailing list
orion-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/orion-dev


Back to the top