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 Kuhn
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
org.eclipse.ve.internal.swt.targetvm.ImageCapture:

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
org.eclipse.ve.internal.swt.ImageDataCollector
looking like:
if (Platform.OS_WIN32.equals(Platform.getOS()))
dataCollectorType =
(...)("org.eclipse.ve.internal.swt.targetvm.win32.ImageCapture ");
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
replacement?

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

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


Current Time: Tue Oct 21 19:55:44 GMT 2014

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

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