Author: vyemialyanchyk
Date: 2009-04-07 08:48:52 -0400 (Tue, 07 Apr 2009)
New Revision: 14554
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/hqleditor/HQLSourceViewerConfiguration.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/AddPropertyDialog.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ConnectionProfileCtrl.java
Log:
JBIDE-4137
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/hqleditor/HQLSourceViewerConfiguration.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/hqleditor/HQLSourceViewerConfiguration.java 2009-04-07
12:47:22 UTC (rev 14553)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/hqleditor/HQLSourceViewerConfiguration.java 2009-04-07
12:48:52 UTC (rev 14554)
@@ -36,7 +36,6 @@
import org.eclipse.jface.text.rules.Token;
import org.eclipse.jface.text.source.ISourceViewer;
import org.eclipse.jface.text.source.SourceViewerConfiguration;
-import org.hibernate.console.ConsoleConfiguration;
import org.hibernate.eclipse.console.QueryEditor;
import org.hibernate.eclipse.hqleditor.preferences.HQLPreferenceConstants;
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/AddPropertyDialog.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/AddPropertyDialog.java 2009-04-07
12:47:22 UTC (rev 14553)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/AddPropertyDialog.java 2009-04-07
12:48:52 UTC (rev 14554)
@@ -331,7 +331,7 @@
value.setLayoutData(vgd);
} else {
((GridData)value.getLayoutData()).horizontalSpan = span;
- ((Text)value).setText(new String());
+ ((Text)value).setText(""); //$NON-NLS-1$
}
value.getParent().layout();
}
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 2009-04-07
12:47:22 UTC (rev 14553)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ConnectionProfileCtrl.java 2009-04-07
12:48:52 UTC (rev 14554)
@@ -83,13 +83,17 @@
@Override
public boolean equals(Object obj) {
- if(obj==null) {
+ if (obj == null || !(obj instanceof ConnectionWrapper)) {
return false;
}
-
ConnectionWrapper cw = (ConnectionWrapper) obj;
return this.getId().equals(cw.getId());
}
+
+ @Override
+ public int hashCode() {
+ return this.getId().hashCode();
+ }
}
protected ArrayList<ModifyListener> modifyListeners = new
ArrayList<ModifyListener>();
Show replies by date