Overhaul search with a Command Palette (#7569)

Co-authored-by: Wadeck Follonier <Wadeck@users.noreply.github.com>
Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com>
Co-authored-by: Alexander Brandes <mc.cache@web.de>
Co-authored-by: Tim Jacomb <timjacomb1@gmail.com>
This commit is contained in:
authored and GitHub committed 2024-12-09 22:19:12 +00:00
1 parent f6802dd545
commit 930c7ffe7d
28 files changed
+600 -163

No files matched your search

+10
View File
@@ -62,6 +62,7 @@ import hudson.model.User;
import hudson.model.View;
import hudson.scm.SCM;
import hudson.scm.SCMDescriptor;
import hudson.search.SearchFactory;
import hudson.search.SearchableModelObject;
import hudson.security.ACL;
import hudson.security.AccessControlled;
@@ -2578,6 +2579,11 @@ public class Functions {
return String.valueOf(Math.floor(Math.random() * 3000));
}
@Restricted(NoExternalUse.class)
public static ExtensionList<SearchFactory> getSearchFactories() {
return SearchFactory.all();
}
/**
* @param keyboardShortcut the shortcut to be translated
* @return the translated shortcut, e.g. CMD+K to ⌘+K for macOS, CTRL+K for Windows
@@ -2596,6 +2602,10 @@ public class Functions {
@Restricted(NoExternalUse.class)
public static String formatMessage(String format, Object args) {
if (format == null) {
return args.toString();
}
return MessageFormat.format(format, args);
}
}