1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

Bug #187619: "Unexport" button label is truncated

This commit is contained in:
Oleg Krasilnikov 2007-05-18 07:45:21 +00:00
parent cf62c230d7
commit 5950bf5e1b

View file

@ -271,6 +271,13 @@ public abstract class AbstractCPropertyTab implements ICPropertyTab {
protected void buttonSetText(int i, String text) {
if (buttons == null || buttons.length <= i ) return;
buttons[i].setText(text);
Composite c = buttons[i].getParent();
if (c != null) {
c.pack();
c = c.getParent();
if (c != null)
c.layout(true);
}
}
/**********************************************