| Summary: | make figures on FigureCanvas selectable | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Jennifer Cormier <jcormier> | ||||
| Component: | GEF-Legacy Draw2d | Assignee: | gef-inbox <gef-inbox> | ||||
| Status: | RESOLVED WONTFIX | QA Contact: | |||||
| Severity: | enhancement | ||||||
| Priority: | P3 | CC: | rob | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Jennifer Cormier
Created attachment 34848 [details]
SelectableFigureCanvas.java
If we start adding behavior for selecting figures, what's next? Moving them around? Context menus? This is what the org.eclipse.gef plug-in is for. Draw2d supports the notion of focus. Selection of a figure is not general enough and infringes on the support provided by the gef plug-in. I agree that GEF is for editing and the Draw2d canvas is for viewing only. Creating a FigureCanvas which implements ISelectionProvider further standardizes draw2d as a viewer; Eclipse context menu support is inherited for *free*. Selection within a SelectableFigureCanvas works just like it does in other viewers such as table viewers and tree viewers - click on something to select it. draw2d does not have any dependencies on JFace. |