[Xswt-developer] handling uris for locating styles
Brought to you by:
dvorme
|
From: <ha...@id...> - 2006-12-04 09:11:46
|
Hi, I'm trying to integrate XSWT with a GMF (EMF+GEF++)-based tool, and one = of the problems I've come across is that of resolving URIs of styles. This = is currently done using either full URLs or URLs relative to a class (in = the project). This may work well for pure Java projects, but not necessarily = for others, e.g. I would like to refer to plugins and projects in the = workspace. What I would like to propose is a uri mapping interface, that handles = two things: 1) the mapping from an uri to an input stream: InputStream getInputStream(String uri), and 2) resolving a relative uri in the = context of a base uri: String resolve(String uri, String base). A default implementation would support the current mechanism (URLs and class = names), while I would be able to write a different one, e.g. utilizing EMFs URI. Hallvard --- Hallvard Tr=E6tteberg (ha...@id..., http://www.idi.ntnu.no/~hal) Associate Professor, IS group, Dept. of Computer and Information = Sciences at the Norwegian Univ. of Science and Technology |