Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Dynamic Part(Looking for an example using the dynamic parts)
icon5.gif  Dynamic Part [message #538355] Mon, 07 June 2010 13:11 Go to next message
Phil W. is currently offline Phil W.
Messages: 2
Registered: June 2010
Junior Member
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!
Re: Dynamic Part [message #538539 is a reply to message #538355] Mon, 07 June 2010 21:55 Go to previous message
Yves YANG is currently offline Yves YANG
Messages: 687
Registered: July 2009
Senior Member
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!
Previous Topic:Extensions broken in e4?
Next Topic:Dynamic Part
Goto Forum:
  


Current Time: Sat Oct 25 03:07:15 GMT 2014

Powered by FUDForum. Page generated in 0.01989 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software