[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] How to programmatically add the "Refresh" buttoninto debug view toolbar?

Hi Andy,
Perspective extensions are the most appropriate way to customize a perspective.  You can override the entire layout (and shortcuts) of a perspective in your plugin_customization.ini file, but then you'll override all other plugin contributions.

Cheers,
Pawel

On 04/08/2011 02:53 PM, Andy Jin wrote:

Thank Patrick,

 

Actually I tried that in our product and it worked. But isn’t the “plugin_customization.ini” file a more preferred way to customize the product look and feel, e.g. enable or disable a button?

 

I guess if there is no “preferenceName” and “preferenceValue” defined for this button I will have to fall back to use extension point contribution.

 

Thanks,

Andy

 

From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Chuong, Patrick
Sent: April-08-11 5:34 PM
To: CDT General developers list.
Subject: Re: [cdt-dev] How to programmatically add the "Refresh" buttoninto debug view toolbar?

 

Hi Andy,

 

You can try to contribute perspective extension point (org.eclipse.ui.perspectiveExtensions) and add the updateModes actionSet to the perspective that you are interested.

 

Regards,

Patrick

 

From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Andy Jin
Sent: Friday, April 08, 2011 4:51 PM
To: cdt-dev@xxxxxxxxxxx
Subject: [cdt-dev] How to programmatically add the "Refresh" button into debug view toolbar?

 

DSF provides a “Refresh” button to the debug view toolbar, but this button is not added to the toolbar by default. I have to go through the Windows -> Customize Perspective -> Command Groups Availability -> Debug Update Modes, enable this group to have the “Refresh” button added to the debug view toolbar.

 

If users can do that in the U.I.,  can I do it programmatically in my “plugin_customization.ini” file? If yes what will be “preferenceName” and “prefrenceValue” for this button?

 

I have tried this but no luck:

 

Org.eclipse.ui/org.eclipse.cdt.dsf.debug.ui.updateModes.visible=true

 

Thanks,
Andy

_______________________________________________ cdt-dev mailing list cdt-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/cdt-dev