geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r366939 [3/3] - in /geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui: actions/ commands/ editors/ internal/ pages/ sections/ wizards/
Date Sat, 07 Jan 2006 23:08:28 GMT
Modified: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/ImportWizard.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/ImportWizard.java?rev=366939&r1=366938&r2=366939&view=diff
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/ImportWizard.java
(original)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/ImportWizard.java
Sat Jan  7 15:07:55 2006
@@ -16,43 +16,51 @@
 package org.apache.geronimo.ui.wizards;
 
 import org.apache.geronimo.ui.internal.Messages;
-import org.apache.geronimo.ui.sections.DynamicTableSection;
+import org.apache.geronimo.ui.sections.AbstractTableSection;
 
 public class ImportWizard extends DependencyWizard {
 
 	/**
 	 * @param section
 	 */
-	public ImportWizard(DynamicTableSection section) {
+	public ImportWizard(AbstractTableSection section) {
 		super(section);
 	}
-	
-	/* (non-Javadoc)
+
+	/*
+	 * (non-Javadoc)
+	 * 
 	 * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getAddWizardWindowTitle()
 	 */
 	public String getAddWizardWindowTitle() {
-		 return Messages.wizardNewTitle_Import;
+		return Messages.wizardNewTitle_Import;
 	}
 
-	/* (non-Javadoc)
+	/*
+	 * (non-Javadoc)
+	 * 
 	 * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getEditWizardWindowTitle()
 	 */
 	public String getEditWizardWindowTitle() {
-		 return Messages.wizardEditTitle_Import;
+		return Messages.wizardEditTitle_Import;
 	}
 
-	/* (non-Javadoc)
+	/*
+	 * (non-Javadoc)
+	 * 
 	 * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getWizardFirstPageTitle()
 	 */
 	public String getWizardFirstPageTitle() {
-		 return Messages.wizardPageTitle_Import;
+		return Messages.wizardPageTitle_Import;
 	}
 
-	/* (non-Javadoc)
+	/*
+	 * (non-Javadoc)
+	 * 
 	 * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getWizardFirstPageDescription()
 	 */
 	public String getWizardFirstPageDescription() {
-		 return Messages.wizardPageDescription_Import;
+		return Messages.wizardPageDescription_Import;
 	}
 
 }

Modified: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/ResourceEnvRefWizard.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/ResourceEnvRefWizard.java?rev=366939&r1=366938&r2=366939&view=diff
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/ResourceEnvRefWizard.java
(original)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/ResourceEnvRefWizard.java
Sat Jan  7 15:07:55 2006
@@ -16,66 +16,66 @@
 package org.apache.geronimo.ui.wizards;
 
 import org.apache.geronimo.ui.internal.Messages;
-import org.apache.geronimo.ui.sections.DynamicTableSection;
+import org.apache.geronimo.ui.sections.AbstractTableSection;
 import org.apache.geronimo.xml.ns.naming.NamingFactory;
 import org.apache.geronimo.xml.ns.naming.NamingPackage;
 import org.eclipse.emf.ecore.EAttribute;
 import org.eclipse.emf.ecore.EFactory;
 
-public class ResourceEnvRefWizard extends DynamicAddEditWizard {
+public class ResourceEnvRefWizard extends AbstractTableWizard {
 
-    /**
-     * @param section
-     */
-    public ResourceEnvRefWizard(DynamicTableSection section) {
-        super(section);
-    }
-    
-    public EFactory getEFactory() {
-        return NamingFactory.eINSTANCE;
-    }
-    
-    public EAttribute[] getTableColumnEAttributes() {
-        return new EAttribute[] {
-                NamingPackage.eINSTANCE.getResourceEnvRefType_RefName(),
-                NamingPackage.eINSTANCE
-                        .getResourceEnvRefType_MessageDestinationLink() };
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getAddWizardWindowTitle()
-     */
-    public String getAddWizardWindowTitle() {
-        return Messages.wizardPageTitle_ResEnvRef;
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getEditWizardWindowTitle()
-     */
-    public String getEditWizardWindowTitle() {
-        return Messages.wizardEditTitle_ResEnvRef;
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getWizardFirstPageTitle()
-     */
-    public String getWizardFirstPageTitle() {
-        return Messages.wizardPageTitle_ResEnvRef;
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getWizardFirstPageDescription()
-     */
-    public String getWizardFirstPageDescription() {
-        return Messages.wizardPageDescription_ResEnvRef;
-    }
+	/**
+	 * @param section
+	 */
+	public ResourceEnvRefWizard(AbstractTableSection section) {
+		super(section);
+	}
+
+	public EFactory getEFactory() {
+		return NamingFactory.eINSTANCE;
+	}
+
+	public EAttribute[] getTableColumnEAttributes() {
+		return new EAttribute[] {
+				NamingPackage.eINSTANCE.getResourceEnvRefType_RefName(),
+				NamingPackage.eINSTANCE
+						.getResourceEnvRefType_MessageDestinationLink() };
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getAddWizardWindowTitle()
+	 */
+	public String getAddWizardWindowTitle() {
+		return Messages.wizardPageTitle_ResEnvRef;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getEditWizardWindowTitle()
+	 */
+	public String getEditWizardWindowTitle() {
+		return Messages.wizardEditTitle_ResEnvRef;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getWizardFirstPageTitle()
+	 */
+	public String getWizardFirstPageTitle() {
+		return Messages.wizardPageTitle_ResEnvRef;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getWizardFirstPageDescription()
+	 */
+	public String getWizardFirstPageDescription() {
+		return Messages.wizardPageDescription_ResEnvRef;
+	}
 
 }

Modified: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/ResourceRefWizard.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/ResourceRefWizard.java?rev=366939&r1=366938&r2=366939&view=diff
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/ResourceRefWizard.java
(original)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/ResourceRefWizard.java
Sat Jan  7 15:07:55 2006
@@ -16,66 +16,66 @@
 package org.apache.geronimo.ui.wizards;
 
 import org.apache.geronimo.ui.internal.Messages;
-import org.apache.geronimo.ui.sections.DynamicTableSection;
+import org.apache.geronimo.ui.sections.AbstractTableSection;
 import org.apache.geronimo.xml.ns.naming.NamingFactory;
 import org.apache.geronimo.xml.ns.naming.NamingPackage;
 import org.eclipse.emf.ecore.EAttribute;
 import org.eclipse.emf.ecore.EFactory;
 
-public class ResourceRefWizard extends DynamicAddEditWizard {
+public class ResourceRefWizard extends AbstractTableWizard {
 
-    /**
-     * @param section
-     */
-    public ResourceRefWizard(DynamicTableSection section) {
-        super(section);
-    }
-    
-    public EFactory getEFactory() {
-        return NamingFactory.eINSTANCE;
-    }
-    
-    public EAttribute[] getTableColumnEAttributes() {
-        return new EAttribute[] {
-                NamingPackage.eINSTANCE.getResourceRefType_RefName(),
-                NamingPackage.eINSTANCE.getResourceRefType_ResourceLink(),
-                NamingPackage.eINSTANCE.getResourceRefType_TargetName() };
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getAddWizardWindowTitle()
-     */
-    public String getAddWizardWindowTitle() {
-        return Messages.wizardPageTitle_ResRef;
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getEditWizardWindowTitle()
-     */
-    public String getEditWizardWindowTitle() {
-        return Messages.wizardEditTitle_ResRef;
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getWizardFirstPageTitle()
-     */
-    public String getWizardFirstPageTitle() {
-        return Messages.wizardPageTitle_ResRef;
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getWizardFirstPageDescription()
-     */
-    public String getWizardFirstPageDescription() {
-        return Messages.wizardPageDescription_ResRef;
-    }
+	/**
+	 * @param section
+	 */
+	public ResourceRefWizard(AbstractTableSection section) {
+		super(section);
+	}
+
+	public EFactory getEFactory() {
+		return NamingFactory.eINSTANCE;
+	}
+
+	public EAttribute[] getTableColumnEAttributes() {
+		return new EAttribute[] {
+				NamingPackage.eINSTANCE.getResourceRefType_RefName(),
+				NamingPackage.eINSTANCE.getResourceRefType_ResourceLink(),
+				NamingPackage.eINSTANCE.getResourceRefType_TargetName() };
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getAddWizardWindowTitle()
+	 */
+	public String getAddWizardWindowTitle() {
+		return Messages.wizardPageTitle_ResRef;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getEditWizardWindowTitle()
+	 */
+	public String getEditWizardWindowTitle() {
+		return Messages.wizardEditTitle_ResRef;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getWizardFirstPageTitle()
+	 */
+	public String getWizardFirstPageTitle() {
+		return Messages.wizardPageTitle_ResRef;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getWizardFirstPageDescription()
+	 */
+	public String getWizardFirstPageDescription() {
+		return Messages.wizardPageDescription_ResRef;
+	}
 
 }

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=366939&r1=366938&r2=366939&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
Sat Jan  7 15:07:55 2006
@@ -16,7 +16,7 @@
 package org.apache.geronimo.ui.wizards;
 
 import org.apache.geronimo.ui.internal.Messages;
-import org.apache.geronimo.ui.sections.DynamicTableSection;
+import org.apache.geronimo.ui.sections.AbstractTableSection;
 import org.apache.geronimo.ui.sections.SecuritySection;
 import org.apache.geronimo.xml.ns.security.DescriptionType;
 import org.apache.geronimo.xml.ns.security.RoleMappingsType;
@@ -33,144 +33,143 @@
 import org.eclipse.swt.widgets.Label;
 import org.eclipse.swt.widgets.Text;
 
-public class SecurityRoleWizard extends DynamicAddEditWizard {
+public class SecurityRoleWizard extends AbstractTableWizard {
 
-    public SecurityRoleWizard(DynamicTableSection section) {
-        super(section);
-    }
-    
-    public EFactory getEFactory() {
-        return SecurityFactory.eINSTANCE;
-    }
-    
-    public EAttribute[] getTableColumnEAttributes() {
-        return new EAttribute[] {SecurityPackage.eINSTANCE.getRoleType_RoleName()};
-    }
-
-    public String getAddWizardWindowTitle() {
-        return Messages.wizardNewTitle_SecurityRole;
-    }
-
-    public String getEditWizardWindowTitle() {
-        return Messages.wizardEditTitle_SecurityRole;
-    }
-
-    public String getWizardFirstPageTitle() {
-        return Messages.wizardPageTitle_SecurityRole;
-    }
-
-    public String getWizardFirstPageDescription() {
-        return Messages.wizardPageDescription_SecurityRole;
-    }
-    
-    /* (non-Javadoc)
-     * @see org.eclipse.jface.wizard.IWizard#addPages()
-     */
-    public void addPages() {
-    	SecurityRoleWizardPage page = new SecurityRoleWizardPage("Page0");
-        page.setImageDescriptor(descriptor);
-        addPage(page);
-    }
-    
-    public class SecurityRoleWizardPage extends DynamicWizardPage {
-    	
-    	 Text descriptionText;
-    	 
-    	 public SecurityRoleWizardPage(String pageName) {
-             super(pageName);
-         }    	
-    	 
-    	 /* (non-Javadoc)
-    	 * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard.DynamicWizardPage#doCustom()
-    	 */
-    	public void doCustom(Composite parent) {    		 
-    		 Label label = new Label(parent, SWT.LEFT);
-             String columnName = Messages.description;
-             if(!columnName.endsWith(":"))
-                 columnName = columnName.concat(":");
-             label.setText(columnName);
-             GridData data = new GridData();
-             data.horizontalAlignment = GridData.FILL;
-             label.setLayoutData(data);
-
-             descriptionText = new Text(parent, SWT.SINGLE | SWT.BORDER);
-             data = new GridData(GridData.HORIZONTAL_ALIGN_FILL
-                     | GridData.VERTICAL_ALIGN_FILL);
-             data.grabExcessHorizontalSpace = true;
-             data.widthHint = 100;
-             descriptionText.setLayoutData(data);
-
-             if (eObject != null && eObject instanceof RoleType) {
-            	 RoleType roleType = (RoleType) eObject;
-            	 if(!roleType.getDescription().isEmpty()) {
-            		 DescriptionType desc = (DescriptionType) roleType.getDescription().get(0);
-            		 if(desc.eIsSet(SecurityPackage.eINSTANCE.getDescriptionType_Value())){
-            			 descriptionText.setText(desc.getValue());
-            		 }
-            	 }
-             }    		 
-    	}
-    }
-
-    public boolean performFinish() {
-    	SecurityRoleWizardPage page = (SecurityRoleWizardPage) getPages()[0];
-
-        if (eObject == null) {
-            eObject = getEFactory().create(
-                    getTableColumnEAttributes()[0]
-                            .getEContainingClass());
-            EObject plan = section.getPlan();
-
-            SecurityType securityType = (SecurityType) plan
-                    .eGet(((SecuritySection) section).securityERef);
-            if (securityType == null) {
-                securityType = SecurityFactory.eINSTANCE.createSecurityType();
-                plan.eSet(((SecuritySection) section).securityERef, securityType);
-            }
-
-            RoleMappingsType roleMappingsType = securityType.getRoleMappings();
-            if (roleMappingsType == null) {
-                roleMappingsType = SecurityFactory.eINSTANCE
-                        .createRoleMappingsType();
-                securityType.setRoleMappings(roleMappingsType);
-            }
-
-            roleMappingsType.getRole().add(eObject);
-        }
-
-        processEAttributes(page);
-      
-        DescriptionType type = null;
-        RoleType roleType = ((RoleType) eObject);
-        if (roleType.getDescription().isEmpty()) {
-            type = SecurityFactory.eINSTANCE
-                    .createDescriptionType();
-            roleType.getDescription().add(type);
-        } else {
-            type = (DescriptionType) roleType.getDescription().get(
-                    0);
-        }
-        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);
-            }
-        }*/
+	public SecurityRoleWizard(AbstractTableSection section) {
+		super(section);
+	}
+
+	public EFactory getEFactory() {
+		return SecurityFactory.eINSTANCE;
+	}
+
+	public EAttribute[] getTableColumnEAttributes() {
+		return new EAttribute[] { SecurityPackage.eINSTANCE
+				.getRoleType_RoleName() };
+	}
+
+	public String getAddWizardWindowTitle() {
+		return Messages.wizardNewTitle_SecurityRole;
+	}
+
+	public String getEditWizardWindowTitle() {
+		return Messages.wizardEditTitle_SecurityRole;
+	}
+
+	public String getWizardFirstPageTitle() {
+		return Messages.wizardPageTitle_SecurityRole;
+	}
+
+	public String getWizardFirstPageDescription() {
+		return Messages.wizardPageDescription_SecurityRole;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.eclipse.jface.wizard.IWizard#addPages()
+	 */
+	public void addPages() {
+		SecurityRoleWizardPage page = new SecurityRoleWizardPage("Page0");
+		page.setImageDescriptor(descriptor);
+		addPage(page);
+	}
+
+	public class SecurityRoleWizardPage extends DynamicWizardPage {
+
+		Text descriptionText;
+
+		public SecurityRoleWizardPage(String pageName) {
+			super(pageName);
+		}
+
+		/*
+		 * (non-Javadoc)
+		 * 
+		 * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard.DynamicWizardPage#doCustom()
+		 */
+		public void doCustom(Composite parent) {
+			Label label = new Label(parent, SWT.LEFT);
+			String columnName = Messages.description;
+			if (!columnName.endsWith(":"))
+				columnName = columnName.concat(":");
+			label.setText(columnName);
+			GridData data = new GridData();
+			data.horizontalAlignment = GridData.FILL;
+			label.setLayoutData(data);
+
+			descriptionText = new Text(parent, SWT.SINGLE | SWT.BORDER);
+			data = new GridData(GridData.HORIZONTAL_ALIGN_FILL
+					| GridData.VERTICAL_ALIGN_FILL);
+			data.grabExcessHorizontalSpace = true;
+			data.widthHint = 100;
+			descriptionText.setLayoutData(data);
+
+			if (eObject != null && eObject instanceof RoleType) {
+				RoleType roleType = (RoleType) eObject;
+				if (!roleType.getDescription().isEmpty()) {
+					DescriptionType desc = (DescriptionType) roleType
+							.getDescription().get(0);
+					if (desc.eIsSet(SecurityPackage.eINSTANCE
+							.getDescriptionType_Value())) {
+						descriptionText.setText(desc.getValue());
+					}
+				}
+			}
+		}
+	}
+
+	public boolean performFinish() {
+		SecurityRoleWizardPage page = (SecurityRoleWizardPage) getPages()[0];
+
+		if (eObject == null) {
+			eObject = getEFactory().create(
+					getTableColumnEAttributes()[0].getEContainingClass());
+			EObject plan = section.getPlan();
+
+			SecurityType securityType = (SecurityType) plan
+					.eGet(((SecuritySection) section).securityERef);
+			if (securityType == null) {
+				securityType = SecurityFactory.eINSTANCE.createSecurityType();
+				plan.eSet(((SecuritySection) section).securityERef,
+						securityType);
+			}
+
+			RoleMappingsType roleMappingsType = securityType.getRoleMappings();
+			if (roleMappingsType == null) {
+				roleMappingsType = SecurityFactory.eINSTANCE
+						.createRoleMappingsType();
+				securityType.setRoleMappings(roleMappingsType);
+			}
+
+			roleMappingsType.getRole().add(eObject);
+		}
+
+		processEAttributes(page);
+
+		DescriptionType type = null;
+		RoleType roleType = ((RoleType) eObject);
+		if (roleType.getDescription().isEmpty()) {
+			type = SecurityFactory.eINSTANCE.createDescriptionType();
+			roleType.getDescription().add(type);
+		} else {
+			type = (DescriptionType) roleType.getDescription().get(0);
+		}
+		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); } }
+		 */
 
-        return true;
-    }
+		return true;
+	}
 }

Modified: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/ServiceRefWizard.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/ServiceRefWizard.java?rev=366939&r1=366938&r2=366939&view=diff
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/ServiceRefWizard.java
(original)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/ServiceRefWizard.java
Sat Jan  7 15:07:55 2006
@@ -16,52 +16,60 @@
 package org.apache.geronimo.ui.wizards;
 
 import org.apache.geronimo.ui.internal.Messages;
-import org.apache.geronimo.ui.sections.DynamicTableSection;
+import org.apache.geronimo.ui.sections.AbstractTableSection;
 import org.apache.geronimo.xml.ns.naming.NamingFactory;
 import org.apache.geronimo.xml.ns.naming.NamingPackage;
 import org.eclipse.emf.ecore.EAttribute;
 import org.eclipse.emf.ecore.EFactory;
 
-public class ServiceRefWizard extends DynamicAddEditWizard {
+public class ServiceRefWizard extends AbstractTableWizard {
 
 	/**
 	 * @param section
 	 */
-	public ServiceRefWizard(DynamicTableSection section) {
+	public ServiceRefWizard(AbstractTableSection section) {
 		super(section);
 	}
 
 	public EFactory getEFactory() {
 		return NamingFactory.eINSTANCE;
 	}
-	
+
 	public EAttribute[] getTableColumnEAttributes() {
-		  return new EAttribute[] {
-	                NamingPackage.eINSTANCE.getServiceRefType_ServiceRefName()};
+		return new EAttribute[] { NamingPackage.eINSTANCE
+				.getServiceRefType_ServiceRefName() };
 	}
 
-	/* (non-Javadoc)
+	/*
+	 * (non-Javadoc)
+	 * 
 	 * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getAddWizardWindowTitle()
 	 */
 	public String getAddWizardWindowTitle() {
 		return Messages.wizardNewTitle_ServiceRef;
 	}
 
-	/* (non-Javadoc)
+	/*
+	 * (non-Javadoc)
+	 * 
 	 * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getEditWizardWindowTitle()
 	 */
 	public String getEditWizardWindowTitle() {
 		return Messages.wizardEditTitle_ServiceRef;
 	}
 
-	/* (non-Javadoc)
+	/*
+	 * (non-Javadoc)
+	 * 
 	 * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getWizardFirstPageTitle()
 	 */
 	public String getWizardFirstPageTitle() {
 		return Messages.wizardPageTitle_ServiceRef;
 	}
 
-	/* (non-Javadoc)
+	/*
+	 * (non-Javadoc)
+	 * 
 	 * @see org.apache.geronimo.ui.wizards.DynamicAddEditWizard#getWizardFirstPageDescription()
 	 */
 	public String getWizardFirstPageDescription() {

Modified: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/TableWizard.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/TableWizard.java?rev=366939&r1=366938&r2=366939&view=diff
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/TableWizard.java
(original)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/TableWizard.java
Sat Jan  7 15:07:55 2006
@@ -19,17 +19,17 @@
 import org.eclipse.emf.ecore.EFactory;
 
 public interface TableWizard {
-	
-	 public EFactory getEFactory();
 
-	 public EAttribute[] getTableColumnEAttributes();
+	public EFactory getEFactory();
 
-	 public String getAddWizardWindowTitle();
+	public EAttribute[] getTableColumnEAttributes();
 
-	 public String getEditWizardWindowTitle();
-	 
-	 public String getWizardFirstPageTitle();
+	public String getAddWizardWindowTitle();
+
+	public String getEditWizardWindowTitle();
+
+	public String getWizardFirstPageTitle();
+
+	public String getWizardFirstPageDescription();
 
-	 public String getWizardFirstPageDescription();
-	 
 }



Mime
View raw message