Question & Answer
Question
RCP: How to change the Height and Width of an out-of-box popup dialog?
Answer
The following code snippet would need to be invoked from the postSetModel() method of the extension behavior class. The required Width and Height that needs to be set for the popup should be passed as input to the setSize() method (in the below sample code snippet, the width is 400 pixels and the height is 100 pixels):
Display.getDefault().asyncExec(new Runnable() {
public void run() {
YRCDesktopUI.getCurrentPage().getShell().setSize(400, 100);
}
});
[{"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Not Applicable","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]
Historical Number
HTG2301
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21562590