public static List<OpenWithTarget> getAll() {
		List<OpenWithTarget> results = new ArrayList<>();
		Project project = AppInfo.getActiveProject();
		if (project != null) {
			results.addAll(getRunningTargets(project));

			ToolTemplate defaultTT = project.getToolServices()
					.getDefaultToolTemplate(ProgramContentHandler.PROGRAM_CONTENT_TYPE);
			results.add(new OpenWithTarget(defaultTT.getName(), null, defaultTT.getIcon()));

			ToolTemplate[] templates = project.getLocalToolChest().getToolTemplates();
			for (ToolTemplate toolTemplate : templates) {
				if (!toolTemplate.getName().equals(defaultTT.getName())) {
					results.add(
						new OpenWithTarget(toolTemplate.getName(), null, toolTemplate.getIcon()));
				}
			}
		}
		return results;
	}
Returns a list of all running tools and tool templates that can be used to open a domainfile.
 
@return list of OpenWithTarget instances, maybe empty but not null
Ghidra/Features/Base/src/main/java/ghidra/plugins/fsbrowser/OpenWithTarget.java