Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Launch Groups
Launch Groups [message #165401] Wed, 03 December 2003 12:59 Go to next message
Eclipse UserFriend
Hi,

How do I get a launch group to show up on the tool bar. I created a launch
group and I can't get it to show up on the tool bar. Do I need to add a tool
bar contribution to add the launch group to the toolbar? Also do I need to
write my own code to get a toolbar button like the one for run/debug/and
external tools?

Thanks
Adib
Re: Launch Groups [message #165878 is a reply to message #165401] Thu, 04 December 2003 11:00 Go to previous message
Eclipse UserFriend
See external tools for an example. Once you define the launch group, you
still have to define/contribute an action to the tool bar (and/or menu). You
need to subclass the AbstractLaunchToolbarAction provided in the debug
platform. Following are example snippets from external tools plug-in XML:

<extension
point="org.eclipse.ui.actionSets">
<actionSet
label="%ActionSet.externalTools"
visible="true"
id="org.eclipse.ui.externaltools.ExternalToolsSet">
<menu
label="%Menu.run"
path="additions"
id="org.eclipse.ui.run">
<separator
name="ExternalToolsGroup">
</separator>
</menu>
<action
label="%Action.externalTools"
pulldown="true"
icon="icons/full/ctool16/external_tools.gif"

class=" org.eclipse.ui.externaltools.internal.menu.ExternalToolMenuD elegate "
menubarPath="org.eclipse.ui.run/ExternalToolsGroup"

id="org.eclipse.ui.externaltools.ExternalToolMenuDelegateMenu ">
</action>
<action

definitionId=" org.eclipse.ui.externaltools.ExternalToolMenuDelegateToolbar "
label="%Action.externalTools"
pulldown="true"
icon="icons/full/ctool16/external_tools.gif"
tooltip="%Action.externalToolsTip"

class=" org.eclipse.ui.externaltools.internal.menu.ExternalToolMenuD elegate "
toolbarPath="org.eclipse.debug.ui.launchActionSet/debug"

id=" org.eclipse.ui.externaltools.ExternalToolMenuDelegateToolbar ">
</action>
</actionSet>
</extension>

The action is simple, and looks like this - it just provides the launch
group ID.

public class ExternalToolMenuDelegate extends AbstractLaunchToolbarAction {

/**
* Creates the action delegate
*/
public ExternalToolMenuDelegate() {
super(IExternalToolConstants.ID_EXTERNAL_TOOLS_LAUNCH_GROUP) ;
}

}


Darin

"Adib Saikali" <esaikali@octanewave.com> wrote in message
news:bql84i$nu4$1@eclipse.org...
> Hi,
>
> How do I get a launch group to show up on the tool bar. I created a launch
> group and I can't get it to show up on the tool bar. Do I need to add a
tool
> bar contribution to add the launch group to the toolbar? Also do I need
to
> write my own code to get a toolbar button like the one for run/debug/and
> external tools?
>
> Thanks
> Adib
>
>
Previous Topic:debugger error messages
Next Topic:The project description file for project is missing...
Goto Forum:
  


Current Time: Thu Jun 05 05:19:42 EDT 2025

Powered by FUDForum. Page generated in 0.03905 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top