Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » target namespace of CMElementDeclaration
target namespace of CMElementDeclaration [message #725064] Tue, 13 September 2011 20:30
Florian Thienel is currently offline Florian ThienelFriend
Messages: 37
Registered: July 2009
Hi folks,

is there a more elegant way to get the target namespace of a given
CMElementDeclaration than this:

CMElementDeclaration decl = ...;
CMDocument doc = (CMDocument) decl.getProperty("CMDocument");
if (doc != null)
  String namespaceUri = (String) doc.getProperty("http" + "://org.eclipse.wst/cm/properties/targetNamespaceURI");

Any help appreciated.


[Updated on: Tue, 13 September 2011 20:31]

Report message to a moderator

Previous Topic:Eclipse
Next Topic:WTP [JSF2] webapp + Ajax features - plugin/suggestions?
Goto Forum:

Current Time: Sun Nov 19 16:23:31 GMT 2017

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

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