Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Is there a convenience method for Class<?> to contribution URI?
Is there a convenience method for Class<?> to contribution URI? [message #1724730] Thu, 25 February 2016 15:50
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 853
Registered: July 2009
Senior Member
I wonder if there is a utility method that creates a contribution URI by a java Class<?> like the followingin the E4 code base:

    public static String toBundleclassURI(Class<?> type) {
        return String.format("bundleclass://%s/%s", FrameworkUtil.getBundle(type).getSymbolicName(),
            type.getCanonicalName());
    }


It is annoying to always concatenate a proper bundleclass URI manually.
Previous Topic:Horizontal Ruler?
Next Topic:Injection into ContentProvider / LabelProvider
Goto Forum:
  


Current Time: Sun Jun 26 03:38:29 GMT 2022

Powered by FUDForum. Page generated in 0.01394 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top