use of blue.plugin.ScoreMouseListenerPlugin in project blue by kunstmusik.
the class ScoreMouseListenerPluginProcessor method handleProcess.
@Override
protected boolean handleProcess(Set<? extends TypeElement> set, RoundEnvironment env) throws LayerGenerationException {
Elements elements = processingEnv.getElementUtils();
for (Element e : env.getElementsAnnotatedWith(ScoreMouseListenerPlugin.class)) {
TypeElement clazz = (TypeElement) e;
ScoreMouseListenerPlugin plugin = clazz.getAnnotation(ScoreMouseListenerPlugin.class);
String teName = elements.getBinaryName(clazz).toString();
File f = layer(e).file("blue/score/mouse/" + teName.replace('.', '-') + ".instance").intvalue("position", plugin.position()).bundlevalue("displayName", plugin.displayName());
f.write();
}
return true;
}
Aggregations