Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » glue code for linking two classes?
glue code for linking two classes? [message #654315] Tue, 15 February 2011 06:34
timxu  is currently offline timxu Friend
Messages: 4
Registered: February 2011
Junior Member
Programming with Eclipse Framework often requires programmers to write glue code to link two classes together to perform certain functionality. Below is an example:

You want to link your Editor (extends TextEditor) with your Scanner (extends RuleBasedScanner) to do a customized syntax highlighting. Then you have to write quite a bunch of code dealing with several different classes other than Editor and Scanner, see platform.doc.isv/guide/editors_highlighting.htm
for a brief description. It's quite complex for beginners.

Similar situation happens when we want to link our Editor with our CompletionProposal to customize auto-completion.

We're doing research on automated synthesis of this kind of glue code, and we want to see more examples.

Could you please share your experience on writing glue code to link two classes? Just giving the names of the classes would be very helpful.

Thank you very much!

[Updated on: Tue, 15 February 2011 06:45]

Report message to a moderator

Previous Topic:How to reuse the Properties View?
Next Topic:Menu items added by <dynamic> provider cannot be disabled
Goto Forum:

Current Time: Thu Apr 26 04:13:49 GMT 2018

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

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