Skip to content

Commit

Permalink
CSSTUDIO-2046 Decode escaped characters in the URI of the input displ…
Browse files Browse the repository at this point in the history
…ayed in the tool-tip of tabs.
  • Loading branch information
abrahamwolk committed Nov 9, 2023
1 parent 964b528 commit 884f6af
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

import java.io.File;
import java.net.URI;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;
import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.List;
Expand Down Expand Up @@ -166,7 +168,8 @@ public void setInput(final URI input)
name_tab.setTooltip(new Tooltip(Messages.DockNotSaved));
else
{
name_tab.setTooltip(new Tooltip(input.toString()));
String decodedInputURI = URLDecoder.decode(input.toString(), StandardCharsets.UTF_8);
name_tab.setTooltip(new Tooltip(decodedInputURI));
setLabel(name);
}
});
Expand Down

0 comments on commit 884f6af

Please sign in to comment.