Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324004 - [api] provide reusable component for capturing screen shots
Summary: [api] provide reusable component for capturing screen shots
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: 3.5   Edit
Assignee: Steffen Pingel CLA
QA Contact:
URL:
Whiteboard:
Keywords: plan
Depends on:
Blocks:
 
Reported: 2010-08-30 13:56 EDT by Steffen Pingel CLA
Modified: 2011-01-31 14:27 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Pingel CLA 2010-08-30 13:56:51 EDT
The screenshot component is tightly coupled to a wizard page. To improve reusability it should be moved to a separate plug-in and decoupled from the wizard page.
Comment 1 Steffen Pingel CLA 2010-08-31 02:30:21 EDT
Committed a new plug-in org.eclipse.mylyn.commons.screenshots that provides a generic screenshot component. The component provides API for listening to state changes and to create an image:

	viewer = new ScreenshotViewer(parent, SWT.BORDER | SWT.FLAT) {
		@Override
		protected void stateChanged() {
			if (isComplete()) {
				// update UI
			}
		}
	};
	
	// ...
	
	viewer.createImage();

Please comment here if you need additional API.