Bug 568578 - IconAndMessageDialog#getColumnCount: Change visibility to protected
Summary: IconAndMessageDialog#getColumnCount: Change visibility to protected
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.18   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: 4.18 M3   Edit
Assignee: Karsten Thoms CLA
QA Contact:
URL:
Whiteboard:
Keywords: api
Depends on:
Blocks:
 
Reported: 2020-11-05 22:17 EST by Karsten Thoms CLA
Modified: 2020-11-06 03:34 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karsten Thoms CLA 2020-11-05 22:17:11 EST
We are using a customization of MessageDialog. One of its changes is that we only want to have a single column in the grid. This can't be easily customized since IconAndMessageDialog#getColumnCount is package private. I'd like to request changing the visibility to protected in order to allow clients to customize it.

As a workaround the GridLayout can be modified as follows:

    @Override
    protected Control createContents(Composite parent) {
        Composite composite = (Composite) super.createContents(parent);
        GridLayout layout = (GridLayout) composite.getLayout();
        layout.numColumns = 1;
        return composite;
    }
Comment 1 Eclipse Genie CLA 2020-11-05 22:26:16 EST
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.ui/+/171867