Eclipse plug-in: add Launch command group to Custom Perspective -
i have looked lot of tutorials online , difficult find related launches.
i implementing ide plug-in implements custom perspective , cannot see of run or debug toolbar buttons except run last tool button. everytime launch perspective, need go customize perspective , command group visibility , activate launch command group.
i have implemented launchconfigurationtype , trying add launchshortcuts.
i read somewhere need create ilaunchable
adapter make run as... , debug as... visible. here added in plugin.xml,
<extension point="org.eclipse.core.runtime.adapters"> <factory adaptabletype="org.eclipse.core.resources.ifile" class=" "> <adapter type="org.eclipse.debug.ui.actions.ilaunchable"> </adapter> </factory> </extension>
i have tried many types of adaptabletypes: iresource
, ifile
, custom perspective, none of them make buttons show on toolbar.
you need extend perspective using org.eclipse.ui.perspectiveextensions extension point. add run , debug buttons add org.eclipse.debug.ui.launchactionset actionset this:
<extension point="org.eclipse.ui.perspectiveextensions"> <perspectiveextension targetid="your.perspective.id"> <actionset id="org.eclipse.debug.ui.launchactionset"> </actionset> </perspectiveextension> </extension>
Comments
Post a Comment