Skip to content

Commit d37a59c

Browse files
committed
javadocs and copyright disclaimer
1 parent 1d64f99 commit d37a59c

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/DownloadListener.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1+
/*******************************************************************************
2+
* Copyright 2025 Espressif Systems (Shanghai) PTE LTD. All rights reserved.
3+
* Use is subject to license terms.
4+
*******************************************************************************/
15
package 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+
*/
313
public interface DownloadListener
414
{
515
public void onProgress(int percent);

bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/EimLoader.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*******************************************************************************
2+
* Copyright 2025 Espressif Systems (Shanghai) PTE LTD. All rights reserved.
3+
* Use is subject to license terms.
4+
*******************************************************************************/
15
package com.espressif.idf.core.tools;
26

37
import java.io.BufferedReader;
@@ -31,6 +35,12 @@
3135
import com.google.gson.JsonObject;
3236
import 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+
*/
3444
public class EimLoader
3545
{
3646
private static final String URL_JSON = "https://dl.espressif.com/dl/eim/eim_unified_release.json"; //$NON-NLS-1$

bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/tools/EimButtonLaunchListener.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*******************************************************************************
2+
* Copyright 2025 Espressif Systems (Shanghai) PTE LTD. All rights reserved.
3+
* Use is subject to license terms.
4+
*******************************************************************************/
15
package com.espressif.idf.ui.tools;
26

37
import java.io.IOException;
@@ -30,6 +34,13 @@
3034
import com.espressif.idf.ui.tools.manager.EimEditorInput;
3135
import 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+
*/
3344
public class EimButtonLaunchListener extends SelectionAdapter
3445
{
3546
private ESPIDFMainTablePage espidfMainTablePage;

0 commit comments

Comments
 (0)