[jbosstools-commits] JBoss Tools SVN: r35468 - in trunk/central/plugins/org.jboss.tools.central: src/org/jboss/tools/central/dialogs and 1 other directories.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Fri Oct 7 09:40:33 EDT 2011


Author: fbricon
Date: 2011-10-07 09:40:33 -0400 (Fri, 07 Oct 2011)
New Revision: 35468

Modified:
   trunk/central/plugins/org.jboss.tools.central/META-INF/MANIFEST.MF
   trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/dialogs/ProjectExamplesDialog.java
   trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/editors/GettingStartedPage.java
Log:
Fixed example project icon

Modified: trunk/central/plugins/org.jboss.tools.central/META-INF/MANIFEST.MF
===================================================================
--- trunk/central/plugins/org.jboss.tools.central/META-INF/MANIFEST.MF	2011-10-07 11:56:47 UTC (rev 35467)
+++ trunk/central/plugins/org.jboss.tools.central/META-INF/MANIFEST.MF	2011-10-07 13:40:33 UTC (rev 35468)
@@ -21,7 +21,7 @@
  org.eclipse.mylyn.commons.core;bundle-version="3.6.0",
  org.eclipse.mylyn.discovery.ui;bundle-version="3.6.0",
  org.eclipse.mylyn.discovery.core;bundle-version="3.6.0",
- org.eclipse.mylyn.commons.ui;bundle-version="[3.6.0,3.7.0)",
+ org.eclipse.mylyn.commons.ui;bundle-version="[3.6.0,3.8.0)",
  org.eclipse.equinox.p2.ui.sdk;bundle-version="1.0.200",
  org.eclipse.equinox.p2.core;bundle-version="2.1.0",
  org.eclipse.equinox.p2.engine;bundle-version="2.1.0"

Modified: trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/dialogs/ProjectExamplesDialog.java
===================================================================
--- trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/dialogs/ProjectExamplesDialog.java	2011-10-07 11:56:47 UTC (rev 35467)
+++ trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/dialogs/ProjectExamplesDialog.java	2011-10-07 13:40:33 UTC (rev 35468)
@@ -19,13 +19,9 @@
 import org.apache.commons.lang.StringEscapeUtils;
 import org.eclipse.core.commands.ExecutionEvent;
 import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.resources.WorkspaceJob;
-import org.eclipse.core.runtime.CoreException;
 import org.eclipse.core.runtime.IProgressMonitor;
 import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
 import org.eclipse.jface.dialogs.IDialogConstants;
-import org.eclipse.jface.dialogs.MessageDialogWithToggle;
 import org.eclipse.jface.operation.IRunnableContext;
 import org.eclipse.jface.operation.IRunnableWithProgress;
 import org.eclipse.jface.operation.ModalContext;
@@ -64,9 +60,7 @@
 import org.jboss.tools.central.actions.JBossRuntimeDetectionPreferencesHandler;
 import org.jboss.tools.central.editors.DescriptionToolTip;
 import org.jboss.tools.central.model.Tutorial;
-import org.jboss.tools.project.examples.Messages;
 import org.jboss.tools.project.examples.ProjectExamplesActivator;
-import org.jboss.tools.project.examples.model.IImportProjectExample;
 import org.jboss.tools.project.examples.model.Project;
 import org.jboss.tools.project.examples.model.ProjectFix;
 import org.jboss.tools.runtime.core.RuntimeCoreActivator;

Modified: trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/editors/GettingStartedPage.java
===================================================================
--- trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/editors/GettingStartedPage.java	2011-10-07 11:56:47 UTC (rev 35467)
+++ trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/editors/GettingStartedPage.java	2011-10-07 13:40:33 UTC (rev 35468)
@@ -731,7 +731,7 @@
 	}
 
 	protected void configureTutorialText(FormText tutorialText, final Tutorial tutorial) {
-		StringBuffer buffer = new StringBuffer();
+		StringBuilder buffer = new StringBuilder();
 		buffer.append(JBossCentralActivator.FORM_START_TAG);
 		//boolean haveImage = tutorial.getIconPath() != null && JBossCentralActivator.getDefault().getImage(tutorial.getIconPath()) != null;
 		//if (haveImage) {
@@ -760,7 +760,7 @@
 		if (project.getUnsatisfiedFixes().size() > 0) {
 			image = JBossCentralActivator.getDefault().getImage("/icons/nwarning.gif");
 		} else {
-			image = JBossCentralActivator.getDefault().getImage("/icons/import_obj.png");
+			image = JBossCentralActivator.getDefault().getImage(tutorial.getIconPath());
 		}
 		tutorialText.setImage("image", image);
 		tutorialText.addHyperlinkListener(new HyperlinkAdapter() {
@@ -805,7 +805,7 @@
 			td.indent = 2;
 			Point size = newsComposite.computeSize(SWT.DEFAULT, SWT.DEFAULT);
 			td.maxWidth = size.x - 2;
-			formText.setText(text, true, true);
+			//formText.setText(text, true, true);
 			//Display display = Display.getCurrent();
 			//formText.setFont(getLinkFont(display));
 			formText.setFont("default", JFaceResources.getDefaultFont());



More information about the jbosstools-commits mailing list