Skip to main content
summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/MBSWizardHandler.java47
1 files changed, 47 insertions, 0 deletions
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/MBSWizardHandler.java b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/MBSWizardHandler.java
index 8d204ec1f7..34a8ce00fd 100644
--- a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/MBSWizardHandler.java
+++ b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/MBSWizardHandler.java
@@ -272,6 +272,29 @@ public class MBSWizardHandler extends CWizardHandler {
}
/**
+ * Get a map from toolchain names to actual toolchains.
+ * This list should mirror the list displayed in the wizard.
+ * Bug #363612
+ *
+ * @since 8.1
+ * @return the map
+ */
+ public SortedMap<String, IToolChain> getToolChains() {
+ Set<String> toolChainNames = this.tc_filter();
+ SortedMap<String, IToolChain> toolChainMap = new TreeMap<String, IToolChain>();
+
+ for (String toolChainName : toolChainNames) {
+ IToolChain tc = tcs.get(toolChainName);
+ if (tc == null) {
+ toolChainMap.put(toolChainName, null);
+ } else {
+ toolChainMap.put(tc.getUniqueRealName(), tc);
+ }
+ }
+ return toolChainMap;
+ }
+
+ /**
* Checks whether given toolchain can be displayed
*
* @param tcId - toolchain _NAME_ to check
@@ -708,6 +731,30 @@ public class MBSWizardHandler extends CWizardHandler {
else
return entryInfo.tc_filter().size();
}
+ /**
+ * Get a map from toolchain names to actual toolchains.
+ * Bug #363612
+ *
+ * @since 8.1
+ * @return the map
+ */
+ public SortedMap<String, IToolChain> getToolChains() {
+ if (entryInfo == null)
+ return full_tcs;
+ else
+ return entryInfo.getToolChains();
+ }
+ /**
+ * Get the table that is displayed in the left pane.
+ * This allow for changes after handler creation.
+ * Bug #363612
+ *
+ * @since 8.1
+ * @return the table
+ */
+ public Table getToolChainsTable() {
+ return table;
+ }
public String getPropertyId() {
return propertyId;
}

Back to the top