[jbosstools-commits] JBoss Tools SVN: r42758 - in trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse: launch and 1 other directory.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Fri Jul 27 08:38:34 EDT 2012


Author: dgeraskov
Date: 2012-07-27 08:38:34 -0400 (Fri, 27 Jul 2012)
New Revision: 42758

Modified:
   trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/NewConfigurationWizardPage.java
   trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/SelectConnectionProfileDialog.java
   trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ConnectionProfileCtrl.java
Log:
https://issues.jboss.org/browse/JBIDE-7996
Fix disappeared syntetic values from ConnectionProfiles combo

Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/NewConfigurationWizardPage.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/NewConfigurationWizardPage.java	2012-07-27 12:06:03 UTC (rev 42757)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/NewConfigurationWizardPage.java	2012-07-27 12:38:34 UTC (rev 42758)
@@ -171,6 +171,7 @@
 					defaultConnectionProfile = dialog.getConnectionProfileName();
 					fillPropertiesFromConnectionProfile(defaultConnectionProfile);
 				}
+				shell.dispose();
 			}
 		});
         gd = new GridData(GridData.FILL_HORIZONTAL);

Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/SelectConnectionProfileDialog.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/SelectConnectionProfileDialog.java	2012-07-27 12:06:03 UTC (rev 42757)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/SelectConnectionProfileDialog.java	2012-07-27 12:38:34 UTC (rev 42758)
@@ -62,6 +62,7 @@
 		Label label = new Label(parent, SWT.NULL);
 		label.setText(Messages.ConnectionProfile);
         connectionProfileCtrl = new ConnectionProfileCtrl(parent, 1, ""); //$NON-NLS-1$
+        connectionProfileCtrl.setUseSynteticValue(false);
         if (selectedCP != null){
 			connectionProfileCtrl.selectValue(selectedCP);
 		}

Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ConnectionProfileCtrl.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ConnectionProfileCtrl.java	2012-07-27 12:06:03 UTC (rev 42757)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ConnectionProfileCtrl.java	2012-07-27 12:38:34 UTC (rev 42758)
@@ -56,7 +56,7 @@
 	protected ComboViewer comboControl;
 	protected Button buttonNew;
 	protected Button buttonEdit;
-	private boolean useSynteticValues = false;
+	private boolean useSynteticValues = true;
 	
 	static final String NO_CONNECTIN_NAME = HibernateConsoleMessages.ConnectionProfileCtrl_HibernateConfiguredConnection;
 	static final String JPA_CONNECTIN_NAME = HibernateConsoleMessages.ConnectionProfileCtrl_JPAConfiguredConnection;
@@ -106,6 +106,7 @@
 	
 	public void setUseSynteticValue(boolean value){
 		this.useSynteticValues = value;
+		this.updateInput();
 	}
 
 	public class ButtonPressedAction extends Action implements SelectionListener {



More information about the jbosstools-commits mailing list