Skip to content

Commit

Permalink
AbstractInformationControl: return the shell where the content compos…
Browse files Browse the repository at this point in the history
…ite is

in some cases, the original shell is being replaced by the child classes

a good example is in CompositeInformationControl, in createContent() where it collects all the controls of the AbstractInformationControl and sets a different parent to it

see issue: [eclipse-platform#2242](eclipse-platform#2242)
  • Loading branch information
markdomeng authored Sep 5, 2024
1 parent 7a1a3f1 commit dcd65ae
Showing 1 changed file with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,25 @@ private static void setColor(Control control, Color foreground, Color background
* @since 3.13
*/
public final Shell getShell() {
return fShell;
return fContentComposite.getShell();
}

/**
* The composite containing the content created by subclasses.
*
* @return the content composite
*/
protected final Composite getContentComposite() {
return fContentComposite;
}

/**
* Composite containing the status line content.
*
* @return the status composite or <code>null</code> if none
*/
protected final Composite getStatusComposite() {
return fStatusComposite;
}

/**
Expand Down

0 comments on commit dcd65ae

Please sign in to comment.