[jbosstools-commits] JBoss Tools SVN: r43906 - trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Fri Sep 21 04:19:17 EDT 2012
Author: rob.stryker at jboss.com
Date: 2012-09-21 04:19:16 -0400 (Fri, 21 Sep 2012)
New Revision: 43906
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossRuntimeWizardFragment.java
Log:
change button to hyperlink, looks better
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossRuntimeWizardFragment.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossRuntimeWizardFragment.java 2012-09-21 08:06:33 UTC (rev 43905)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossRuntimeWizardFragment.java 2012-09-21 08:19:16 UTC (rev 43906)
@@ -59,6 +59,7 @@
import org.eclipse.swt.widgets.DirectoryDialog;
import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Link;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.PlatformUI;
@@ -102,7 +103,7 @@
protected int jreComboIndex;
protected Button homeDirButton, jreButton;
protected Composite nameComposite, homeDirComposite, jreComposite;
- protected Button downloadAndInstallButton;
+ protected Link downloadAndInstallButton;
protected String name, homeDir;
// Configuration stuff
@@ -337,8 +338,8 @@
homeDirButton = new Button(homeDirComposite, SWT.NONE);
homeDirButton.setText(Messages.browse);
- downloadAndInstallButton = new Button(homeDirComposite, SWT.NONE);
- downloadAndInstallButton.setText(Messages.rwf_DownloadRuntime);
+ downloadAndInstallButton = new Link(homeDirComposite, SWT.NONE);
+ downloadAndInstallButton.setText("<a href=\"\">" + Messages.rwf_DownloadRuntime + "</a>");
downloadAndInstallButton.addSelectionListener(new DownloadAndInstallListener());
downloadAndInstallButton.setEnabled(true);
@@ -365,7 +366,7 @@
homeDirLabel.setLayoutData(UIUtil.createFormData2(null,0,homeDirText,-5,0,5,null,0));
homeDirText.setLayoutData(UIUtil.createFormData2(homeDirLabel,5,null,0,0,5,homeDirButton,-5));
homeDirButton.setLayoutData(UIUtil.createFormData2(homeDirLabel,5,null,0,null,0,100,0));
- downloadAndInstallButton.setLayoutData(UIUtil.createFormData2(0,0,homeDirButton,-5,null,0,100,-5));
+ downloadAndInstallButton.setLayoutData(UIUtil.createFormData2(0,0,homeDirButton,-5,null,0,100,-10));
}
protected class DownloadAndInstallListener extends SelectionAdapter {
More information about the jbosstools-commits
mailing list