|
Re: Dynamic Part [message #538539 is a reply to message #538355] |
Mon, 07 June 2010 17:55  |
Eclipse User |
|
|
|
The "dynamic parts" is designed to create a UI through an InputStream,
instead of a physical file.The UI content can be generated in runtime by a
class, or loaded from network.
To use a "Dynamic Part", you need to create a subclass by providing an
instance of IPartContentProvider:
public interface IPartContentProvider {
/**
* Content stream
*
* @return
*/
InputStream getContent();
/**
* Resource location, used to resolve relative resources
*
* @return
*/
URL getBase();
/**
* Resource loader
*
* @return
*/
ClassLoader getClassLoader();
}
The method refresh() can be used to reload the UI.
Indeed, we need to develop a show case.
Best regards
Yves YANG
"Phil W." <raidtmar@hs-albsig.de> wrote in message
news:huir5u$l6v$1@build.eclipse.org...
>I got a little experience by using the Workbench Model Editor with the
>"static parts". I tried to swap the static part with a "dynamic part", but
>unfortunately I doesn't work. I didnt find any matching example on the
>repository or any kind of documentation to get in run.
> What are the prospects of using the "dynamic parts"? Does anyone know a
> sample where the dynamic part (XWTDynamicPart) is used?
>
> Thank you!
|
|
|
Powered by
FUDForum. Page generated in 0.25462 seconds