Commit [2f03b2] Maximize Restore History

packs: copy examples functional

- refresh handler updates views
- Repos pref page with wider columns
- debug messages cleanups

Liviu Ionescu Liviu Ionescu 2014-06-16

added ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/jobs/CopyExampleDialog.java
changed ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/cmsis/PdscParser.java
changed ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/handlers/RefreshHandler.java
changed ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/jobs/CopyExampleJob.java
changed ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/ui/perspectives/PacksPerspective.java
changed ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/ui/views/BoardsView.java
changed ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/ui/views/DevicesView.java
changed ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/ui/views/KeywordsView.java
changed ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/ui/views/OutlineView.java
changed ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/ui/views/PacksView.java
changed ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/Activator.java
changed ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/PacksStorage.java
changed ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/Utils.java
changed ilg.gnuarmeclipse.packs/plugin.xml
copied ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/jobs/LoadReposJob.java -> ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/jobs/LoadReposSummariesJob.java
copied ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/ui/preferences/NewSiteDialog.java -> ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/ui/preferences/NewRepoDialog.java
copied ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/ui/preferences/SitesPage.java -> ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/ui/preferences/ReposPage.java
ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/jobs/CopyExampleDialog.java Diff Switch to side-by-side view
Loading...
ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/cmsis/PdscParser.java Diff Switch to side-by-side view
Loading...
ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/handlers/RefreshHandler.java Diff Switch to side-by-side view
Loading...
ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/jobs/CopyExampleJob.java Diff Switch to side-by-side view
Loading...
ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/ui/perspectives/PacksPerspective.java Diff Switch to side-by-side view
Loading...
ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/ui/views/BoardsView.java Diff Switch to side-by-side view
Loading...
ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/ui/views/DevicesView.java Diff Switch to side-by-side view
Loading...
ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/ui/views/KeywordsView.java Diff Switch to side-by-side view
Loading...
ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/ui/views/OutlineView.java Diff Switch to side-by-side view
Loading...
ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/ui/views/PacksView.java Diff Switch to side-by-side view
Loading...
ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/Activator.java Diff Switch to side-by-side view
Loading...
ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/PacksStorage.java Diff Switch to side-by-side view
Loading...
ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/Utils.java Diff Switch to side-by-side view
Loading...
ilg.gnuarmeclipse.packs/plugin.xml Diff Switch to side-by-side view
Loading...
ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/jobs/LoadReposJob.java to ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/jobs/LoadReposSummariesJob.java
--- a/ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/jobs/LoadReposJob.java
+++ b/ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/jobs/LoadReposSummariesJob.java
@@ -25,7 +25,8 @@
 import org.eclipse.core.runtime.jobs.Job;
 import org.eclipse.ui.console.MessageConsoleStream;
 
-public class LoadReposJob extends Job {
+// Used when the plug-in is activated.
+public class LoadReposSummariesJob extends Job {
 
 	private static boolean ms_running = false;
 
@@ -34,7 +35,7 @@
 	private Repos m_repos;
 	private PacksStorage m_storage;
 
-	public LoadReposJob(String name) {
+	public LoadReposSummariesJob(String name) {
 
 		super(name);
 
@@ -63,7 +64,7 @@
 
 		int workUnits = reposList.size();
 		workUnits++; // For post processing
-		monitor.beginTask("Load packs repositories", workUnits);
+		monitor.beginTask("Load repos summaries", workUnits);
 
 		m_storage.parseRepos(monitor);
 
ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/ui/preferences/NewSiteDialog.java to ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/ui/preferences/NewRepoDialog.java
--- a/ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/ui/preferences/NewSiteDialog.java
+++ b/ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/ui/preferences/NewRepoDialog.java
@@ -29,7 +29,7 @@
 import org.eclipse.swt.widgets.Shell;
 import org.eclipse.swt.widgets.Text;
 
-public class NewSiteDialog extends Dialog {
+public class NewRepoDialog extends Dialog {
 
 	private boolean m_isEdit;
 	private String[] m_data;
@@ -45,7 +45,7 @@
 	private String m_returnName;
 	private String m_returnUrl;
 
-	protected NewSiteDialog(Shell parentShell, String[] data) {
+	protected NewRepoDialog(Shell parentShell, String[] data) {
 
 		super(parentShell);
 
ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/ui/preferences/SitesPage.java to ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/ui/preferences/ReposPage.java
--- a/ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/ui/preferences/SitesPage.java
+++ b/ilg.gnuarmeclipse.packs/src/ilg/gnuarmeclipse/packs/ui/preferences/ReposPage.java
@@ -40,7 +40,7 @@
  * Preferences dialog.
  */
 
-public class SitesPage extends PreferencePage implements
+public class ReposPage extends PreferencePage implements
 		IWorkbenchPreferencePage {
 
 	private Composite m_composite;
@@ -61,7 +61,7 @@
 
 	private Repos m_repos;
 
-	public SitesPage() {
+	public ReposPage() {
 
 		super();
 		setDescription("Add links to the sites where packages are published.");
@@ -133,17 +133,17 @@
 
 		m_columnType = new TableColumn(m_table, SWT.NULL);
 		m_columnType.setText("Type");
-		m_columnType.setWidth(80);
+		m_columnType.setWidth(100);
 		m_columnType.setResizable(true);
 
 		m_columnName = new TableColumn(m_table, SWT.NULL);
 		m_columnName.setText("Name");
-		m_columnName.setWidth(60);
+		m_columnName.setWidth(100);
 		m_columnName.setResizable(true);
 
 		m_columnUrl = new TableColumn(m_table, SWT.NULL);
 		m_columnUrl.setText("URL");
-		m_columnUrl.setWidth(240);
+		m_columnUrl.setWidth(350);
 		m_columnUrl.setResizable(true);
 	}
 
@@ -241,7 +241,7 @@
 
 	private void handleAddButton() {
 
-		NewSiteDialog dlg = new NewSiteDialog(m_composite.getShell(), null);
+		NewRepoDialog dlg = new NewRepoDialog(m_composite.getShell(), null);
 		if (dlg.open() == Dialog.OK) {
 			m_contentList.add(m_repos.convertToMap(dlg.getData()));
 			// System.out.println("added");
@@ -255,7 +255,7 @@
 			return; // nothing selected
 		}
 
-		NewSiteDialog dlg = new NewSiteDialog(m_composite.getShell(),
+		NewRepoDialog dlg = new NewRepoDialog(m_composite.getShell(),
 				m_repos.convertToArray(m_contentList.get(index)));
 		if (dlg.open() == Dialog.OK) {
 			m_contentList.set(index, m_repos.convertToMap(dlg.getData()));