geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r371971 - in /geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui: sections/AbstractTableSection.java sections/SecuritySection.java wizards/SecurityRoleWizard.java
Date Tue, 24 Jan 2006 18:20:14 GMT
Author: sppatel
Date: Tue Jan 24 10:20:11 2006
New Revision: 371971

URL: http://svn.apache.org/viewcvs?rev=371971&view=rev
Log:
fix invalid tableviewer input

Modified:
    geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/AbstractTableSection.java
    geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/SecuritySection.java
    geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/SecurityRoleWizard.java

Modified: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/AbstractTableSection.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/AbstractTableSection.java?rev=371971&r1=371970&r2=371971&view=diff
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/AbstractTableSection.java
(original)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/AbstractTableSection.java
Tue Jan 24 10:20:11 2006
@@ -143,7 +143,7 @@
 
 	}
 
-	protected Object getInput() {
+	public Object getInput() {
 		return getPlan();
 	}
 
@@ -287,7 +287,7 @@
 				.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
 	}
 
-	private TableViewer getTableViewer() {
+	public TableViewer getTableViewer() {
 		return tableViewer;
 	}
 

Modified: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/SecuritySection.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/SecuritySection.java?rev=371971&r1=371970&r2=371971&view=diff
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/SecuritySection.java
(original)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/SecuritySection.java
Tue Jan 24 10:20:11 2006
@@ -179,7 +179,7 @@
 	 * 
 	 * @see org.apache.geronimo.ui.sections.AbstractTableSection#getInput()
 	 */
-	protected Object getInput() {
+	public Object getInput() {
 		SecurityType secType = (SecurityType) getPlan().eGet(securityERef);
 		if (secType != null) {
 			return secType.getRoleMappings();

Modified: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/SecurityRoleWizard.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/SecurityRoleWizard.java?rev=371971&r1=371970&r2=371971&view=diff
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/SecurityRoleWizard.java
(original)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/SecurityRoleWizard.java
Tue Jan 24 10:20:11 2006
@@ -33,6 +33,8 @@
 import org.eclipse.swt.widgets.Label;
 import org.eclipse.swt.widgets.Text;
 
+import sun.security.action.GetIntegerAction;
+
 public class SecurityRoleWizard extends AbstractTableWizard {
 
 	public SecurityRoleWizard(AbstractTableSection section) {
@@ -157,18 +159,9 @@
 		}
 		type.setValue(page.descriptionText.getText());
 
-		/*
-		 * String[] tableText = section.getTableText(eObject);
-		 * 
-		 * if (isNew) { TableItem item = new
-		 * TableItem(section.getTableViewer().getTable(), SWT.NONE);
-		 * item.setImage(section.getImage()); item.setData(eObject);
-		 * item.setText((String) eObject.eGet(SecurityPackage.eINSTANCE
-		 * .getRoleType_RoleName())); } else { int index =
-		 * section.getTableViewer().getTable().getSelectionIndex(); if (index !=
-		 * -1) { TableItem item = section.getTableViewer().getTable().getItem(
-		 * index); item.setText(tableText); } }
-		 */
+		if(section.getTableViewer().getInput() == section.getPlan()) {
+			section.getTableViewer().setInput(section.getInput());
+		}
 
 		return true;
 	}



Mime
View raw message