Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Passing Objects in SWT Commands & Testing them

In 3.4, we introduce schema identifiers so if schemas are defined correctly, you get errors and warnings saying so.

http://download.eclipse.org/eclipse/downloads/drops/R-3.4-200806172000/whatsnew3.4/eclipse-news-part4.html

"Schema Identifier Attribute"

There are quite a few schemas that take advantage of this already in 3.4... expect more to come online in 3.5

On Tue, Jul 22, 2008 at 6:26 PM, Colin Goudie <colin.goudie@xxxxxxxxx> wrote:
Thanks Kevin, will do

On Tue, Jul 22, 2008 at 11:47 PM, Kevin Barnes <krbarnes@xxxxxxxxxx> wrote:

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.

Kevin Barnes


Inactive hide details for gommo <colin.goudie@xxxxxxxxx>gommo <colin.goudie@xxxxxxxxx>



To


platform-swt-dev@xxxxxxxxxxx

cc


Subject

[platform-swt-dev] Passing Objects in SWT Commands & Testing them


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
right direction.

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
testable?

Thanks
--
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
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev


_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev




--
Colin Goudie (B.CompSci,B.Eng Comp)
Tributech
MB: 0412 014 851
www.tributech.com.au
PO Box 380 Cardiff NSW 2285 Australia

_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev




--
Cheers,

~ Chris Aniszczyk

GIF image

GIF image


Back to the top