Re: [Xswt-developer] handling uris for locating styles
Brought to you by:
dvorme
|
From: David J. O. <dj...@co...> - 2006-12-04 13:45:37
|
Sure; sounds good.=20 Dave=20 ----- Original Message -----=20 From: Hallvard Tr=C3=A6tteberg <ha...@id...>=20 To: xsw...@li...=20 Sent: Monday, December 4, 2006 3:11:37 AM GMT-0600=20 Subject: [Xswt-developer] handling uris for locating styles=20 Hi,=20 I'm trying to integrate XSWT with a GMF (EMF+GEF++)-based tool, and one of= =20 the problems I've come across is that of resolving URIs of styles. This is= =20 currently done using either full URLs or URLs relative to a class (in the= =20 project). This may work well for pure Java projects, but not necessarily fo= r=20 others, e.g. I would like to refer to plugins and projects in the workspace= .=20 What I would like to propose is a uri mapping interface, that handles two= =20 things: 1) the mapping from an uri to an input stream: InputStream=20 getInputStream(String uri), and 2) resolving a relative uri in the context= =20 of a base uri: String resolve(String uri, String base). A default=20 implementation would support the current mechanism (URLs and class names),= =20 while I would be able to write a different one, e.g. utilizing EMFs URI.=20 Hallvard=20 ---=20 Hallvard Tr=C3=A6tteberg (ha...@id..., http://www.idi.ntnu.no/~hal)=20 Associate Professor, IS group, Dept. of Computer and Information Sciences a= t=20 the Norwegian Univ. of Science and Technology=20 -------------------------------------------------------------------------= =20 Take Surveys. Earn Cash. Influence the Future of IT=20 Join SourceForge.net's Techsay panel and you'll get the chance to share you= r=20 opinions on IT & business topics through brief surveys - and earn cash=20 http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDE= VDEV=20 _______________________________________________=20 Xswt-developer mailing list=20 Xsw...@li...=20 https://lists.sourceforge.net/lists/listinfo/xswt-developer=20 |