Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion eclipse-scout-core/src/system/systems.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2010, 2024 BSI Business Systems Integration AG
* Copyright (c) 2010, 2026 BSI Business Systems Integration AG
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
Expand Down Expand Up @@ -39,6 +39,14 @@ export const systems = {
return system;
},

/**
* Retrieves the {@link System} with given name.
* @param name The optional name of the System. If omitted, {@link System.MAIN_SYSTEM} is used.
*/
get(name?: string): System {
Comment thread
tgygax marked this conversation as resolved.
return systems._systemsMap.get(name || System.MAIN_SYSTEM);
},

/**
* @param name The optional name of the system. If omitted, {@link System.MAIN_SYSTEM} is used.
* @returns true if a system with given name is already registered.
Expand Down
Loading