Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » What's the difference between IEditorSite and IEditorPart
What's the difference between IEditorSite and IEditorPart [message #331951] Tue, 30 September 2008 14:52 Go to next message
Eclipse UserFriend
Originally posted by: biteclipser.sina.com.cn

Hi,

I find that there is a method init in IEditorPart ,it's signature is

public void init(IEditorSite site, IEditorInput input),

so what is the difference between IEditorSite and IEditorPart,

when open an editor,this init method will be called,I want to know

what IEditorSite object in init method stands for.

will u help me
Re: What's the difference between IEditorSite and IEditorPart [message #331959 is a reply to message #331951] Tue, 30 September 2008 15:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

I noticed that you've been asking several questions on many different
news-groups. Please do NOT cross-post your questions to multiple
newsgroups. If you are uncertain which group is most appropriate, please
choose one that looks close and others will re-direct it to the right
group if necessary.


On 9/30/2008 10:52 AM, exquisitus wrote:
> Hi,
>
> I find that there is a method init in IEditorPart ,it's signature is
>
> public void init(IEditorSite site, IEditorInput input),
>
> so what is the difference between IEditorSite and IEditorPart,
>
> when open an editor,this init method will be called,I want to know
>
> what IEditorSite object in init method stands for.
>
> will u help me
Re: What's the difference between IEditorSite and IEditorPart [message #332013 is a reply to message #331951] Wed, 01 October 2008 13:53 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Your site is your editors link to call back into the framework (get the
selection, the IWorkbenchPage you belong to, any services that are
available, etc)

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/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Previous Topic:ActiveEditorId Expression
Next Topic:What is a IWorkbenchPage object stands for in RCP or Eclipse
Goto Forum:
  


Current Time: Wed Jul 17 15:38:31 GMT 2024

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

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

Back to the top