Skip to content

Commit 7fecea9

Browse files
committed
Override getChildren() in ScalableRootFigure of PopUpHelper
This is a follow-up to 4b38172, where a custom RootFigure class was created, which injects a ScalableLayeredPane between itself and its content. The add() method was already overridden to add any additional children to the scalable figure. One also needs to override the getChildren() method to delegate to the same figure.
1 parent 572804e commit 7fecea9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

org.eclipse.draw2d/src/org/eclipse/draw2d/PopUpHelper.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
*******************************************************************************/
1313
package org.eclipse.draw2d;
1414

15+
import java.util.List;
16+
1517
import org.eclipse.swt.SWT;
1618
import org.eclipse.swt.graphics.Color;
1719
import org.eclipse.swt.graphics.Rectangle;
@@ -265,6 +267,11 @@ public void add(IFigure figure, Object constraint, int index) {
265267
scalablePane.add(figure, constraint, index);
266268
}
267269

270+
@Override
271+
public List<? extends IFigure> getChildren() {
272+
return scalablePane.getChildren();
273+
}
274+
268275
@Override
269276
public double getScale() {
270277
return scalablePane.getScale();

0 commit comments

Comments
 (0)