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