Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortle2007-04-26 00:40:41 +0000
committertle2007-04-26 00:40:41 +0000
commitdcf9a0c0ac674a1420877d300d1a1df933efebb0 (patch)
tree06ec44f7193454a1fb867ceb8d4d73a9e75e7b11
parent8714e5515ff084086aa17817f4be146a838cacff (diff)
downloadwebtools.dali-dcf9a0c0ac674a1420877d300d1a1df933efebb0.tar.gz
webtools.dali-dcf9a0c0ac674a1420877d300d1a1df933efebb0.tar.xz
webtools.dali-dcf9a0c0ac674a1420877d300d1a1df933efebb0.zip
Changed to not cache the database connection profile.
-rw-r--r--jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/mappings/details/TableCombo.java10
1 files changed, 2 insertions, 8 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/mappings/details/TableCombo.java b/jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/mappings/details/TableCombo.java
index c91396b16d..82e2b5971c 100644
--- a/jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/mappings/details/TableCombo.java
+++ b/jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/mappings/details/TableCombo.java
@@ -9,12 +9,12 @@
package org.eclipse.jpt.ui.internal.mappings.details;
import java.util.Iterator;
+
import org.eclipse.emf.common.command.CommandStack;
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.impl.AdapterImpl;
import org.eclipse.emf.ecore.EObject;
-import org.eclipse.jpt.core.internal.IJpaProject;
import org.eclipse.jpt.core.internal.mappings.ITable;
import org.eclipse.jpt.core.internal.mappings.JpaCoreMappingsPackage;
import org.eclipse.jpt.db.internal.Connection;
@@ -43,8 +43,6 @@ public class TableCombo extends BaseJpaController
private ConnectionListener connectionListener;
private CCombo combo;
-
- private ConnectionProfile connectionProfile;
public TableCombo(Composite parent, CommandStack theCommandStack, TabbedPropertySheetWidgetFactory widgetFactory) {
super(parent, theCommandStack, widgetFactory);
@@ -231,11 +229,7 @@ public class TableCombo extends BaseJpaController
}
private ConnectionProfile getConnectionProfile() {
- if(this.connectionProfile == null) {
- IJpaProject jpaProject = this.table.getJpaProject();
- this.connectionProfile = jpaProject.connectionProfile();
- }
- return this.connectionProfile;
+ return this.table.getJpaProject().connectionProfile();
}
private void populateTableCombo() {

Back to the top