mardi 3 mai 2016

IDs specified in Eclipse plugin

I am writing an eclipse plugin. For many of the components, it is necessary to specify an ID in order to reference them dynamically. Is there any gotcha in using the fully qualified class name of the component as its id?

In other words, is there any downside / mistake in specifying:

private static final String ID = MyComponent.class.getName();

public static String id() {
    return ID;
}

for my plugin components?





Aucun commentaire:

Enregistrer un commentaire