Community
Participate
Working Groups
// TODO: is this wart still needed?
String accel = desc instanceof ViewDescriptor ? ((ViewDescriptor) desc)
.getAccelerator() : null;
String label = '&' + desc.getLabel();
String label = desc.getLabel();
setText(accel == null ? label : label + "@" + accel); //$NON-NLS-1$
setImageDescriptor(desc.getImageDescriptor());
setToolTipText(label);
* Creates a new <code>ShowInAction</code>.
*/
protected ShowInAction(IWorkbenchWindow window, IViewDescriptor desc) {
super('&' + desc.getLabel());
super(desc.getLabel());
window.getWorkbench().getHelpSystem().setHelp(this,
IWorkbenchHelpContextIds.SHOW_IN_ACTION);
public NewWizardShortcutAction(IWorkbenchWindow window,
IWizardDescriptor wizardDesc) {
super('&' + wizardDesc.getLabel());
super(wizardDesc.getLabel());
setToolTipText(wizardDesc.getDescription());
setImageDescriptor(wizardDesc.getImageDescriptor());
setId(ActionFactory.NEW.getId());
this.descriptor = descriptor;
this.callback = callback;
final String label = '&' + descriptor.getLabel();
final String label = descriptor.getLabel();
setText(label);
setImageDescriptor(descriptor.getImageDescriptor());