Skip to content

Improve Palladio path mapping #22

@FaKleiser

Description

@FaKleiser

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);
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions