Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How can i construct editor's container (i.e. IEditorSite)?
How can i construct editor's container (i.e. IEditorSite)? [message #328673] Sun, 01 June 2008 03:59 Go to next message
Eclipse UserFriend
Originally posted by: clandestinesnehal.gmail.com

Hi All,
I am trying to draw a graphical editor on an SWT widget.
For this purpose, i need to make an editor's container (i.e. IEditorSite).
I guess the question is: How can i construct an IEditorSite?

There is an implementation for IEditorSite - EditorSite(IEditorReference
ref, IEditorPart editor, WorkbenchPage page, EditorDescriptor desc)
I dont know how to get a reference to IEditorReference? Rest of the
arguments are gettable..but what is an IEditorReference?

Any help will be appreciated!

Thanks,
Snehal
Re: How can i construct editor's container (i.e. IEditorSite)? [message #328925 is a reply to message #328673] Fri, 06 June 2008 18:13 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

That's all internal code (and it's the worst kind, the tightly coupled
kind).

Basically, you'll have to hack around until you can put it together (no
guarantee that it'll work) ... I think EditorManager creates
EditorReferences.

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm


Previous Topic:Jface Accelerator Not working untill menu is popped once
Next Topic:How to contribute a popup menu to Trim Area
Goto Forum:
  


Current Time: Sat Jul 20 23:34:56 GMT 2024

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

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

Back to the top