Community
Participate
Working Groups
This may actually be a buckminster issue, I'm trying to track that down, but something on the SWT side is implicated as well I would think. Perhaps something to do with cross-platform packaging. This is what I'm seeing when I do the Buckminster build. The non-headless build works perfectly. I'm targeting: -D target.os=macosx -D target.ws=cocoa -D target.arch=x86_64. "Error: file /[path]/plugins/project/src/com/package/[Class].java, line 132: The method getText() is undefined for the type Browser" This happens for two different usages. In both cases the usage is like this: final BrowserViewer viewer = wv.getViewer(); ProgressListener browserListener = new ProgressListener() { public void completed(ProgressEvent event) { lastResult = viewer.getBrowser().getText(); } public void changed(ProgressEvent event) { } }; viewer.getBrowser().addProgressListener(browserListener); viewer.setURL(querySting); (And yes, I do realize that BrowserViewer is internal. :))
SWT doesn't do anything to publish a set of API beyond having a set of classes and methods with public visibility. I have no idea why this method would appear to be missing in your context. It has been in the code base since 3.4, and I've confirmed that it's in the latest swt stand-alone download for 64-bit OSX. Does replacing your getText() invocation with a different Browser method work? Would it make sense to move this report to Buckminster? Would it be easy to give them a reproducible case?
Closing report, I don't think this is an swt issue. Please reopen if you still believe otherwise.