[RSS]

MozSwing Broswer Module

Four modules are currently being pushed into the vw.next clone. I hope I am doing everything (hg wise) correctly. It seems to be taking forever to commit.

  1. vwnext.xulrunner.macos (xulrunner wrapper module for mac osx)
  2. vwnext.xulrunner.win32 (xulrunner wrapper module for win32)
  3. vwnext.mozswing (wrapper module for michal's MozSwing)
  4. vwnext.browser (our stuff)

These modules came from a suite so they still need to be converted to a stand-alone module and added to the appropriate cluster.
Note: If you need to just try the suite, it is zipped up here: http://wiki.netbeans.org/attach/EmbeddedBrowser/EmbeddedBrowserSuite.zip It is large since it contains binaries for xulrunner win32 and macosx

Work Arounds Needed:

Once these modules are stand alone you must complete these two temporary work arounds;
1. You must set LD_LIBRARY_PATH (or DYLD_LIBRARY_PATH on mac) to the xulrunner location:
export LD_LIBRARY_PATH=/Users/joelle/NetBeansProjects/EmbeddedBrowserSuite/vwnext.xulrunner.macosx/release/modules/lib
Note: This is required as a temporary work around to Michal current loading with a full path location of a library xulrunner directory.
2. You must update the hardcoded XUL_HOME in the MozillaLightWeightPanel.
Note: This will be fixed by InstalledFileLocator, but so I don't have to do it night, this is the way we will do it.

Usage

MozillaLightWeightPanel mozPanel = MozillaLightWeightPanel.getMozillaLightWeightPanel(); //need to change this to getInstance(); but push is still going.
mozPanel.refresh();

The Panel you will be creating is a MozillaLightWeightPanel. In order to create it you must call it's static factory method ( the only static method which now that I think about it should be renamed to getInstance). Also, when ever you want to see what the Panel to update contents you will have to call refresh() on the Panel. Sandip and I are looking for a better way to determine wether we should refresh, but for temporary purposes Peter should know when he needs to refresh.

Sample:

The browser module has to underlying packages tc and dgtc. tc contains a TopComponent which can be triggered by (Windows->browser) and contains a pure heavyweight browser. dctc contains a TopComponent browser (Windows->doppleganger ) which contains the paint image rendition of the browser. Refresh will have to be called once before it will work.

Even though I will be on vacation the next couple of days my cell is always on (408)857-1213.