use of org.openide.filesystems.annotations.LayerBuilder.File 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;
}
use of org.openide.filesystems.annotations.LayerBuilder.File in project blue by kunstmusik.
the class InstrumentEditorPluginProcessor method handleProcess.
@Override
protected boolean handleProcess(Set<? extends TypeElement> set, RoundEnvironment env) throws LayerGenerationException {
Elements elements = processingEnv.getElementUtils();
for (Element e : env.getElementsAnnotatedWith(InstrumentEditorPlugin.class)) {
TypeElement clazz = (TypeElement) e;
InstrumentEditorPlugin instrumentEditorPlugin = clazz.getAnnotation(InstrumentEditorPlugin.class);
String teName = elements.getBinaryName(clazz).toString();
File f = layer(e).file("blue/instrumentEditors/" + teName.replace('.', '-') + ".instance");
TypeMirror tm = null;
try {
instrumentEditorPlugin.instrumentType();
} catch (MirroredTypeException mte) {
tm = mte.getTypeMirror();
}
f.stringvalue("instrumentType", tm.toString());
f.write();
}
return true;
}
use of org.openide.filesystems.annotations.LayerBuilder.File in project blue by kunstmusik.
the class NoteProcessorPluginProcessor method handleProcess.
@Override
protected boolean handleProcess(Set<? extends TypeElement> set, RoundEnvironment env) throws LayerGenerationException {
Elements elements = processingEnv.getElementUtils();
for (Element e : env.getElementsAnnotatedWith(NoteProcessorPlugin.class)) {
TypeElement clazz = (TypeElement) e;
NoteProcessorPlugin noteProcessorPlugin = clazz.getAnnotation(NoteProcessorPlugin.class);
String teName = elements.getBinaryName(clazz).toString();
File f = layer(e).file("blue/noteProcessors/" + teName.replace('.', '-') + ".instance").intvalue("position", noteProcessorPlugin.position()).bundlevalue("displayName", noteProcessorPlugin.displayName());
f.write();
}
return true;
}
use of org.openide.filesystems.annotations.LayerBuilder.File in project blue by kunstmusik.
the class ScoreObjectEditorPluginProcessor method handleProcess.
@Override
protected boolean handleProcess(Set<? extends TypeElement> set, RoundEnvironment env) throws LayerGenerationException {
Elements elements = processingEnv.getElementUtils();
for (Element e : env.getElementsAnnotatedWith(ScoreObjectEditorPlugin.class)) {
TypeElement clazz = (TypeElement) e;
String teName = elements.getBinaryName(clazz).toString();
ScoreObjectEditorPlugin instrumentEditorPlugin = clazz.getAnnotation(ScoreObjectEditorPlugin.class);
File f = layer(e).file("blue/score/objectEditors/" + teName.replace('.', '-') + ".instance");
TypeMirror tm = null;
try {
instrumentEditorPlugin.scoreObjectType();
} catch (MirroredTypeException mte) {
tm = mte.getTypeMirror();
}
f.stringvalue("scoreObjectType", tm.toString());
f.write();
}
return true;
}
use of org.openide.filesystems.annotations.LayerBuilder.File in project blue by kunstmusik.
the class BarRendererPluginProcessor method handleProcess.
@Override
protected boolean handleProcess(Set<? extends TypeElement> set, RoundEnvironment env) throws LayerGenerationException {
Elements elements = processingEnv.getElementUtils();
for (Element e : env.getElementsAnnotatedWith(BarRendererPlugin.class)) {
TypeElement clazz = (TypeElement) e;
String teName = elements.getBinaryName(clazz).toString();
BarRendererPlugin barRendererPlugin = clazz.getAnnotation(BarRendererPlugin.class);
File f = layer(e).file("blue/score/barRenderers/" + teName.replace('.', '-') + ".instance");
TypeMirror tm = null;
try {
barRendererPlugin.scoreObjectType();
} catch (MirroredTypeException mte) {
tm = mte.getTypeMirror();
}
f.stringvalue("scoreObjectType", tm.toString());
f.write();
}
return true;
}
Aggregations