Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Content Assist across contexts
Content Assist across contexts [message #636501] Mon, 01 November 2010 15:25
zmaker5 is currently offline zmaker5
Messages: 4
Registered: November 2010
Junior Member
The project I'm working on uses a lot of reflection through XML files.

Essentially long method calls like
Object.method().method().array[index].method().member

get turned into
Object#method(*)#method(*)#array#[*]#method#member

This is pretty painful manually, I've designed a plan for making a plugin that would do it through navigating a tree of the objects and their methods/members and in a text box below generate the converted code.

However, since we edit the XML file in eclipse I was thinking maybe using content assist in a custom editor it could use the information of java from the project like any java file and provide the suggested converted completion.

So would this be possible?

From my research so far it seems content assist wants to work off of a context by the line number in a file, is there anyway to get it to return a list simply based on what it knows exists within the project given some letters?

Right now I type in the java editor and use the content assist already to make the call then manually change it to the xml reflection format.
Previous Topic:How to add java project's classpath to a plug-in's classpath?
Next Topic:Add the eclipse install manager to eclipse based application?
Goto Forum:
  


Current Time: Fri Oct 24 09:48:43 GMT 2014

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

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