Author: rob.stryker(a)jboss.com
Date: 2007-09-14 18:13:38 -0400 (Fri, 14 Sep 2007)
New Revision: 3642
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/ExtensionTableViewer.java
Log:
ensuring refresh / properties works properly when a category is selected
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/ExtensionTableViewer.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/ExtensionTableViewer.java 2007-09-14
22:12:50 UTC (rev 3641)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/ExtensionTableViewer.java 2007-09-14
22:13:38 UTC (rev 3642)
@@ -335,18 +335,17 @@
IPropertySheetPage page = null;
if( selected instanceof ContentWrapper ) {
- page = getDelegatePage((ContentWrapper)selected);
- }
-
- if( page == null ) {
+ page = getDelegatePage(((ContentWrapper)selected).getProvider());
+ } else if( selected instanceof ServerViewProvider ) {
+ page = getDelegatePage((ServerViewProvider)selected);
+ } else if( page == null ) {
page = topLevelPropertiesPage;
}
page.selectionChanged(part, sel);
book.showPage(page.getControl());
}
}
- private IPropertySheetPage getDelegatePage(ContentWrapper wrapper) {
- ServerViewProvider provider = wrapper.getProvider();
+ private IPropertySheetPage getDelegatePage(ServerViewProvider provider) {
IPropertySheetPage returnSheet = null;
returnSheet = provider.getDelegate().getPropertySheetPage();
if( !addedControls.contains(provider) && returnSheet != null) {
Show replies by date