Chapter 2 – Creating Views with SWT
Understanding views
1. In the Eclipse 3.x model, views must be subclasses of ViewPart
. In the Eclipse 4.x model, parts do not need to have an explicit superclass.
2. In the Eclipse 3.x model, views are registered via an org.eclipse.ui.views
extension point in the plugin.xml
.
3. The two arguments that most SWT objects have are a Composite
parent and an integer flags field.
4. When a widget is disposed, it will have its native resources released to the operating system. Any subsequent actions will throw an SWTException
with a Widget is disposed message.
5. The Canvas has many drawing operations; to draw a circle, use drawArc()
, and specify a full orbit.
6. To receive drawing events, a PaintListener
must be created and ...
Get Eclipse Plug-in Development Beginner's Guide - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.