Exemple #1
0
        public IViewContent CreateContentForFile(OpenedFile file)
        {
            string fileName = file.FileName;

            BrowserPane browserPane = new BrowserPane();

            if (fileName.StartsWith("browser://"))
            {
                browserPane.Navigate(fileName.Substring("browser://".Length));
            }
            else
            {
                browserPane.Navigate(fileName);
            }
            return(browserPane);
        }
Exemple #2
0
        void WebBrowserStatusTextChanged(object sender, EventArgs e)
        {
            IWorkbenchWindow workbench = WorkbenchSingleton.Workbench.ActiveWorkbenchWindow;

            if (workbench == null)
            {
                return;
            }
            BrowserPane browser = workbench.ActiveViewContent as BrowserPane;

            if (browser == null)
            {
                return;
            }
            if (browser.HtmlViewPane == this)
            {
                WorkbenchSingleton.StatusBar.SetMessage(webBrowser.StatusText);
            }
        }