mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 15:10:23 +00:00
Rename display name
This commit is contained in:
parent
d8d62c0eff
commit
2ca2eefb29
5 changed files with 5 additions and 5 deletions
|
@ -71,7 +71,7 @@ public interface DataStoreProvider {
|
|||
return null;
|
||||
}
|
||||
|
||||
default String browserDisplayName(DataStoreEntry entry) {
|
||||
default String displayName(DataStoreEntry entry) {
|
||||
return entry.getName();
|
||||
}
|
||||
|
||||
|
|
|
@ -879,7 +879,7 @@ public abstract class DataStorage {
|
|||
return "?";
|
||||
}
|
||||
|
||||
return entry.getProvider().browserDisplayName(entry);
|
||||
return entry.getProvider().displayName(entry);
|
||||
}
|
||||
|
||||
public Optional<DataStoreEntry> getStoreEntryIfPresent(UUID id) {
|
||||
|
|
|
@ -87,7 +87,7 @@ public abstract class ScriptStore extends JacksonizedValue implements DataStore,
|
|||
}
|
||||
return pc;
|
||||
} catch (StackOverflowError t) {
|
||||
throw new RuntimeException("Unable to set up scripts. Is there a circular script dependency?", t);
|
||||
throw ErrorEvent.expected(new RuntimeException("Unable to set up scripts. Is there a circular script dependency?", t));
|
||||
} catch (Throwable t) {
|
||||
throw new RuntimeException("Unable to set up scripts", t);
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ import java.util.List;
|
|||
|
||||
public abstract class AbstractServiceStoreProvider implements SingletonSessionStoreProvider, DataStoreProvider {
|
||||
|
||||
public String browserDisplayName(DataStoreEntry entry) {
|
||||
public String displayName(DataStoreEntry entry) {
|
||||
AbstractServiceStore s = entry.getStore().asNeeded();
|
||||
return DataStorage.get().getStoreEntryDisplayName(s.getHost().get()) + " - Port " + s.getRemotePort();
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ import java.util.List;
|
|||
|
||||
public class MappedServiceStoreProvider extends FixedServiceStoreProvider {
|
||||
|
||||
public String browserDisplayName(DataStoreEntry entry) {
|
||||
public String displayName(DataStoreEntry entry) {
|
||||
MappedServiceStore s = entry.getStore().asNeeded();
|
||||
return DataStorage.get().getStoreEntryDisplayName(s.getHost().get()) + " - Port " + s.getContainerPort();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue