SGXSDKWizardHandler.java 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. ///////////////////////////////////////////////////////////////////////////
  2. // Copyright (c) 2018 Intel Corporation. //
  3. // //
  4. // All rights reserved. This program and the accompanying materials //
  5. // are made available under the terms of the Eclipse Public License v1.0 //
  6. // which accompanies this distribution, and is available at //
  7. // http://www.eclipse.org/legal/epl-v10.html //
  8. // //
  9. // Contributors: //
  10. // Intel Corporation - initial implementation and documentation //
  11. ///////////////////////////////////////////////////////////////////////////
  12. package com.intel.sgx.handlers;
  13. import org.eclipse.cdt.managedbuilder.core.IToolChain;
  14. import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager;
  15. import org.eclipse.cdt.managedbuilder.ui.wizards.STDWizardHandler;
  16. public class SGXSDKWizardHandler extends STDWizardHandler {
  17. public SGXSDKWizardHandler() {
  18. super(null, null);
  19. }
  20. @Override
  21. public IToolChain[] getSelectedToolChains() {
  22. IToolChain[] tcs = ManagedBuildManager.getRealToolChains();
  23. for (IToolChain tc : tcs) {
  24. if (tc.getId().equals("com.intel.sgx.SGXtoolChain"))
  25. return new IToolChain[] {
  26. tc
  27. };
  28. }
  29. return super.getSelectedToolChains();
  30. }
  31. }