Skip to content

Commit

Permalink
Fix tooltips in graphviz areamap
Browse files Browse the repository at this point in the history
  • Loading branch information
guidograzioli committed Dec 18, 2020
1 parent 1462164 commit 19e40fb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,15 @@

package hudson.plugins.depgraph_view;

import java.util.Collection;
import java.util.Collections;

import hudson.Extension;
import hudson.model.AbstractModelObject;
import hudson.model.FreeStyleProject;
import hudson.model.Job;
import hudson.model.Action;
import hudson.model.Job;
import jenkins.model.TransientActionFactory;

import java.util.Collection;
import java.util.Collections;

/**
* Factory to add a dependency graph view action to each project
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@

package hudson.plugins.depgraph_view.model.display;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;

import com.google.common.base.Function;
import com.google.common.collect.ListMultimap;
import com.google.common.collect.Lists;

import hudson.model.Job;
import hudson.plugins.depgraph_view.model.graph.DependencyGraph;
import hudson.plugins.depgraph_view.model.graph.ProjectNode;
import hudson.plugins.depgraph_view.model.graph.edge.Edge;

import javax.annotation.Nonnull;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;

/**
* Base class for generating String representations of the graph.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,9 @@ private String projectsInDependenciesNodes() {

private String projectToNodeString(ProjectNode proj) {
return escapeString(proj.getName()) +
" [label=<" + stripFunction.apply(proj.getName()) + "> href=" +
getEscapedProjectUrl(proj) + "]";
" [label=<" + stripFunction.apply(proj.getName()) + "> " +
" tooltip=" + escapeString(proj.getName()) +
" href=" + getEscapedProjectUrl(proj) + "]";
}

private String projectToNodeString(ProjectNode proj, List<ProjectNode> subprojects) {
Expand Down

0 comments on commit 19e40fb

Please sign in to comment.