Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Palladio path mapping #22

Open
FaKleiser opened this issue Feb 17, 2017 · 0 comments
Open

Improve Palladio path mapping #22

FaKleiser opened this issue Feb 17, 2017 · 0 comments

Comments

@FaKleiser
Copy link
Member

As per the comment of @alejandrorago the current implementation of the Palladio path mapping can be simplified to:

static {
	Path currentPath = Paths.get("").toAbsolutePath();
	Path workspacePath = currentPath.getParent();
	String uriPath = workspacePath.normalize().toString();
	//URI platformURI = URI.createPlatformPluginURI("org.palladiosimulator.pcm.resources", true).appendSegment("defaultModels").appendSegment("");
	URI physicalURI = URI.createFileURI(uriPath).appendSegment("PCM").appendSegment("org.palladiosimulator.pcm.resources").appendSegment("defaultModels").appendSegment("");
	URI pcmModels = URI.createURI("pathmap://PCM_MODELS/");
	URIConverter.URI_MAP.put(pcmModels, physicalURI);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant