Skip to content

Commit

Permalink
567256: Improve help and minor updates
Browse files Browse the repository at this point in the history
Add status line messages for internal browser

Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=567256

Change-Id: Iad5a48dc38f1737d2502829450e075db07d2c760
  • Loading branch information
ajohnson1 committed Oct 18, 2020
1 parent ceaf6a4 commit ac3881d
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
import org.eclipse.swt.browser.LocationEvent;
import org.eclipse.swt.browser.LocationListener;
import org.eclipse.swt.browser.OpenWindowListener;
import org.eclipse.swt.browser.StatusTextEvent;
import org.eclipse.swt.browser.StatusTextListener;
import org.eclipse.swt.browser.VisibilityWindowListener;
import org.eclipse.swt.browser.WindowEvent;
import org.eclipse.swt.graphics.Color;
Expand Down Expand Up @@ -91,6 +93,13 @@ public void createPartControl(Composite parent)
{
browser = new Browser(top, BROWSER_STYLE);
browser.addLocationListener(this);
browser.addStatusTextListener(new StatusTextListener() {
@Override
public void changed(StatusTextEvent event)
{
getEditorSite().getActionBars().getStatusLineManager().setMessage(event.text);
}
});
//initialize(browser.getDisplay(), browser);
}
catch (SWTError e)
Expand Down

0 comments on commit ac3881d

Please sign in to comment.