Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Open a new shape editor instance
Open a new shape editor instance [message #241683] Tue, 04 March 2008 09:32 Go to next message
Eclipse UserFriend
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
Re: Open a new shape editor instance [message #241704 is a reply to message #241683] Wed, 05 March 2008 12:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: shady_86.sify.com

try using the openEditor method?..,
Re: Open a new shape editor instance [message #771481 is a reply to message #241704] Tue, 27 December 2011 11:24 Go to previous messageGo to next message
Karthikeyan Missing name is currently offline Karthikeyan Missing nameFriend
Messages: 47
Registered: July 2011
Member
Hi,

Me too need the above concept, have you opened new editor by the double click event in the shape. If so kindly help me in the same.

Thanks & Regards,
Karthikeyan.B
Re: Open a new shape editor instance [message #774565 is a reply to message #771481] Wed, 04 January 2012 07:36 Go to previous message
Karthikeyan Missing name is currently offline Karthikeyan Missing nameFriend
Messages: 47
Registered: July 2011
Member
Hi,

Kindly go through the below link, then you will get an idea

http://www.vogella.de/articles/EclipseEditors/article.html

of creating new editor using plugin.xml

(or)

Go through the book Eclipse Plugin of Eric Clayberg, Dan Rubel, Chapter-20

In that chapter it has provided of opening editor using IEditorInput which is the best way.

Thanks & Regards,
Karthikeyan.B

[Updated on: Tue, 10 January 2012 07:15]

Report message to a moderator

Previous Topic:Custom layers
Next Topic:Eclipse does not close until GEF editor is closed
Goto Forum:
  


Current Time: Sun Dec 21 12:08:24 GMT 2014

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

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