Open a new shape editor instance [message #241683] |
Tue, 04 March 2008 04:32  |
Eclipse User |
|
|
|
Originally posted by: s.luedigk.de
Hi,
I'am currently using the shapes example and try to extend it. My goal is
to open a new editor tab by double-click on a shape.
I have included into the ShapeEditPart the following code:
public void performRequest(Request req) {
if (req.getType().equals(RequestConstants.REQ_OPEN)) {
System.out.println("double-click in a shape");
ShapesEditor se = new ShapesEditor();
}
}
The double-click is already catched.
But ... how can I open a new ShapesEditor tab in the eclipse workbench?
The input should be another *.shapes file.
Sebastian
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.24296 seconds