Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jubula-dev] Jubula Extension for RCP application (Migration from version 1.1 to 2.0 doesn't work)

Hello Marvin,
 
thanks for the helpful hint!
After implementing an adapter which supports the widget class ListElement, the extension is working fine.
 
This is the snippet of the adapter class implementation for all other developers:
 
public class SWTExtensionAdapterFactory implements IAdapterFactory {
 
       @Override
       public Class<?>[] getSupportedClasses() {
             return new Class[] { ListElement.class };
       }
 
       @Override
       public Object getAdapter(Class targetAdapterClass, Object objectToAdapt) {
             if (targetAdapterClass.isAssignableFrom(ITabbedPropertyComponent.class)) {
            if (objectToAdapt instanceof ListElement) {
                return new TabbedPropertyAdapter(objectToAdapt);
            }
        }
        return null;
       }
 
}
 
Attached you will find the complete solution.
 
Thanks,
Michi
 
 
Gesendet: Dienstag, 25. Juni 2013 um 10:44 Uhr
Von: "Marvin Müller" <Marvin.Mueller@xxxxxxxxx>
An: jubula-dev@xxxxxxxxxxx
Betreff: Re: [jubula-dev] Jubula Extension for RCP application (Migration from version 1.1 to 2.0 doesn't work)
Hello Michi,

thanks for your patience.
I have found out that there is a problem with a missing class in it.

You have no class, which is implementing the IAdapterFactory. But this is mandatory, because it is used to find all adapter you are using.
This is described in the Extension Manual 2.3.1 "Creating an adapter"[1]. It is very important that the AdapterFactory is in the package described in the manual.

You could look at the "org.eclipse.jubula.examples.extension.rcp.rc" project in the package "org.eclipse.jubula.rc.common.adapter". In this package is an adapter factory you could look at.

Best regards,
Marvin


[1] http://ftp.bredex.de/.gd/201303141757/Jubula_2.0.00148/EXTEND.pdf
On 21.06.2013 08:40, cmi@xxxxxxxxxxxxxx wrote:
 
 
 
 
_______________________________________________
jubula-dev mailing list
jubula-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/jubula-dev
 
-- 
BREDEX GmbH
Mauernstr. 33
38100 Braunschweig

Tel.: +49-531-24330-0
Fax:  +49-531-24330-99
http: www.bredex.de

Geschäftsführer: Achim Lörke, Ulrich Obst, Andreas Vogel
Amtsgericht Braunschweig HRB 2450

Attachment: com.bmw.jubula.extension.rcp.rc.source_2.0.2.201306241715.jar
Description: Binary data

Attachment: com.bmw.jubula.extension.rcp.rc_2.0.2.201306241715.jar
Description: Binary data


Back to the top