[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [platform-swt-dev] Passing Objects in SWT Commands & Testing them
- From: Kevin Barnes <krbarnes@xxxxxxxxxx>
- Date: Tue, 22 Jul 2008 09:47:17 -0400
- Delivered-to: email@example.com
This question would be better asked on the eclipse.platform newgroup.
Command and Handlers are not provided by swt and there's unlikely to be anyone watching this list that can give you a solid answer to your question.
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx
07/22/2008 01:55 AM
Please respond to
"Eclipse Platform SWT component developers list." <platform-swt-dev@xxxxxxxxxxx>
We're using eclipse RCP 3.3 and are making heavy use of the newer
command/handlers. I have 2 questions
1. It appears that everything you pass around in eclipse is String based?
What is the reasoning behind that? Is there any way I can pass Java objects
to my handlers instead apart from passing strings to use for lookups using a
3rd party object?
2. The more we develop the more things end up in our plugin's plugin.xml
file? What strategies are people using to test that this file is wired up
correctly? It seems awfully easy to break things in this file and without
tests we don't catch it. I'm looking for any pointers here to push me in the
Also, for testing, we have our handlers etc.. broken out into separate
classes for testability purposes. However, we find they are still using
certain Singleton classes such as PlatformUI and HandlerUtil. Do people tend
to mock these out using a custom object to ensure their handlers are
View this message in context: http://www.nabble.com/Passing-Objects-in-SWT-Commands---Testing-them-tp18582915p18582915.html
Sent from the Eclipse Platform - swt mailing list archive at Nabble.com.
platform-swt-dev mailing list