is there way add text next action icon in toolbar of eclipse rcp ui form? if not assign action imagedescriptor, action displayed containing text. if give imagedescriptor, displays image. want display both side side, within 1 button - there way this?
this have text "description" in button on toolbar:
myaction = new action("description", swt.push) { @override public void run() {} }; myform.gettoolbarmanager().add(myaction);
but adding image cause the text replaced:
myaction.setimagedescriptor(newimage);
i able find answer issue, it's helpful else runs problem. found in eclipse rich client platform (2nd ed.) book.
the action must converted actioncontributionitem mode set mode_force_text. display both text , image in toolbar.
actioncontributionitem aci = new actioncontributionitem(myaction); aci.setmode(actioncontributionitem.mode_force_text); myform.gettoolbarmanager().add(aci);
Comments
Post a Comment