Skip to content

API to identify bundle resources (like images) #713

@ruspl-afed

Description

@ruspl-afed

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions