Author: snjeza
Date: 2008-11-27 17:45:52 -0500 (Thu, 27 Nov 2008)
New Revision: 12103
Modified:
trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/project/facet/PortletFacetInstallPage.java
Log:
JBIDE-2792 Add runtime support for portal
Modified:
trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/project/facet/PortletFacetInstallPage.java
===================================================================
---
trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/project/facet/PortletFacetInstallPage.java 2008-11-27
20:18:43 UTC (rev 12102)
+++
trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/project/facet/PortletFacetInstallPage.java 2008-11-27
22:45:52 UTC (rev 12103)
@@ -90,7 +90,8 @@
if (checkRuntimes) {
implementationLibrary = IPortletConstants.LIBRARIES_PROVIDED_BY_SERVER_RUNTIME;
} else {
- implementationLibrary = IPortletConstants.LIBRARY_PROVIDED_BY_JBOSS_TOOLS;
+ //implementationLibrary = IPortletConstants.LIBRARY_PROVIDED_BY_JBOSS_TOOLS;
+ implementationLibrary = IPortletConstants.USER_LIBRARY;
}
return implementationLibrary;
}
@@ -132,7 +133,7 @@
});
implementationLibraryCombo = new Combo(composite, SWT.READ_ONLY);
implementationLibraryCombo.add(IPortletConstants.USER_LIBRARY);
- implementationLibraryCombo.add(IPortletConstants.LIBRARY_PROVIDED_BY_JBOSS_TOOLS);
+ //implementationLibraryCombo.add(IPortletConstants.LIBRARY_PROVIDED_BY_JBOSS_TOOLS);
gd = new GridData(GridData.FILL_HORIZONTAL);
implementationLibraryCombo.setLayoutData(gd);
boolean checkRuntimes = PortletCoreActivator.getDefault()
@@ -143,13 +144,15 @@
.add(IPortletConstants.LIBRARIES_PROVIDED_BY_SERVER_RUNTIME);
implementationLibraryCombo.setText(implementationLibrary);
} else {
- if (IPortletConstants.LIBRARIES_PROVIDED_BY_SERVER_RUNTIME
- .equals(implementationLibrary)) {
+ //if (IPortletConstants.LIBRARIES_PROVIDED_BY_SERVER_RUNTIME
+ // .equals(implementationLibrary)) {
+ //implementationLibraryCombo
+ // .setText(IPortletConstants.LIBRARY_PROVIDED_BY_JBOSS_TOOLS);
implementationLibraryCombo
- .setText(IPortletConstants.LIBRARY_PROVIDED_BY_JBOSS_TOOLS);
- } else {
- implementationLibraryCombo.setText(implementationLibrary);
- }
+ .setText(IPortletConstants.USER_LIBRARY);
+ //} else {
+ // implementationLibraryCombo.setText(implementationLibrary);
+ //}
}
model.setProperty(IPortletConstants.IMPLEMENTATION_LIBRARY,
implementationLibraryCombo
Show replies by date