JBoss Tools SVN: r28916 - trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/navigator.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2011-02-02 07:43:24 -0500 (Wed, 02 Feb 2011)
New Revision: 28916
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/navigator/XLabelProvider.java
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/navigator/XProjectContentProvider.java
Log:
JBIDE-8306
https://issues.jboss.org/browse/JBIDE-8306
Modified: trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/navigator/XLabelProvider.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/navigator/XLabelProvider.java 2011-02-02 11:33:31 UTC (rev 28915)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/navigator/XLabelProvider.java 2011-02-02 12:43:24 UTC (rev 28916)
@@ -10,6 +10,7 @@
******************************************************************************/
package org.jboss.tools.jst.web.ui.navigator;
+import org.eclipse.swt.graphics.Image;
import org.jboss.tools.common.model.impl.ExtraRootImpl;
import org.jboss.tools.jst.web.messages.xpl.WebUIMessages;
import org.jboss.tools.jst.web.model.pv.WebProjectNode;
@@ -19,14 +20,28 @@
*/
public class XLabelProvider extends WebProjectsLabelProvider {
+ public static class RootWrapper {
+ public Object element;
+ }
+
public XLabelProvider() {}
public String getText(Object element) {
+ if(element instanceof RootWrapper) {
+ element = ((RootWrapper)element).element;
+ }
if(element instanceof WebProjectNode && element instanceof ExtraRootImpl) {
return WebUIMessages.WEB_RESOURCES;
}
return super.getText(element);
}
+ public Image getImage(Object element) {
+ if(element instanceof RootWrapper) {
+ element = ((RootWrapper)element).element;
+ }
+ return super.getImage(element);
+ }
+
}
Modified: trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/navigator/XProjectContentProvider.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/navigator/XProjectContentProvider.java 2011-02-02 11:33:31 UTC (rev 28915)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/navigator/XProjectContentProvider.java 2011-02-02 12:43:24 UTC (rev 28916)
@@ -17,10 +17,14 @@
import org.jboss.tools.common.model.XModelObject;
import org.jboss.tools.common.model.project.IModelNature;
import org.jboss.tools.common.model.util.EclipseResourceUtil;
+import org.jboss.tools.jst.web.ui.navigator.XLabelProvider.RootWrapper;
public class XProjectContentProvider extends XContentProvider {
public Object[] getChildren(Object parentElement) {
+ if(parentElement instanceof RootWrapper) {
+ parentElement = ((RootWrapper)parentElement).element;
+ }
if(parentElement instanceof XModelObject) {
XModelObject o = (XModelObject)parentElement;
XFilteredTree filteredTree = getFilteredTree(o);
@@ -42,7 +46,9 @@
filteredTree = getFilteredTree(o);
}
if(filteredTree != null) {
- return new Object[]{filteredTree.getRoot()};
+ RootWrapper w = new RootWrapper();
+ w.element = filteredTree.getRoot();
+ return new Object[]{w};
}
return new Object[0];
}
@@ -50,6 +56,9 @@
}
public Object getParent(Object element) {
+ if(element instanceof RootWrapper) {
+ element = ((RootWrapper)element).element;
+ }
if(element instanceof XModelObject) {
XModelObject o = (XModelObject)element;
XFilteredTree filteredTree = getFilteredTree(o);
13 years, 11 months
JBoss Tools SVN: r28915 - in branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.integration: src/org/jboss/tools/deltacloud/integration/wizard and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2011-02-02 06:33:31 -0500 (Wed, 02 Feb 2011)
New Revision: 28915
Modified:
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.integration/ChangeLog
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/RSEandASWizardPage.java
Log:
[JBIDE-8299] corrected creation style to fix mac os bug
Modified: branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.integration/ChangeLog
===================================================================
--- branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.integration/ChangeLog 2011-02-02 11:33:12 UTC (rev 28914)
+++ branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.integration/ChangeLog 2011-02-02 11:33:31 UTC (rev 28915)
@@ -1,3 +1,21 @@
+2011-02-02 André Dietisheim <André Dietisheim@adietisheim-thinkpad>
+
+ * src/org/jboss/tools/deltacloud/integration/wizard/RSEandASWizardPage.java (createControl):
+ [JBIDE-8299] corrected creation style to fix mac os bug
+
+2011-02-01 André Dietisheim <André Dietisheim@adietisheim-thinkpad>
+
+ * src/org/jboss/tools/deltacloud/integration/wizard/RSEandASWizardPage.java
+ (CREATE_RSE_PREF_KEY):
+ (CREATE_SERVER_PREF_KEY):
+ (createControl):
+ [JBIDE-8291] Server adapter is not created by default any more
+ * src/org/jboss/tools/deltacloud/integration/wizard/CreateServerFromRSEJob.java
+ (createServerSetDetailsNow):
+ (createServerCheckRemoteDetails):
+ * src/org/jboss/tools/deltacloud/integration/rse/util/RSEUtils.java (createConnectionName):
+ [JBIDE-8292] Server Adapter and RSE now use instance alias as name
+
2010-12-27 adietisheim <adietisheim@adietisheim-thinkpad>
* META-INF/MANIFEST.MF:
Modified: branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/RSEandASWizardPage.java
===================================================================
--- branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/RSEandASWizardPage.java 2011-02-02 11:33:12 UTC (rev 28914)
+++ branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/RSEandASWizardPage.java 2011-02-02 11:33:31 UTC (rev 28915)
@@ -113,7 +113,7 @@
public void widgetDefaultSelected(SelectionEvent e) {
}
});
- autoLocalRuntimeCombo = new Combo(g, SWT.NONE);
+ autoLocalRuntimeCombo = new Combo(g, SWT.READ_ONLY);
autoLocalRuntimeCombo.setLayoutData(UIUtils.createFormData(remoteDetailsLoc, 5, null, 0, autoLocalRuntimeLabel, 5, autoAddLocalRuntimeButton, -5));
@@ -149,7 +149,7 @@
public void widgetDefaultSelected(SelectionEvent e) {
}
});
- localRuntimeCombo = new Combo(g, SWT.NONE);
+ localRuntimeCombo = new Combo(g, SWT.READ_ONLY);
localRuntimeCombo.setLayoutData(UIUtils.createFormData(serverConfigText, 5, null, 0, serverHome, 5, addLocalRuntimeButton, -5));
13 years, 11 months
JBoss Tools SVN: r28914 - in trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration: src/org/jboss/tools/deltacloud/integration/wizard and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2011-02-02 06:33:12 -0500 (Wed, 02 Feb 2011)
New Revision: 28914
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/ChangeLog
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/RSEandASWizardPage.java
Log:
[JBIDE-8299] corrected creation style to fix mac os bug
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/ChangeLog
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/ChangeLog 2011-02-02 10:58:31 UTC (rev 28913)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/ChangeLog 2011-02-02 11:33:12 UTC (rev 28914)
@@ -1,3 +1,8 @@
+2011-02-02 André Dietisheim <André Dietisheim@adietisheim-thinkpad>
+
+ * src/org/jboss/tools/deltacloud/integration/wizard/RSEandASWizardPage.java (createControl):
+ [JBIDE-8299] corrected creation style to fix mac os bug
+
2011-02-01 André Dietisheim <André Dietisheim@adietisheim-thinkpad>
* src/org/jboss/tools/deltacloud/integration/wizard/RSEandASWizardPage.java
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/RSEandASWizardPage.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/RSEandASWizardPage.java 2011-02-02 10:58:31 UTC (rev 28913)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/RSEandASWizardPage.java 2011-02-02 11:33:12 UTC (rev 28914)
@@ -113,7 +113,7 @@
public void widgetDefaultSelected(SelectionEvent e) {
}
});
- autoLocalRuntimeCombo = new Combo(g, SWT.NONE);
+ autoLocalRuntimeCombo = new Combo(g, SWT.READ_ONLY);
autoLocalRuntimeCombo.setLayoutData(UIUtils.createFormData(remoteDetailsLoc, 5, null, 0, autoLocalRuntimeLabel, 5, autoAddLocalRuntimeButton, -5));
@@ -149,7 +149,7 @@
public void widgetDefaultSelected(SelectionEvent e) {
}
});
- localRuntimeCombo = new Combo(g, SWT.NONE);
+ localRuntimeCombo = new Combo(g, SWT.READ_ONLY);
localRuntimeCombo.setLayoutData(UIUtils.createFormData(serverConfigText, 5, null, 0, serverHome, 5, addLocalRuntimeButton, -5));
13 years, 11 months
JBoss Tools SVN: r28913 - trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2011-02-02 05:58:31 -0500 (Wed, 02 Feb 2011)
New Revision: 28913
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/RSEandASWizardPage.java
Log:
[JBIDE-8291]
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/RSEandASWizardPage.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/RSEandASWizardPage.java 2011-02-02 10:57:16 UTC (rev 28912)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/RSEandASWizardPage.java 2011-02-02 10:58:31 UTC (rev 28913)
@@ -47,6 +47,9 @@
private final static String CREATE_RSE_PREF_KEY = "org.jboss.tools.deltacloud.integration.wizard.RSEandASWizard.CREATE_RSE_PREF_KEY";
private final static String CREATE_SERVER_PREF_KEY = "org.jboss.tools.deltacloud.integration.wizard.RSEandASWizard.CREATE_SERVER_PREF_KEY";
+ private static final boolean DEFALUT_CREATE_RSE = true;
+ private static final boolean DETAULT_CREATE_SERVERADAPTER = false;
+
private Button createRSE, createServer;
private Group serverDetailsGroup;
private Button autoScanCheck, hardCodeServerDetails, deployOnlyRadio,
@@ -164,8 +167,8 @@
IEclipsePreferences prefs = new InstanceScope().getNode(DeltaCloudIntegrationPlugin.PLUGIN_ID);
boolean initRSE, initServer;
- initRSE = prefs.getBoolean(CREATE_RSE_PREF_KEY, true);
- initServer = prefs.getBoolean(CREATE_SERVER_PREF_KEY, true);
+ initRSE = prefs.getBoolean(CREATE_RSE_PREF_KEY, DEFALUT_CREATE_RSE);
+ initServer = prefs.getBoolean(CREATE_SERVER_PREF_KEY, DETAULT_CREATE_SERVERADAPTER);
createRSE.setSelection(initRSE);
createServer.setSelection(initServer);
if( initialHost != null ) {
13 years, 11 months
JBoss Tools SVN: r28912 - branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2011-02-02 05:57:16 -0500 (Wed, 02 Feb 2011)
New Revision: 28912
Modified:
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/RSEandASWizardPage.java
Log:
[JBIDE-8291]
Modified: branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/RSEandASWizardPage.java
===================================================================
--- branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/RSEandASWizardPage.java 2011-02-02 10:40:57 UTC (rev 28911)
+++ branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/RSEandASWizardPage.java 2011-02-02 10:57:16 UTC (rev 28912)
@@ -44,6 +44,9 @@
* @author Rob Stryker
*/
public class RSEandASWizardPage extends WizardPage implements INewInstanceWizardPage {
+ private static final boolean DEFALUT_CREATE_RSE = true;
+ private static final boolean DETAULT_CREATE_SERVERADAPTER = false;
+
private final static String CREATE_RSE_PREF_KEY = "org.jboss.tools.deltacloud.integration.wizard.RSEandASWizard.CREATE_RSE_PREF_KEY";
private final static String CREATE_SERVER_PREF_KEY = "org.jboss.tools.deltacloud.integration.wizard.RSEandASWizard.CREATE_SERVER_PREF_KEY";
@@ -164,8 +167,8 @@
IEclipsePreferences prefs = new InstanceScope().getNode(DeltaCloudIntegrationPlugin.PLUGIN_ID);
boolean initRSE, initServer;
- initRSE = prefs.getBoolean(CREATE_RSE_PREF_KEY, true);
- initServer = prefs.getBoolean(CREATE_SERVER_PREF_KEY, true);
+ initRSE = prefs.getBoolean(CREATE_RSE_PREF_KEY, DEFALUT_CREATE_RSE);
+ initServer = prefs.getBoolean(CREATE_SERVER_PREF_KEY, DETAULT_CREATE_SERVERADAPTER);
createRSE.setSelection(initRSE);
createServer.setSelection(initServer);
if( initialHost != null ) {
13 years, 11 months
JBoss Tools SVN: r28911 - in trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui: src/org/jboss/tools/internal/deltacloud/ui/wizards and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2011-02-02 05:40:57 -0500 (Wed, 02 Feb 2011)
New Revision: 28911
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/FindImagePage.java
Log:
[JBIDE-8310] added choosing an image by double clicking it
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog 2011-02-02 10:40:23 UTC (rev 28910)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog 2011-02-02 10:40:57 UTC (rev 28911)
@@ -1,5 +1,9 @@
2011-02-02 André Dietisheim <André Dietisheim@adietisheim-thinkpad>
+ * src/org/jboss/tools/internal/deltacloud/ui/wizards/FindImagePage.java
+ (onImageDoubleclick):
+ (createControl):
+ [JBIDE-8310] added choosing an image by double clicking it
* src/org/jboss/tools/internal/deltacloud/ui/wizards/NewInstancePage.java (createWidgets):
[JBIDE-8309] fixed layout for image text field
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/FindImagePage.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/FindImagePage.java 2011-02-02 10:40:23 UTC (rev 28910)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/FindImagePage.java 2011-02-02 10:40:57 UTC (rev 28911)
@@ -33,7 +33,9 @@
import org.eclipse.swt.layout.FormData;
import org.eclipse.swt.layout.FormLayout;
import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Listener;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.TableColumn;
import org.eclipse.swt.widgets.Text;
@@ -51,6 +53,7 @@
import org.jboss.tools.deltacloud.ui.views.Columns.Column;
import org.jboss.tools.deltacloud.ui.views.cloudelements.ITableContentAndLabelProvider;
import org.jboss.tools.deltacloud.ui.views.cloudelements.TableViewerColumnComparator;
+import org.jboss.tools.internal.deltacloud.ui.utils.WizardUtils;
/**
* @author Jeff Johnston
@@ -226,7 +229,8 @@
viewer.setComparator(comparator);
createColumns(provider, tableLayout, table);
table.setSortDirection(SWT.NONE);
-
+ viewer.getTable().addListener(SWT.MouseDoubleClick, onImageDoubleclick());
+
Point p1 = nameLabel.computeSize(SWT.DEFAULT, SWT.DEFAULT);
Point p2 = nameText.computeSize(SWT.DEFAULT, SWT.DEFAULT);
int centering = (p2.y - p1.y + 1) / 2;
@@ -350,4 +354,15 @@
}
});
}
+
+ private Listener onImageDoubleclick() {
+ return new Listener() {
+
+ @Override
+ public void handleEvent(Event event) {
+ WizardUtils.nextPageOrFinish(FindImagePage.this);
+ }
+ };
+ }
+
}
13 years, 11 months
JBoss Tools SVN: r28910 - in branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui: src/org/jboss/tools/internal/deltacloud/ui/wizards and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2011-02-02 05:40:23 -0500 (Wed, 02 Feb 2011)
New Revision: 28910
Modified:
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/FindImagePage.java
Log:
[JBIDE-8310] added choosing an image by double clicking it
Modified: branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog
===================================================================
--- branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog 2011-02-02 10:18:38 UTC (rev 28909)
+++ branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog 2011-02-02 10:40:23 UTC (rev 28910)
@@ -1,5 +1,7 @@
2011-02-02 André Dietisheim <André Dietisheim@adietisheim-thinkpad>
+ * src/org/jboss/tools/internal/deltacloud/ui/wizards/FindImagePage.java (onImageDoubleclick):
+ [JBIDE-8310] added choosing an image by double clicking it
* src/org/jboss/tools/internal/deltacloud/ui/wizards/NewInstancePage.java (createWidgets):
[JBIDE-8309] fixed layout for image text field
Modified: branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/FindImagePage.java
===================================================================
--- branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/FindImagePage.java 2011-02-02 10:18:38 UTC (rev 28909)
+++ branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/FindImagePage.java 2011-02-02 10:40:23 UTC (rev 28910)
@@ -33,7 +33,9 @@
import org.eclipse.swt.layout.FormData;
import org.eclipse.swt.layout.FormLayout;
import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Listener;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.TableColumn;
import org.eclipse.swt.widgets.Text;
@@ -51,6 +53,7 @@
import org.jboss.tools.deltacloud.ui.views.Columns.Column;
import org.jboss.tools.deltacloud.ui.views.cloudelements.ITableContentAndLabelProvider;
import org.jboss.tools.deltacloud.ui.views.cloudelements.TableViewerColumnComparator;
+import org.jboss.tools.internal.deltacloud.ui.utils.WizardUtils;
/**
* @author Jeff Johnston
@@ -226,7 +229,8 @@
viewer.setComparator(comparator);
createColumns(provider, tableLayout, table);
table.setSortDirection(SWT.NONE);
-
+ viewer.getTable().addListener(SWT.MouseDoubleClick, onImageDoubleclick());
+
Point p1 = nameLabel.computeSize(SWT.DEFAULT, SWT.DEFAULT);
Point p2 = nameText.computeSize(SWT.DEFAULT, SWT.DEFAULT);
int centering = (p2.y - p1.y + 1) / 2;
@@ -350,4 +354,15 @@
}
});
}
+
+ private Listener onImageDoubleclick() {
+ return new Listener() {
+
+ @Override
+ public void handleEvent(Event event) {
+ WizardUtils.nextPageOrFinish(FindImagePage.this);
+ }
+ };
+ }
+
}
13 years, 11 months
JBoss Tools SVN: r28909 - in trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui: src/org/jboss/tools/internal/deltacloud/ui/wizards and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2011-02-02 05:18:38 -0500 (Wed, 02 Feb 2011)
New Revision: 28909
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/NewInstancePage.java
Log:
[JBIDE-8309] fixed layout for image text field
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog 2011-02-02 10:18:25 UTC (rev 28908)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog 2011-02-02 10:18:38 UTC (rev 28909)
@@ -1,3 +1,8 @@
+2011-02-02 André Dietisheim <André Dietisheim@adietisheim-thinkpad>
+
+ * src/org/jboss/tools/internal/deltacloud/ui/wizards/NewInstancePage.java (createWidgets):
+ [JBIDE-8309] fixed layout for image text field
+
2011-02-01 André Dietisheim <André Dietisheim@adietisheim-thinkpad>
* src/org/jboss/tools/internal/deltacloud/ui/wizards/NewCloudConnectionWizard.java
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/NewInstancePage.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/NewInstancePage.java 2011-02-02 10:18:25 UTC (rev 28908)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/NewInstancePage.java 2011-02-02 10:18:38 UTC (rev 28909)
@@ -188,7 +188,7 @@
GridDataFactory.fillDefaults().align(SWT.LEFT, SWT.CENTER).applyTo(imageLabel);
this.imageText = new Text(container, SWT.BORDER | SWT.SINGLE);
ContentProposalFactory.addPreferencesProposalAdapter(imageText, IMAGE_PROPOSAL_KEY);
- GridDataFactory.fillDefaults().grab(true, false).applyTo(imageText);
+ GridDataFactory.fillDefaults().grab(true, false).align(SWT.FILL, SWT.CENTER).applyTo(imageText);
Button findImageButton = new Button(container, SWT.NULL);
findImageButton.setText(WizardMessages.getString(FIND_BUTTON_LABEL));
findImageButton.addSelectionListener(findImageButtonListener);
13 years, 11 months
JBoss Tools SVN: r28908 - branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2011-02-02 05:18:25 -0500 (Wed, 02 Feb 2011)
New Revision: 28908
Modified:
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog
Log:
[JBIDE-8309] fixed layout for image text field
Modified: branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog
===================================================================
--- branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog 2011-02-02 10:18:06 UTC (rev 28907)
+++ branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog 2011-02-02 10:18:25 UTC (rev 28908)
@@ -1,3 +1,8 @@
+2011-02-02 André Dietisheim <André Dietisheim@adietisheim-thinkpad>
+
+ * src/org/jboss/tools/internal/deltacloud/ui/wizards/NewInstancePage.java (createWidgets):
+ [JBIDE-8309] fixed layout for image text field
+
2011-01-17 André Dietisheim <André Dietisheim@adietisheim-thinkpad>
* src/org/jboss/tools/deltacloud/ui/views/cloudelements/InstanceViewLabelAndContentProvider.java:
13 years, 11 months
JBoss Tools SVN: r28907 - branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2011-02-02 05:18:06 -0500 (Wed, 02 Feb 2011)
New Revision: 28907
Modified:
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/NewInstancePage.java
Log:
[JBIDE-8309] fixed layout for image text field
Modified: branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/NewInstancePage.java
===================================================================
--- branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/NewInstancePage.java 2011-02-02 09:37:01 UTC (rev 28906)
+++ branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/NewInstancePage.java 2011-02-02 10:18:06 UTC (rev 28907)
@@ -181,7 +181,7 @@
imageLabel.setText(WizardMessages.getString(IMAGE_LABEL));
GridDataFactory.fillDefaults().align(SWT.LEFT, SWT.CENTER).applyTo(imageLabel);
this.imageText = new Text(container, SWT.BORDER | SWT.SINGLE);
- GridDataFactory.fillDefaults().grab(true, false).applyTo(imageText);
+ GridDataFactory.fillDefaults().grab(true, false).align(SWT.FILL, SWT.CENTER).applyTo(imageText);
Button findImageButton = new Button(container, SWT.NULL);
findImageButton.setText(WizardMessages.getString(FIND_BUTTON_LABEL));
findImageButton.addSelectionListener(findImageButtonListener);
13 years, 11 months