MCPcopy Create free account
hub / github.com/HumbleUI/JWM / _registerFormatInternal

Method _registerFormatInternal

shared/java/Clipboard.java:94–104  ·  view source on GitHub ↗
(String formatId, boolean needRegistration)

Source from the content-addressed store, hash-verified

92 }
93
94 @ApiStatus.Internal @NotNull @SneakyThrows
95 public static ClipboardFormat _registerFormatInternal(String formatId, boolean needRegistration) {
96 ClipboardFormat format = _formats.get(formatId);
97
98 if (format != null)
99 return format;
100 if (needRegistration && !_nRegisterFormat(formatId))
101 throw new RuntimeException("Failed to register format: " + formatId);
102
103 return _cacheFormatEntry(formatId);
104 }
105
106 @ApiStatus.Internal @NotNull
107 public static ClipboardFormat _cacheFormatEntry(String formatId) {

Callers 2

registerFormatMethod · 0.95

Calls 3

_nRegisterFormatMethod · 0.95
_cacheFormatEntryMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected