Author: rob.stryker(a)jboss.com
Date: 2007-07-30 17:34:05 -0400 (Mon, 30 Jul 2007)
New Revision: 2735
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/providers/descriptors/DescriptorXPathPropertySheetPage.java
Log:
slight ui change in xpaths properties
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/providers/descriptors/DescriptorXPathPropertySheetPage.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/providers/descriptors/DescriptorXPathPropertySheetPage.java 2007-07-30
21:28:18 UTC (rev 2734)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/providers/descriptors/DescriptorXPathPropertySheetPage.java 2007-07-30
21:34:05 UTC (rev 2735)
@@ -92,9 +92,10 @@
menu.add(provider.editXPathAction);
menu.add(provider.deleteXPathAction);
}
- if( selected != null &&
- (selected instanceof XPathResultNode || selected instanceof XPathFileResult ))
+ if( selected != null && (selected instanceof XPathResultNode || selected
instanceof XPathFileResult ) ||
+ (selected instanceof XPathQuery && ((XPathQuery)selected).getResults().length
== 1)) {
menu.add(provider.editFileAction);
+ }
}
@@ -301,16 +302,8 @@
protected void createXPathComposite(Composite book) {
wrapper = new Composite(book, SWT.NONE);
+ wrapper.setLayout(new FillLayout());
int groupWidth = 500;
-
- FormData groupData = new FormData();
- groupData.right = new FormAttachment(100, -5);
- groupData.left = new FormAttachment(0, 5);
- groupData.top = new FormAttachment(0,5);
- groupData.bottom = new FormAttachment(100, -5);
- wrapper.setLayoutData(groupData);
- wrapper.setLayout(new FormLayout());
-
final Tree xpathTree = new Tree(wrapper, SWT.BORDER | SWT.FULL_SELECTION);
this.xpathTree = xpathTree;
Show replies by date