[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.modeling.mdt.uml2.uml] Component, Port and Interface

Hi all,

I have the following code:


UML2Factory umlfactory = UML2Factory.eINSTANCE;

Component component = umlfactory.createComponent();
component.setName("ProviderComponent");

Interface interf = umlfactory.createInterface(); interf.setName("HelloWorld");

Port port = umlfactory.createPort();
port.setName("Source");


But in the following line I get an UnsupportedOperationException
port.getProvideds().add(interf);

I wonder if somebody can answer how to add this interface to the list of provided interfaces of the port.

Thanks in advance
Christian