Author: dgolovin
Date: 2007-08-24 20:53:28 -0400 (Fri, 24 Aug 2007)
New Revision: 3330
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/internal/project/facet/SeamInstallWizardPage.java
Log:
http://jira.jboss.org/jira/browse/JBIDE-689
Only Generic JDBC connection profiles now showed in combo on Seam Facet Wizard Page.
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/internal/project/facet/SeamInstallWizardPage.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/internal/project/facet/SeamInstallWizardPage.java 2007-08-24
23:48:46 UTC (rev 3329)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/internal/project/facet/SeamInstallWizardPage.java 2007-08-25
00:53:28 UTC (rev 3330)
@@ -348,10 +348,15 @@
}
}
- // Utils method
+ public static final String GENERIC_JDBC_PROVIDER_ID
+ = "org.eclipse.datatools.connectivity.db.generic.connectionProfile";
+
+ /*
+ *
+ */
private List<String> getProfileNameList() {
IConnectionProfile[] profiles = ProfileManager.getInstance()
- .getProfilesByCategory(ProfileSelectionComposite.JDBC_CATEGORY);
+ .getProfileByProviderID(GENERIC_JDBC_PROVIDER_ID);
List<String> names = new ArrayList<String>();
for (IConnectionProfile connectionProfile : profiles) {
names.add(connectionProfile.getName());
@@ -359,6 +364,9 @@
return names;
}
+ /**
+ *
+ */
public class EditConnectionProfileAction extends
ButtonFieldEditor.ButtonPressedAction {
@@ -369,6 +377,9 @@
super("Edit...");
}
+ /**
+ *
+ */
@Override
public void run() {
IConnectionProfile selectedProfile = ProfileManager.getInstance()
@@ -412,13 +423,6 @@
@Override
public void run() {
NewConnectionProfileWizard wizard = new NewConnectionProfileWizard() {
-
- /*
- * (non-Javadoc)
- *
- * @see
org.eclipse.datatools.connectivity.ui.wizards.NewConnectionProfileWizard#performFinish()
- */
- @Override
public boolean performFinish() {
// create profile only
try {