Skip to content

Commit

Permalink
Merge branch 'master' into CSSTUDIO-1684
Browse files Browse the repository at this point in the history
  • Loading branch information
georgweiss committed Nov 12, 2023
2 parents db12971 + fae097d commit ebc41df
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public static DisplayInfo forURI(final URI uri)
// Get basic file or http 'path' from path
final String path;
if (uri.getScheme() == null || uri.getScheme().equals("file"))
path = uri.getRawPath();
path = uri.getPath();
else
{
final StringBuilder buf = new StringBuilder();
Expand Down
11 changes: 11 additions & 0 deletions core/pv/src/main/resources/pv_ca_preferences.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@
# Package org.phoebus.pv.ca
# -------------------------

# By default, we use the following preferences settings,
# but when the System property "jca.use_env" is "true",
# JCA falls back to the EPICS_CA_... environment variables.
#
# Sites that prefer to use the EPICS_CA_... environment variables
# thus need to add
#
# -Djca.use_env=true
#
# to their launcher script.

# Channel Access address list
addr_list=

Expand Down
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 ebc41df

Please sign in to comment.