Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » ImageDataCollector / ScreenScraping
ImageDataCollector / ScreenScraping [message #616338] Mon, 30 July 2007 15:19
Stefan Kuhn is currently offline Stefan KuhnFriend
Messages: 355
Registered: July 2009
Senior Member
hi all,

I would like to use VE ability to make a screenshot of a SWT composite
in my GMF Editor. When I looked at the implementation I noticed it is
very platform specific.

Basically I just need following method of

protected abstract Image getImage(Control control, int maxWidth, int
maxHeight, boolean includeChildren);

even easier, "Image getImage(Control)" without children would be sufficient.

I found the OS branching stuff in
looking like:
if (Platform.OS_WIN32.equals(Platform.getOS()))
dataCollectorType =
(...)(" ");
else if (Platform.WS_GTK.equals(Platform.getWS())){

Is it a good approach to implement the branching stuff and copy the
three classes to make it work? (these classes are not exported in VE). I
also noticed that these classes are 2+ years old, is there already a

Is it possible to do it this way? How would you suggest realizing it?

thanks & regards
Previous Topic:Choose Bean
Next Topic:about override files
Goto Forum:

Current Time: Tue Jun 19 06:56:18 GMT 2018

Powered by FUDForum. Page generated in 0.01354 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top