Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to adapt our custom type to eclipse platform?
How to adapt our custom type to eclipse platform? [message #332495] Thu, 23 October 2008 08:26 Go to next message
Eclipse UserFriend
Originally posted by: stephenbyc.gmail.com

This is a multi-part message in MIME format.
--------------070206060503060405050609
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi all,
Now I want to define a sorts of models which wrap the eclipse resource
model like IFile,IFolder,IProject etc. But I don't know how to adapt my
type to eclipse platform. So, Need your help.

Thanks,

Stephen

--------------070206060503060405050609
Content-Type: text/x-vcard; charset=utf-8;
name="stephenbyc.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="stephenbyc.vcf"

begin:vcard
fn:Stephen Bai
n:Bai;Stephen
email;internet:stephenbyc@gmail.com
version:2.1
end:vcard


--------------070206060503060405050609--
Re: How to adapt our custom type to eclipse platform? [message #332496 is a reply to message #332495] Thu, 23 October 2008 11:21 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33264
Registered: July 2009
Senior Member
Stephen,

Did you say model? Perhaps an EMF model? :-P

This will likely help:
http://wiki.eclipse.org/FAQ_How_do_I_use_IAdaptable_and_IAda pterFactory%3F


Stephen wrote:
> Hi all,
> Now I want to define a sorts of models which wrap the eclipse resource
> model like IFile,IFolder,IProject etc. But I don't know how to adapt
> my type to eclipse platform. So, Need your help.
>
> Thanks,
>
> Stephen


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: How to adapt our custom type to eclipse platform? [message #332510 is a reply to message #332496] Fri, 24 October 2008 01:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: stephenbyc.gmail.com

This is a multi-part message in MIME format.
--------------060406070405020001060907
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Ed Merks wrote:
> Stephen,
>
> Did you say model? Perhaps an EMF model? :-P
>
> This will likely help:
> http://wiki.eclipse.org/FAQ_How_do_I_use_IAdaptable_and_IAda pterFactory%3F
>
>
> Stephen wrote:
>> Hi all,
>> Now I want to define a sorts of models which wrap the eclipse resource
>> model like IFile,IFolder,IProject etc. But I don't know how to adapt
>> my type to eclipse platform. So, Need your help.
>>
>> Thanks,
>>
>> Stephen

Thanks for your help, but what is really confused to me is how to adapt
a file which extension name is "*.aaa" for instance to eclipse platform.
Actually, I want use it to my own view which setinput it, and then I can
customize the menu, action and so on according model type. Above all,
I can exclude the unwanted menu like "team". So, could you give me some
hint?


Thanks,

Stephen

--------------060406070405020001060907
Content-Type: text/x-vcard; charset=utf-8;
name="stephenbyc.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="stephenbyc.vcf"

begin:vcard
fn:Stephen Bai
n:Bai;Stephen
email;internet:stephenbyc@gmail.com
version:2.1
end:vcard


--------------060406070405020001060907--
Re: How to adapt our custom type to eclipse platform? [message #332511 is a reply to message #332510] Fri, 24 October 2008 09:33 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33264
Registered: July 2009
Senior Member
Stephen,

I'm not sure you need to adapt it to use it in your own view. The items
like "team" are standard. I think they show up because you or someone
did getSite().registerContextMenu(). I'm not sure how to filter them out...


Stephen wrote:
> Ed Merks wrote:
>> Stephen,
>>
>> Did you say model? Perhaps an EMF model? :-P
>>
>> This will likely help:
>> http://wiki.eclipse.org/FAQ_How_do_I_use_IAdaptable_and_IAda pterFactory%3F
>>
>>
>>
>> Stephen wrote:
>>> Hi all,
>>> Now I want to define a sorts of models which wrap the eclipse
>>> resource model like IFile,IFolder,IProject etc. But I don't know how
>>> to adapt my type to eclipse platform. So, Need your help.
>>>
>>> Thanks,
>>>
>>> Stephen
>
> Thanks for your help, but what is really confused to me is how to
> adapt a file which extension name is "*.aaa" for instance to eclipse
> platform.
> Actually, I want use it to my own view which setinput it, and then I
> can customize the menu, action and so on according model type. Above
> all, I can exclude the unwanted menu like "team". So, could you give
> me some hint?
>
>
> Thanks,
>
> Stephen


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:org.eclipse.ui.views.markers.internal.TableView
Next Topic:starting tomcat 5.5.27 from Ganymede
Goto Forum:
  


Current Time: Thu Dec 26 12:28:39 GMT 2024

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

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

Back to the top