Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
WebGUI
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kieker
WebGUI
Commits
a3dcbff2
Commit
a3dcbff2
authored
12 years ago
by
Nils Christian Ehmke
Browse files
Options
Downloads
Patches
Plain Diff
Added simple tooltipps for the description of the plugins.
parent
90429dbd
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Kieker.WebGUI/src/main/java/kieker/webgui/beans/application/ProjectsBean.java
+11
-1
11 additions, 1 deletion
...in/java/kieker/webgui/beans/application/ProjectsBean.java
Kieker.WebGUI/src/main/webapp/main.xhtml
+4
-2
4 additions, 2 deletions
Kieker.WebGUI/src/main/webapp/main.xhtml
with
15 additions
and
3 deletions
Kieker.WebGUI/src/main/java/kieker/webgui/beans/application/ProjectsBean.java
+
11
−
1
View file @
a3dcbff2
...
...
@@ -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
;
}
}
}
This diff is collapsed.
Click to expand it.
Kieker.WebGUI/src/main/webapp/main.xhtml
+
4
−
2
View file @
a3dcbff2
...
...
@@ -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">
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment