File tree Expand file tree Collapse file tree 3 files changed +31
-0
lines changed
com.espressif.idf.core/src/com/espressif/idf/core/tools
com.espressif.idf.ui/src/com/espressif/idf/ui/tools Expand file tree Collapse file tree 3 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ /*******************************************************************************
2+ * Copyright 2025 Espressif Systems (Shanghai) PTE LTD. All rights reserved.
3+ * Use is subject to license terms.
4+ *******************************************************************************/
15package com .espressif .idf .core .tools ;
26
7+ /**
8+ * Interface to use for the download listening this can be used in your own classes.
9+ * Added specifically for {@link EimLoader}
10+ * @author Ali Azam Rana <[email protected] > 11+ *
12+ */
313public interface DownloadListener
414{
515 public void onProgress (int percent );
Original file line number Diff line number Diff line change 1+ /*******************************************************************************
2+ * Copyright 2025 Espressif Systems (Shanghai) PTE LTD. All rights reserved.
3+ * Use is subject to license terms.
4+ *******************************************************************************/
15package com .espressif .idf .core .tools ;
26
37import java .io .BufferedReader ;
3135import com .google .gson .JsonObject ;
3236import com .google .gson .JsonParser ;
3337
38+ /**
39+ * This class is responsible for downloading and launching the EIM.
40+ * The clients using this must take care of UI refreshes and pausing any listeners.
41+ * @author Ali Azam Rana <[email protected] > 42+ *
43+ */
3444public class EimLoader
3545{
3646 private static final String URL_JSON = "https://dl.espressif.com/dl/eim/eim_unified_release.json" ; //$NON-NLS-1$
Original file line number Diff line number Diff line change 1+ /*******************************************************************************
2+ * Copyright 2025 Espressif Systems (Shanghai) PTE LTD. All rights reserved.
3+ * Use is subject to license terms.
4+ *******************************************************************************/
15package com .espressif .idf .ui .tools ;
26
37import java .io .IOException ;
3034import com .espressif .idf .ui .tools .manager .EimEditorInput ;
3135import com .espressif .idf .ui .tools .manager .pages .ESPIDFMainTablePage ;
3236
37+ /**
38+ * This is a class that other UI elements can also use to trigger
39+ * a simulated event on any widget to launch or download the EIM.
40+ * The primary usage is in {@link ESPIDFMainTablePage}
41+ * @author Ali Azam Rana <[email protected] > 42+ *
43+ */
3344public class EimButtonLaunchListener extends SelectionAdapter
3445{
3546 private ESPIDFMainTablePage espidfMainTablePage ;
You can’t perform that action at this time.
0 commit comments