Skip to content
Snippets Groups Projects
Commit a3dcbff2 authored by Nils Christian Ehmke's avatar Nils Christian Ehmke
Browse files

Added simple tooltipps for the description of the plugins.

parent 90429dbd
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,8 @@ import kieker.analysis.model.analysisMetaModel.MIDependency;
import kieker.analysis.model.analysisMetaModel.MIPlugin;
import kieker.analysis.model.analysisMetaModel.MIProject;
import kieker.analysis.model.analysisMetaModel.impl.MAnalysisMetaModelFactory;
import kieker.analysis.plugin.AbstractPlugin;
import kieker.analysis.plugin.annotation.Plugin;
import kieker.webgui.common.FileManager;
import org.primefaces.context.RequestContext;
......@@ -170,6 +172,15 @@ public class ProjectsBean extends Observable {
}
}
public String getDescription(final Class<? super AbstractPlugin> pluginClass) {
Plugin annotation = pluginClass.getAnnotation(Plugin.class);
if (annotation == null || annotation.description().isEmpty()) {
return "No description available";
} else {
return annotation.description();
}
}
/**
* This helper class is a wrapper for a project and can be send to the observers as a message that a project just has been removed. It contains
* the removed project.
......@@ -201,5 +212,4 @@ public class ProjectsBean extends Observable {
return this.project;
}
}
}
......@@ -184,12 +184,14 @@
<p:accordionPanel multiple="true" activeIndex="">
<p:tab title="Reader">
<ui:repeat value="#{selectedMainProjectBean.availableReaders}" var="reader">
<p:commandLink value="#{reader.simpleName}" action="#{selectedMainProjectBean.addPlugin(reader)}" update=":projectsForm :centerForm" /><br/>
<p:commandLink id="readerLink" value="#{reader.simpleName}" action="#{selectedMainProjectBean.addPlugin(reader)}" update=":projectsForm :centerForm" /><br/>
<p:tooltip style="font-size: 15px" for="readerLink" value="#{projectsBean.getDescription(reader)}"/>
</ui:repeat>
</p:tab>
<p:tab title="Filter">
<ui:repeat value="#{selectedMainProjectBean.availableFilters}" var="filter">
<p:commandLink value="#{filter.simpleName}" action="#{selectedMainProjectBean.addPlugin(filter)}" update=":projectsForm :centerForm"/><br/>
<p:commandLink id="filterLink" value="#{filter.simpleName}" action="#{selectedMainProjectBean.addPlugin(filter)}" update=":projectsForm :centerForm"/><br/>
<p:tooltip style="font-size: 15px" for="filterLink" value="#{projectsBean.getDescription(filter)}"/>
</ui:repeat>
</p:tab>
<p:tab title="Repositories">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment