Plugins (1057)


Training and Consulting (44)



EPIC Poll

What is your favourite developer portal?

[ Results | Polls ]

Votes: 541
Comments: 0

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
Innngo
11 Post subject: Expanding the Sample XML Editor [need help]  PostPosted: Apr 25, 2008 - 03:36 AM



Joined: Apr 23, 2008
Posts: 2

Hello forum,

seems like I really need help. After about 2 weeks of reading about the topic, I still don't have much of a clue as of how to contribute to Eclipse.

Let's assume I am using the XML Editor that comes with Eclipse 3.3..

I *have to* write a plugin for Eclipse that adds a submenu entry to the context menu of the navigators views, such as "New -> Special XML" file.

Clicking that should then open a new XML file and and already write some stuff in it.. then in the XML Editor's view, I should be able to right-click an element and have another entry in the context menu appear that lets me add another sub-element automatically with 5 attributes.

Could anyone point me in the right direction? I wouldn't mind a detailed describtion,

thanks in advance.
 
 View user's profile Send private message  
Reply with quote Back to top
jlvschagen
Post subject:   PostPosted: May 11, 2008 - 09:14 AM



Joined: May 11, 2008
Posts: 2

create an extension based on the eclipse.ui.editor, in this extension you can specify a class location. this class has to inherit the IEditorPart interface, if you wanna make life easy you can just extend the StructuredTextEditor from the sse plugin.

im not to sure how to contribute a context menu on the string data tho, you could just do that from the contentoutline page. you can initiate that from the getAdapter method within your editor class.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits