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