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

API to identify bundle resources (like images) #713

Open
ruspl-afed opened this issue Dec 5, 2024 · 0 comments · May be fixed by #714
Open

API to identify bundle resources (like images) #713

ruspl-afed opened this issue Dec 5, 2024 · 0 comments · May be fixed by #714

Comments

@ruspl-afed
Copy link
Contributor

We have a discussion in PDE and it partially addresses the problem of identifying package resources (like images) inside Java code to establish PDE API control for them.

This issue was created to discuss a specific implementation proposal,
an excerpt from it is given here:

public record ImageIdentityRecord(BundleIdentity bundle, String path, String key) implements ImageIdentity {

	@Override
	public String id() {
		return bundle.symbolic() + ".image." + key; //$NON-NLS-1$
	}

	@Override
	public String url() {
		return "platform:/plugin/" + bundle.symbolic() + "/$nl$/" + path; //$NON-NLS-1$ //$NON-NLS-2$
	}

}

PR with details will follow shortly

ruspl-afed added a commit to ruspl-afed/equinox that referenced this issue Dec 5, 2024
`ImageIdentity` interface with surrounding types

Signed-off-by: Alexander Fedorov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant