You can subscribe to this list here.
| 2006 |
Jan
(30) |
Feb
(15) |
Mar
(1) |
Apr
(14) |
May
(31) |
Jun
|
Jul
(5) |
Aug
|
Sep
|
Oct
(53) |
Nov
(6) |
Dec
|
|---|
Update of /cvsroot/modelwizard/source/Model Wizard Plugin/src/net/sourceforge/modelWizard/Profile/util In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv3385/src/net/sourceforge/modelWizard/Profile/util Modified Files: ProfileAdapterFactory.java ProfileResourceImpl.java ProfileResourceFactoryImpl.java Log Message: removed unused imports Index: ProfileResourceImpl.java =================================================================== RCS file: /cvsroot/modelwizard/source/Model Wizard Plugin/src/net/sourceforge/modelWizard/Profile/util/ProfileResourceImpl.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** ProfileResourceImpl.java 27 Sep 2005 18:42:17 -0000 1.1.1.1 --- ProfileResourceImpl.java 24 Oct 2006 21:43:34 -0000 1.2 *************** *** 1,39 **** ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.Profile.util; ! ! import org.eclipse.emf.common.util.URI; ! ! import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; ! ! /** ! * <!-- begin-user-doc --> ! * The <b>Resource </b> associated with the package. ! * <!-- end-user-doc --> ! * @see net.sourceforge.modelWizard.Profile.util.ProfileResourceFactoryImpl ! * @generated ! */ ! public class ProfileResourceImpl extends XMLResourceImpl { ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public static final String copyright = "(c) 2005 Cisco Systems"; ! ! /** ! * Creates an instance of the resource. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param uri the URI of the new resource. ! * @generated ! */ ! public ProfileResourceImpl(URI uri) { ! super(uri); ! } ! ! } //ProfileResourceImpl --- 1,38 ---- ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.Profile.util; ! ! import org.eclipse.emf.common.util.URI; ! import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; ! ! /** ! * <!-- begin-user-doc --> ! * The <b>Resource </b> associated with the package. ! * <!-- end-user-doc --> ! * @see net.sourceforge.modelWizard.Profile.util.ProfileResourceFactoryImpl ! * @generated ! */ ! public class ProfileResourceImpl extends XMLResourceImpl { ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public static final String copyright = "(c) 2005 Cisco Systems"; ! ! /** ! * Creates an instance of the resource. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param uri the URI of the new resource. ! * @generated ! */ ! public ProfileResourceImpl(URI uri) { ! super(uri); ! } ! ! } //ProfileResourceImpl Index: ProfileAdapterFactory.java =================================================================== RCS file: /cvsroot/modelwizard/source/Model Wizard Plugin/src/net/sourceforge/modelWizard/Profile/util/ProfileAdapterFactory.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** ProfileAdapterFactory.java 27 Sep 2005 18:42:17 -0000 1.1.1.1 --- ProfileAdapterFactory.java 24 Oct 2006 21:43:34 -0000 1.2 *************** *** 1,506 **** ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.Profile.util; ! ! import net.sourceforge.modelWizard.Profile.Association; ! import net.sourceforge.modelWizard.Profile.Case; [...981 lines suppressed...] ! * @see net.sourceforge.modelWizard.Profile.UseCases ! * @generated ! */ ! public Adapter createUseCasesAdapter() { ! return null; ! } ! ! /** ! * Creates a new adapter for the default case. ! * <!-- begin-user-doc --> ! * This default implementation returns null. ! * <!-- end-user-doc --> ! * @return the new adapter. ! * @generated ! */ ! public Adapter createEObjectAdapter() { ! return null; ! } ! ! } //ProfileAdapterFactory Index: ProfileResourceFactoryImpl.java =================================================================== RCS file: /cvsroot/modelwizard/source/Model Wizard Plugin/src/net/sourceforge/modelWizard/Profile/util/ProfileResourceFactoryImpl.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** ProfileResourceFactoryImpl.java 27 Sep 2005 18:42:17 -0000 1.1.1.1 --- ProfileResourceFactoryImpl.java 24 Oct 2006 21:43:34 -0000 1.2 *************** *** 1,84 **** ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.Profile.util; ! ! import net.sourceforge.modelWizard.Profile.ProfilePackage; ! ! import org.eclipse.emf.common.util.URI; ! ! import org.eclipse.emf.ecore.EPackage; ! ! import org.eclipse.emf.ecore.impl.EPackageRegistryImpl; ! ! import org.eclipse.emf.ecore.resource.Resource; ! ! import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; ! ! import org.eclipse.emf.ecore.util.BasicExtendedMetaData; ! import org.eclipse.emf.ecore.util.ExtendedMetaData; ! ! import org.eclipse.emf.ecore.xmi.XMLResource; ! ! /** ! * <!-- begin-user-doc --> ! * The <b>Resource Factory</b> associated with the package. ! * <!-- end-user-doc --> ! * @see net.sourceforge.modelWizard.Profile.util.ProfileResourceImpl ! * @generated ! */ ! public class ProfileResourceFactoryImpl extends ResourceFactoryImpl { ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public static final String copyright = "(c) 2005 Cisco Systems"; ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! protected ExtendedMetaData extendedMetaData; ! ! /** ! * Creates an instance of the resource factory. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public ProfileResourceFactoryImpl() { ! super(); ! extendedMetaData = new BasicExtendedMetaData(new EPackageRegistryImpl( ! EPackage.Registry.INSTANCE)); ! extendedMetaData.putPackage(null, ProfilePackage.eINSTANCE); ! } ! ! /** ! * Creates an instance of the resource. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public Resource createResource(URI uri) { ! XMLResource result = new ProfileResourceImpl(uri); ! result.getDefaultSaveOptions().put( ! XMLResource.OPTION_EXTENDED_META_DATA, extendedMetaData); ! result.getDefaultLoadOptions().put( ! XMLResource.OPTION_EXTENDED_META_DATA, extendedMetaData); ! ! result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, ! Boolean.TRUE); ! result.getDefaultSaveOptions().put( ! XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); ! ! result.getDefaultLoadOptions().put( ! XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); ! return result; ! } ! ! } //ProfileResourceFactoryImpl --- 1,78 ---- ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.Profile.util; ! ! import net.sourceforge.modelWizard.Profile.ProfilePackage; ! ! import org.eclipse.emf.common.util.URI; ! import org.eclipse.emf.ecore.EPackage; ! import org.eclipse.emf.ecore.impl.EPackageRegistryImpl; ! import org.eclipse.emf.ecore.resource.Resource; ! import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; ! import org.eclipse.emf.ecore.util.BasicExtendedMetaData; ! import org.eclipse.emf.ecore.util.ExtendedMetaData; ! import org.eclipse.emf.ecore.xmi.XMLResource; ! ! /** ! * <!-- begin-user-doc --> ! * The <b>Resource Factory</b> associated with the package. ! * <!-- end-user-doc --> ! * @see net.sourceforge.modelWizard.Profile.util.ProfileResourceImpl ! * @generated ! */ ! public class ProfileResourceFactoryImpl extends ResourceFactoryImpl { ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public static final String copyright = "(c) 2005 Cisco Systems"; ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! protected ExtendedMetaData extendedMetaData; ! ! /** ! * Creates an instance of the resource factory. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public ProfileResourceFactoryImpl() { ! super(); ! extendedMetaData = new BasicExtendedMetaData(new EPackageRegistryImpl( ! EPackage.Registry.INSTANCE)); ! extendedMetaData.putPackage(null, ProfilePackage.eINSTANCE); ! } ! ! /** ! * Creates an instance of the resource. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public Resource createResource(URI uri) { ! XMLResource result = new ProfileResourceImpl(uri); ! result.getDefaultSaveOptions().put( ! XMLResource.OPTION_EXTENDED_META_DATA, extendedMetaData); ! result.getDefaultLoadOptions().put( ! XMLResource.OPTION_EXTENDED_META_DATA, extendedMetaData); ! ! result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, ! Boolean.TRUE); ! result.getDefaultSaveOptions().put( ! XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); ! ! result.getDefaultLoadOptions().put( ! XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); ! return result; ! } ! ! } //ProfileResourceFactoryImpl |
|
From: jistrawn <jis...@us...> - 2006-10-24 21:42:02
|
Update of /cvsroot/modelwizard/source/Model Wizard Plugin/src/net/sourceforge/modelWizard/preferences In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv2372/src/net/sourceforge/modelWizard/preferences Modified Files: WizardVersions.java Log Message: removed unused imports or reformatted import order (ctrl-shift-o) Index: WizardVersions.java =================================================================== RCS file: /cvsroot/modelwizard/source/Model Wizard Plugin/src/net/sourceforge/modelWizard/preferences/WizardVersions.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** WizardVersions.java 23 Nov 2005 23:27:08 -0000 1.2 --- WizardVersions.java 24 Oct 2006 21:41:58 -0000 1.3 *************** *** 1,97 **** ! package net.sourceforge.modelWizard.preferences; ! ! import java.util.ArrayList; ! import java.util.Collection; ! import java.util.Dictionary; ! import java.util.HashMap; ! import java.util.Iterator; ! import java.util.Map; ! ! import net.sourceforge.modelWizard.ModelWizardPlugin; ! import net.sourceforge.modelWizard.modelAbstraction.ModelAccess; ! ! import org.eclipse.core.runtime.IExtensionRegistry; ! import org.eclipse.core.runtime.Platform; ! import org.eclipse.jface.preference.PreferencePage; ! import org.eclipse.jface.resource.ImageDescriptor; ! import org.eclipse.swt.SWT; ! import org.eclipse.swt.layout.GridData; ! import org.eclipse.swt.layout.GridLayout; ! import org.eclipse.swt.widgets.Composite; ! import org.eclipse.swt.widgets.Control; ! import org.eclipse.swt.widgets.Group; ! import org.eclipse.swt.widgets.Label; ! import org.eclipse.swt.widgets.Text; ! import org.eclipse.ui.IWorkbench; ! import org.eclipse.ui.IWorkbenchPreferencePage; ! import org.osgi.framework.Bundle; ! ! public class WizardVersions extends PreferencePage implements ! IWorkbenchPreferencePage { ! ! protected Control createContents(Composite parent) { ! Group g = new Group(parent, SWT.NONE); ! g.setText("Plugin Versions"); ! final GridLayout gridLayout = new GridLayout(); ! gridLayout.numColumns = 2; ! gridLayout.makeColumnsEqualWidth = true; ! g.setLayout(gridLayout); ! Map versions = getVersions(); ! for (Iterator i = versions.keySet().iterator();i.hasNext();){ ! String bundleName = (String) i.next(); ! String bundleVersion = (String) versions.get(bundleName); ! Label bLabel = new Label(g, SWT.NONE); ! bLabel.setText(bundleName); ! Text bVersion = new Text(g, SWT.READ_ONLY | SWT.BORDER); ! final GridData gridData = new GridData(); ! gridData.widthHint = 100; ! bVersion.setLayoutData(gridData); ! bVersion.setText(bundleVersion); ! } ! return g; ! } ! ! ! public void init(IWorkbench workbench) { ! setDescription(null); ! setImageDescriptor(ModelWizardPlugin.getIconPath("smallWizPurple.gif")); ! setTitle("Model Wizard Versions"); ! } ! ! public static Map getVersions(){ ! HashMap versions = new HashMap(); ! String thisModel = ModelWizardPlugin.getDefault().getBundle().getSymbolicName(); ! putVersions(thisModel,versions); ! String[] c = ModelAccess.INSTANCE.getKeys(); ! for (int i = 0; i<c.length;i++){ ! String bundleName = ModelAccess.INSTANCE.getPluginId(c[i]); ! if (!versions.containsKey(bundleName)) ! putVersions(bundleName,versions); ! } ! return versions; ! } ! ! private static void putVersions (String bundleName, Map versions){ ! String version = "Not found"; ! Bundle b = Platform.getBundle(bundleName); ! if (b != null) { ! version = getVersion(b); ! Bundle[] fragments = Platform.getFragments(b); ! if (fragments != null) ! for (int n =0; n<fragments.length;n++){ ! versions.put(fragments[n].getSymbolicName(),getVersion(fragments[n])); ! } ! } ! versions.put(bundleName,version); ! } ! ! ! private static String getVersion(Bundle bundle) { ! String version = "Not found"; ! Dictionary d = bundle.getHeaders(); ! if (d != null){ ! version = (String) d.get("Bundle-Version"); ! } ! return version; ! } ! } --- 1,93 ---- ! package net.sourceforge.modelWizard.preferences; ! ! import java.util.Dictionary; ! import java.util.HashMap; ! import java.util.Iterator; ! import java.util.Map; ! ! import net.sourceforge.modelWizard.ModelWizardPlugin; ! import net.sourceforge.modelWizard.modelAbstraction.ModelAccess; ! ! import org.eclipse.core.runtime.Platform; ! import org.eclipse.jface.preference.PreferencePage; ! import org.eclipse.swt.SWT; ! import org.eclipse.swt.layout.GridData; ! import org.eclipse.swt.layout.GridLayout; ! import org.eclipse.swt.widgets.Composite; ! import org.eclipse.swt.widgets.Control; ! import org.eclipse.swt.widgets.Group; ! import org.eclipse.swt.widgets.Label; ! import org.eclipse.swt.widgets.Text; ! import org.eclipse.ui.IWorkbench; ! import org.eclipse.ui.IWorkbenchPreferencePage; ! import org.osgi.framework.Bundle; ! ! public class WizardVersions extends PreferencePage implements ! IWorkbenchPreferencePage { ! ! protected Control createContents(Composite parent) { ! Group g = new Group(parent, SWT.NONE); ! g.setText("Plugin Versions"); ! final GridLayout gridLayout = new GridLayout(); ! gridLayout.numColumns = 2; ! gridLayout.makeColumnsEqualWidth = true; ! g.setLayout(gridLayout); ! Map versions = getVersions(); ! for (Iterator i = versions.keySet().iterator();i.hasNext();){ ! String bundleName = (String) i.next(); ! String bundleVersion = (String) versions.get(bundleName); ! Label bLabel = new Label(g, SWT.NONE); ! bLabel.setText(bundleName); ! Text bVersion = new Text(g, SWT.READ_ONLY | SWT.BORDER); ! final GridData gridData = new GridData(); ! gridData.widthHint = 100; ! bVersion.setLayoutData(gridData); ! bVersion.setText(bundleVersion); ! } ! return g; ! } ! ! ! public void init(IWorkbench workbench) { ! setDescription(null); ! setImageDescriptor(ModelWizardPlugin.getIconPath("smallWizPurple.gif")); ! setTitle("Model Wizard Versions"); ! } ! ! public static Map getVersions(){ ! HashMap versions = new HashMap(); ! String thisModel = ModelWizardPlugin.getDefault().getBundle().getSymbolicName(); ! putVersions(thisModel,versions); ! String[] c = ModelAccess.INSTANCE.getKeys(); ! for (int i = 0; i<c.length;i++){ ! String bundleName = ModelAccess.INSTANCE.getPluginId(c[i]); ! if (!versions.containsKey(bundleName)) ! putVersions(bundleName,versions); ! } ! return versions; ! } ! ! private static void putVersions (String bundleName, Map versions){ ! String version = "Not found"; ! Bundle b = Platform.getBundle(bundleName); ! if (b != null) { ! version = getVersion(b); ! Bundle[] fragments = Platform.getFragments(b); ! if (fragments != null) ! for (int n =0; n<fragments.length;n++){ ! versions.put(fragments[n].getSymbolicName(),getVersion(fragments[n])); ! } ! } ! versions.put(bundleName,version); ! } ! ! ! private static String getVersion(Bundle bundle) { ! String version = "Not found"; ! Dictionary d = bundle.getHeaders(); ! if (d != null){ ! version = (String) d.get("Bundle-Version"); ! } ! return version; ! } ! } |
|
From: jistrawn <jis...@us...> - 2006-10-24 21:41:45
|
Update of /cvsroot/modelwizard/source/Model Wizard Plugin/src/net/sourceforge/modelWizard/popup/actions In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv2330/src/net/sourceforge/modelWizard/popup/actions Modified Files: AddModelAction.java Log Message: removed unused imports or reformatted import order (ctrl-shift-o) Index: AddModelAction.java =================================================================== RCS file: /cvsroot/modelwizard/source/Model Wizard Plugin/src/net/sourceforge/modelWizard/popup/actions/AddModelAction.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** AddModelAction.java 6 Oct 2005 15:59:05 -0000 1.1 --- AddModelAction.java 24 Oct 2006 21:41:41 -0000 1.2 *************** *** 1,76 **** ! package net.sourceforge.modelWizard.popup.actions; ! ! import java.io.IOException; ! ! import net.sourceforge.modelWizard.modelAbstraction.ModelAccess; ! import net.sourceforge.modelWizard.utilities.PathUtilties; ! ! import org.eclipse.core.resources.IFile; ! import org.eclipse.core.resources.IProject; ! import org.eclipse.core.resources.IResource; ! import org.eclipse.emf.common.util.URI; ! import org.eclipse.jface.action.IAction; ! import org.eclipse.jface.viewers.ISelection; ! import org.eclipse.jface.viewers.IStructuredSelection; ! import org.eclipse.swt.widgets.Shell; ! import org.eclipse.ui.IObjectActionDelegate; ! import org.eclipse.ui.IWorkbenchPart; ! import org.eclipse.ui.IWorkbenchWindow; ! import org.eclipse.ui.IWorkbenchWindowActionDelegate; ! import org.eclipse.jface.dialogs.MessageDialog; ! import org.eclipse.ui.actions.CopyFilesAndFoldersOperation; ! ! ! ! /** ! * Our sample action implements workbench action delegate. ! * The action proxy will be created by the workbench and ! * shown in the UI. When the user tries to use the action, ! * this delegate will be created and execution will be ! * delegated to it. ! * @see IWorkbenchWindowActionDelegate ! */ ! public class AddModelAction implements IObjectActionDelegate { ! private ISelection selection; ! ! private Shell shell=null; ! ! /** ! * The action has been activated. The argument of the ! * method represents the 'real' action sitting ! * in the workbench UI. ! * @see IWorkbenchWindowActionDelegate#run ! */ ! public void run(IAction action) { ! if (selection!=null && selection.isEmpty()==false && selection instanceof IStructuredSelection) { ! IStructuredSelection ssel = (IStructuredSelection)selection; ! Object obj = ssel.getFirstElement(); ! if (obj instanceof IResource){ ! IProject proj = (IProject) obj; ! CopyFilesAndFoldersOperation cp = new CopyFilesAndFoldersOperation(shell); ! URI fUri = ModelAccess.INSTANCE.getCurrentModelFile(); ! String f = PathUtilties.convertLocalURItoFile(fUri); ! cp.copyFiles(new String[] {f},proj); ! } ! } ! } ! ! /** ! * Selection in the workbench has been changed. We ! * can change the state of the 'real' action here ! * if we want, but this can only happen after ! * the delegate has been created. ! * @see IWorkbenchWindowActionDelegate#selectionChanged ! */ ! public void selectionChanged(IAction action, ISelection selection) { ! this.selection = selection; ! } ! ! ! /* (non-Javadoc) ! * @see org.eclipse.ui.IObjectActionDelegate#setActivePart(org.eclipse.jface.action.IAction, org.eclipse.ui.IWorkbenchPart) ! */ ! public void setActivePart(IAction action, IWorkbenchPart targetPart) { ! shell = targetPart.getSite().getShell(); ! } } \ No newline at end of file --- 1,71 ---- ! package net.sourceforge.modelWizard.popup.actions; ! ! import net.sourceforge.modelWizard.modelAbstraction.ModelAccess; ! import net.sourceforge.modelWizard.utilities.PathUtilties; ! ! import org.eclipse.core.resources.IProject; ! import org.eclipse.core.resources.IResource; ! import org.eclipse.emf.common.util.URI; ! import org.eclipse.jface.action.IAction; ! import org.eclipse.jface.viewers.ISelection; ! import org.eclipse.jface.viewers.IStructuredSelection; ! import org.eclipse.swt.widgets.Shell; ! import org.eclipse.ui.IObjectActionDelegate; ! import org.eclipse.ui.IWorkbenchPart; ! import org.eclipse.ui.IWorkbenchWindowActionDelegate; ! import org.eclipse.ui.actions.CopyFilesAndFoldersOperation; ! ! ! ! /** ! * Our sample action implements workbench action delegate. ! * The action proxy will be created by the workbench and ! * shown in the UI. When the user tries to use the action, ! * this delegate will be created and execution will be ! * delegated to it. ! * @see IWorkbenchWindowActionDelegate ! */ ! public class AddModelAction implements IObjectActionDelegate { ! private ISelection selection; ! ! private Shell shell=null; ! ! /** ! * The action has been activated. The argument of the ! * method represents the 'real' action sitting ! * in the workbench UI. ! * @see IWorkbenchWindowActionDelegate#run ! */ ! public void run(IAction action) { ! if (selection!=null && selection.isEmpty()==false && selection instanceof IStructuredSelection) { ! IStructuredSelection ssel = (IStructuredSelection)selection; ! Object obj = ssel.getFirstElement(); ! if (obj instanceof IResource){ ! IProject proj = (IProject) obj; ! CopyFilesAndFoldersOperation cp = new CopyFilesAndFoldersOperation(shell); ! URI fUri = ModelAccess.INSTANCE.getCurrentModelFile(); ! String f = PathUtilties.convertLocalURItoFile(fUri); ! cp.copyFiles(new String[] {f},proj); ! } ! } ! } ! ! /** ! * Selection in the workbench has been changed. We ! * can change the state of the 'real' action here ! * if we want, but this can only happen after ! * the delegate has been created. ! * @see IWorkbenchWindowActionDelegate#selectionChanged ! */ ! public void selectionChanged(IAction action, ISelection selection) { ! this.selection = selection; ! } ! ! ! /* (non-Javadoc) ! * @see org.eclipse.ui.IObjectActionDelegate#setActivePart(org.eclipse.jface.action.IAction, org.eclipse.ui.IWorkbenchPart) ! */ ! public void setActivePart(IAction action, IWorkbenchPart targetPart) { ! shell = targetPart.getSite().getShell(); ! } } \ No newline at end of file |
|
From: jistrawn <jis...@us...> - 2006-10-24 21:41:34
|
Update of /cvsroot/modelwizard/source/Model Wizard Plugin/src/net/sourceforge/modelWizard/modelAbstraction In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv2251/src/net/sourceforge/modelWizard/modelAbstraction Modified Files: ModelAccess.java Log Message: removed unused imports or reformatted import order (ctrl-shift-o) Index: ModelAccess.java =================================================================== RCS file: /cvsroot/modelwizard/source/Model Wizard Plugin/src/net/sourceforge/modelWizard/modelAbstraction/ModelAccess.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** ModelAccess.java 23 Nov 2005 23:27:08 -0000 1.7 --- ModelAccess.java 24 Oct 2006 21:41:30 -0000 1.8 *************** *** 1,517 **** ! /* ! * Created on Sep 23, 2005 ! * @author stjerman ! * <copyright> ! * ! * Copyright (c) 2005 Cisco Systems Inc, ! * All rights reserved. This program and the accompanying materials ! * are made available under the terms of the BSD License ! * which accompanies this distribution. ! * [...1002 lines suppressed...] ! } ! /** ! * Get the file extension for an Exporter ! * @param n the index for the exporter element ! * @return ! */ ! public String getExporterFileExt(int n){ ! ModelDefinition md = (ModelDefinition) definitions.get(key); ! return md.getExporterFileExt(n); ! } ! /** ! * Does this exporter output to a file or a folder? ! * @param n the index for the exporter element ! * @return ! */ ! public boolean isFile(int n){ ! ModelDefinition md = (ModelDefinition) definitions.get(key); ! return md.isFile(n); ! } ! } |
Update of /cvsroot/modelwizard/source/Model Wizard Plugin/src/net/sourceforge/modelWizard/Menus/util In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv2185/src/net/sourceforge/modelWizard/Menus/util Modified Files: MenusAdapterFactory.java MenusResourceImpl.java MenusResourceFactoryImpl.java MenusSwitch.java Log Message: removed unused imports or reformatted import order (ctrl-shift-o) Index: MenusAdapterFactory.java =================================================================== RCS file: /cvsroot/modelwizard/source/Model Wizard Plugin/src/net/sourceforge/modelWizard/Menus/util/MenusAdapterFactory.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** MenusAdapterFactory.java 6 Oct 2005 15:59:06 -0000 1.1 --- MenusAdapterFactory.java 24 Oct 2006 21:41:17 -0000 1.2 *************** *** 1,212 **** ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.Menus.util; ! ! import net.sourceforge.modelWizard.Menus.*; ! ! import org.eclipse.emf.common.notify.Adapter; ! import org.eclipse.emf.common.notify.Notifier; ! ! import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; ! ! import org.eclipse.emf.ecore.EObject; ! ! /** ! * <!-- begin-user-doc --> ! * The <b>Adapter Factory</b> for the model. ! * It provides an adapter <code>createXXX</code> method for each class of the model. ! * <!-- end-user-doc --> ! * @see net.sourceforge.modelWizard.Menus.MenusPackage ! * @generated ! */ ! public class MenusAdapterFactory extends AdapterFactoryImpl { ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public static final String copyright = "(c) Cisco Systems Inc 2005"; ! ! /** ! * The cached model package. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! protected static MenusPackage modelPackage; ! ! /** ! * Creates an instance of the adapter factory. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public MenusAdapterFactory() { ! if (modelPackage == null) { ! modelPackage = MenusPackage.eINSTANCE; ! } ! } ! ! /** ! * Returns whether this factory is applicable for the type of the object. ! * <!-- begin-user-doc --> ! * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. ! * <!-- end-user-doc --> ! * @return whether this factory is applicable for the type of the object. ! * @generated ! */ ! public boolean isFactoryForType(Object object) { ! if (object == modelPackage) { ! return true; ! } ! if (object instanceof EObject) { ! return ((EObject)object).eClass().getEPackage() == modelPackage; ! } ! return false; ! } ! ! /** ! * The switch the delegates to the <code>createXXX</code> methods. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! protected MenusSwitch modelSwitch = ! new MenusSwitch() { ! public Object caseDocumentRoot(DocumentRoot object) { ! return createDocumentRootAdapter(); ! } ! public Object caseInclude(Include object) { ! return createIncludeAdapter(); ! } ! public Object caseItem(Item object) { ! return createItemAdapter(); ! } ! public Object caseMenu(Menu object) { ! return createMenuAdapter(); ! } ! public Object caseProfile(Profile object) { ! return createProfileAdapter(); ! } ! public Object caseWizard(Wizard object) { ! return createWizardAdapter(); ! } ! public Object defaultCase(EObject object) { ! return createEObjectAdapter(); ! } ! }; ! ! /** ! * Creates an adapter for the <code>target</code>. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param target the object to adapt. ! * @return the adapter for the <code>target</code>. ! * @generated ! */ ! public Adapter createAdapter(Notifier target) { ! return (Adapter)modelSwitch.doSwitch((EObject)target); ! } ! ! ! /** ! * Creates a new adapter for an object of class '{@link net.sourceforge.modelWizard.Menus.DocumentRoot <em>Document Root</em>}'. ! * <!-- begin-user-doc --> ! * This default implementation returns null so that we can easily ignore cases; ! * it's useful to ignore a case when inheritance will catch all the cases anyway. ! * <!-- end-user-doc --> ! * @return the new adapter. ! * @see net.sourceforge.modelWizard.Menus.DocumentRoot ! * @generated ! */ ! public Adapter createDocumentRootAdapter() { ! return null; ! } ! ! /** ! * Creates a new adapter for an object of class '{@link net.sourceforge.modelWizard.Menus.Include <em>Include</em>}'. ! * <!-- begin-user-doc --> ! * This default implementation returns null so that we can easily ignore cases; ! * it's useful to ignore a case when inheritance will catch all the cases anyway. ! * <!-- end-user-doc --> ! * @return the new adapter. ! * @see net.sourceforge.modelWizard.Menus.Include ! * @generated ! */ ! public Adapter createIncludeAdapter() { ! return null; ! } ! ! /** ! * Creates a new adapter for an object of class '{@link net.sourceforge.modelWizard.Menus.Item <em>Item</em>}'. ! * <!-- begin-user-doc --> ! * This default implementation returns null so that we can easily ignore cases; ! * it's useful to ignore a case when inheritance will catch all the cases anyway. ! * <!-- end-user-doc --> ! * @return the new adapter. ! * @see net.sourceforge.modelWizard.Menus.Item ! * @generated ! */ ! public Adapter createItemAdapter() { ! return null; ! } ! ! /** ! * Creates a new adapter for an object of class '{@link net.sourceforge.modelWizard.Menus.Menu <em>Menu</em>}'. ! * <!-- begin-user-doc --> ! * This default implementation returns null so that we can easily ignore cases; ! * it's useful to ignore a case when inheritance will catch all the cases anyway. ! * <!-- end-user-doc --> ! * @return the new adapter. ! * @see net.sourceforge.modelWizard.Menus.Menu ! * @generated ! */ ! public Adapter createMenuAdapter() { ! return null; ! } ! ! /** ! * Creates a new adapter for an object of class '{@link net.sourceforge.modelWizard.Menus.Profile <em>Profile</em>}'. ! * <!-- begin-user-doc --> ! * This default implementation returns null so that we can easily ignore cases; ! * it's useful to ignore a case when inheritance will catch all the cases anyway. ! * <!-- end-user-doc --> ! * @return the new adapter. ! * @see net.sourceforge.modelWizard.Menus.Profile ! * @generated ! */ ! public Adapter createProfileAdapter() { ! return null; ! } ! ! /** ! * Creates a new adapter for an object of class '{@link net.sourceforge.modelWizard.Menus.Wizard <em>Wizard</em>}'. ! * <!-- begin-user-doc --> ! * This default implementation returns null so that we can easily ignore cases; ! * it's useful to ignore a case when inheritance will catch all the cases anyway. ! * <!-- end-user-doc --> ! * @return the new adapter. ! * @see net.sourceforge.modelWizard.Menus.Wizard ! * @generated ! */ ! public Adapter createWizardAdapter() { ! return null; ! } ! ! /** ! * Creates a new adapter for the default case. ! * <!-- begin-user-doc --> ! * This default implementation returns null. ! * <!-- end-user-doc --> ! * @return the new adapter. ! * @generated ! */ ! public Adapter createEObjectAdapter() { ! return null; ! } ! ! } //MenusAdapterFactory --- 1,216 ---- ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.Menus.util; ! ! import net.sourceforge.modelWizard.Menus.DocumentRoot; ! import net.sourceforge.modelWizard.Menus.Include; ! import net.sourceforge.modelWizard.Menus.Item; ! import net.sourceforge.modelWizard.Menus.Menu; ! import net.sourceforge.modelWizard.Menus.MenusPackage; ! import net.sourceforge.modelWizard.Menus.Profile; ! import net.sourceforge.modelWizard.Menus.Wizard; ! ! import org.eclipse.emf.common.notify.Adapter; ! import org.eclipse.emf.common.notify.Notifier; ! import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; ! import org.eclipse.emf.ecore.EObject; ! ! /** ! * <!-- begin-user-doc --> ! * The <b>Adapter Factory</b> for the model. ! * It provides an adapter <code>createXXX</code> method for each class of the model. ! * <!-- end-user-doc --> ! * @see net.sourceforge.modelWizard.Menus.MenusPackage ! * @generated ! */ ! public class MenusAdapterFactory extends AdapterFactoryImpl { ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public static final String copyright = "(c) Cisco Systems Inc 2005"; ! ! /** ! * The cached model package. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! protected static MenusPackage modelPackage; ! ! /** ! * Creates an instance of the adapter factory. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public MenusAdapterFactory() { ! if (modelPackage == null) { ! modelPackage = MenusPackage.eINSTANCE; ! } ! } ! ! /** ! * Returns whether this factory is applicable for the type of the object. ! * <!-- begin-user-doc --> ! * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. ! * <!-- end-user-doc --> ! * @return whether this factory is applicable for the type of the object. ! * @generated ! */ ! public boolean isFactoryForType(Object object) { ! if (object == modelPackage) { ! return true; ! } ! if (object instanceof EObject) { ! return ((EObject)object).eClass().getEPackage() == modelPackage; ! } ! return false; ! } ! ! /** ! * The switch the delegates to the <code>createXXX</code> methods. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! protected MenusSwitch modelSwitch = ! new MenusSwitch() { ! public Object caseDocumentRoot(DocumentRoot object) { ! return createDocumentRootAdapter(); ! } ! public Object caseInclude(Include object) { ! return createIncludeAdapter(); ! } ! public Object caseItem(Item object) { ! return createItemAdapter(); ! } ! public Object caseMenu(Menu object) { ! return createMenuAdapter(); ! } ! public Object caseProfile(Profile object) { ! return createProfileAdapter(); ! } ! public Object caseWizard(Wizard object) { ! return createWizardAdapter(); ! } ! public Object defaultCase(EObject object) { ! return createEObjectAdapter(); ! } ! }; ! ! /** ! * Creates an adapter for the <code>target</code>. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param target the object to adapt. ! * @return the adapter for the <code>target</code>. ! * @generated ! */ ! public Adapter createAdapter(Notifier target) { ! return (Adapter)modelSwitch.doSwitch((EObject)target); ! } ! ! ! /** ! * Creates a new adapter for an object of class '{@link net.sourceforge.modelWizard.Menus.DocumentRoot <em>Document Root</em>}'. ! * <!-- begin-user-doc --> ! * This default implementation returns null so that we can easily ignore cases; ! * it's useful to ignore a case when inheritance will catch all the cases anyway. ! * <!-- end-user-doc --> ! * @return the new adapter. ! * @see net.sourceforge.modelWizard.Menus.DocumentRoot ! * @generated ! */ ! public Adapter createDocumentRootAdapter() { ! return null; ! } ! ! /** ! * Creates a new adapter for an object of class '{@link net.sourceforge.modelWizard.Menus.Include <em>Include</em>}'. ! * <!-- begin-user-doc --> ! * This default implementation returns null so that we can easily ignore cases; ! * it's useful to ignore a case when inheritance will catch all the cases anyway. ! * <!-- end-user-doc --> ! * @return the new adapter. ! * @see net.sourceforge.modelWizard.Menus.Include ! * @generated ! */ ! public Adapter createIncludeAdapter() { ! return null; ! } ! ! /** ! * Creates a new adapter for an object of class '{@link net.sourceforge.modelWizard.Menus.Item <em>Item</em>}'. ! * <!-- begin-user-doc --> ! * This default implementation returns null so that we can easily ignore cases; ! * it's useful to ignore a case when inheritance will catch all the cases anyway. ! * <!-- end-user-doc --> ! * @return the new adapter. ! * @see net.sourceforge.modelWizard.Menus.Item ! * @generated ! */ ! public Adapter createItemAdapter() { ! return null; ! } ! ! /** ! * Creates a new adapter for an object of class '{@link net.sourceforge.modelWizard.Menus.Menu <em>Menu</em>}'. ! * <!-- begin-user-doc --> ! * This default implementation returns null so that we can easily ignore cases; ! * it's useful to ignore a case when inheritance will catch all the cases anyway. ! * <!-- end-user-doc --> ! * @return the new adapter. ! * @see net.sourceforge.modelWizard.Menus.Menu ! * @generated ! */ ! public Adapter createMenuAdapter() { ! return null; ! } ! ! /** ! * Creates a new adapter for an object of class '{@link net.sourceforge.modelWizard.Menus.Profile <em>Profile</em>}'. ! * <!-- begin-user-doc --> ! * This default implementation returns null so that we can easily ignore cases; ! * it's useful to ignore a case when inheritance will catch all the cases anyway. ! * <!-- end-user-doc --> ! * @return the new adapter. ! * @see net.sourceforge.modelWizard.Menus.Profile ! * @generated ! */ ! public Adapter createProfileAdapter() { ! return null; ! } ! ! /** ! * Creates a new adapter for an object of class '{@link net.sourceforge.modelWizard.Menus.Wizard <em>Wizard</em>}'. ! * <!-- begin-user-doc --> ! * This default implementation returns null so that we can easily ignore cases; ! * it's useful to ignore a case when inheritance will catch all the cases anyway. ! * <!-- end-user-doc --> ! * @return the new adapter. ! * @see net.sourceforge.modelWizard.Menus.Wizard ! * @generated ! */ ! public Adapter createWizardAdapter() { ! return null; ! } ! ! /** ! * Creates a new adapter for the default case. ! * <!-- begin-user-doc --> ! * This default implementation returns null. ! * <!-- end-user-doc --> ! * @return the new adapter. ! * @generated ! */ ! public Adapter createEObjectAdapter() { ! return null; ! } ! ! } //MenusAdapterFactory Index: MenusResourceImpl.java =================================================================== RCS file: /cvsroot/modelwizard/source/Model Wizard Plugin/src/net/sourceforge/modelWizard/Menus/util/MenusResourceImpl.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** MenusResourceImpl.java 6 Oct 2005 15:59:06 -0000 1.1 --- MenusResourceImpl.java 24 Oct 2006 21:41:17 -0000 1.2 *************** *** 1,39 **** ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.Menus.util; ! ! import org.eclipse.emf.common.util.URI; ! ! import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; ! ! /** ! * <!-- begin-user-doc --> ! * The <b>Resource </b> associated with the package. ! * <!-- end-user-doc --> ! * @see net.sourceforge.modelWizard.Menus.util.MenusResourceFactoryImpl ! * @generated ! */ ! public class MenusResourceImpl extends XMLResourceImpl { ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public static final String copyright = "(c) Cisco Systems Inc 2005"; ! ! /** ! * Creates an instance of the resource. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param uri the URI of the new resource. ! * @generated ! */ ! public MenusResourceImpl(URI uri) { ! super(uri); ! } ! ! } //MenusResourceImpl --- 1,38 ---- ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.Menus.util; ! ! import org.eclipse.emf.common.util.URI; ! import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; ! ! /** ! * <!-- begin-user-doc --> ! * The <b>Resource </b> associated with the package. ! * <!-- end-user-doc --> ! * @see net.sourceforge.modelWizard.Menus.util.MenusResourceFactoryImpl ! * @generated ! */ ! public class MenusResourceImpl extends XMLResourceImpl { ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public static final String copyright = "(c) Cisco Systems Inc 2005"; ! ! /** ! * Creates an instance of the resource. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param uri the URI of the new resource. ! * @generated ! */ ! public MenusResourceImpl(URI uri) { ! super(uri); ! } ! ! } //MenusResourceImpl Index: MenusSwitch.java =================================================================== RCS file: /cvsroot/modelwizard/source/Model Wizard Plugin/src/net/sourceforge/modelWizard/Menus/util/MenusSwitch.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** MenusSwitch.java 6 Oct 2005 15:59:06 -0000 1.1 --- MenusSwitch.java 24 Oct 2006 21:41:17 -0000 1.2 *************** *** 1,242 **** ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.Menus.util; ! ! import java.util.List; ! ! import net.sourceforge.modelWizard.Menus.*; ! ! import org.eclipse.emf.ecore.EClass; ! import org.eclipse.emf.ecore.EObject; ! ! /** ! * <!-- begin-user-doc --> ! * The <b>Switch</b> for the model's inheritance hierarchy. ! * It supports the call {@link #doSwitch(EObject) doSwitch(object)} ! * to invoke the <code>caseXXX</code> method for each class of the model, ! * starting with the actual class of the object ! * and proceeding up the inheritance hierarchy ! * until a non-null result is returned, ! * which is the result of the switch. ! * <!-- end-user-doc --> ! * @see net.sourceforge.modelWizard.Menus.MenusPackage ! * @generated ! */ ! public class MenusSwitch { ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public static final String copyright = "(c) Cisco Systems Inc 2005"; ! ! /** ! * The cached model package ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! protected static MenusPackage modelPackage; ! ! /** ! * Creates an instance of the switch. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public MenusSwitch() { ! if (modelPackage == null) { ! modelPackage = MenusPackage.eINSTANCE; ! } ! } ! ! /** ! * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @return the first non-null result returned by a <code>caseXXX</code> call. ! * @generated ! */ ! public Object doSwitch(EObject theEObject) { ! return doSwitch(theEObject.eClass(), theEObject); ! } ! ! /** ! * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @return the first non-null result returned by a <code>caseXXX</code> call. ! * @generated ! */ ! protected Object doSwitch(EClass theEClass, EObject theEObject) { ! if (theEClass.eContainer() == modelPackage) { ! return doSwitch(theEClass.getClassifierID(), theEObject); ! } ! else { ! List eSuperTypes = theEClass.getESuperTypes(); ! return ! eSuperTypes.isEmpty() ? ! defaultCase(theEObject) : ! doSwitch((EClass)eSuperTypes.get(0), theEObject); ! } ! } ! ! /** ! * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @return the first non-null result returned by a <code>caseXXX</code> call. ! * @generated ! */ ! protected Object doSwitch(int classifierID, EObject theEObject) { ! switch (classifierID) { ! case MenusPackage.DOCUMENT_ROOT: { ! DocumentRoot documentRoot = (DocumentRoot)theEObject; ! Object result = caseDocumentRoot(documentRoot); ! if (result == null) result = defaultCase(theEObject); ! return result; ! } ! case MenusPackage.INCLUDE: { ! Include include = (Include)theEObject; ! Object result = caseInclude(include); ! if (result == null) result = defaultCase(theEObject); ! return result; ! } ! case MenusPackage.ITEM: { ! Item item = (Item)theEObject; ! Object result = caseItem(item); ! if (result == null) result = defaultCase(theEObject); ! return result; ! } ! case MenusPackage.MENU: { ! Menu menu = (Menu)theEObject; ! Object result = caseMenu(menu); ! if (result == null) result = defaultCase(theEObject); ! return result; ! } ! case MenusPackage.PROFILE: { ! Profile profile = (Profile)theEObject; ! Object result = caseProfile(profile); ! if (result == null) result = defaultCase(theEObject); ! return result; ! } ! case MenusPackage.WIZARD: { ! Wizard wizard = (Wizard)theEObject; ! Object result = caseWizard(wizard); ! if (result == null) result = defaultCase(theEObject); ! return result; ! } ! default: return defaultCase(theEObject); ! } ! } ! ! /** ! * Returns the result of interpretting the object as an instance of '<em>Document Root</em>'. ! * <!-- begin-user-doc --> ! * This implementation returns null; ! * returning a non-null result will terminate the switch. ! * <!-- end-user-doc --> ! * @param object the target of the switch. ! * @return the result of interpretting the object as an instance of '<em>Document Root</em>'. ! * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) ! * @generated ! */ ! public Object caseDocumentRoot(DocumentRoot object) { ! return null; ! } ! ! /** ! * Returns the result of interpretting the object as an instance of '<em>Include</em>'. ! * <!-- begin-user-doc --> ! * This implementation returns null; ! * returning a non-null result will terminate the switch. ! * <!-- end-user-doc --> ! * @param object the target of the switch. ! * @return the result of interpretting the object as an instance of '<em>Include</em>'. ! * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) ! * @generated ! */ ! public Object caseInclude(Include object) { ! return null; ! } ! ! /** ! * Returns the result of interpretting the object as an instance of '<em>Item</em>'. ! * <!-- begin-user-doc --> ! * This implementation returns null; ! * returning a non-null result will terminate the switch. ! * <!-- end-user-doc --> ! * @param object the target of the switch. ! * @return the result of interpretting the object as an instance of '<em>Item</em>'. ! * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) ! * @generated ! */ ! public Object caseItem(Item object) { ! return null; ! } ! ! /** ! * Returns the result of interpretting the object as an instance of '<em>Menu</em>'. ! * <!-- begin-user-doc --> ! * This implementation returns null; ! * returning a non-null result will terminate the switch. ! * <!-- end-user-doc --> ! * @param object the target of the switch. ! * @return the result of interpretting the object as an instance of '<em>Menu</em>'. ! * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) ! * @generated ! */ ! public Object caseMenu(Menu object) { ! return null; ! } ! ! /** ! * Returns the result of interpretting the object as an instance of '<em>Profile</em>'. ! * <!-- begin-user-doc --> ! * This implementation returns null; ! * returning a non-null result will terminate the switch. ! * <!-- end-user-doc --> ! * @param object the target of the switch. ! * @return the result of interpretting the object as an instance of '<em>Profile</em>'. ! * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) ! * @generated ! */ ! public Object caseProfile(Profile object) { ! return null; ! } ! ! /** ! * Returns the result of interpretting the object as an instance of '<em>Wizard</em>'. ! * <!-- begin-user-doc --> ! * This implementation returns null; ! * returning a non-null result will terminate the switch. ! * <!-- end-user-doc --> ! * @param object the target of the switch. ! * @return the result of interpretting the object as an instance of '<em>Wizard</em>'. ! * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) ! * @generated ! */ ! public Object caseWizard(Wizard object) { ! return null; ! } ! ! /** ! * Returns the result of interpretting the object as an instance of '<em>EObject</em>'. ! * <!-- begin-user-doc --> ! * This implementation returns null; ! * returning a non-null result will terminate the switch, but this is the last case anyway. ! * <!-- end-user-doc --> ! * @param object the target of the switch. ! * @return the result of interpretting the object as an instance of '<em>EObject</em>'. ! * @see #doSwitch(org.eclipse.emf.ecore.EObject) ! * @generated ! */ ! public Object defaultCase(EObject object) { ! return null; ! } ! ! } //MenusSwitch --- 1,248 ---- ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.Menus.util; ! ! import java.util.List; ! ! import net.sourceforge.modelWizard.Menus.DocumentRoot; ! import net.sourceforge.modelWizard.Menus.Include; ! import net.sourceforge.modelWizard.Menus.Item; ! import net.sourceforge.modelWizard.Menus.Menu; ! import net.sourceforge.modelWizard.Menus.MenusPackage; ! import net.sourceforge.modelWizard.Menus.Profile; ! import net.sourceforge.modelWizard.Menus.Wizard; ! ! import org.eclipse.emf.ecore.EClass; ! import org.eclipse.emf.ecore.EObject; ! ! /** ! * <!-- begin-user-doc --> ! * The <b>Switch</b> for the model's inheritance hierarchy. ! * It supports the call {@link #doSwitch(EObject) doSwitch(object)} ! * to invoke the <code>caseXXX</code> method for each class of the model, ! * starting with the actual class of the object ! * and proceeding up the inheritance hierarchy ! * until a non-null result is returned, ! * which is the result of the switch. ! * <!-- end-user-doc --> ! * @see net.sourceforge.modelWizard.Menus.MenusPackage ! * @generated ! */ ! public class MenusSwitch { ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public static final String copyright = "(c) Cisco Systems Inc 2005"; ! ! /** ! * The cached model package ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! protected static MenusPackage modelPackage; ! ! /** ! * Creates an instance of the switch. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public MenusSwitch() { ! if (modelPackage == null) { ! modelPackage = MenusPackage.eINSTANCE; ! } ! } ! ! /** ! * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @return the first non-null result returned by a <code>caseXXX</code> call. ! * @generated ! */ ! public Object doSwitch(EObject theEObject) { ! return doSwitch(theEObject.eClass(), theEObject); ! } ! ! /** ! * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @return the first non-null result returned by a <code>caseXXX</code> call. ! * @generated ! */ ! protected Object doSwitch(EClass theEClass, EObject theEObject) { ! if (theEClass.eContainer() == modelPackage) { ! return doSwitch(theEClass.getClassifierID(), theEObject); ! } ! else { ! List eSuperTypes = theEClass.getESuperTypes(); ! return ! eSuperTypes.isEmpty() ? ! defaultCase(theEObject) : ! doSwitch((EClass)eSuperTypes.get(0), theEObject); ! } ! } ! ! /** ! * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @return the first non-null result returned by a <code>caseXXX</code> call. ! * @generated ! */ ! protected Object doSwitch(int classifierID, EObject theEObject) { ! switch (classifierID) { ! case MenusPackage.DOCUMENT_ROOT: { ! DocumentRoot documentRoot = (DocumentRoot)theEObject; ! Object result = caseDocumentRoot(documentRoot); ! if (result == null) result = defaultCase(theEObject); ! return result; ! } ! case MenusPackage.INCLUDE: { ! Include include = (Include)theEObject; ! Object result = caseInclude(include); ! if (result == null) result = defaultCase(theEObject); ! return result; ! } ! case MenusPackage.ITEM: { ! Item item = (Item)theEObject; ! Object result = caseItem(item); ! if (result == null) result = defaultCase(theEObject); ! return result; ! } ! case MenusPackage.MENU: { ! Menu menu = (Menu)theEObject; ! Object result = caseMenu(menu); ! if (result == null) result = defaultCase(theEObject); ! return result; ! } ! case MenusPackage.PROFILE: { ! Profile profile = (Profile)theEObject; ! Object result = caseProfile(profile); ! if (result == null) result = defaultCase(theEObject); ! return result; ! } ! case MenusPackage.WIZARD: { ! Wizard wizard = (Wizard)theEObject; ! Object result = caseWizard(wizard); ! if (result == null) result = defaultCase(theEObject); ! return result; ! } ! default: return defaultCase(theEObject); ! } ! } ! ! /** ! * Returns the result of interpretting the object as an instance of '<em>Document Root</em>'. ! * <!-- begin-user-doc --> ! * This implementation returns null; ! * returning a non-null result will terminate the switch. ! * <!-- end-user-doc --> ! * @param object the target of the switch. ! * @return the result of interpretting the object as an instance of '<em>Document Root</em>'. ! * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) ! * @generated ! */ ! public Object caseDocumentRoot(DocumentRoot object) { ! return null; ! } ! ! /** ! * Returns the result of interpretting the object as an instance of '<em>Include</em>'. ! * <!-- begin-user-doc --> ! * This implementation returns null; ! * returning a non-null result will terminate the switch. ! * <!-- end-user-doc --> ! * @param object the target of the switch. ! * @return the result of interpretting the object as an instance of '<em>Include</em>'. ! * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) ! * @generated ! */ ! public Object caseInclude(Include object) { ! return null; ! } ! ! /** ! * Returns the result of interpretting the object as an instance of '<em>Item</em>'. ! * <!-- begin-user-doc --> ! * This implementation returns null; ! * returning a non-null result will terminate the switch. ! * <!-- end-user-doc --> ! * @param object the target of the switch. ! * @return the result of interpretting the object as an instance of '<em>Item</em>'. ! * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) ! * @generated ! */ ! public Object caseItem(Item object) { ! return null; ! } ! ! /** ! * Returns the result of interpretting the object as an instance of '<em>Menu</em>'. ! * <!-- begin-user-doc --> ! * This implementation returns null; ! * returning a non-null result will terminate the switch. ! * <!-- end-user-doc --> ! * @param object the target of the switch. ! * @return the result of interpretting the object as an instance of '<em>Menu</em>'. ! * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) ! * @generated ! */ ! public Object caseMenu(Menu object) { ! return null; ! } ! ! /** ! * Returns the result of interpretting the object as an instance of '<em>Profile</em>'. ! * <!-- begin-user-doc --> ! * This implementation returns null; ! * returning a non-null result will terminate the switch. ! * <!-- end-user-doc --> ! * @param object the target of the switch. ! * @return the result of interpretting the object as an instance of '<em>Profile</em>'. ! * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) ! * @generated ! */ ! public Object caseProfile(Profile object) { ! return null; ! } ! ! /** ! * Returns the result of interpretting the object as an instance of '<em>Wizard</em>'. ! * <!-- begin-user-doc --> ! * This implementation returns null; ! * returning a non-null result will terminate the switch. ! * <!-- end-user-doc --> ! * @param object the target of the switch. ! * @return the result of interpretting the object as an instance of '<em>Wizard</em>'. ! * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) ! * @generated ! */ ! public Object caseWizard(Wizard object) { ! return null; ! } ! ! /** ! * Returns the result of interpretting the object as an instance of '<em>EObject</em>'. ! * <!-- begin-user-doc --> ! * This implementation returns null; ! * returning a non-null result will terminate the switch, but this is the last case anyway. ! * <!-- end-user-doc --> ! * @param object the target of the switch. ! * @return the result of interpretting the object as an instance of '<em>EObject</em>'. ! * @see #doSwitch(org.eclipse.emf.ecore.EObject) ! * @generated ! */ ! public Object defaultCase(EObject object) { ! return null; ! } ! ! } //MenusSwitch Index: MenusResourceFactoryImpl.java =================================================================== RCS file: /cvsroot/modelwizard/source/Model Wizard Plugin/src/net/sourceforge/modelWizard/Menus/util/MenusResourceFactoryImpl.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** MenusResourceFactoryImpl.java 6 Oct 2005 15:59:06 -0000 1.1 --- MenusResourceFactoryImpl.java 24 Oct 2006 21:41:17 -0000 1.2 *************** *** 1,78 **** ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.Menus.util; ! ! import net.sourceforge.modelWizard.Menus.MenusPackage; ! ! import org.eclipse.emf.common.util.URI; ! ! import org.eclipse.emf.ecore.EPackage; ! ! import org.eclipse.emf.ecore.impl.EPackageRegistryImpl; ! ! import org.eclipse.emf.ecore.resource.Resource; ! ! import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; ! ! import org.eclipse.emf.ecore.util.BasicExtendedMetaData; ! import org.eclipse.emf.ecore.util.ExtendedMetaData; ! ! import org.eclipse.emf.ecore.xmi.XMLResource; ! ! /** ! * <!-- begin-user-doc --> ! * The <b>Resource Factory</b> associated with the package. ! * <!-- end-user-doc --> ! * @see net.sourceforge.modelWizard.Menus.util.MenusResourceImpl ! * @generated ! */ ! public class MenusResourceFactoryImpl extends ResourceFactoryImpl { ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public static final String copyright = "(c) Cisco Systems Inc 2005"; ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! protected ExtendedMetaData extendedMetaData; ! ! /** ! * Creates an instance of the resource factory. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public MenusResourceFactoryImpl() { ! super(); ! extendedMetaData = new BasicExtendedMetaData(new EPackageRegistryImpl(EPackage.Registry.INSTANCE)); ! extendedMetaData.putPackage(null, MenusPackage.eINSTANCE); ! } ! ! /** ! * Creates an instance of the resource. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public Resource createResource(URI uri) { ! XMLResource result = new MenusResourceImpl(uri); ! result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, extendedMetaData); ! result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, extendedMetaData); ! ! result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); ! result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); ! ! result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); ! return result; ! } ! ! } //MenusResourceFactoryImpl --- 1,72 ---- ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.Menus.util; ! ! import net.sourceforge.modelWizard.Menus.MenusPackage; ! ! import org.eclipse.emf.common.util.URI; ! import org.eclipse.emf.ecore.EPackage; ! import org.eclipse.emf.ecore.impl.EPackageRegistryImpl; ! import org.eclipse.emf.ecore.resource.Resource; ! import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; ! import org.eclipse.emf.ecore.util.BasicExtendedMetaData; ! import org.eclipse.emf.ecore.util.ExtendedMetaData; ! import org.eclipse.emf.ecore.xmi.XMLResource; ! ! /** ! * <!-- begin-user-doc --> ! * The <b>Resource Factory</b> associated with the package. ! * <!-- end-user-doc --> ! * @see net.sourceforge.modelWizard.Menus.util.MenusResourceImpl ! * @generated ! */ ! public class MenusResourceFactoryImpl extends ResourceFactoryImpl { ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public static final String copyright = "(c) Cisco Systems Inc 2005"; ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! protected ExtendedMetaData extendedMetaData; ! ! /** ! * Creates an instance of the resource factory. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public MenusResourceFactoryImpl() { ! super(); ! extendedMetaData = new BasicExtendedMetaData(new EPackageRegistryImpl(EPackage.Registry.INSTANCE)); ! extendedMetaData.putPackage(null, MenusPackage.eINSTANCE); ! } ! ! /** ! * Creates an instance of the resource. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public Resource createResource(URI uri) { ! XMLResource result = new MenusResourceImpl(uri); ! result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, extendedMetaData); ! result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, extendedMetaData); ! ! result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); ! result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); ! ! result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); ! return result; ! } ! ! } //MenusResourceFactoryImpl |
|
From: jistrawn <jis...@us...> - 2006-10-24 21:40:30
|
Update of /cvsroot/modelwizard/source/Model Wizard Plugin/src/net/sourceforge/modelWizard/Menus In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv1589/src/net/sourceforge/modelWizard/Menus Modified Files: Menu.java Wizard.java DocumentRoot.java Log Message: removed unused imports or reformatted import order (ctrl-shift-o) Index: Menu.java =================================================================== RCS file: /cvsroot/modelwizard/source/Model Wizard Plugin/src/net/sourceforge/modelWizard/Menus/Menu.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Menu.java 6 Oct 2005 15:59:06 -0000 1.1 --- Menu.java 24 Oct 2006 21:40:24 -0000 1.2 *************** *** 1,184 **** ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.Menus; ! ! import org.eclipse.emf.common.util.EList; ! ! import org.eclipse.emf.ecore.EObject; ! ! /** ! * <!-- begin-user-doc --> ! * A representation of the model object '<em><b>Menu</b></em>'. ! * <!-- end-user-doc --> ! * ! * <p> ! * The following features are supported: ! * <ul> ! * <li>{@link net.sourceforge.modelWizard.Menus.Menu#getDescription <em>Description</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.Menus.Menu#getText <em>Text</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.Menus.Menu#getItem <em>Item</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.Menus.Menu#getQuestion <em>Question</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.Menus.Menu#getName <em>Name</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.Menus.Menu#getTitle <em>Title</em>}</li> ! * </ul> ! * </p> ! * ! * @see net.sourceforge.modelWizard.Menus.MenusPackage#getMenu() ! * @model extendedMetaData="name='menu' kind='elementOnly'" ! * @generated ! */ ! public interface Menu extends EObject { ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! String copyright = "(c) Cisco Systems Inc 2005"; ! ! /** ! * Returns the value of the '<em><b>Description</b></em>' attribute. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Description</em>' attribute isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Description</em>' attribute. ! * @see #setDescription(String) ! * @see net.sourceforge.modelWizard.Menus.MenusPackage#getMenu_Description() ! * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" required="true" ! * extendedMetaData="kind='element' name='description' namespace='##targetNamespace'" ! * @generated ! */ ! String getDescription(); ! ! /** ! * Sets the value of the '{@link net.sourceforge.modelWizard.Menus.Menu#getDescription <em>Description</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param value the new value of the '<em>Description</em>' attribute. ! * @see #getDescription() ! * @generated ! */ ! void setDescription(String value); ! ! /** ! * Returns the value of the '<em><b>Text</b></em>' attribute. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Text</em>' attribute isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Text</em>' attribute. ! * @see #setText(String) ! * @see net.sourceforge.modelWizard.Menus.MenusPackage#getMenu_Text() ! * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" required="true" ! * extendedMetaData="kind='element' name='text' namespace='##targetNamespace'" ! * @generated ! */ ! String getText(); ! ! /** ! * Sets the value of the '{@link net.sourceforge.modelWizard.Menus.Menu#getText <em>Text</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param value the new value of the '<em>Text</em>' attribute. ! * @see #getText() ! * @generated ! */ ! void setText(String value); ! ! /** ! * Returns the value of the '<em><b>Item</b></em>' containment reference list. ! * The list contents are of type {@link net.sourceforge.modelWizard.Menus.Item}. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Item</em>' containment reference list isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Item</em>' containment reference list. ! * @see net.sourceforge.modelWizard.Menus.MenusPackage#getMenu_Item() ! * @model type="net.sourceforge.modelWizard.Menus.Item" containment="true" resolveProxies="false" ! * extendedMetaData="kind='element' name='item' namespace='##targetNamespace'" ! * @generated ! */ ! EList getItem(); ! ! /** ! * Returns the value of the '<em><b>Question</b></em>' attribute list. ! * The list contents are of type {@link java.lang.String}. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Question</em>' attribute list isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Question</em>' attribute list. ! * @see net.sourceforge.modelWizard.Menus.MenusPackage#getMenu_Question() ! * @model type="java.lang.String" unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" ! * extendedMetaData="kind='element' name='question' namespace='##targetNamespace'" ! * @generated ! */ ! EList getQuestion(); ! ! /** ! * Returns the value of the '<em><b>Name</b></em>' attribute. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Name</em>' attribute isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Name</em>' attribute. ! * @see #setName(String) ! * @see net.sourceforge.modelWizard.Menus.MenusPackage#getMenu_Name() ! * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" required="true" ! * extendedMetaData="kind='attribute' name='name' namespace='##targetNamespace'" ! * @generated ! */ ! String getName(); ! ! /** ! * Sets the value of the '{@link net.sourceforge.modelWizard.Menus.Menu#getName <em>Name</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param value the new value of the '<em>Name</em>' attribute. ! * @see #getName() ! * @generated ! */ ! void setName(String value); ! ! /** ! * Returns the value of the '<em><b>Title</b></em>' attribute. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Title</em>' attribute isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Title</em>' attribute. ! * @see #setTitle(String) ! * @see net.sourceforge.modelWizard.Menus.MenusPackage#getMenu_Title() ! * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" required="true" ! * extendedMetaData="kind='attribute' name='title' namespace='##targetNamespace'" ! * @generated ! */ ! String getTitle(); ! ! /** ! * Sets the value of the '{@link net.sourceforge.modelWizard.Menus.Menu#getTitle <em>Title</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param value the new value of the '<em>Title</em>' attribute. ! * @see #getTitle() ! * @generated ! */ ! void setTitle(String value); ! ! } // Menu --- 1,183 ---- ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.Menus; ! ! import org.eclipse.emf.common.util.EList; ! import org.eclipse.emf.ecore.EObject; ! ! /** ! * <!-- begin-user-doc --> ! * A representation of the model object '<em><b>Menu</b></em>'. ! * <!-- end-user-doc --> ! * ! * <p> ! * The following features are supported: ! * <ul> ! * <li>{@link net.sourceforge.modelWizard.Menus.Menu#getDescription <em>Description</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.Menus.Menu#getText <em>Text</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.Menus.Menu#getItem <em>Item</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.Menus.Menu#getQuestion <em>Question</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.Menus.Menu#getName <em>Name</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.Menus.Menu#getTitle <em>Title</em>}</li> ! * </ul> ! * </p> ! * ! * @see net.sourceforge.modelWizard.Menus.MenusPackage#getMenu() ! * @model extendedMetaData="name='menu' kind='elementOnly'" ! * @generated ! */ ! public interface Menu extends EObject { ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! String copyright = "(c) Cisco Systems Inc 2005"; ! ! /** ! * Returns the value of the '<em><b>Description</b></em>' attribute. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Description</em>' attribute isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Description</em>' attribute. ! * @see #setDescription(String) ! * @see net.sourceforge.modelWizard.Menus.MenusPackage#getMenu_Description() ! * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" required="true" ! * extendedMetaData="kind='element' name='description' namespace='##targetNamespace'" ! * @generated ! */ ! String getDescription(); ! ! /** ! * Sets the value of the '{@link net.sourceforge.modelWizard.Menus.Menu#getDescription <em>Description</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param value the new value of the '<em>Description</em>' attribute. ! * @see #getDescription() ! * @generated ! */ ! void setDescription(String value); ! ! /** ! * Returns the value of the '<em><b>Text</b></em>' attribute. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Text</em>' attribute isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Text</em>' attribute. ! * @see #setText(String) ! * @see net.sourceforge.modelWizard.Menus.MenusPackage#getMenu_Text() ! * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" required="true" ! * extendedMetaData="kind='element' name='text' namespace='##targetNamespace'" ! * @generated ! */ ! String getText(); ! ! /** ! * Sets the value of the '{@link net.sourceforge.modelWizard.Menus.Menu#getText <em>Text</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param value the new value of the '<em>Text</em>' attribute. ! * @see #getText() ! * @generated ! */ ! void setText(String value); ! ! /** ! * Returns the value of the '<em><b>Item</b></em>' containment reference list. ! * The list contents are of type {@link net.sourceforge.modelWizard.Menus.Item}. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Item</em>' containment reference list isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Item</em>' containment reference list. ! * @see net.sourceforge.modelWizard.Menus.MenusPackage#getMenu_Item() ! * @model type="net.sourceforge.modelWizard.Menus.Item" containment="true" resolveProxies="false" ! * extendedMetaData="kind='element' name='item' namespace='##targetNamespace'" ! * @generated ! */ ! EList getItem(); ! ! /** ! * Returns the value of the '<em><b>Question</b></em>' attribute list. ! * The list contents are of type {@link java.lang.String}. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Question</em>' attribute list isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Question</em>' attribute list. ! * @see net.sourceforge.modelWizard.Menus.MenusPackage#getMenu_Question() ! * @model type="java.lang.String" unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" ! * extendedMetaData="kind='element' name='question' namespace='##targetNamespace'" ! * @generated ! */ ! EList getQuestion(); ! ! /** ! * Returns the value of the '<em><b>Name</b></em>' attribute. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Name</em>' attribute isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Name</em>' attribute. ! * @see #setName(String) ! * @see net.sourceforge.modelWizard.Menus.MenusPackage#getMenu_Name() ! * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" required="true" ! * extendedMetaData="kind='attribute' name='name' namespace='##targetNamespace'" ! * @generated ! */ ! String getName(); ! ! /** ! * Sets the value of the '{@link net.sourceforge.modelWizard.Menus.Menu#getName <em>Name</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param value the new value of the '<em>Name</em>' attribute. ! * @see #getName() ! * @generated ! */ ! void setName(String value); ! ! /** ! * Returns the value of the '<em><b>Title</b></em>' attribute. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Title</em>' attribute isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Title</em>' attribute. ! * @see #setTitle(String) ! * @see net.sourceforge.modelWizard.Menus.MenusPackage#getMenu_Title() ! * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" required="true" ! * extendedMetaData="kind='attribute' name='title' namespace='##targetNamespace'" ! * @generated ! */ ! String getTitle(); ! ! /** ! * Sets the value of the '{@link net.sourceforge.modelWizard.Menus.Menu#getTitle <em>Title</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param value the new value of the '<em>Title</em>' attribute. ! * @see #getTitle() ! * @generated ! */ ! void setTitle(String value); ! ! } // Menu Index: Wizard.java =================================================================== RCS file: /cvsroot/modelwizard/source/Model Wizard Plugin/src/net/sourceforge/modelWizard/Menus/Wizard.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Wizard.java 6 Oct 2005 15:59:06 -0000 1.1 --- Wizard.java 24 Oct 2006 21:40:24 -0000 1.2 *************** *** 1,120 **** ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.Menus; ! ! import org.eclipse.emf.common.util.EList; ! ! import org.eclipse.emf.ecore.EObject; ! ! import org.eclipse.emf.ecore.util.FeatureMap; ! ! /** ! * <!-- begin-user-doc --> ! * A representation of the model object '<em><b>Wizard</b></em>'. ! * <!-- end-user-doc --> ! * ! * <p> ! * The following features are supported: ! * <ul> ! * <li>{@link net.sourceforge.modelWizard.Menus.Wizard#getGroup <em>Group</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.Menus.Wizard#getMenu <em>Menu</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.Menus.Wizard#getInclude <em>Include</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.Menus.Wizard#getVersion <em>Version</em>}</li> ! * </ul> ! * </p> ! * ! * @see net.sourceforge.modelWizard.Menus.MenusPackage#getWizard() ! * @model extendedMetaData="name='wizard' kind='elementOnly'" ! * @generated ! */ ! public interface Wizard extends EObject { ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! String copyright = "(c) Cisco Systems Inc 2005"; ! ! /** ! * Returns the value of the '<em><b>Group</b></em>' attribute list. ! * The list contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Group</em>' attribute list isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Group</em>' attribute list. ! * @see net.sourceforge.modelWizard.Menus.MenusPackage#getWizard_Group() ! * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true" ! * extendedMetaData="kind='group' name='group:0'" ! * @generated ! */ ! FeatureMap getGroup(); ! ! /** ! * Returns the value of the '<em><b>Menu</b></em>' containment reference list. ! * The list contents are of type {@link net.sourceforge.modelWizard.Menus.Menu}. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Menu</em>' containment reference list isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Menu</em>' containment reference list. ! * @see net.sourceforge.modelWizard.Menus.MenusPackage#getWizard_Menu() ! * @model type="net.sourceforge.modelWizard.Menus.Menu" containment="true" resolveProxies="false" transient="true" volatile="true" derived="true" ! * extendedMetaData="kind='element' name='menu' namespace='##targetNamespace' group='group:0'" ! * @generated ! */ ! EList getMenu(); ! ! /** ! * Returns the value of the '<em><b>Include</b></em>' containment reference list. ! * The list contents are of type {@link net.sourceforge.modelWizard.Menus.Include}. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Include</em>' containment reference list isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Include</em>' containment reference list. ! * @see net.sourceforge.modelWizard.Menus.MenusPackage#getWizard_Include() ! * @model type="net.sourceforge.modelWizard.Menus.Include" containment="true" resolveProxies="false" transient="true" volatile="true" derived="true" ! * extendedMetaData="kind='element' name='include' namespace='##targetNamespace' group='group:0'" ! * @generated ! */ ! EList getInclude(); ! ! /** ! * Returns the value of the '<em><b>Version</b></em>' attribute. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Version</em>' attribute isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Version</em>' attribute. ! * @see #setVersion(String) ! * @see net.sourceforge.modelWizard.Menus.MenusPackage#getWizard_Version() ! * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" ! * extendedMetaData="kind='attribute' name='version' namespace='##targetNamespace'" ! * @generated ! */ ! String getVersion(); ! ! /** ! * Sets the value of the '{@link net.sourceforge.modelWizard.Menus.Wizard#getVersion <em>Version</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param value the new value of the '<em>Version</em>' attribute. ! * @see #getVersion() ! * @generated ! */ ! void setVersion(String value); ! ! } // Wizard --- 1,118 ---- ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.Menus; ! ! import org.eclipse.emf.common.util.EList; ! import org.eclipse.emf.ecore.EObject; ! import org.eclipse.emf.ecore.util.FeatureMap; ! ! /** ! * <!-- begin-user-doc --> ! * A representation of the model object '<em><b>Wizard</b></em>'. ! * <!-- end-user-doc --> ! * ! * <p> ! * The following features are supported: ! * <ul> ! * <li>{@link net.sourceforge.modelWizard.Menus.Wizard#getGroup <em>Group</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.Menus.Wizard#getMenu <em>Menu</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.Menus.Wizard#getInclude <em>Include</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.Menus.Wizard#getVersion <em>Version</em>}</li> ! * </ul> ! * </p> ! * ! * @see net.sourceforge.modelWizard.Menus.MenusPackage#getWizard() ! * @model extendedMetaData="name='wizard' kind='elementOnly'" ! * @generated ! */ ! public interface Wizard extends EObject { ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! String copyright = "(c) Cisco Systems Inc 2005"; ! ! /** ! * Returns the value of the '<em><b>Group</b></em>' attribute list. ! * The list contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Group</em>' attribute list isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Group</em>' attribute list. ! * @see net.sourceforge.modelWizard.Menus.MenusPackage#getWizard_Group() ! * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true" ! * extendedMetaData="kind='group' name='group:0'" ! * @generated ! */ ! FeatureMap getGroup(); ! ! /** ! * Returns the value of the '<em><b>Menu</b></em>' containment reference list. ! * The list contents are of type {@link net.sourceforge.modelWizard.Menus.Menu}. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Menu</em>' containment reference list isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Menu</em>' containment reference list. ! * @see net.sourceforge.modelWizard.Menus.MenusPackage#getWizard_Menu() ! * @model type="net.sourceforge.modelWizard.Menus.Menu" containment="true" resolveProxies="false" transient="true" volatile="true" derived="true" ! * extendedMetaData="kind='element' name='menu' namespace='##targetNamespace' group='group:0'" ! * @generated ! */ ! EList getMenu(); ! ! /** ! * Returns the value of the '<em><b>Include</b></em>' containment reference list. ! * The list contents are of type {@link net.sourceforge.modelWizard.Menus.Include}. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Include</em>' containment reference list isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Include</em>' containment reference list. ! * @see net.sourceforge.modelWizard.Menus.MenusPackage#getWizard_Include() ! * @model type="net.sourceforge.modelWizard.Menus.Include" containment="true" resolveProxies="false" transient="true" volatile="true" derived="true" ! * extendedMetaData="kind='element' name='include' namespace='##targetNamespace' group='group:0'" ! * @generated ! */ ! EList getInclude(); ! ! /** ! * Returns the value of the '<em><b>Version</b></em>' attribute. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Version</em>' attribute isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Version</em>' attribute. ! * @see #setVersion(String) ! * @see net.sourceforge.modelWizard.Menus.MenusPackage#getWizard_Version() ! * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" ! * extendedMetaData="kind='attribute' name='version' namespace='##targetNamespace'" ! * @generated ! */ ! String getVersion(); ! ! /** ! * Sets the value of the '{@link net.sourceforge.modelWizard.Menus.Wizard#getVersion <em>Version</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param value the new value of the '<em>Version</em>' attribute. ! * @see #getVersion() ! * @generated ! */ ! void setVersion(String value); ! ! } // Wizard Index: DocumentRoot.java =================================================================== RCS file: /cvsroot/modelwizard/source/Model Wizard Plugin/src/net/sourceforge/modelWizard/Menus/DocumentRoot.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** DocumentRoot.java 6 Oct 2005 15:59:06 -0000 1.1 --- DocumentRoot.java 24 Oct 2006 21:40:24 -0000 1.2 *************** *** 1,122 **** ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.Menus; ! ! import org.eclipse.emf.common.util.EMap; ! ! import org.eclipse.emf.ecore.EObject; ! ! import org.eclipse.emf.ecore.util.FeatureMap; ! ! /** ! * <!-- begin-user-doc --> ! * A representation of the model object '<em><b>Document Root</b></em>'. ! * <!-- end-user-doc --> ! * ! * <p> ! * The following features are supported: ! * <ul> ! * <li>{@link net.sourceforge.modelWizard.Menus.DocumentRoot#getMixed <em>Mixed</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.Menus.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.Menus.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.Menus.DocumentRoot#getWizard <em>Wizard</em>}</li> ! * </ul> ! * </p> ! * ! * @see net.sourceforge.modelWizard.Menus.MenusPackage#getDocumentRoot() ! * @model extendedMetaData="name='' kind='mixed'" ! * @generated ! */ ! public interface DocumentRoot extends EObject { ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! String copyright = "(c) Cisco Systems Inc 2005"; ! ! /** ! * Returns the value of the '<em><b>Mixed</b></em>' attribute list. ! * The list contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Mixed</em>' attribute list isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Mixed</em>' attribute list. ! * @see net.sourceforge.modelWizard.Menus.MenusPackage#getDocumentRoot_Mixed() ! * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true" ! * extendedMetaData="kind='elementWildcard' name=':mixed'" ! * @generated ! */ ! FeatureMap getMixed(); ! ! /** ! * Returns the value of the '<em><b>XMLNS Prefix Map</b></em>' map. ! * The key is of type {@link java.lang.String}, ! * and the value is of type {@link java.lang.String}, ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>XMLNS Prefix Map</em>' map isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>XMLNS Prefix Map</em>' map. ! * @see net.sourceforge.modelWizard.Menus.MenusPackage#getDocumentRoot_XMLNSPrefixMap() ! * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry" keyType="java.lang.String" valueType="java.lang.String" transient="true" ! * extendedMetaData="kind='attribute' name='xmlns:prefix'" ! * @generated ! */ ! EMap getXMLNSPrefixMap(); ! ! /** ! * Returns the value of the '<em><b>XSI Schema Location</b></em>' map. ! * The key is of type {@link java.lang.String}, ! * and the value is of type {@link java.lang.String}, ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>XSI Schema Location</em>' map isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>XSI Schema Location</em>' map. ! * @see net.sourceforge.modelWizard.Menus.MenusPackage#getDocumentRoot_XSISchemaLocation() ! * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry" keyType="java.lang.String" valueType="java.lang.String" transient="true" ! * extendedMetaData="kind='attribute' name='xsi:schemaLocation'" ! * @generated ! */ ! EMap getXSISchemaLocation(); ! ! /** ! * Returns the value of the '<em><b>Wizard</b></em>' containment reference. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Wizard</em>' containment reference isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Wizard</em>' containment reference. ! * @see #setWizard(Wizard) ! * @see net.sourceforge.modelWizard.Menus.MenusPackage#getDocumentRoot_Wizard() ! * @model containment="true" resolveProxies="false" upper="-2" transient="true" volatile="true" derived="true" ! * extendedMetaData="kind='element' name='wizard' namespace='##targetNamespace'" ! * @generated ! */ ! Wizard getWizard(); ! ! /** ! * Sets the value of the '{@link net.sourceforge.modelWizard.Menus.DocumentRoot#getWizard <em>Wizard</em>}' containment reference. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param value the new value of the '<em>Wizard</em>' containment reference. ! * @see #getWizard() ! * @generated ! */ ! void setWizard(Wizard value); ! ! } // DocumentRoot --- 1,120 ---- ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.Menus; ! ! import org.eclipse.emf.common.util.EMap; ! import org.eclipse.emf.ecore.EObject; ! import org.eclipse.emf.ecore.util.FeatureMap; ! ! /** ! * <!-- begin-user-doc --> ! * A representation of the model object '<em><b>Document Root</b></em>'. ! * <!-- end-user-doc --> ! * ! * <p> ! * The following features are supported: ! * <ul> ! * <li>{@link net.sourceforge.modelWizard.Menus.DocumentRoot#getMixed <em>Mixed</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.Menus.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.Menus.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.Menus.DocumentRoot#getWizard <em>Wizard</em>}</li> ! * </ul> ! * </p> ! * ! * @see net.sourceforge.modelWizard.Menus.MenusPackage#getDocumentRoot() ! * @model extendedMetaData="name='' kind='mixed'" ! * @generated ! */ ! public interface DocumentRoot extends EObject { ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! String copyright = "(c) Cisco Systems Inc 2005"; ! ! /** ! * Returns the value of the '<em><b>Mixed</b></em>' attribute list. ! * The list contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Mixed</em>' attribute list isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Mixed</em>' attribute list. ! * @see net.sourceforge.modelWizard.Menus.MenusPackage#getDocumentRoot_Mixed() ! * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true" ! * extendedMetaData="kind='elementWildcard' name=':mixed'" ! * @generated ! */ ! FeatureMap getMixed(); ! ! /** ! * Returns the value of the '<em><b>XMLNS Prefix Map</b></em>' map. ! * The key is of type {@link java.lang.String}, ! * and the value is of type {@link java.lang.String}, ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>XMLNS Prefix Map</em>' map isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>XMLNS Prefix Map</em>' map. ! * @see net.sourceforge.modelWizard.Menus.MenusPackage#getDocumentRoot_XMLNSPrefixMap() ! * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry" keyType="java.lang.String" valueType="java.lang.String" transient="true" ! * extendedMetaData="kind='attribute' name='xmlns:prefix'" ! * @generated ! */ ! EMap getXMLNSPrefixMap(); ! ! /** ! * Returns the value of the '<em><b>XSI Schema Location</b></em>' map. ! * The key is of type {@link java.lang.String}, ! * and the value is of type {@link java.lang.String}, ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>XSI Schema Location</em>' map isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>XSI Schema Location</em>' map. ! * @see net.sourceforge.modelWizard.Menus.MenusPackage#getDocumentRoot_XSISchemaLocation() ! * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry" keyType="java.lang.String" valueType="java.lang.String" transient="true" ! * extendedMetaData="kind='attribute' name='xsi:schemaLocation'" ! * @generated ! */ ! EMap getXSISchemaLocation(); ! ! /** ! * Returns the value of the '<em><b>Wizard</b></em>' containment reference. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Wizard</em>' containment reference isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Wizard</em>' containment reference. ! * @see #setWizard(Wizard) ! * @see net.sourceforge.modelWizard.Menus.MenusPackage#getDocumentRoot_Wizard() ! * @model containment="true" resolveProxies="false" upper="-2" transient="true" volatile="true" derived="true" ! * extendedMetaData="kind='element' name='wizard' namespace='##targetNamespace'" ! * @generated ! */ ! Wizard getWizard(); ! ! /** ! * Sets the value of the '{@link net.sourceforge.modelWizard.Menus.DocumentRoot#getWizard <em>Wizard</em>}' containment reference. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param value the new value of the '<em>Wizard</em>' containment reference. ! * @see #getWizard() ! * @generated ! */ ! void setWizard(Wizard value); ! ! } // DocumentRoot |
Update of /cvsroot/modelwizard/source/Model Wizard Plugin/src/net/sourceforge/modelWizard/cartEditor In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv31379/src/net/sourceforge/modelWizard/cartEditor Modified Files: WizardMenuModel.java CartEditor.java ExpertPage.java MenuPage.java CartEditorActionBarContributor.java Log Message: removed unused imports Index: ExpertPage.java =================================================================== RCS file: /cvsroot/modelwizard/source/Model Wizard Plugin/src/net/sourceforge/modelWizard/cartEditor/ExpertPage.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** ExpertPage.java 6 May 2006 22:47:33 -0000 1.5 --- ExpertPage.java 24 Oct 2006 21:36:03 -0000 1.6 *************** *** 9,16 **** import java.util.ArrayList; import org.eclipse.emf.common.notify.Adapter; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.notify.Notifier; - import org.eclipse.emf.common.util.URI; import org.eclipse.jface.action.Action; import org.eclipse.jface.action.IMenuListener; --- 9,25 ---- import java.util.ArrayList; + import net.sourceforge.modelWizard.ModelWizardPlugin; + import net.sourceforge.modelWizard.Profile.ProfileType1; + import net.sourceforge.modelWizard.ShoppingCartSchema.Class; + import net.sourceforge.modelWizard.ShoppingCartSchema.Profile; + import net.sourceforge.modelWizard.ShoppingCartSchema.ProfilePointer; + import net.sourceforge.modelWizard.ShoppingCartSchema.Required; + import net.sourceforge.modelWizard.ShoppingCartSchema.ShoppingCartType; + import net.sourceforge.modelWizard.utilities.ExceptionDetailsDialog; + import net.sourceforge.modelWizard.utilities.ProfileUtilities; + import org.eclipse.emf.common.notify.Adapter; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.notify.Notifier; import org.eclipse.jface.action.Action; import org.eclipse.jface.action.IMenuListener; *************** *** 34,38 **** import org.eclipse.swt.dnd.DropTargetEvent; import org.eclipse.swt.dnd.FileTransfer; - import org.eclipse.swt.dnd.TextTransfer; import org.eclipse.swt.dnd.Transfer; import org.eclipse.swt.graphics.Image; --- 43,46 ---- *************** *** 51,64 **** import org.eclipse.ui.help.WorkbenchHelp; - import net.sourceforge.modelWizard.ModelWizardPlugin; - import net.sourceforge.modelWizard.Profile.ProfileType1; - import net.sourceforge.modelWizard.ShoppingCartSchema.Class; - import net.sourceforge.modelWizard.ShoppingCartSchema.Profile; - import net.sourceforge.modelWizard.ShoppingCartSchema.ProfilePointer; - import net.sourceforge.modelWizard.ShoppingCartSchema.Required; - import net.sourceforge.modelWizard.ShoppingCartSchema.ShoppingCartType; - import net.sourceforge.modelWizard.utilities.ExceptionDetailsDialog; - import net.sourceforge.modelWizard.utilities.ProfileUtilities; - /** * @author stjerman --- 59,62 ---- Index: MenuPage.java =================================================================== RCS file: /cvsroot/modelwizard/source/Model Wizard Plugin/src/net/sourceforge/modelWizard/cartEditor/MenuPage.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** MenuPage.java 28 Nov 2005 15:56:18 -0000 1.3 --- MenuPage.java 24 Oct 2006 21:36:03 -0000 1.4 *************** *** 1,266 **** ! /* ! * Created on Mar 23, 2005 ! * ! */ ! package net.sourceforge.modelWizard.cartEditor; ! ! import java.util.Iterator; ! ! import org.eclipse.jface.wizard.WizardDialog; ! import org.eclipse.swt.SWT; ! import org.eclipse.swt.events.MouseEvent; ! import org.eclipse.swt.events.MouseListener; ! import org.eclipse.swt.events.SelectionAdapter; ! import org.eclipse.swt.events.SelectionEvent; ! import org.eclipse.swt.events.SelectionListener; ! import org.eclipse.swt.layout.FillLayout; ! import org.eclipse.swt.layout.GridData; ! import org.eclipse.swt.layout.GridLayout; ! import org.eclipse.swt.layout.RowLayout; ! import org.eclipse.swt.widgets.Button; ! import org.eclipse.swt.widgets.Composite; ! import org.eclipse.swt.widgets.Display; ! import org.eclipse.swt.widgets.Group; ! import org.eclipse.swt.widgets.Label; ! import org.eclipse.swt.widgets.Text; ! import org.eclipse.swt.widgets.Widget; ! import org.eclipse.ui.help.WorkbenchHelp; ! ! import net.sourceforge.modelWizard.Menus.Item; ! import net.sourceforge.modelWizard.Menus.Menu; ! import net.sourceforge.modelWizard.wizards.MissingMenuItemWizard; ! ! /** ! * @author sschlmr ! * ! */ ! public class MenuPage extends Composite { ! ! private Label label; ! private Text text; ! private Group bodyGroup; ! private Button nextButton; ! private Button prevButton; ! private Button addButton; ! private Button openButton; ! ! ! /** ! * @param label The label to set. ! */ ! public MenuPage(Composite parent, int style) { ! super(parent, style); ! setLayout(new GridLayout()); ! WorkbenchHelp.setHelp(parent,"net.sourceforge.modelwizard.documentation.cartEditorHelpId"); ! ! final Composite header = new Composite(this, SWT.NONE); ! header.setLayout(new FillLayout()); ! WorkbenchHelp.setHelp(header,"net.sourceforge.modelwizard.documentation.cartEditorHelpId"); ! label = new Label(header, SWT.NONE); ! label.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_GRAY)); ! label.setText("label"); ! ! final Group descGroup = new Group(this, SWT.NONE); ! descGroup.setText("Description"); ! descGroup.setLayoutData(new GridData(GridData.FILL_BOTH)); ! descGroup.setLayout(new GridLayout()); ! WorkbenchHelp.setHelp(descGroup,"net.sourceforge.modelwizard.documentation.cartEditorHelpId"); ! text = new Text(descGroup, SWT.V_SCROLL | SWT.MULTI | SWT.READ_ONLY | SWT.BORDER | SWT.WRAP); ! text.setLayoutData(new GridData(GridData.FILL_BOTH)); ! ! bodyGroup = new Group(this, SWT.NONE); ! bodyGroup.setText("Menu"); ! final GridLayout gridLayout = new GridLayout(); ! gridLayout.horizontalSpacing = 10; ! gridLayout.makeColumnsEqualWidth = true; ! gridLayout.numColumns = 3; ! bodyGroup.setLayout(gridLayout); ! final GridData gridData = new GridData(GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_FILL); ! gridData.heightHint = 100; ! bodyGroup.setLayoutData(gridData); ! WorkbenchHelp.setHelp(bodyGroup,"com.cisco.nm.cto.cimWizard.docs.cartEditorHelpId"); ! ! final Composite bottom = new Composite(this, SWT.NONE); ! final GridLayout gridLayout_1 = new GridLayout(); ! gridLayout_1.marginWidth = 0; ! gridLayout_1.marginHeight = 0; ! gridLayout_1.verticalSpacing = 0; ! gridLayout_1.numColumns = 2; ! bottom.setLayout(gridLayout_1); ! bottom.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); ! ! final Composite composite = new Composite(bottom, SWT.NONE); ! composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); ! final RowLayout rowLayout = new RowLayout(); ! rowLayout.fill = true; ! composite.setLayout(rowLayout); ! WorkbenchHelp.setHelp(bottom,"com.cisco.nm.cto.cimWizard.docs.cartEditorHelpId"); ! ! final Button notThereButton = new Button(composite, SWT.NONE); ! notThereButton.setToolTipText("Click here to notify the modeling team if you can't find what you are looking for in this menu."); ! notThereButton.setText("Can't Find Item"); ! notThereButton.addSelectionListener(new SelectionAdapter() { ! public void widgetSelected(SelectionEvent e) { ! WizardMenuModel wmm = WizardMenuModel.INSTANCE; ! MissingMenuItemWizard wiz = new MissingMenuItemWizard(); ! WizardDialog dialog = new WizardDialog (getShell(), wiz); ! wiz.setMenuPath(wmm.getCurrentPath()); ! wiz.setQuestions(wmm.getQuestions()); ! dialog.open(); ! } ! }); ! final Composite buttonsHolder = new Composite(bottom, SWT.NONE); ! buttonsHolder.setLayout(new RowLayout()); ! ! addButton = new Button(buttonsHolder, SWT.NONE); ! setUpButton(addButton, ! "Add to Cart", ! "Add selected item(s) to the shopping cart", ! WizardMenuModel.CBAddToSC, ! null); ! prevButton = new Button(buttonsHolder, SWT.NONE); ! setUpButton(prevButton, ! "Previous", ! "Return to previous menu", ! WizardMenuModel.CBPrev, ! addButton); ! nextButton = new Button(buttonsHolder, SWT.NONE); ! setUpButton(nextButton, ! "Next", ! "Decend the menu hierarchy to the selected menu.", ! WizardMenuModel.CBNext, ! prevButton); ! openButton = new Button(buttonsHolder, SWT.NONE); ! setUpButton(openButton, ! "Open Blueprint", ! "Open blueprint associated with the selected item", ! WizardMenuModel.CBOpen, ! nextButton); ! } ! ! protected void setUpButton(Button btn, String text, String toolTip, ! Object context, Button left) { ! btn.setText(text); ! btn.setToolTipText(toolTip.replaceAll("[\t\n]*","").trim()); ! btn.setData("MenuWizard", WizardMenuModel.INSTANCE); ! btn.setData("Context",context); ! ! btn.addSelectionListener(new SelectionListener() { ! public void widgetSelected(SelectionEvent e) { ! if (!((Button)e.widget).getSelection()) { ! Widget w = e.widget; ! WizardMenuModel wmm = (WizardMenuModel)w.getData("MenuWizard"); ! wmm.handleButtonPress((Integer)w.getData("Context")); ! } ! } ! public void widgetDefaultSelected(SelectionEvent e) { } ! }); ! } ! ! public void bind(Menu menu, String path) { ! WizardMenuModel wmm = WizardMenuModel.INSTANCE; ! bindHeader(menu, path); ! bindBody(menu); ! ! prevButton.setEnabled(wmm.havePreviousMenu()); ! nextButton.setEnabled(false); ! openButton.setEnabled(false); ! addButton.setEnabled(false); ! ! } ! ! protected void bindHeader(Menu menu, String path) { ! WizardMenuModel wmm = WizardMenuModel.INSTANCE; ! label.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_GRAY)); ! label.setText(wmm.getCurrentPath()); ! String theText = menu.getText(); ! //theText = theText.replaceFirst(" +"," "); ! theText = theText.replaceFirst("^\\s*",""); ! theText = theText.replaceAll("\n +","\n"); ! text.setText(theText); ! ! } ! ! protected void bindBody(Menu menu) { ! // walk the items of the menu for radio button display ! Button prevRB = null; ! for (Iterator i = menu.getItem().iterator(); i.hasNext();) { ! Item item = (Item) i.next(); ! Button rb = new Button(bodyGroup, SWT.RADIO); ! rb.setLayoutData(new GridData(GridData.GRAB_HORIZONTAL)); ! rb.setText(item.getCaption()); ! String toolTip = item.getToolTip(); ! toolTip = toolTip.replaceAll("\\s+"," "); ! rb.setToolTipText(toolTip.trim()); ! rb.setData("Item", item); ! rb.setData("MenuWizard", WizardMenuModel.INSTANCE); ! //make double click same as "next" ! rb.addMouseListener(new MouseListener() { ! public void mouseDoubleClick(MouseEvent e) { ! if (((Button)e.widget).getSelection()) { ! Widget w = e.widget; ! WizardMenuModel wmm = (WizardMenuModel)w.getData("MenuWizard"); ! Item item = (Item)w.getData("Item"); ! wmm.registerCurrentItem(item); ! nextButton.setEnabled(item.getNext() != null); ! openButton.setEnabled(item.getProfile() != null); ! addButton.setEnabled(wmm.hasProfiles(item)); ! if (nextButton.getEnabled()) { ! wmm.handleButtonPress(WizardMenuModel.CBNext); ! return; ! } ! if (openButton.getEnabled()){ ! wmm.handleButtonPress(WizardMenuModel.CBOpen); ! return; ! } ! } ! } ! public void mouseDown(MouseEvent e) {} ! public void mouseUp(MouseEvent e) {} ! }); ! rb.addSelectionListener(new SelectionListener() { ! public void widgetSelected(SelectionEvent e) { ! if (((Button)e.widget).getSelection()) { ! Widget w = e.widget; ! WizardMenuModel wmm = (WizardMenuModel)w.getData("MenuWizard"); ! Item item = (Item)w.getData("Item"); ! wmm.registerCurrentItem(item); ! nextButton.setEnabled(item.getNext() != null); ! openButton.setEnabled(item.getProfile() != null); ! addButton.setEnabled(wmm.hasProfiles(item)); ! } ! } ! public void widgetDefaultSelected(SelectionEvent e) { } ! }); ! prevRB = rb; ! } ! } ! ! // public void itemSelected(SelectionEvent e) { ! // Item item = (Item)e.widget.getData(); ! // ! // } ! ! public void setLabel(String label) { ! this.label.setText(label); ! } ! /** ! * @param text The text to set. ! */ ! public void setText(String text) { ! this.text.setText(text); ! } ! ! /** ! * @return Returns the label. ! */ ! public Label getLabel() { ! return label; ! } ! /** ! * @return Returns the text. ! */ ! public Text getText() { ! return text; ! } ! } --- 1,266 ---- ! /* ! * Created on Mar 23, 2005 ! * ! */ ! package net.sourceforge.modelWizard.cartEditor; ! ! import java.util.Iterator; ! ! import net.sourceforge.modelWizard.Menus.Item; ! import net.sourceforge.modelWizard.Menus.Menu; ! import net.sourceforge.modelWizard.wizards.MissingMenuItemWizard; ! ! import org.eclipse.jface.wizard.WizardDialog; ! import org.eclipse.swt.SWT; ! import org.eclipse.swt.events.MouseEvent; ! import org.eclipse.swt.events.MouseListener; ! import org.eclipse.swt.events.SelectionAdapter; ! import org.eclipse.swt.events.SelectionEvent; ! import org.eclipse.swt.events.SelectionListener; ! import org.eclipse.swt.layout.FillLayout; ! import org.eclipse.swt.layout.GridData; ! import org.eclipse.swt.layout.GridLayout; ! import org.eclipse.swt.layout.RowLayout; ! import org.eclipse.swt.widgets.Button; ! import org.eclipse.swt.widgets.Composite; ! import org.eclipse.swt.widgets.Display; ! import org.eclipse.swt.widgets.Group; ! import org.eclipse.swt.widgets.Label; ! import org.eclipse.swt.widgets.Text; ! import org.eclipse.swt.widgets.Widget; ! import org.eclipse.ui.help.WorkbenchHelp; ! ! /** ! * @author sschlmr ! * ! */ ! public class MenuPage extends Composite { ! ! private Label label; ! private Text text; ! private Group bodyGroup; ! private Button nextButton; ! private Button prevButton; ! private Button addButton; ! private Button openButton; ! ! ! /** ! * @param label The label to set. ! */ ! public MenuPage(Composite parent, int style) { ! super(parent, style); ! setLayout(new GridLayout()); ! WorkbenchHelp.setHelp(parent,"net.sourceforge.modelwizard.documentation.cartEditorHelpId"); ! ! final Composite header = new Composite(this, SWT.NONE); ! header.setLayout(new FillLayout()); ! WorkbenchHelp.setHelp(header,"net.sourceforge.modelwizard.documentation.cartEditorHelpId"); ! label = new Label(header, SWT.NONE); ! label.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_GRAY)); ! label.setText("label"); ! ! final Group descGroup = new Group(this, SWT.NONE); ! descGroup.setText("Description"); ! descGroup.setLayoutData(new GridData(GridData.FILL_BOTH)); ! descGroup.setLayout(new GridLayout()); ! WorkbenchHelp.setHelp(descGroup,"net.sourceforge.modelwizard.documentation.cartEditorHelpId"); ! text = new Text(descGroup, SWT.V_SCROLL | SWT.MULTI | SWT.READ_ONLY | SWT.BORDER | SWT.WRAP); ! text.setLayoutData(new GridData(GridData.FILL_BOTH)); ! ! bodyGroup = new Group(this, SWT.NONE); ! bodyGroup.setText("Menu"); ! final GridLayout gridLayout = new GridLayout(); ! gridLayout.horizontalSpacing = 10; ! gridLayout.makeColumnsEqualWidth = true; ! gridLayout.numColumns = 3; ! bodyGroup.setLayout(gridLayout); ! final GridData gridData = new GridData(GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_FILL); ! gridData.heightHint = 100; ! bodyGroup.setLayoutData(gridData); ! WorkbenchHelp.setHelp(bodyGroup,"com.cisco.nm.cto.cimWizard.docs.cartEditorHelpId"); ! ! final Composite bottom = new Composite(this, SWT.NONE); ! final GridLayout gridLayout_1 = new GridLayout(); ! gridLayout_1.marginWidth = 0; ! gridLayout_1.marginHeight = 0; ! gridLayout_1.verticalSpacing = 0; ! gridLayout_1.numColumns = 2; ! bottom.setLayout(gridLayout_1); ! bottom.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); ! ! final Composite composite = new Composite(bottom, SWT.NONE); ! composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); ! final RowLayout rowLayout = new RowLayout(); ! rowLayout.fill = true; ! composite.setLayout(rowLayout); ! WorkbenchHelp.setHelp(bottom,"com.cisco.nm.cto.cimWizard.docs.cartEditorHelpId"); ! ! final Button notThereButton = new Button(composite, SWT.NONE); ! notThereButton.setToolTipText("Click here to notify the modeling team if you can't find what you are looking for in this menu."); ! notThereButton.setText("Can't Find Item"); ! notThereButton.addSelectionListener(new SelectionAdapter() { ! public void widgetSelected(SelectionEvent e) { ! WizardMenuModel wmm = WizardMenuModel.INSTANCE; ! MissingMenuItemWizard wiz = new MissingMenuItemWizard(); ! WizardDialog dialog = new WizardDialog (getShell(), wiz); ! wiz.setMenuPath(wmm.getCurrentPath()); ! wiz.setQuestions(wmm.getQuestions()); ! dialog.open(); ! } ! }); ! final Composite buttonsHolder = new Composite(bottom, SWT.NONE); ! buttonsHolder.setLayout(new RowLayout()); ! ! addButton = new Button(buttonsHolder, SWT.NONE); ! setUpButton(addButton, ! "Add to Cart", ! "Add selected item(s) to the shopping cart", ! WizardMenuModel.CBAddToSC, ! null); ! prevButton = new Button(buttonsHolder, SWT.NONE); ! setUpButton(prevButton, ! "Previous", ! "Return to previous menu", ! WizardMenuModel.CBPrev, ! addButton); ! nextButton = new Button(buttonsHolder, SWT.NONE); ! setUpButton(nextButton, ! "Next", ! "Decend the menu hierarchy to the selected menu.", ! WizardMenuModel.CBNext, ! prevButton); ! openButton = new Button(buttonsHolder, SWT.NONE); ! setUpButton(openButton, ! "Open Blueprint", ! "Open blueprint associated with the selected item", ! WizardMenuModel.CBOpen, ! nextButton); ! } ! ! protected void setUpButton(Button btn, String text, String toolTip, ! Object context, Button left) { ! btn.setText(text); ! btn.setToolTipText(toolTip.replaceAll("[\t\n]*","").trim()); ! btn.setData("MenuWizard", WizardMenuModel.INSTANCE); ! btn.setData("Context",context); ! ! btn.addSelectionListener(new SelectionListener() { ! public void widgetSelected(SelectionEvent e) { ! if (!((Button)e.widget).getSelection()) { ! Widget w = e.widget; ! WizardMenuModel wmm = (WizardMenuModel)w.getData("MenuWizard"); ! wmm.handleButtonPress((Integer)w.getData("Context")); ! } ! } ! public void widgetDefaultSelected(SelectionEvent e) { } ! }); ! } ! ! public void bind(Menu menu, String path) { ! WizardMenuModel wmm = WizardMenuModel.INSTANCE; ! bindHeader(menu, path); ! bindBody(menu); ! ! prevButton.setEnabled(wmm.havePreviousMenu()); ! nextButton.setEnabled(false); ! openButton.setEnabled(false); ! addButton.setEnabled(false); ! ! } ! ! protected void bindHeader(Menu menu, String path) { ! WizardMenuModel wmm = WizardMenuModel.INSTANCE; ! label.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_GRAY)); ! label.setText(wmm.getCurrentPath()); ! String theText = menu.getText(); ! //theText = theText.replaceFirst(" +"," "); ! theText = theText.replaceFirst("^\\s*",""); ! theText = theText.replaceAll("\n +","\n"); ! text.setText(theText); ! ! } ! ! protected void bindBody(Menu menu) { ! // walk the items of the menu for radio button display ! Button prevRB = null; ! for (Iterator i = menu.getItem().iterator(); i.hasNext();) { ! Item item = (Item) i.next(); ! Button rb = new Button(bodyGroup, SWT.RADIO); ! rb.setLayoutData(new GridData(GridData.GRAB_HORIZONTAL)); ! rb.setText(item.getCaption()); ! String toolTip = item.getToolTip(); ! toolTip = toolTip.replaceAll("\\s+"," "); ! rb.setToolTipText(toolTip.trim()); ! rb.setData("Item", item); ! rb.setData("MenuWizard", WizardMenuModel.INSTANCE); ! //make double click same as "next" ! rb.addMouseListener(new MouseListener() { ! public void mouseDoubleClick(MouseEvent e) { ! if (((Button)e.widget).getSelection()) { ! Widget w = e.widget; ! WizardMenuModel wmm = (WizardMenuModel)w.getData("MenuWizard"); ! Item item = (Item)w.getData("Item"); ! wmm.registerCurrentItem(item); ! nextButton.setEnabled(item.getNext() != null); ! openButton.setEnabled(item.getProfile() != null); ! addButton.setEnabled(wmm.hasProfiles(item)); ! if (nextButton.getEnabled()) { ! wmm.handleButtonPress(WizardMenuModel.CBNext); ! return; ! } ! if (openButton.getEnabled()){ ! wmm.handleButtonPress(WizardMenuModel.CBOpen); ! return; ! } ! } ! } ! public void mouseDown(MouseEvent e) {} ! public void mouseUp(MouseEvent e) {} ! }); ! rb.addSelectionListener(new SelectionListener() { ! public void widgetSelected(SelectionEvent e) { ! if (((Button)e.widget).getSelection()) { ! Widget w = e.widget; ! WizardMenuModel wmm = (WizardMenuModel)w.getData("MenuWizard"); ! Item item = (Item)w.getData("Item"); ! wmm.registerCurrentItem(item); ! nextButton.setEnabled(item.getNext() != null); ! openButton.setEnabled(item.getProfile() != null); ! addButton.setEnabled(wmm.hasProfiles(item)); ! } ! } ! public void widgetDefaultSelected(SelectionEvent e) { } ! }); ! prevRB = rb; ! } ! } ! ! // public void itemSelected(SelectionEvent e) { ! // Item item = (Item)e.widget.getData(); ! // ! // } ! ! public void setLabel(String label) { ! this.label.setText(label); ! } ! /** ! * @param text The text to set. ! */ ! public void setText(String text) { ! this.text.setText(text); ! } ! ! /** ! * @return Returns the label. ! */ ! public Label getLabel() { ! return label; ! } ! /** ! * @return Returns the text. ! */ ! public Text getText() { ! return text; ! } ! } Index: CartEditor.java =================================================================== RCS file: /cvsroot/modelwizard/source/Model Wizard Plugin/src/net/sourceforge/modelWizard/cartEditor/CartEditor.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** CartEditor.java 6 May 2006 22:47:33 -0000 1.3 --- CartEditor.java 24 Oct 2006 21:36:03 -0000 1.4 *************** *** 4,7 **** --- 4,11 ---- import java.io.IOException; + import net.sourceforge.modelWizard.ModelWizardPlugin; + import net.sourceforge.modelWizard.ShoppingCartSchema.DocumentRoot; + import net.sourceforge.modelWizard.ShoppingCartSchema.ShoppingCartType; + import org.eclipse.core.resources.IProject; import org.eclipse.core.resources.IResourceChangeEvent; *************** *** 29,36 **** import org.eclipse.ui.part.MultiPageEditorPart; - import net.sourceforge.modelWizard.ModelWizardPlugin; - import net.sourceforge.modelWizard.ShoppingCartSchema.DocumentRoot; - import net.sourceforge.modelWizard.ShoppingCartSchema.ShoppingCartType; - /** * Shopping cart editor --- 33,36 ---- Index: CartEditorActionBarContributor.java =================================================================== RCS file: /cvsroot/modelwizard/source/Model Wizard Plugin/src/net/sourceforge/modelWizard/cartEditor/CartEditorActionBarContributor.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** CartEditorActionBarContributor.java 1 Feb 2006 09:26:38 -0000 1.3 --- CartEditorActionBarContributor.java 24 Oct 2006 21:36:03 -0000 1.4 *************** *** 1,9 **** package net.sourceforge.modelWizard.cartEditor; - import java.lang.reflect.InvocationTargetException; - import java.util.ArrayList; import java.util.Collection; - import java.util.HashSet; import java.util.Iterator; --- 1,6 ---- *************** *** 13,24 **** import net.sourceforge.modelWizard.ShoppingCartSchema.Class; import net.sourceforge.modelWizard.ShoppingCartSchema.Profile; - import net.sourceforge.modelWizard.ShoppingCartSchema.Required; import net.sourceforge.modelWizard.ShoppingCartSchema.ShoppingCartType; - import net.sourceforge.modelWizard.backingModelAbstraction.ModelTransformationException; import net.sourceforge.modelWizard.utilities.ProfileUtilities; import net.sourceforge.modelWizard.wizards.ModelExtractWizard; - import org.eclipse.emf.common.util.TreeIterator; - import org.eclipse.emf.ecore.EObject; import org.eclipse.jface.action.Action; import org.eclipse.jface.action.IMenuManager; --- 10,17 ---- Index: WizardMenuModel.java =================================================================== RCS file: /cvsroot/modelwizard/source/Model Wizard Plugin/src/net/sourceforge/modelWizard/cartEditor/WizardMenuModel.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** WizardMenuModel.java 6 May 2006 22:47:33 -0000 1.4 --- WizardMenuModel.java 24 Oct 2006 21:36:03 -0000 1.5 *************** *** 12,15 **** --- 12,29 ---- import java.util.Stack; + import net.sourceforge.modelWizard.ModelWizardPlugin; + import net.sourceforge.modelWizard.Menus.DocumentRoot; + import net.sourceforge.modelWizard.Menus.Include; + import net.sourceforge.modelWizard.Menus.Item; + import net.sourceforge.modelWizard.Menus.Menu; + import net.sourceforge.modelWizard.Menus.Wizard; + import net.sourceforge.modelWizard.Profile.ProfileType1; + import net.sourceforge.modelWizard.ShoppingCartSchema.ShoppingCartType; + import net.sourceforge.modelWizard.ShoppingCartSchema.impl.ShoppingCartSchemaFactoryImpl; + import net.sourceforge.modelWizard.modelAbstraction.IModelChangeListener; + import net.sourceforge.modelWizard.modelAbstraction.ModelAccess; + import net.sourceforge.modelWizard.utilities.ExceptionDetailsDialog; + import net.sourceforge.modelWizard.utilities.ProfileUtilities; + import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IStatus; *************** *** 29,46 **** import org.eclipse.ui.PlatformUI; - import net.sourceforge.modelWizard.ModelWizardPlugin; - import net.sourceforge.modelWizard.Menus.DocumentRoot; - import net.sourceforge.modelWizard.Menus.Include; - import net.sourceforge.modelWizard.Menus.Item; - import net.sourceforge.modelWizard.Menus.Menu; - import net.sourceforge.modelWizard.Menus.Wizard; - import net.sourceforge.modelWizard.Profile.ProfileType1; - import net.sourceforge.modelWizard.ShoppingCartSchema.ShoppingCartType; - import net.sourceforge.modelWizard.ShoppingCartSchema.impl.ShoppingCartSchemaFactoryImpl; - import net.sourceforge.modelWizard.modelAbstraction.IModelChangeListener; - import net.sourceforge.modelWizard.modelAbstraction.ModelAccess; - import net.sourceforge.modelWizard.utilities.ExceptionDetailsDialog; - import net.sourceforge.modelWizard.utilities.ProfileUtilities; - /** * @author sschlmr --- 43,46 ---- |
|
From: jistrawn <jis...@us...> - 2006-10-24 21:35:24
|
Update of /cvsroot/modelwizard/source/Model Wizard Plugin/src/net/sourceforge/modelWizard/backingModelAbstraction In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv31120/src/net/sourceforge/modelWizard/backingModelAbstraction Modified Files: ExportParameter.java BooleanExportParameter.java StringExportParameter.java IAssociationClass.java ResourceExportParameter.java IModelExporter.java Log Message: removed unused imports Index: BooleanExportParameter.java =================================================================== RCS file: /cvsroot/modelwizard/source/Model Wizard Plugin/src/net/sourceforge/modelWizard/backingModelAbstraction/BooleanExportParameter.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** BooleanExportParameter.java 15 Nov 2005 20:37:58 -0000 1.2 --- BooleanExportParameter.java 24 Oct 2006 21:35:17 -0000 1.3 *************** *** 1,73 **** ! /* ! * Created on Oct 31, 2005 ! * @author stjerman ! * <copyright> ! * ! * Copyright (c) 2005 Cisco Systems Inc, ! * All rights reserved. This program and the accompanying materials ! * are made available under the terms of the BSD License ! * which accompanies this distribution. ! * ! * Contributors: ! * CISCO - Initial API and implementation ! * ! * </copyright> ! */ ! package net.sourceforge.modelWizard.backingModelAbstraction; ! ! import org.eclipse.swt.SWT; ! import org.eclipse.swt.events.SelectionEvent; ! import org.eclipse.swt.events.SelectionListener; ! import org.eclipse.swt.layout.GridData; ! import org.eclipse.swt.widgets.Button; ! import org.eclipse.swt.widgets.Composite; ! import org.eclipse.swt.widgets.Widget; ! ! public class BooleanExportParameter extends ExportParameter { ! ! private boolean defaultValue; ! private boolean currentValue; ! private Button button; ! ! /** ! * Constructor ! * @param title ! * @param toolTip ! * @param defaultValue ! */ ! public BooleanExportParameter (String title, String toolTip, boolean defaultValue){ ! this.title = title; ! this.toolTip = toolTip; ! this.defaultValue = defaultValue; ! this.currentValue = defaultValue; ! } ! ! /** ! * Add the necessary widgets to ! * @param parent ! * @return ! */ ! public void addWidgets(Composite parent) { ! button = new Button(parent, SWT.CHECK); ! final GridData gridData = new GridData(); ! gridData.horizontalSpan = 3; ! button.setLayoutData(gridData); ! button.setText(this.title); ! button.setToolTipText(this.toolTip); ! button.addSelectionListener(new SelectionListener(){ ! ! public void widgetSelected(SelectionEvent e) { ! currentValue = button.getSelection(); ! } ! ! public void widgetDefaultSelected(SelectionEvent e) { ! } ! ! }); ! button.setSelection(defaultValue); ! } ! ! public boolean getValue(){ ! return currentValue; ! } ! } --- 1,72 ---- ! /* ! * Created on Oct 31, 2005 ! * @author stjerman ! * <copyright> ! * ! * Copyright (c) 2005 Cisco Systems Inc, ! * All rights reserved. This program and the accompanying materials ! * are made available under the terms of the BSD License ! * which accompanies this distribution. ! * ! * Contributors: ! * CISCO - Initial API and implementation ! * ! * </copyright> ! */ ! package net.sourceforge.modelWizard.backingModelAbstraction; ! ! import org.eclipse.swt.SWT; ! import org.eclipse.swt.events.SelectionEvent; ! import org.eclipse.swt.events.SelectionListener; ! import org.eclipse.swt.layout.GridData; ! import org.eclipse.swt.widgets.Button; ! import org.eclipse.swt.widgets.Composite; ! ! public class BooleanExportParameter extends ExportParameter { ! ! private boolean defaultValue; ! private boolean currentValue; ! private Button button; ! ! /** ! * Constructor ! * @param title ! * @param toolTip ! * @param defaultValue ! */ ! public BooleanExportParameter (String title, String toolTip, boolean defaultValue){ ! this.title = title; ! this.toolTip = toolTip; ! this.defaultValue = defaultValue; ! this.currentValue = defaultValue; ! } ! ! /** ! * Add the necessary widgets to ! * @param parent ! * @return ! */ ! public void addWidgets(Composite parent) { ! button = new Button(parent, SWT.CHECK); ! final GridData gridData = new GridData(); ! gridData.horizontalSpan = 3; ! button.setLayoutData(gridData); ! button.setText(this.title); ! button.setToolTipText(this.toolTip); ! button.addSelectionListener(new SelectionListener(){ ! ! public void widgetSelected(SelectionEvent e) { ! currentValue = button.getSelection(); ! } ! ! public void widgetDefaultSelected(SelectionEvent e) { ! } ! ! }); ! button.setSelection(defaultValue); ! } ! ! public boolean getValue(){ ! return currentValue; ! } ! } Index: IModelExporter.java =================================================================== RCS file: /cvsroot/modelwizard/source/Model Wizard Plugin/src/net/sourceforge/modelWizard/backingModelAbstraction/IModelExporter.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** IModelExporter.java 23 Nov 2005 23:27:08 -0000 1.4 --- IModelExporter.java 24 Oct 2006 21:35:17 -0000 1.5 *************** *** 1,50 **** ! /* ! * Created on Oct 4, 2005 ! * @author stjerman ! * <copyright> ! * ! * Copyright (c) 2005 Cisco Systems Inc, ! * All rights reserved. This program and the accompanying materials ! * are made available under the terms of the BSD License ! * which accompanies this distribution. ! * ! * Contributors: ! * CISCO - Initial API and implementation ! * ! * </copyright> ! */ ! package net.sourceforge.modelWizard.backingModelAbstraction; ! ! import java.util.Collection; ! import java.util.Iterator; ! import java.util.Map; ! ! import org.eclipse.core.runtime.IPath; ! import org.eclipse.core.runtime.IProgressMonitor; ! import org.eclipse.jface.operation.IRunnableContext; ! ! public interface IModelExporter { ! ! /** ! * Get the set of parameters that this export requires. For optimum usability these parameters should ! * be persisted as preferences. ! * @param m The model that is to be used for this export ! * @return A collection of parameters which will instances of ExportParameter subclasses. ! */ ! public Map getParameters(IModel m); ! ! /** ! * Actually perform the export. ! * ! * @param m The based model for the export ! * @param classNames. A list of classes to export. Note that the export should ensure that any dependencies are fulfilled during the export ! * @param parameters The parameters required for this export (as defined above and modified by the user). ! * @param filePath The workspace relative path for the exported file. ! * @param monitor The monitor for this export ! * @param runnableContext Context to run any long running tasks. ! * @throws ModelTransformationException ! * @throws InterruptedException ! */ ! public void exportModel(IModel m, Iterator classNames, Map parameters, IPath filePath, IProgressMonitor monitor, IRunnableContext runnableContext) throws ModelTransformationException, InterruptedException; ! ! } --- 1,49 ---- ! /* ! * Created on Oct 4, 2005 ! * @author stjerman ! * <copyright> ! * ! * Copyright (c) 2005 Cisco Systems Inc, ! * All rights reserved. This program and the accompanying materials ! * are made available under the terms of the BSD License ! * which accompanies this distribution. ! * ! * Contributors: ! * CISCO - Initial API and implementation ! * ! * </copyright> ! */ ! package net.sourceforge.modelWizard.backingModelAbstraction; ! ! import java.util.Iterator; ! import java.util.Map; ! ! import org.eclipse.core.runtime.IPath; ! import org.eclipse.core.runtime.IProgressMonitor; ! import org.eclipse.jface.operation.IRunnableContext; ! ! public interface IModelExporter { ! ! /** ! * Get the set of parameters that this export requires. For optimum usability these parameters should ! * be persisted as preferences. ! * @param m The model that is to be used for this export ! * @return A collection of parameters which will instances of ExportParameter subclasses. ! */ ! public Map getParameters(IModel m); ! ! /** ! * Actually perform the export. ! * ! * @param m The based model for the export ! * @param classNames. A list of classes to export. Note that the export should ensure that any dependencies are fulfilled during the export ! * @param parameters The parameters required for this export (as defined above and modified by the user). ! * @param filePath The workspace relative path for the exported file. ! * @param monitor The monitor for this export ! * @param runnableContext Context to run any long running tasks. ! * @throws ModelTransformationException ! * @throws InterruptedException ! */ ! public void exportModel(IModel m, Iterator classNames, Map parameters, IPath filePath, IProgressMonitor monitor, IRunnableContext runnableContext) throws ModelTransformationException, InterruptedException; ! ! } Index: ExportParameter.java =================================================================== RCS file: /cvsroot/modelwizard/source/Model Wizard Plugin/src/net/sourceforge/modelWizard/backingModelAbstraction/ExportParameter.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ExportParameter.java 15 Nov 2005 20:37:58 -0000 1.2 --- ExportParameter.java 24 Oct 2006 21:35:16 -0000 1.3 *************** *** 1,38 **** ! /* ! * Created on Oct 31, 2005 ! * @author stjerman ! * <copyright> ! * ! * Copyright (c) 2005 Cisco Systems Inc, ! * All rights reserved. This program and the accompanying materials ! * are made available under the terms of the BSD License ! * which accompanies this distribution. ! * ! * Contributors: ! * CISCO - Initial API and implementation ! * ! * </copyright> ! */ ! package net.sourceforge.modelWizard.backingModelAbstraction; ! ! import org.eclipse.swt.widgets.Composite; ! import org.eclipse.swt.widgets.Widget; ! ! /** ! * @author stjerman ! * Date: Oct 31, 2005 ! */ ! public abstract class ExportParameter { ! ! String title; ! String toolTip; ! ! /** ! * Add the necessary widgets to the parent composite to handle this parameter. ! * The parent composite is assumed to have a grid layout with 3 columns ! * ! * @param parent The parent composite. ! * @return ! */ ! public abstract void addWidgets(Composite parent); ! } --- 1,37 ---- ! /* ! * Created on Oct 31, 2005 ! * @author stjerman ! * <copyright> ! * ! * Copyright (c) 2005 Cisco Systems Inc, ! * All rights reserved. This program and the accompanying materials ! * are made available under the terms of the BSD License ! * which accompanies this distribution. ! * ! * Contributors: ! * CISCO - Initial API and implementation ! * ! * </copyright> ! */ ! package net.sourceforge.modelWizard.backingModelAbstraction; ! ! import org.eclipse.swt.widgets.Composite; ! ! /** ! * @author stjerman ! * Date: Oct 31, 2005 ! */ ! public abstract class ExportParameter { ! ! String title; ! String toolTip; ! ! /** ! * Add the necessary widgets to the parent composite to handle this parameter. ! * The parent composite is assumed to have a grid layout with 3 columns ! * ! * @param parent The parent composite. ! * @return ! */ ! public abstract void addWidgets(Composite parent); ! } Index: IAssociationClass.java =================================================================== RCS file: /cvsroot/modelwizard/source/Model Wizard Plugin/src/net/sourceforge/modelWizard/backingModelAbstraction/IAssociationClass.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** IAssociationClass.java 7 Nov 2005 16:19:15 -0000 1.1 --- IAssociationClass.java 24 Oct 2006 21:35:17 -0000 1.2 *************** *** 1,26 **** ! /* ! * Created on Sep 21, 2005 ! * @author stjerman ! * <copyright> ! * ! * Copyright (c) 2005 Cisco Systems Inc, ! * All rights reserved. This program and the accompanying materials ! * are made available under the terms of the BSD License ! * which accompanies this distribution. ! * ! * Contributors: ! * CISCO - Initial API and implementation ! * ! * </copyright> ! */ ! package net.sourceforge.modelWizard.backingModelAbstraction; ! ! import java.util.Map; ! ! /** ! * @author stjerman Date: Sep 21, 2005 ! * ! */ ! public interface IAssociationClass extends IClass, IAssociation { ! ! } --- 1,25 ---- ! /* ! * Created on Sep 21, 2005 ! * @author stjerman ! * <copyright> ! * ! * Copyright (c) 2005 Cisco Systems Inc, ! * All rights reserved. This program and the accompanying materials ! * are made available under the terms of the BSD License ! * which accompanies this distribution. ! * ! * Contributors: ! * CISCO - Initial API and implementation ! * ! * </copyright> ! */ ! package net.sourceforge.modelWizard.backingModelAbstraction; ! ! ! /** ! * @author stjerman Date: Sep 21, 2005 ! * ! */ ! public interface IAssociationClass extends IClass, IAssociation { ! ! } Index: StringExportParameter.java =================================================================== RCS file: /cvsroot/modelwizard/source/Model Wizard Plugin/src/net/sourceforge/modelWizard/backingModelAbstraction/StringExportParameter.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** StringExportParameter.java 15 Nov 2005 20:37:58 -0000 1.2 --- StringExportParameter.java 24 Oct 2006 21:35:17 -0000 1.3 *************** *** 1,70 **** ! /* ! * Created on Oct 31, 2005 ! * @author stjerman ! * <copyright> ! * ! * Copyright (c) 2005 Cisco Systems Inc, ! * All rights reserved. This program and the accompanying materials ! * are made available under the terms of the BSD License ! * which accompanies this distribution. ! * ! * Contributors: ! * CISCO - Initial API and implementation ! * ! * </copyright> ! */ ! package net.sourceforge.modelWizard.backingModelAbstraction; ! ! import org.eclipse.swt.SWT; ! import org.eclipse.swt.events.ModifyEvent; ! import org.eclipse.swt.events.ModifyListener; ! import org.eclipse.swt.events.SelectionEvent; ! import org.eclipse.swt.events.SelectionListener; ! import org.eclipse.swt.layout.GridData; ! import org.eclipse.swt.widgets.Composite; ! import org.eclipse.swt.widgets.Label; ! import org.eclipse.swt.widgets.Text; ! ! /** ! * @author stjerman ! * Date: Oct 31, 2005 ! */ ! public class StringExportParameter extends ExportParameter { ! ! String defaultValue; ! String currentValue; ! private Text text; ! ! public StringExportParameter (String title, String toolTip, String defaultValue){ ! this.title = title; ! this.toolTip = toolTip; ! this.defaultValue = defaultValue; ! this.currentValue = defaultValue; ! } ! ! /* (non-Javadoc) ! * @see net.sourceforge.modelWizard.backingModelAbstraction.ExportParameter#addWidgets(org.eclipse.swt.widgets.Composite) ! */ ! public void addWidgets(Composite parent) { ! final Label label = new Label(parent, SWT.NONE); ! label.setText(this.title); ! text = new Text(parent, SWT.BORDER); ! text.setText(this.defaultValue); ! text.setToolTipText(this.toolTip); ! final GridData gridData = new GridData(GridData.FILL_HORIZONTAL); ! gridData.horizontalSpan = 2; ! text.setLayoutData(gridData); ! text.addModifyListener(new ModifyListener(){ ! ! public void modifyText(ModifyEvent e) { ! currentValue = text.getText(); ! } ! ! }); ! } ! ! public String getValue(){ ! return currentValue; ! } ! ! } --- 1,68 ---- ! /* ! * Created on Oct 31, 2005 ! * @author stjerman ! * <copyright> ! * ! * Copyright (c) 2005 Cisco Systems Inc, ! * All rights reserved. This program and the accompanying materials ! * are made available under the terms of the BSD License ! * which accompanies this distribution. ! * ! * Contributors: ! * CISCO - Initial API and implementation ! * ! * </copyright> ! */ ! package net.sourceforge.modelWizard.backingModelAbstraction; ! ! import org.eclipse.swt.SWT; ! import org.eclipse.swt.events.ModifyEvent; ! import org.eclipse.swt.events.ModifyListener; ! import org.eclipse.swt.layout.GridData; ! import org.eclipse.swt.widgets.Composite; ! import org.eclipse.swt.widgets.Label; ! import org.eclipse.swt.widgets.Text; ! ! /** ! * @author stjerman ! * Date: Oct 31, 2005 ! */ ! public class StringExportParameter extends ExportParameter { ! ! String defaultValue; ! String currentValue; ! private Text text; ! ! public StringExportParameter (String title, String toolTip, String defaultValue){ ! this.title = title; ! this.toolTip = toolTip; ! this.defaultValue = defaultValue; ! this.currentValue = defaultValue; ! } ! ! /* (non-Javadoc) ! * @see net.sourceforge.modelWizard.backingModelAbstraction.ExportParameter#addWidgets(org.eclipse.swt.widgets.Composite) ! */ ! public void addWidgets(Composite parent) { ! final Label label = new Label(parent, SWT.NONE); ! label.setText(this.title); ! text = new Text(parent, SWT.BORDER); ! text.setText(this.defaultValue); ! text.setToolTipText(this.toolTip); ! final GridData gridData = new GridData(GridData.FILL_HORIZONTAL); ! gridData.horizontalSpan = 2; ! text.setLayoutData(gridData); ! text.addModifyListener(new ModifyListener(){ ! ! public void modifyText(ModifyEvent e) { ! currentValue = text.getText(); ! } ! ! }); ! } ! ! public String getValue(){ ! return currentValue; ! } ! ! } Index: ResourceExportParameter.java =================================================================== RCS file: /cvsroot/modelwizard/source/Model Wizard Plugin/src/net/sourceforge/modelWizard/backingModelAbstraction/ResourceExportParameter.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ResourceExportParameter.java 15 Nov 2005 20:37:58 -0000 1.1 --- ResourceExportParameter.java 24 Oct 2006 21:35:17 -0000 1.2 *************** *** 1,111 **** ! /* ! * Created on Nov 7, 2005 ! * @author stjerman ! * <copyright> ! * ! * Copyright (c) 2005 Cisco Systems Inc, ! * All rights reserved. This program and the accompanying materials ! * are made available under the terms of the BSD License ! * which accompanies this distribution. ! * ! * Contributors: ! * CISCO - Initial API and implementation ! * ! * </copyright> ! */ ! package net.sourceforge.modelWizard.backingModelAbstraction; ! ! import org.eclipse.core.resources.IFile; ! import org.eclipse.core.resources.ResourcesPlugin; ! import org.eclipse.core.runtime.Path; ! import org.eclipse.swt.SWT; ! import org.eclipse.swt.events.ModifyEvent; ! import org.eclipse.swt.events.ModifyListener; ! import org.eclipse.swt.events.SelectionAdapter; ! import org.eclipse.swt.events.SelectionEvent; ! import org.eclipse.swt.layout.GridData; ! import org.eclipse.swt.widgets.Button; ! import org.eclipse.swt.widgets.Composite; ! import org.eclipse.swt.widgets.Label; ! import org.eclipse.swt.widgets.Shell; ! import org.eclipse.swt.widgets.Text; ! import org.eclipse.ui.dialogs.ContainerSelectionDialog; ! import org.eclipse.ui.dialogs.ResourceSelectionDialog; ! ! public class ResourceExportParameter extends ExportParameter { ! ! private String defaultValue; ! private String currentValue; ! private Shell shell; ! private Text text; ! ! /** ! * Constructor ! * @param title ! * @param toolTip ! * @param defaultValue null for no default ! */ ! public ResourceExportParameter (String title, String toolTip, String defaultValue){ ! this.title = title; ! this.toolTip = toolTip; ! this.defaultValue = defaultValue; ! this.currentValue = defaultValue; ! } ! ! public void addWidgets(Composite parent) { ! this.shell = parent.getShell(); ! final Label label = new Label(parent, SWT.NONE); ! label.setText(this.title); ! label.setToolTipText(this.toolTip); ! ! text = new Text(parent, SWT.BORDER); ! text.addModifyListener(new ModifyListener(){ ! ! public void modifyText(ModifyEvent e) { ! currentValue = text.getText(); ! } ! ! }); ! text.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); ! text.setToolTipText(this.toolTip); ! if (defaultValue != null) ! text.setText(defaultValue); ! ! final Button button = new Button(parent, SWT.NONE); ! button.addSelectionListener(new SelectionAdapter() { ! public void widgetSelected(SelectionEvent e) { ! handleBrowse(); ! } ! }); ! button.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END)); ! button.setText("Browse..."); ! button.setToolTipText(this.toolTip); ! ! } ! ! /** ! * Uses the standard container st election dialog to ! * choose the new value for the container field. ! */ ! private void handleBrowse() ! { ! ResourceSelectionDialog dialog = ! new ResourceSelectionDialog( ! shell, ! ResourcesPlugin.getWorkspace().getRoot(), ! this.title); ! if (dialog.open() == ResourceSelectionDialog.OK) ! { ! Object[] result = dialog.getResult(); ! if (result.length == 1) ! { ! IFile f = (IFile) result[0]; ! text.setText(f.getFullPath().toOSString()); ! } ! } ! } ! ! public String getValue(){ ! return currentValue; ! } ! } --- 1,109 ---- ! /* ! * Created on Nov 7, 2005 ! * @author stjerman ! * <copyright> ! * ! * Copyright (c) 2005 Cisco Systems Inc, ! * All rights reserved. This program and the accompanying materials ! * are made available under the terms of the BSD License ! * which accompanies this distribution. ! * ! * Contributors: ! * CISCO - Initial API and implementation ! * ! * </copyright> ! */ ! package net.sourceforge.modelWizard.backingModelAbstraction; ! ! import org.eclipse.core.resources.IFile; ! import org.eclipse.core.resources.ResourcesPlugin; ! import org.eclipse.swt.SWT; ! import org.eclipse.swt.events.ModifyEvent; ! import org.eclipse.swt.events.ModifyListener; ! import org.eclipse.swt.events.SelectionAdapter; ! import org.eclipse.swt.events.SelectionEvent; ! import org.eclipse.swt.layout.GridData; ! import org.eclipse.swt.widgets.Button; ! import org.eclipse.swt.widgets.Composite; ! import org.eclipse.swt.widgets.Label; ! import org.eclipse.swt.widgets.Shell; ! import org.eclipse.swt.widgets.Text; ! import org.eclipse.ui.dialogs.ResourceSelectionDialog; ! ! public class ResourceExportParameter extends ExportParameter { ! ! private String defaultValue; ! private String currentValue; ! private Shell shell; ! private Text text; ! ! /** ! * Constructor ! * @param title ! * @param toolTip ! * @param defaultValue null for no default ! */ ! public ResourceExportParameter (String title, String toolTip, String defaultValue){ ! this.title = title; ! this.toolTip = toolTip; ! this.defaultValue = defaultValue; ! this.currentValue = defaultValue; ! } ! ! public void addWidgets(Composite parent) { ! this.shell = parent.getShell(); ! final Label label = new Label(parent, SWT.NONE); ! label.setText(this.title); ! label.setToolTipText(this.toolTip); ! ! text = new Text(parent, SWT.BORDER); ! text.addModifyListener(new ModifyListener(){ ! ! public void modifyText(ModifyEvent e) { ! currentValue = text.getText(); ! } ! ! }); ! text.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); ! text.setToolTipText(this.toolTip); ! if (defaultValue != null) ! text.setText(defaultValue); ! ! final Button button = new Button(parent, SWT.NONE); ! button.addSelectionListener(new SelectionAdapter() { ! public void widgetSelected(SelectionEvent e) { ! handleBrowse(); ! } ! }); ! button.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END)); ! button.setText("Browse..."); ! button.setToolTipText(this.toolTip); ! ! } ! ! /** ! * Uses the standard container st election dialog to ! * choose the new value for the container field. ! */ ! private void handleBrowse() ! { ! ResourceSelectionDialog dialog = ! new ResourceSelectionDialog( ! shell, ! ResourcesPlugin.getWorkspace().getRoot(), ! this.title); ! if (dialog.open() == ResourceSelectionDialog.OK) ! { ! Object[] result = dialog.getResult(); ! if (result.length == 1) ! { ! IFile f = (IFile) result[0]; ! text.setText(f.getFullPath().toOSString()); ! } ! } ! } ! ! public String getValue(){ ! return currentValue; ! } ! } |
|
From: jistrawn <jis...@us...> - 2006-10-13 20:35:09
|
Update of /cvsroot/modelwizard/source/Model Wizard Plugin/META-INF In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv8412/META-INF Modified Files: MANIFEST.MF Log Message: v2.0.18 Index: MANIFEST.MF =================================================================== RCS file: /cvsroot/modelwizard/source/Model Wizard Plugin/META-INF/MANIFEST.MF,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** MANIFEST.MF 6 May 2006 22:47:33 -0000 1.14 --- MANIFEST.MF 13 Oct 2006 20:35:05 -0000 1.15 *************** *** 3,7 **** Bundle-Name: Model Wizard Bundle-SymbolicName: net.sourceforge.modelWizard; singleton:=true ! Bundle-Version: 2.0.17 Bundle-Localization: plugin Bundle-ClassPath: modelWizard.jar, --- 3,7 ---- Bundle-Name: Model Wizard Bundle-SymbolicName: net.sourceforge.modelWizard; singleton:=true ! Bundle-Version: 2.0.18 Bundle-Localization: plugin Bundle-ClassPath: modelWizard.jar, |
|
From: jistrawn <jis...@us...> - 2006-10-13 20:34:34
|
Update of /cvsroot/modelwizard/source/Model Wizard Feature In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv8283 Modified Files: feature.xml Log Message: v2.0.18 Index: feature.xml =================================================================== RCS file: /cvsroot/modelwizard/source/Model Wizard Feature/feature.xml,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** feature.xml 6 May 2006 22:56:16 -0000 1.14 --- feature.xml 13 Oct 2006 20:34:31 -0000 1.15 *************** *** 3,7 **** id="net.sourceforge.modelWizard" label="Model Wizard" ! version="2.0.17" provider-name="Cisco"> --- 3,7 ---- id="net.sourceforge.modelWizard" label="Model Wizard" ! version="2.0.18" provider-name="Cisco"> |
|
From: jistrawn <jis...@us...> - 2006-10-13 20:33:41
|
Update of /cvsroot/modelwizard/source/CIM V2 Feature In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv7869 Modified Files: feature.xml Log Message: 1.0.10 Index: feature.xml =================================================================== RCS file: /cvsroot/modelwizard/source/CIM V2 Feature/feature.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** feature.xml 5 May 2006 15:34:14 -0000 1.5 --- feature.xml 13 Oct 2006 20:33:38 -0000 1.6 *************** *** 3,7 **** id="net.sourceforge.modelWizard.CIM_V2" label="CIM V2" ! version="1.0.9" provider-name="Cisco"> --- 3,7 ---- id="net.sourceforge.modelWizard.CIM_V2" label="CIM V2" ! version="1.0.10" provider-name="Cisco"> |
|
From: jistrawn <jis...@us...> - 2006-10-13 20:32:51
|
Update of /cvsroot/modelwizard/source/Chameleon Plugin In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv7420 Modified Files: plugin.xml Log Message: pointed plug-in at newModel directory Index: plugin.xml =================================================================== RCS file: /cvsroot/modelwizard/source/Chameleon Plugin/plugin.xml,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** plugin.xml 2 Oct 2006 17:29:59 -0000 1.10 --- plugin.xml 13 Oct 2006 20:32:42 -0000 1.11 *************** *** 8,12 **** id="Abstract.model1" menu="menu" ! modelFile="model/Merged.emx" name="Chameleon" primary="true" --- 8,12 ---- id="Abstract.model1" menu="menu" ! modelFile="newModel/Merged.emx" name="Chameleon" primary="true" |
|
From: jistrawn <jis...@us...> - 2006-10-13 20:31:39
|
Update of /cvsroot/modelwizard/source/Chameleon Plugin/src/net/sourceforge/modelWizard/chameleon/exporters In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv6999/src/net/sourceforge/modelWizard/chameleon/exporters Modified Files: SubModelGenerator.java Log Message: reformatted Index: SubModelGenerator.java =================================================================== RCS file: /cvsroot/modelwizard/source/Chameleon Plugin/src/net/sourceforge/modelWizard/chameleon/exporters/SubModelGenerator.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** SubModelGenerator.java 2 Oct 2006 17:25:40 -0000 1.7 --- SubModelGenerator.java 13 Oct 2006 20:31:34 -0000 1.8 *************** *** 54,593 **** import org.eclipse.uml2.UML2Package; - public class SubModelGenerator - { - public static SubModelGenerator INSTANCE = new SubModelGenerator(); private TreeMap rqdElements; ! /** ! * This method returns a new model that is a subset of ! * @param model ! * @param classeNames Iterator for required class names (each a string). ! * @return pointer to new model. ! * @throws IOException ! * @throws InterruptedException ! * @throws InvocationTargetException ! * @throws ModelTransformationException ! */ ! public Model getSubModel( ! Iterator classNames, ! IProgressMonitor parentMonitor, ! ModelModel model, ! String modelName, ! String modelDesc, ! String basePackageName) ! throws IOException, InvocationTargetException, InterruptedException, ModelTransformationException ! { ! IProgressMonitor monitor = new SubProgressMonitor(parentMonitor, 2); ! monitor.beginTask( ! "Creating sub model", ! 3); ! rqdElements = new TreeMap(); ! //for each class add the class and any superclasses to the rqdClasses treemap ! int n = 0; ! while (classNames.hasNext()) ! { ! n++; ! String cN = (String)classNames.next(); ! Classifier theElement = (Classifier)model.findRealElement(cN); ! if (theElement == null) ! { ! throw new ModelTransformationException(cN + " does not exist in model!"); ! } ! addDependencies( ! rqdElements, ! theElement, ! false); ! if (monitor.isCanceled()) ! { ! throw new InterruptedException(); ! } ! } ! monitor.worked(1); ! //now create the new model with the required elements. ! Copier copier = new Copier(); ! Model newModel = UML2Factory.eINSTANCE.createModel(); ! newModel.setName(modelName); ! Package basePackage = newModel; ! if (basePackageName != null && !basePackageName.equals("")) ! { ! basePackage = createPackageHierachy( ! basePackageName, ! newModel); ! } ! ! //add profile applications... ! ArrayList pList = new ArrayList(); ! for (Iterator p = model.getRealModel().getAppliedProfiles().iterator(); p.hasNext();) ! { ! ProfileApplication pa = (ProfileApplication)p.next(); ! if (!pa.getImportedProfile().eIsProxy()) ! { ! EObject o = copier.copy(pa); ! newModel.getAppliedProfiles().add(o); ! pList.add(pa.getImportedProfile().eResource().getURI().toString()); ! } ! else ! { ! // System.out.println("Ignoring "+((InternalEObject)pa.getImportedProfile()).eProxyURI().toString()); ! continue; ! } ! } ! ! //add packageImports... ! for (Iterator p = model.getRealModel().getPackageImports().iterator(); p.hasNext();) ! { ! PackageImport pi = (PackageImport)p.next(); ! if (!pi.getImportedPackage().eIsProxy() && ! !pList.contains(pi.getImportedPackage().eResource().getURI().toString())) ! { ! EObject o = copier.copy(pi); ! newModel.getPackageImports().add(o); ! } ! else ! { ! // System.out.println("Ignoring "+((InternalEObject)pi.getImportedPackage()).eProxyURI().toString()); ! continue; ! } ! } ! ! if ((modelDesc != null) & !modelDesc.equals("")) ! { ! Comment newComment = newModel.createOwnedComment(UML2Package.eINSTANCE.getComment()); ! newComment.setBody(modelDesc); ! Stereotype s = newComment.getApplicableStereotype("Default::documentation"); ! if (s != null) ! { ! newComment.apply(s); ! } ! } ! monitor.worked(2); ! Iterator keys = rqdElements.keySet().iterator(); ! while (keys.hasNext()) ! { ! NamedElement el = (NamedElement)rqdElements.get(keys.next()); ! Package owner = addPackageHierarchy( ! basePackage, ! el); ! EObject o = copier.copy(el); ! deleteUnneededAssocEnds( ! el, ! o, ! rqdElements); ! owner.getOwnedMembers().add(o); ! } ! copier.copyReferences(); ! Stereotype stereo = newModel.getApplicableStereotype("MODEL::Version"); ! String version = (String)model.getRealModel().getValue( ! stereo, ! "value"); ! String derived = "Derived from " + version.replaceAll( ! "\\$", ! ""); ! // newModel.apply(stereo); ! newModel.setValue( ! stereo, ! "value", ! derived); ! monitor.worked(3); ! monitor.done(); ! return newModel; ! } ! private Package createPackageHierachy( ! String basePackage, ! Package parent) ! { ! String top = basePackage.split("\\.")[0]; ! Package newPackage = (Package)parent.createOwnedMember(UML2Package.eINSTANCE.getPackage()); ! newPackage.setName(top); ! if (top.equals(basePackage)) ! { ! return newPackage; ! } ! else ! { ! String rest = basePackage.substring( ! top.length() + 1, ! basePackage.length()); ! return createPackageHierachy( ! rest, ! newPackage); ! } ! } ! private void deleteUnneededAssocEnds( ! NamedElement sourceEl, ! EObject targetEl, ! TreeMap rqdElements) ! { ! if (sourceEl instanceof Class) ! { ! Class src = (Class)sourceEl; ! Class tgt = (Class)targetEl; ! for (Iterator i = src.getOwnedAttributes().iterator(); i.hasNext();) ! { ! Property p = (Property)i.next(); ! if (p.getAssociation() == null) ! { ! continue; ! } ! if (!rqdElements.containsKey(p.getAssociation().getQualifiedName())) ! { ! Property excessProp = tgt.getAttribute(p.getName()); ! tgt.getOwnedAttributes().remove(excessProp); ! } ! } ! } ! if (sourceEl instanceof Interface) ! { ! Interface src = (Interface)sourceEl; ! Interface tgt = (Interface)targetEl; ! for (Iterator i = src.getOwnedAttributes().iterator(); i.hasNext();) ! { ! Property p = (Property)i.next(); ! if (p.getAssociation() == null) ! { ! continue; ! } ! if (!rqdElements.containsKey(p.getAssociation().getQualifiedName())) ! { ! Property excessProp = tgt.getAttribute(p.getName()); ! tgt.getOwnedAttributes().remove(excessProp); ! } ! } ! } ! } ! /** ! * @param basePackage ! * @param el ! * @return ! */ ! private Package addPackageHierarchy( ! Package basePackage, ! NamedElement el) ! { ! String qName = el.getQualifiedName(); ! String[] str = qName.split("::"); ! if (str.length <= 1) ! { ! return basePackage; ! } ! Package owner = basePackage; ! for (int i = 1; i < (str.length - 1); i++) ! { ! if (owner.getNestedPackage(str[i]) == null) ! { ! Package p = UML2Factory.eINSTANCE.createPackage(); ! p.setName(str[i]); ! owner.getOwnedMembers().add(p); ! owner = p; ! } ! else ! { ! owner = owner.getNestedPackage(str[i]); ! } ! } ! return owner; ! } ! /** ! * @param monitor ! * @param model ! */ ! public void saveModel( ! IProgressMonitor monitor, ! Model model, ! String file) ! { ! monitor.subTask("Saving file"); ! URI fileUri = URI.createFileURI(file); ! Resource resource1 = new ResourceSetImpl().createResource(fileUri); ! resource1.getContents().add(model); ! try ! { ! resource1.save(null); ! } ! catch (IOException e) ! { ! e.printStackTrace(); ! } ! monitor.worked(1); ! } ! /** ! * Check theClass for dependencies on other classes (other than superclass and add them to rqdElements ! * @param rqdElements ! * @param theElement ! * @throws ModelTransformationException ! */ ! private void addDependencies( ! TreeMap rqdElements, ! Classifier theElement, ! boolean ignoreSuper) ! throws ModelTransformationException ! { ! String qName = theElement.getQualifiedName(); ! if (!rqdElements.containsKey(qName)) ! { ! rqdElements.put( ! qName, ! theElement); ! } ! else ! { ! return; ! } ! //if this is a complex type add the subtypes and their dependencies ... ! if (theElement.getAppliedStereotype("MODEL::TypeDefinition") != null) ! { ! ArrayList a = UmlUtilities.getSpecializations(theElement); ! Iterator i = a.iterator(); ! while (i.hasNext()) ! { ! Classifier s = (Classifier)i.next(); ! if (!rqdElements.containsKey(s.getQualifiedName())) ! { ! addDependencies( ! rqdElements, ! s, ! true); ! } ! } ! } ! if (theElement instanceof Class || theElement instanceof Interface) ! { ! //add the superclass ! if (!ignoreSuper) ! { ! Classifier sc = (Classifier)UmlUtilities.getGeneral(theElement); ! if (sc != null) ! { ! addDependencies( ! rqdElements, ! sc, ! false); ! } ! } ! ! Iterator props = null; ! Iterator methods = null; ! if (theElement instanceof Class){ ! Class c = (Class)theElement; ! props = UmlUtilities.getProperties(c.getAttributes(),c.getInheritedMembers(),false); ! methods = UmlUtilities.getMethods(c.getOwnedOperations(),c.getInheritedMembers(),false); ! } ! if (theElement instanceof Interface){ ! Interface intfc = (Interface)theElement; ! props = UmlUtilities.getProperties(intfc.getAttributes(),intfc.getInheritedMembers(),false); ! methods = UmlUtilities.getMethods(intfc.getOwnedOperations(),intfc.getInheritedMembers(),false); ! } ! ! while (props.hasNext()) ! { ! Property p = (Property)props.next(); ! // ignore associations for now. ! if (p.getAssociation() != null) ! { ! continue; ! } ! Type t = p.getType(); ! if (t instanceof PrimitiveType) ! { ! continue; ! } ! if (t == null) ! throw new ModelTransformationException("Type of "+p.getQualifiedName()+" is null"); ! ! String tQname = t.getQualifiedName(); ! if (t instanceof Classifier) ! { ! // if (!rqdElements.containsKey(tQname)) { ! // rqdElements.put(tQname, t); ! // } ! addDependencies( ! rqdElements, ! (Classifier)t, ! false); ! } ! if (t instanceof Enumeration) ! { ! if (!rqdElements.containsKey(tQname)) ! { ! rqdElements.put( ! tQname, ! t); ! } ! Enumeration en = (Enumeration)t; ! while (UmlUtilities.getGeneral(en) != null) ! { ! en = (Enumeration)UmlUtilities.getGeneral(en); ! if (!rqdElements.containsKey(en.getQualifiedName())) ! { ! rqdElements.put( ! en.getQualifiedName(), ! en); ! } ! } ! } ! // if (t instanceof DataType) { ! // if (!rqdElements.containsKey(tQname)) { ! // rqdElements.put(tQname, t); ! // } ! // } ! } ! while (methods.hasNext()) ! { ! Operation theMethod = (Operation)methods.next(); ! Type mt = theMethod.getType(); ! if (mt != null && !(mt instanceof PrimitiveType) ) ! { ! if (mt instanceof Enumeration && !rqdElements.containsKey(mt.getQualifiedName())) ! { ! rqdElements.put( ! mt.getQualifiedName(), ! mt); ! } ! if (mt instanceof Classifier) ! { ! addDependencies( ! rqdElements, ! (Classifier)mt, ! false); ! } ! } ! Iterator p = theMethod.getOwnedParameters().iterator(); ! while (p.hasNext()) ! { ! Parameter param = (Parameter)p.next(); ! Type t = param.getType(); ! String pQname = t.getQualifiedName(); ! if (t instanceof PrimitiveType) ! { ! continue; ! } ! if (t instanceof Class) ! { ! // if (!rqdElements.containsKey(pQname)) ! // { ! // rqdElements.put( ! // pQname, ! // t); ! // } ! addDependencies( ! rqdElements, ! (Class)t, ! false); ! } ! if (t instanceof Enumeration) ! { ! if (!rqdElements.containsKey(pQname)) ! { ! rqdElements.put( ! pQname, ! t); ! } ! } ! if (t instanceof PrimitiveType) ! { ! continue; ! } ! if (t instanceof DataType) ! { ! if (!rqdElements.containsKey(pQname)) ! { ! rqdElements.put( ! pQname, ! t); ! } ! } ! } ! } ! } ! // and finally look at the MemberEnds if it is an association ! if (theElement instanceof Association) ! { ! Iterator ends = ((Association)theElement).getMemberEnds().iterator(); ! while (ends.hasNext()) ! { ! Property p = (Property)ends.next(); ! Type t = p.getType(); ! String pQname = t.getQualifiedName(); ! if (t instanceof Classifier) ! { ! // if (!rqdElements.containsKey(pQname)) ! // { ! // rqdElements.put( ! // pQname, ! // t); ! // } ! addDependencies( ! rqdElements, ! (Classifier)t, ! false); ! } ! else ! { ! throw new ModelTransformationException("AssociationEnd " + pQname + " not a class"); ! } ! } ! } ! } } \ No newline at end of file --- 54,476 ---- import org.eclipse.uml2.UML2Package; + public class SubModelGenerator { + public static SubModelGenerator INSTANCE = new SubModelGenerator(); private TreeMap rqdElements; ! /** ! * This method returns a new model that is a subset of ! * ! * @param model ! * @param classeNames ! * Iterator for required class names (each a string). ! * @return pointer to new model. ! * @throws IOException ! * @throws InterruptedException ! * @throws InvocationTargetException ! * @throws ModelTransformationException ! */ ! public Model getSubModel(Iterator classNames, ! IProgressMonitor parentMonitor, ModelModel model, String modelName, ! String modelDesc, String basePackageName) throws IOException, ! InvocationTargetException, InterruptedException, ! ModelTransformationException { ! IProgressMonitor monitor = new SubProgressMonitor(parentMonitor, 2); ! monitor.beginTask("Creating sub model", 3); ! rqdElements = new TreeMap(); ! // for each class add the class and any superclasses to the rqdClasses ! // treemap ! int n = 0; ! while (classNames.hasNext()) { ! n++; ! String cN = (String) classNames.next(); ! Classifier theElement = (Classifier) model.findRealElement(cN); ! if (theElement == null) { ! throw new ModelTransformationException(cN ! + " does not exist in model!"); ! } ! addDependencies(rqdElements, theElement, false); ! if (monitor.isCanceled()) { ! throw new InterruptedException(); ! } ! } ! monitor.worked(1); ! // now create the new model with the required elements. ! Copier copier = new Copier(); ! Model newModel = UML2Factory.eINSTANCE.createModel(); ! newModel.setName(modelName); ! Package basePackage = newModel; ! if (basePackageName != null && !basePackageName.equals("")) { ! basePackage = createPackageHierachy(basePackageName, newModel); ! } ! // add profile applications... ! ArrayList pList = new ArrayList(); ! for (Iterator p = model.getRealModel().getAppliedProfiles().iterator(); p ! .hasNext();) { ! ProfileApplication pa = (ProfileApplication) p.next(); ! if (!pa.getImportedProfile().eIsProxy()) { ! EObject o = copier.copy(pa); ! newModel.getAppliedProfiles().add(o); ! pList.add(pa.getImportedProfile().eResource().getURI() ! .toString()); ! } else { ! // System.out.println("Ignoring ! // "+((InternalEObject)pa.getImportedProfile()).eProxyURI().toString()); ! continue; ! } ! } ! // add packageImports... ! for (Iterator p = model.getRealModel().getPackageImports().iterator(); p ! .hasNext();) { ! PackageImport pi = (PackageImport) p.next(); ! if (!pi.getImportedPackage().eIsProxy() ! && !pList.contains(pi.getImportedPackage().eResource() ! .getURI().toString())) { ! EObject o = copier.copy(pi); ! newModel.getPackageImports().add(o); ! } else { ! // System.out.println("Ignoring ! // "+((InternalEObject)pi.getImportedPackage()).eProxyURI().toString()); ! continue; ! } ! } ! if ((modelDesc != null) & !modelDesc.equals("")) { ! Comment newComment = newModel ! .createOwnedComment(UML2Package.eINSTANCE.getComment()); ! newComment.setBody(modelDesc); ! Stereotype s = newComment ! .getApplicableStereotype("Default::documentation"); ! if (s != null) { ! newComment.apply(s); ! } ! } ! monitor.worked(2); ! Iterator keys = rqdElements.keySet().iterator(); ! while (keys.hasNext()) { ! NamedElement el = (NamedElement) rqdElements.get(keys.next()); ! Package owner = addPackageHierarchy(basePackage, el); ! EObject o = copier.copy(el); ! deleteUnneededAssocEnds(el, o, rqdElements); ! owner.getOwnedMembers().add(o); ! } ! copier.copyReferences(); ! Stereotype stereo = newModel.getApplicableStereotype("MODEL::Version"); ! String version = (String) model.getRealModel() ! .getValue(stereo, "value"); ! String derived = "Derived from " + version.replaceAll("\\$", ""); ! // newModel.apply(stereo); ! newModel.setValue(stereo, "value", derived); ! monitor.worked(3); ! monitor.done(); ! return newModel; ! } ! private Package createPackageHierachy(String basePackage, Package parent) { ! String top = basePackage.split("\\.")[0]; ! Package newPackage = (Package) parent ! .createOwnedMember(UML2Package.eINSTANCE.getPackage()); ! newPackage.setName(top); ! if (top.equals(basePackage)) { ! return newPackage; ! } else { ! String rest = basePackage.substring(top.length() + 1, basePackage ! .length()); ! return createPackageHierachy(rest, newPackage); ! } ! } ! private void deleteUnneededAssocEnds(NamedElement sourceEl, ! EObject targetEl, TreeMap rqdElements) { ! if (sourceEl instanceof Class) { ! Class src = (Class) sourceEl; ! Class tgt = (Class) targetEl; ! for (Iterator i = src.getOwnedAttributes().iterator(); i.hasNext();) { ! Property p = (Property) i.next(); ! if (p.getAssociation() == null) { ! continue; ! } ! if (!rqdElements.containsKey(p.getAssociation() ! .getQualifiedName())) { ! Property excessProp = tgt.getAttribute(p.getName()); ! tgt.getOwnedAttributes().remove(excessProp); ! } ! } ! } ! if (sourceEl instanceof Interface) { ! Interface src = (Interface) sourceEl; ! Interface tgt = (Interface) targetEl; ! for (Iterator i = src.getOwnedAttributes().iterator(); i.hasNext();) { ! Property p = (Property) i.next(); ! if (p.getAssociation() == null) { ! continue; ! } ! if (!rqdElements.containsKey(p.getAssociation() ! .getQualifiedName())) { ! Property excessProp = tgt.getAttribute(p.getName()); ! tgt.getOwnedAttributes().remove(excessProp); ! } ! } ! } ! } ! /** ! * @param basePackage ! * @param el ! * @return ! */ ! private Package addPackageHierarchy(Package basePackage, NamedElement el) { ! String qName = el.getQualifiedName(); ! String[] str = qName.split("::"); ! if (str.length <= 1) { ! return basePackage; ! } ! Package owner = basePackage; ! for (int i = 1; i < (str.length - 1); i++) { ! if (owner.getNestedPackage(str[i]) == null) { ! Package p = UML2Factory.eINSTANCE.createPackage(); ! p.setName(str[i]); ! owner.getOwnedMembers().add(p); ! owner = p; ! } else { ! owner = owner.getNestedPackage(str[i]); ! } ! } ! return owner; ! } ! /** ! * @param monitor ! * @param model ! */ ! public void saveModel(IProgressMonitor monitor, Model model, String file) { ! monitor.subTask("Saving file"); ! URI fileUri = URI.createFileURI(file); ! Resource resource1 = new ResourceSetImpl().createResource(fileUri); ! resource1.getContents().add(model); ! try { ! resource1.save(null); ! } catch (IOException e) { ! e.printStackTrace(); ! } ! monitor.worked(1); ! } ! /** ! * Check theClass for dependencies on other classes (other than superclass ! * and add them to rqdElements ! * ! * @param rqdElements ! * @param theElement ! * @throws ModelTransformationException ! */ ! private void addDependencies(TreeMap rqdElements, Classifier theElement, ! boolean ignoreSuper) throws ModelTransformationException { ! String qName = theElement.getQualifiedName(); ! if (!rqdElements.containsKey(qName)) { ! rqdElements.put(qName, theElement); ! } else { ! return; ! } ! // if this is a complex type add the subtypes and their dependencies ... ! if (theElement.getAppliedStereotype("MODEL::TypeDefinition") != null) { ! ArrayList a = UmlUtilities.getSpecializations(theElement); ! Iterator i = a.iterator(); ! while (i.hasNext()) { ! Classifier s = (Classifier) i.next(); ! if (!rqdElements.containsKey(s.getQualifiedName())) { ! addDependencies(rqdElements, s, true); ! } ! } ! } ! if (theElement instanceof Class || theElement instanceof Interface) { ! // add the superclass ! if (!ignoreSuper) { ! Classifier sc = (Classifier) UmlUtilities ! .getGeneral(theElement); ! if (sc != null) { ! addDependencies(rqdElements, sc, false); ! } ! } ! Iterator props = null; ! Iterator methods = null; ! if (theElement instanceof Class) { ! Class c = (Class) theElement; ! props = UmlUtilities.getProperties(c.getAttributes(), c ! .getInheritedMembers(), false); ! methods = UmlUtilities.getMethods(c.getOwnedOperations(), c ! .getInheritedMembers(), false); ! } ! if (theElement instanceof Interface) { ! Interface intfc = (Interface) theElement; ! props = UmlUtilities.getProperties(intfc.getAttributes(), intfc ! .getInheritedMembers(), false); ! methods = UmlUtilities.getMethods(intfc.getOwnedOperations(), ! intfc.getInheritedMembers(), false); ! } ! while (props.hasNext()) { ! Property p = (Property) props.next(); ! // ignore associations for now. ! if (p.getAssociation() != null) { ! continue; ! } ! Type t = p.getType(); ! if (t instanceof PrimitiveType) { ! continue; ! } ! if (t == null) ! throw new ModelTransformationException("Type of " ! + p.getQualifiedName() + " is null"); ! String tQname = t.getQualifiedName(); + if (t instanceof Classifier) { + // if (!rqdElements.containsKey(tQname)) { + // rqdElements.put(tQname, t); + // } + addDependencies(rqdElements, (Classifier) t, false); + } ! if (t instanceof Enumeration) { ! if (!rqdElements.containsKey(tQname)) { ! rqdElements.put(tQname, t); ! } ! Enumeration en = (Enumeration) t; ! while (UmlUtilities.getGeneral(en) != null) { ! en = (Enumeration) UmlUtilities.getGeneral(en); ! if (!rqdElements.containsKey(en.getQualifiedName())) { ! rqdElements.put(en.getQualifiedName(), en); ! } ! } ! } ! // if (t instanceof DataType) { ! // if (!rqdElements.containsKey(tQname)) { ! // rqdElements.put(tQname, t); ! // } ! // } ! } ! while (methods.hasNext()) { ! Operation theMethod = (Operation) methods.next(); ! Type mt = theMethod.getType(); ! if (mt != null && !(mt instanceof PrimitiveType)) { ! if (mt instanceof Enumeration ! && !rqdElements.containsKey(mt.getQualifiedName())) { ! rqdElements.put(mt.getQualifiedName(), mt); ! } ! if (mt instanceof Classifier) { ! addDependencies(rqdElements, (Classifier) mt, false); ! } ! } ! Iterator p = theMethod.getOwnedParameters().iterator(); ! while (p.hasNext()) { ! Parameter param = (Parameter) p.next(); ! Type t = param.getType(); ! String pQname = t.getQualifiedName(); ! if (t instanceof PrimitiveType) { ! continue; ! } ! if (t instanceof Class) { ! // if (!rqdElements.containsKey(pQname)) ! // { ! // rqdElements.put( ! // pQname, ! // t); ! // } ! addDependencies(rqdElements, (Class) t, false); ! } ! if (t instanceof Enumeration) { ! if (!rqdElements.containsKey(pQname)) { ! rqdElements.put(pQname, t); ! } ! } ! if (t instanceof PrimitiveType) { ! continue; ! } ! if (t instanceof DataType) { ! if (!rqdElements.containsKey(pQname)) { ! rqdElements.put(pQname, t); ! } ! } ! } ! } ! } ! ! // and finally look at the MemberEnds if it is an association ! if (theElement instanceof Association) { ! Iterator ends = ((Association) theElement).getMemberEnds() ! .iterator(); ! ! while (ends.hasNext()) { ! Property p = (Property) ends.next(); ! Type t = p.getType(); ! String pQname = t.getQualifiedName(); ! ! if (t instanceof Classifier) { ! // if (!rqdElements.containsKey(pQname)) ! // { ! // rqdElements.put( ! // pQname, ! // t); ! // } ! ! addDependencies(rqdElements, (Classifier) t, false); ! } else { ! throw new ModelTransformationException("AssociationEnd " ! + pQname + " not a class"); ! } ! } ! } ! } } \ No newline at end of file |
|
From: jistrawn <jis...@us...> - 2006-10-13 20:30:53
|
Update of /cvsroot/modelwizard/source/Chameleon Plugin/META-INF In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv6561/META-INF Modified Files: MANIFEST.MF Log Message: version 4.0.26 Index: MANIFEST.MF =================================================================== RCS file: /cvsroot/modelwizard/source/Chameleon Plugin/META-INF/MANIFEST.MF,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** MANIFEST.MF 26 Jul 2006 22:49:38 -0000 1.18 --- MANIFEST.MF 13 Oct 2006 20:30:49 -0000 1.19 *************** *** 2,6 **** Bundle-Name: Chameleon UML Model Plugin Bundle-SymbolicName: net.sourceforge.modelWizard.chameleon;singleton=true ! Bundle-Version: 4.0.25 Bundle-Vendor: Cisco Bundle-Localization: plugin --- 2,6 ---- Bundle-Name: Chameleon UML Model Plugin Bundle-SymbolicName: net.sourceforge.modelWizard.chameleon;singleton=true ! Bundle-Version: 4.0.26 Bundle-Vendor: Cisco Bundle-Localization: plugin |
|
From: jistrawn <jis...@us...> - 2006-10-13 20:30:20
|
Update of /cvsroot/modelwizard/source/Chameleon Feature In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv6480 Modified Files: feature.xml Log Message: version 4.0.26 Index: feature.xml =================================================================== RCS file: /cvsroot/modelwizard/source/Chameleon Feature/feature.xml,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** feature.xml 26 Jul 2006 22:52:49 -0000 1.15 --- feature.xml 13 Oct 2006 20:30:17 -0000 1.16 *************** *** 3,7 **** id="net.sourceforge.modelWizard.chameleon" label="Chameleon Model" ! version="4.0.25" provider-name="Cisco"> --- 3,7 ---- id="net.sourceforge.modelWizard.chameleon" label="Chameleon Model" ! version="4.0.26" provider-name="Cisco"> |
|
From: jistrawn <jis...@us...> - 2006-10-02 18:00:50
|
Update of /cvsroot/modelwizard/source/CIM V2 Plugin/META-INF In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv24009/META-INF Modified Files: MANIFEST.MF Log Message: version 1.0.10 Index: MANIFEST.MF =================================================================== RCS file: /cvsroot/modelwizard/source/CIM V2 Plugin/META-INF/MANIFEST.MF,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** MANIFEST.MF 5 May 2006 15:34:11 -0000 1.5 --- MANIFEST.MF 2 Oct 2006 18:00:40 -0000 1.6 *************** *** 3,7 **** Bundle-Name: CIM V2 Plug-in Bundle-SymbolicName: net.sourceforge.modelWizard.cimv2.Plugin; singleton:=true ! Bundle-Version: 1.0.9 Bundle-Activator: net.sourceforge.modelWizard.cimv2.Plugin Bundle-Vendor: Cisco --- 3,7 ---- Bundle-Name: CIM V2 Plug-in Bundle-SymbolicName: net.sourceforge.modelWizard.cimv2.Plugin; singleton:=true ! Bundle-Version: 1.0.10 Bundle-Activator: net.sourceforge.modelWizard.cimv2.Plugin Bundle-Vendor: Cisco |
|
From: jistrawn <jis...@us...> - 2006-10-02 17:49:57
|
Update of /cvsroot/modelwizard/source/Chameleon Documentation/META-INF In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv19415/META-INF Modified Files: MANIFEST.MF Log Message: version 4.0.4 Index: MANIFEST.MF =================================================================== RCS file: /cvsroot/modelwizard/source/Chameleon Documentation/META-INF/MANIFEST.MF,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** MANIFEST.MF 26 Jan 2006 16:23:50 -0000 1.3 --- MANIFEST.MF 2 Oct 2006 17:49:54 -0000 1.4 *************** *** 2,6 **** Bundle-Name: Chameleon Documentation Plugin Bundle-SymbolicName: net.sourceforge.modelWizard.chameleon.docs;singleton=true ! Bundle-Version: 4.0.3 Bundle-Vendor: cisco Bundle-Localization: plugin --- 2,6 ---- Bundle-Name: Chameleon Documentation Plugin Bundle-SymbolicName: net.sourceforge.modelWizard.chameleon.docs;singleton=true ! Bundle-Version: 4.0.4 Bundle-Vendor: cisco Bundle-Localization: plugin |
|
From: jistrawn <jis...@us...> - 2006-10-02 17:36:32
|
Update of /cvsroot/modelwizard/source/Chameleon Plugin/umlProfile In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv13960/umlProfile Modified Files: ModelPrimitiveTypes.library.uml2 Model.Profile.uml2 Log Message: updated for new release Index: Model.Profile.uml2 =================================================================== RCS file: /cvsroot/modelwizard/source/Chameleon Plugin/umlProfile/Model.Profile.uml2,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** Model.Profile.uml2 26 Jul 2006 22:49:38 -0000 1.18 --- Model.Profile.uml2 2 Oct 2006 17:36:25 -0000 1.19 *************** *** 249,252 **** --- 249,255 ---- <eAnnotations xmi:id="_tglrUcS7EdqBWLbsQimBoQ" source="stereotype" references="_frI-cMS7EdqBWLbsQimBoQ"/> </eClassifiers> + <eClassifiers xmi:type="ecore:EClass" xmi:id="_pDqDYE4rEdunmouyEGOmDA" name="MODEL__Stateful"> + <eAnnotations xmi:id="_pDqDYU4rEdunmouyEGOmDA" source="stereotype" references="_mOfCgE4qEdunmouyEGOmDA"/> + </eClassifiers> </contents> <contents xmi:type="ecore:EPackage" xmi:id="_PG2JhfVfEdmX2r2IirNfog" name="MODEL_24" nsURI="http:///_iEIkYPVdEdmX2r2IirNfog.profile.uml2" nsPrefix="MODEL_24"> *************** *** 2924,2926 **** --- 2927,2939 ---- </nestedClassifier> </ownedMember> + <ownedMember xmi:type="uml:Stereotype" xmi:id="_mOfCgE4qEdunmouyEGOmDA" name="Stateful"> + <ownedAttribute xmi:id="_mOfCgU4qEdunmouyEGOmDA" name="base$Interface" association="_mOfCgk4qEdunmouyEGOmDA"> + <type xmi:type="uml:Class" href="pathmap://UML2_METAMODELS/UML2.metamodel.uml2#_m9VJoq86EdiEh75YJ_3n8g"/> + </ownedAttribute> + <nestedClassifier xmi:type="uml:Extension" xmi:id="_mOfCgk4qEdunmouyEGOmDA" name="Interface_Stateful" memberEnd="_mOfCg04qEdunmouyEGOmDA _mOfCgU4qEdunmouyEGOmDA"> + <ownedEnd xmi:type="uml:ExtensionEnd" xmi:id="_mOfCg04qEdunmouyEGOmDA" name="extension$Interface" type="_mOfCgE4qEdunmouyEGOmDA" association="_mOfCgk4qEdunmouyEGOmDA" aggregation="composite"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_mOfChE4qEdunmouyEGOmDA"/> + </ownedEnd> + </nestedClassifier> + </ownedMember> </uml:Profile> Index: ModelPrimitiveTypes.library.uml2 =================================================================== RCS file: /cvsroot/modelwizard/source/Chameleon Plugin/umlProfile/ModelPrimitiveTypes.library.uml2,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** ModelPrimitiveTypes.library.uml2 26 Jul 2006 22:49:38 -0000 1.6 --- ModelPrimitiveTypes.library.uml2 2 Oct 2006 17:36:25 -0000 1.7 *************** *** 61,63 **** --- 61,64 ---- <ownedMember xmi:type="uml:PrimitiveType" xmi:id="_zOMR0DV1EdqkfsKh_iV0hA" name="hexBinary"/> <ownedMember xmi:type="uml:PrimitiveType" xmi:id="_J5EcYcMSEdqF8NcFDVYGwQ" name="void"/> + <ownedMember xmi:type="uml:PrimitiveType" xmi:id="_WOpg0B5KEduwmL3AxWhksg" name="blob"/> </uml:Model> |
|
From: jistrawn <jis...@us...> - 2006-10-02 17:30:06
|
Update of /cvsroot/modelwizard/source/Chameleon Plugin In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv11077 Modified Files: plugin.xml Log Message: removed compare functionality Index: plugin.xml =================================================================== RCS file: /cvsroot/modelwizard/source/Chameleon Plugin/plugin.xml,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** plugin.xml 19 Apr 2006 21:26:27 -0000 1.9 --- plugin.xml 2 Oct 2006 17:29:59 -0000 1.10 *************** *** 3,35 **** <plugin > <extension - point="org.eclipse.ui.popupMenus"> - <objectContribution - objectClass="org.eclipse.core.resources.IFile" - nameFilter="*.emx" - id="net.sourceforge.modelWizard.chameleon.comparePopUp"> - <action - class="net.sourceforge.modelWizard.chameleon.actions.CompareAction" - enablesFor="2" - helpContextId="com.cisco.nm.cto.cimWizard.docs.cimcxCompareHelpId" - icon="icons/compare.gif" - id="com.cisco.nm.cto.cimcx.comparePopUp" - label="Model CR Compare" - menubarPath="compareWithMenu/compareWithGroup" - tooltip="Compare two UML models for use in a model CR."> - </action> - </objectContribution> - - </extension> - <extension - point="org.eclipse.ui.editors" > - <editor - class="net.sourceforge.modelWizard.chameleon.compare.CompareEditor" - contributorClass="net.sourceforge.modelWizard.chameleon.compare.CompareEditorActionBarContributor" - icon="icons/compare.gif" - id="net.sourceforge.modelWizard.chameleon.compare.CompareEditor" - name="Model Compare"> - </editor> - </extension> - <extension point="net.sourceforge.modelWizard.modelAbstraction"> <model --- 3,6 ---- |
Update of /cvsroot/modelwizard/source/Chameleon Plugin/src/net/sourceforge/modelWizard/chameleon/XmlOut/util In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv10594/src/net/sourceforge/modelWizard/chameleon/XmlOut/util Modified Files: XmlOutSwitch.java XmlOutResourceImpl.java XmlOutResourceFactoryImpl.java XmlOutAdapterFactory.java Log Message: removed unused imports Index: XmlOutResourceImpl.java =================================================================== RCS file: /cvsroot/modelwizard/source/Chameleon Plugin/src/net/sourceforge/modelWizard/chameleon/XmlOut/util/XmlOutResourceImpl.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** XmlOutResourceImpl.java 15 Nov 2005 20:38:16 -0000 1.1 --- XmlOutResourceImpl.java 2 Oct 2006 17:28:25 -0000 1.2 *************** *** 1,39 **** ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.chameleon.XmlOut.util; ! ! import org.eclipse.emf.common.util.URI; ! ! import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; ! ! /** ! * <!-- begin-user-doc --> ! * The <b>Resource </b> associated with the package. ! * <!-- end-user-doc --> ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.util.XmlOutResourceFactoryImpl ! * @generated ! */ ! public class XmlOutResourceImpl extends XMLResourceImpl { ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public static final String copyright = "(c) Cisco Systems Inc 2005"; ! ! /** ! * Creates an instance of the resource. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param uri the URI of the new resource. ! * @generated ! */ ! public XmlOutResourceImpl(URI uri) { ! super(uri); ! } ! ! } //XmlOutResourceImpl --- 1,38 ---- ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.chameleon.XmlOut.util; ! ! import org.eclipse.emf.common.util.URI; ! import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; ! ! /** ! * <!-- begin-user-doc --> ! * The <b>Resource </b> associated with the package. ! * <!-- end-user-doc --> ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.util.XmlOutResourceFactoryImpl ! * @generated ! */ ! public class XmlOutResourceImpl extends XMLResourceImpl { ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public static final String copyright = "(c) Cisco Systems Inc 2005"; ! ! /** ! * Creates an instance of the resource. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param uri the URI of the new resource. ! * @generated ! */ ! public XmlOutResourceImpl(URI uri) { ! super(uri); ! } ! ! } //XmlOutResourceImpl Index: XmlOutAdapterFactory.java =================================================================== RCS file: /cvsroot/modelwizard/source/Chameleon Plugin/src/net/sourceforge/modelWizard/chameleon/XmlOut/util/XmlOutAdapterFactory.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** XmlOutAdapterFactory.java 15 Nov 2005 20:38:16 -0000 1.1 --- XmlOutAdapterFactory.java 2 Oct 2006 17:28:25 -0000 1.2 *************** *** 1,263 **** ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.chameleon.XmlOut.util; ! ! import net.sourceforge.modelWizard.chameleon.XmlOut.*; ! ! import org.eclipse.emf.common.notify.Adapter; ! import org.eclipse.emf.common.notify.Notifier; ! ! import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; ! ! import org.eclipse.emf.ecore.EObject; ! ! /** ! * <!-- begin-user-doc --> ! * The <b>Adapter Factory</b> for the model. ! * It provides an adapter <code>createXXX</code> method for each class of the model. ! * <!-- end-user-doc --> ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage ! * @generated ! */ ! public class XmlOutAdapterFactory extends AdapterFactoryImpl { ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public static final String copyright = "(c) Cisco Systems Inc 2005"; ! ! /** ! * The cached model package. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! protected static XmlOutPackage modelPackage; ! ! /** ! * Creates an instance of the adapter factory. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public XmlOutAdapterFactory() { ! if (modelPackage == null) { ! modelPackage = XmlOutPackage.eINSTANCE; ! } ! } ! ! /** ! * Returns whether this factory is applicable for the type of the object. ! * <!-- begin-user-doc --> ! * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. ! * <!-- end-user-doc --> ! * @return whether this factory is applicable for the type of the object. ! * @generated ! */ ! public boolean isFactoryForType(Object object) { ! if (object == modelPackage) { ! return true; ! } ! if (object instanceof EObject) { ! return ((EObject)object).eClass().getEPackage() == modelPackage; ! } ! return false; ! } ! ! /** ! * The switch the delegates to the <code>createXXX</code> methods. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! protected XmlOutSwitch modelSwitch = ! new XmlOutSwitch() { ! public Object caseCimClass(CimClass object) { ! return createCimClassAdapter(); ! } ! public Object caseCimEnumeration(CimEnumeration object) { ! return createCimEnumerationAdapter(); ! } ! public Object caseCimMethod(CimMethod object) { ! return createCimMethodAdapter(); ! } ! public Object caseCimPackage(CimPackage object) { ! return createCimPackageAdapter(); ! } ! public Object caseCimParameter(CimParameter object) { ! return createCimParameterAdapter(); ! } ! public Object caseCimProperty(CimProperty object) { ! return createCimPropertyAdapter(); ! } ! public Object caseCimQualifier(CimQualifier object) { ! return createCimQualifierAdapter(); ! } ! public Object caseCimType(CimType object) { ! return createCimTypeAdapter(); ! } ! public Object caseDocumentRoot(DocumentRoot object) { ! return createDocumentRootAdapter(); ! } ! public Object defaultCase(EObject object) { ! return createEObjectAdapter(); ! } ! }; ! ! /** ! * Creates an adapter for the <code>target</code>. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param target the object to adapt. ! * @return the adapter for the <code>target</code>. ! * @generated ! */ ! public Adapter createAdapter(Notifier target) { ! return (Adapter)modelSwitch.doSwitch((EObject)target); ! } ! ! ! /** ! * Creates a new adapter for an object of class '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimClass <em>Cim Class</em>}'. ! * <!-- begin-user-doc --> ! * This default implementation returns null so that we can easily ignore cases; ! * it's useful to ignore a case when inheritance will catch all the cases anyway. ! * <!-- end-user-doc --> ! * @return the new adapter. ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.CimClass ! * @generated ! */ ! public Adapter createCimClassAdapter() { ! return null; ! } ! ! /** ! * Creates a new adapter for an object of class '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimEnumeration <em>Cim Enumeration</em>}'. ! * <!-- begin-user-doc --> ! * This default implementation returns null so that we can easily ignore cases; ! * it's useful to ignore a case when inheritance will catch all the cases anyway. ! * <!-- end-user-doc --> ! * @return the new adapter. ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.CimEnumeration ! * @generated ! */ ! public Adapter createCimEnumerationAdapter() { ! return null; ! } ! ! /** ! * Creates a new adapter for an object of class '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimMethod <em>Cim Method</em>}'. ! * <!-- begin-user-doc --> ! * This default implementation returns null so that we can easily ignore cases; ! * it's useful to ignore a case when inheritance will catch all the cases anyway. ! * <!-- end-user-doc --> ! * @return the new adapter. ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.CimMethod ! * @generated ! */ ! public Adapter createCimMethodAdapter() { ! return null; ! } ! ! /** ! * Creates a new adapter for an object of class '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimPackage <em>Cim Package</em>}'. ! * <!-- begin-user-doc --> ! * This default implementation returns null so that we can easily ignore cases; ! * it's useful to ignore a case when inheritance will catch all the cases anyway. ! * <!-- end-user-doc --> ! * @return the new adapter. ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.CimPackage ! * @generated ! */ ! public Adapter createCimPackageAdapter() { ! return null; ! } ! ! /** ! * Creates a new adapter for an object of class '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimParameter <em>Cim Parameter</em>}'. ! * <!-- begin-user-doc --> ! * This default implementation returns null so that we can easily ignore cases; ! * it's useful to ignore a case when inheritance will catch all the cases anyway. ! * <!-- end-user-doc --> ! * @return the new adapter. ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.CimParameter ! * @generated ! */ ! public Adapter createCimParameterAdapter() { ! return null; ! } ! ! /** ! * Creates a new adapter for an object of class '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty <em>Cim Property</em>}'. ! * <!-- begin-user-doc --> ! * This default implementation returns null so that we can easily ignore cases; ! * it's useful to ignore a case when inheritance will catch all the cases anyway. ! * <!-- end-user-doc --> ! * @return the new adapter. ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty ! * @generated ! */ ! public Adapter createCimPropertyAdapter() { ! return null; ! } ! ! /** ! * Creates a new adapter for an object of class '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimQualifier <em>Cim Qualifier</em>}'. ! * <!-- begin-user-doc --> ! * This default implementation returns null so that we can easily ignore cases; ! * it's useful to ignore a case when inheritance will catch all the cases anyway. ! * <!-- end-user-doc --> ! * @return the new adapter. ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.CimQualifier ! * @generated ! */ ! public Adapter createCimQualifierAdapter() { ! return null; ! } ! ! /** ! * Creates a new adapter for an object of class '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimType <em>Cim Type</em>}'. ! * <!-- begin-user-doc --> ! * This default implementation returns null so that we can easily ignore cases; ! * it's useful to ignore a case when inheritance will catch all the cases anyway. ! * <!-- end-user-doc --> ! * @return the new adapter. ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.CimType ! * @generated ! */ ! public Adapter createCimTypeAdapter() { ! return null; ! } ! ! /** ! * Creates a new adapter for an object of class '{@link net.sourceforge.modelWizard.chameleon.XmlOut.DocumentRoot <em>Document Root</em>}'. ! * <!-- begin-user-doc --> ! * This default implementation returns null so that we can easily ignore cases; ! * it's useful to ignore a case when inheritance will catch all the cases anyway. ! * <!-- end-user-doc --> ! * @return the new adapter. ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.DocumentRoot ! * @generated ! */ ! public Adapter createDocumentRootAdapter() { ! return null; ! } ! ! /** ! * Creates a new adapter for the default case. ! * <!-- begin-user-doc --> ! * This default implementation returns null. ! * <!-- end-user-doc --> ! * @return the new adapter. ! * @generated ! */ ! public Adapter createEObjectAdapter() { ! return null; ! } ! ! } //XmlOutAdapterFactory --- 1,270 ---- ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.chameleon.XmlOut.util; ! ! import net.sourceforge.modelWizard.chameleon.XmlOut.CimClass; ! import net.sourceforge.modelWizard.chameleon.XmlOut.CimEnumeration; ! import net.sourceforge.modelWizard.chameleon.XmlOut.CimMethod; ! import net.sourceforge.modelWizard.chameleon.XmlOut.CimPackage; ! import net.sourceforge.modelWizard.chameleon.XmlOut.CimParameter; ! import net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty; ! import net.sourceforge.modelWizard.chameleon.XmlOut.CimQualifier; ! import net.sourceforge.modelWizard.chameleon.XmlOut.CimType; ! import net.sourceforge.modelWizard.chameleon.XmlOut.DocumentRoot; ! import net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage; ! ! import org.eclipse.emf.common.notify.Adapter; ! import org.eclipse.emf.common.notify.Notifier; ! import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; ! import org.eclipse.emf.ecore.EObject; ! ! /** ! * <!-- begin-user-doc --> ! * The <b>Adapter Factory</b> for the model. ! * It provides an adapter <code>createXXX</code> method for each class of the model. ! * <!-- end-user-doc --> ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage ! * @generated ! */ ! public class XmlOutAdapterFactory extends AdapterFactoryImpl { ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public static final String copyright = "(c) Cisco Systems Inc 2005"; ! ! /** ! * The cached model package. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! protected static XmlOutPackage modelPackage; ! ! /** ! * Creates an instance of the adapter factory. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public XmlOutAdapterFactory() { ! if (modelPackage == null) { ! modelPackage = XmlOutPackage.eINSTANCE; ! } ! } ! ! /** ! * Returns whether this factory is applicable for the type of the object. ! * <!-- begin-user-doc --> ! * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. ! * <!-- end-user-doc --> ! * @return whether this factory is applicable for the type of the object. ! * @generated ! */ ! public boolean isFactoryForType(Object object) { ! if (object == modelPackage) { ! return true; ! } ! if (object instanceof EObject) { ! return ((EObject)object).eClass().getEPackage() == modelPackage; ! } ! return false; ! } ! ! /** ! * The switch the delegates to the <code>createXXX</code> methods. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! protected XmlOutSwitch modelSwitch = ! new XmlOutSwitch() { ! public Object caseCimClass(CimClass object) { ! return createCimClassAdapter(); ! } ! public Object caseCimEnumeration(CimEnumeration object) { ! return createCimEnumerationAdapter(); ! } ! public Object caseCimMethod(CimMethod object) { ! return createCimMethodAdapter(); ! } ! public Object caseCimPackage(CimPackage object) { ! return createCimPackageAdapter(); ! } ! public Object caseCimParameter(CimParameter object) { ! return createCimParameterAdapter(); ! } ! public Object caseCimProperty(CimProperty object) { ! return createCimPropertyAdapter(); ! } ! public Object caseCimQualifier(CimQualifier object) { ! return createCimQualifierAdapter(); ! } ! public Object caseCimType(CimType object) { ! return createCimTypeAdapter(); ! } ! public Object caseDocumentRoot(DocumentRoot object) { ! return createDocumentRootAdapter(); ! } ! public Object defaultCase(EObject object) { ! return createEObjectAdapter(); ! } ! }; ! ! /** ! * Creates an adapter for the <code>target</code>. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param target the object to adapt. ! * @return the adapter for the <code>target</code>. ! * @generated ! */ ! public Adapter createAdapter(Notifier target) { ! return (Adapter)modelSwitch.doSwitch((EObject)target); ! } ! ! ! /** ! * Creates a new adapter for an object of class '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimClass <em>Cim Class</em>}'. ! * <!-- begin-user-doc --> ! * This default implementation returns null so that we can easily ignore cases; ! * it's useful to ignore a case when inheritance will catch all the cases anyway. ! * <!-- end-user-doc --> ! * @return the new adapter. ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.CimClass ! * @generated ! */ ! public Adapter createCimClassAdapter() { ! return null; ! } ! ! /** ! * Creates a new adapter for an object of class '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimEnumeration <em>Cim Enumeration</em>}'. ! * <!-- begin-user-doc --> ! * This default implementation returns null so that we can easily ignore cases; ! * it's useful to ignore a case when inheritance will catch all the cases anyway. ! * <!-- end-user-doc --> ! * @return the new adapter. ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.CimEnumeration ! * @generated ! */ ! public Adapter createCimEnumerationAdapter() { ! return null; ! } ! ! /** ! * Creates a new adapter for an object of class '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimMethod <em>Cim Method</em>}'. ! * <!-- begin-user-doc --> ! * This default implementation returns null so that we can easily ignore cases; ! * it's useful to ignore a case when inheritance will catch all the cases anyway. ! * <!-- end-user-doc --> ! * @return the new adapter. ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.CimMethod ! * @generated ! */ ! public Adapter createCimMethodAdapter() { ! return null; ! } ! ! /** ! * Creates a new adapter for an object of class '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimPackage <em>Cim Package</em>}'. ! * <!-- begin-user-doc --> ! * This default implementation returns null so that we can easily ignore cases; ! * it's useful to ignore a case when inheritance will catch all the cases anyway. ! * <!-- end-user-doc --> ! * @return the new adapter. ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.CimPackage ! * @generated ! */ ! public Adapter createCimPackageAdapter() { ! return null; ! } ! ! /** ! * Creates a new adapter for an object of class '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimParameter <em>Cim Parameter</em>}'. ! * <!-- begin-user-doc --> ! * This default implementation returns null so that we can easily ignore cases; ! * it's useful to ignore a case when inheritance will catch all the cases anyway. ! * <!-- end-user-doc --> ! * @return the new adapter. ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.CimParameter ! * @generated ! */ ! public Adapter createCimParameterAdapter() { ! return null; ! } ! ! /** ! * Creates a new adapter for an object of class '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty <em>Cim Property</em>}'. ! * <!-- begin-user-doc --> ! * This default implementation returns null so that we can easily ignore cases; ! * it's useful to ignore a case when inheritance will catch all the cases anyway. ! * <!-- end-user-doc --> ! * @return the new adapter. ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty ! * @generated ! */ ! public Adapter createCimPropertyAdapter() { ! return null; ! } ! ! /** ! * Creates a new adapter for an object of class '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimQualifier <em>Cim Qualifier</em>}'. ! * <!-- begin-user-doc --> ! * This default implementation returns null so that we can easily ignore cases; ! * it's useful to ignore a case when inheritance will catch all the cases anyway. ! * <!-- end-user-doc --> ! * @return the new adapter. ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.CimQualifier ! * @generated ! */ ! public Adapter createCimQualifierAdapter() { ! return null; ! } ! ! /** ! * Creates a new adapter for an object of class '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimType <em>Cim Type</em>}'. ! * <!-- begin-user-doc --> ! * This default implementation returns null so that we can easily ignore cases; ! * it's useful to ignore a case when inheritance will catch all the cases anyway. ! * <!-- end-user-doc --> ! * @return the new adapter. ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.CimType ! * @generated ! */ ! public Adapter createCimTypeAdapter() { ! return null; ! } ! ! /** ! * Creates a new adapter for an object of class '{@link net.sourceforge.modelWizard.chameleon.XmlOut.DocumentRoot <em>Document Root</em>}'. ! * <!-- begin-user-doc --> ! * This default implementation returns null so that we can easily ignore cases; ! * it's useful to ignore a case when inheritance will catch all the cases anyway. ! * <!-- end-user-doc --> ! * @return the new adapter. ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.DocumentRoot ! * @generated ! */ ! public Adapter createDocumentRootAdapter() { ! return null; ! } ! ! /** ! * Creates a new adapter for the default case. ! * <!-- begin-user-doc --> ! * This default implementation returns null. ! * <!-- end-user-doc --> ! * @return the new adapter. ! * @generated ! */ ! public Adapter createEObjectAdapter() { ! return null; ! } ! ! } //XmlOutAdapterFactory Index: XmlOutSwitch.java =================================================================== RCS file: /cvsroot/modelwizard/source/Chameleon Plugin/src/net/sourceforge/modelWizard/chameleon/XmlOut/util/XmlOutSwitch.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** XmlOutSwitch.java 15 Nov 2005 20:38:16 -0000 1.1 --- XmlOutSwitch.java 2 Oct 2006 17:28:25 -0000 1.2 *************** *** 1,305 **** ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.chameleon.XmlOut.util; ! ! import java.util.List; ! ! import net.sourceforge.modelWizard.chameleon.XmlOut.*; ! ! import org.eclipse.emf.ecore.EClass; ! import org.eclipse.emf.ecore.EObject; ! ! /** ! * <!-- begin-user-doc --> ! * The <b>Switch</b> for the model's inheritance hierarchy. ! * It supports the call {@link #doSwitch(EObject) doSwitch(object)} ! * to invoke the <code>caseXXX</code> method for each class of the model, ! * starting with the actual class of the object ! * and proceeding up the inheritance hierarchy ! * until a non-null result is returned, ! * which is the result of the switch. ! * <!-- end-user-doc --> ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage ! * @generated ! */ ! public class XmlOutSwitch { ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public static final String copyright = "(c) Cisco Systems Inc 2005"; ! ! /** ! * The cached model package ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! protected static XmlOutPackage modelPackage; ! ! /** ! * Creates an instance of the switch. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public XmlOutSwitch() { ! if (modelPackage == null) { ! modelPackage = XmlOutPackage.eINSTANCE; ! } ! } ! ! /** ! * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @return the first non-null result returned by a <code>caseXXX</code> call. ! * @generated ! */ ! public Object doSwitch(EObject theEObject) { ! return doSwitch(theEObject.eClass(), theEObject); ! } ! ! /** ! * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @return the first non-null result returned by a <code>caseXXX</code> call. ! * @generated ! */ ! protected Object doSwitch(EClass theEClass, EObject theEObject) { ! if (theEClass.eContainer() == modelPackage) { ! return doSwitch(theEClass.getClassifierID(), theEObject); ! } ! else { ! List eSuperTypes = theEClass.getESuperTypes(); ! return ! eSuperTypes.isEmpty() ? ! defaultCase(theEObject) : ! doSwitch((EClass)eSuperTypes.get(0), theEObject); ! } ! } ! ! /** ! * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @return the first non-null result returned by a <code>caseXXX</code> call. ! * @generated ! */ ! protected Object doSwitch(int classifierID, EObject theEObject) { ! switch (classifierID) { ! case XmlOutPackage.CIM_CLASS: { ! CimClass cimClass = (CimClass)theEObject; ! Object result = caseCimClass(cimClass); ! if (result == null) result = defaultCase(theEObject); ! return result; ! } ! case XmlOutPackage.CIM_ENUMERATION: { ! CimEnumeration cimEnumeration = (CimEnumeration)theEObject; ! Object result = caseCimEnumeration(cimEnumeration); ! if (result == null) result = defaultCase(theEObject); ! return result; ! } ! case XmlOutPackage.CIM_METHOD: { ! CimMethod cimMethod = (CimMethod)theEObject; ! Object result = caseCimMethod(cimMethod); ! if (result == null) result = defaultCase(theEObject); ! return result; ! } ! case XmlOutPackage.CIM_PACKAGE: { ! CimPackage cimPackage = (CimPackage)theEObject; ! Object result = caseCimPackage(cimPackage); ! if (result == null) result = defaultCase(theEObject); ! return result; ! } ! case XmlOutPackage.CIM_PARAMETER: { ! CimParameter cimParameter = (CimParameter)theEObject; ! Object result = caseCimParameter(cimParameter); ! if (result == null) result = defaultCase(theEObject); ! return result; ! } ! case XmlOutPackage.CIM_PROPERTY: { ! CimProperty cimProperty = (CimProperty)theEObject; ! Object result = caseCimProperty(cimProperty); ! if (result == null) result = defaultCase(theEObject); ! return result; ! } ! case XmlOutPackage.CIM_QUALIFIER: { ! CimQualifier cimQualifier = (CimQualifier)theEObject; ! Object result = caseCimQualifier(cimQualifier); ! if (result == null) result = defaultCase(theEObject); ! return result; ! } ! case XmlOutPackage.CIM_TYPE: { ! CimType cimType = (CimType)theEObject; ! Object result = caseCimType(cimType); ! if (result == null) result = defaultCase(theEObject); ! return result; ! } ! case XmlOutPackage.DOCUMENT_ROOT: { ! DocumentRoot documentRoot = (DocumentRoot)theEObject; ! Object result = caseDocumentRoot(documentRoot); ! if (result == null) result = defaultCase(theEObject); ! return result; ! } ! default: return defaultCase(theEObject); ! } ! } ! ! /** ! * Returns the result of interpretting the object as an instance of '<em>Cim Class</em>'. ! * <!-- begin-user-doc --> ! * This implementation returns null; ! * returning a non-null result will terminate the switch. ! * <!-- end-user-doc --> ! * @param object the target of the switch. ! * @return the result of interpretting the object as an instance of '<em>Cim Class</em>'. ! * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) ! * @generated ! */ ! public Object caseCimClass(CimClass object) { ! return null; ! } ! ! /** ! * Returns the result of interpretting the object as an instance of '<em>Cim Enumeration</em>'. ! * <!-- begin-user-doc --> ! * This implementation returns null; ! * returning a non-null result will terminate the switch. ! * <!-- end-user-doc --> ! * @param object the target of the switch. ! * @return the result of interpretting the object as an instance of '<em>Cim Enumeration</em>'. ! * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) ! * @generated ! */ ! public Object caseCimEnumeration(CimEnumeration object) { ! return null; ! } ! ! /** ! * Returns the result of interpretting the object as an instance of '<em>Cim Method</em>'. ! * <!-- begin-user-doc --> ! * This implementation returns null; ! * returning a non-null result will terminate the switch. ! * <!-- end-user-doc --> ! * @param object the target of the switch. ! * @return the result of interpretting the object as an instance of '<em>Cim Method</em>'. ! * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) ! * @generated ! */ ! public Object caseCimMethod(CimMethod object) { ! return null; ! } ! ! /** ! * Returns the result of interpretting the object as an instance of '<em>Cim Package</em>'. ! * <!-- begin-user-doc --> ! * This implementation returns null; ! * returning a non-null result will terminate the switch. ! * <!-- end-user-doc --> ! * @param object the target of the switch. ! * @return the result of interpretting the object as an instance of '<em>Cim Package</em>'. ! * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) ! * @generated ! */ ! public Object caseCimPackage(CimPackage object) { ! return null; ! } ! ! /** ! * Returns the result of interpretting the object as an instance of '<em>Cim Parameter</em>'. ! * <!-- begin-user-doc --> ! * This implementation returns null; ! * returning a non-null result will terminate the switch. ! * <!-- end-user-doc --> ! * @param object the target of the switch. ! * @return the result of interpretting the object as an instance of '<em>Cim Parameter</em>'. ! * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) ! * @generated ! */ ! public Object caseCimParameter(CimParameter object) { ! return null; ! } ! ! /** ! * Returns the result of interpretting the object as an instance of '<em>Cim Property</em>'. ! * <!-- begin-user-doc --> ! * This implementation returns null; ! * returning a non-null result will terminate the switch. ! * <!-- end-user-doc --> ! * @param object the target of the switch. ! * @return the result of interpretting the object as an instance of '<em>Cim Property</em>'. ! * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) ! * @generated ! */ ! public Object caseCimProperty(CimProperty object) { ! return null; ! } ! ! /** ! * Returns the result of interpretting the object as an instance of '<em>Cim Qualifier</em>'. ! * <!-- begin-user-doc --> ! * This implementation returns null; ! * returning a non-null result will terminate the switch. ! * <!-- end-user-doc --> ! * @param object the target of the switch. ! * @return the result of interpretting the object as an instance of '<em>Cim Qualifier</em>'. ! * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) ! * @generated ! */ ! public Object caseCimQualifier(CimQualifier object) { ! return null; ! } ! ! /** ! * Returns the result of interpretting the object as an instance of '<em>Cim Type</em>'. ! * <!-- begin-user-doc --> ! * This implementation returns null; ! * returning a non-null result will terminate the switch. ! * <!-- end-user-doc --> ! * @param object the target of the switch. ! * @return the result of interpretting the object as an instance of '<em>Cim Type</em>'. ! * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) ! * @generated ! */ ! public Object caseCimType(CimType object) { ! return null; ! } ! ! /** ! * Returns the result of interpretting the object as an instance of '<em>Document Root</em>'. ! * <!-- begin-user-doc --> ! * This implementation returns null; ! * returning a non-null result will terminate the switch. ! * <!-- end-user-doc --> ! * @param object the target of the switch. ! * @return the result of interpretting the object as an instance of '<em>Document Root</em>'. ! * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) ! * @generated ! */ ! public Object caseDocumentRoot(DocumentRoot object) { ! return null; ! } ! ! /** ! * Returns the result of interpretting the object as an instance of '<em>EObject</em>'. ! * <!-- begin-user-doc --> ! * This implementation returns null; ! * returning a non-null result will terminate the switch, but this is the last case anyway. ! * <!-- end-user-doc --> ! * @param object the target of the switch. ! * @return the result of interpretting the object as an instance of '<em>EObject</em>'. ! * @see #doSwitch(org.eclipse.emf.ecore.EObject) ! * @generated ! */ ! public Object defaultCase(EObject object) { ! return null; ! } ! ! } //XmlOutSwitch --- 1,314 ---- ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.chameleon.XmlOut.util; ! ! import java.util.List; ! ! import net.sourceforge.modelWizard.chameleon.XmlOut.CimClass; ! import net.sourceforge.modelWizard.chameleon.XmlOut.CimEnumeration; ! import net.sourceforge.modelWizard.chameleon.XmlOut.CimMethod; ! import net.sourceforge.modelWizard.chameleon.XmlOut.CimPackage; ! import net.sourceforge.modelWizard.chameleon.XmlOut.CimParameter; ! import net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty; ! import net.sourceforge.modelWizard.chameleon.XmlOut.CimQualifier; ! import net.sourceforge.modelWizard.chameleon.XmlOut.CimType; ! import net.sourceforge.modelWizard.chameleon.XmlOut.DocumentRoot; ! import net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage; ! ! import org.eclipse.emf.ecore.EClass; ! import org.eclipse.emf.ecore.EObject; ! ! /** ! * <!-- begin-user-doc --> ! * The <b>Switch</b> for the model's inheritance hierarchy. ! * It supports the call {@link #doSwitch(EObject) doSwitch(object)} ! * to invoke the <code>caseXXX</code> method for each class of the model, ! * starting with the actual class of the object ! * and proceeding up the inheritance hierarchy ! * until a non-null result is returned, ! * which is the result of the switch. ! * <!-- end-user-doc --> ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage ! * @generated ! */ ! public class XmlOutSwitch { ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public static final String copyright = "(c) Cisco Systems Inc 2005"; ! ! /** ! * The cached model package ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! protected static XmlOutPackage modelPackage; ! ! /** ! * Creates an instance of the switch. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public XmlOutSwitch() { ! if (modelPackage == null) { ! modelPackage = XmlOutPackage.eINSTANCE; ! } ! } ! ! /** ! * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @return the first non-null result returned by a <code>caseXXX</code> call. ! * @generated ! */ ! public Object doSwitch(EObject theEObject) { ! return doSwitch(theEObject.eClass(), theEObject); ! } ! ! /** ! * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @return the first non-null result returned by a <code>caseXXX</code> call. ! * @generated ! */ ! protected Object doSwitch(EClass theEClass, EObject theEObject) { ! if (theEClass.eContainer() == modelPackage) { ! return doSwitch(theEClass.getClassifierID(), theEObject); ! } ! else { ! List eSuperTypes = theEClass.getESuperTypes(); ! return ! eSuperTypes.isEmpty() ? ! defaultCase(theEObject) : ! doSwitch((EClass)eSuperTypes.get(0), theEObject); ! } ! } ! ! /** ! * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @return the first non-null result returned by a <code>caseXXX</code> call. ! * @generated ! */ ! protected Object doSwitch(int classifierID, EObject theEObject) { ! switch (classifierID) { ! case XmlOutPackage.CIM_CLASS: { ! CimClass cimClass = (CimClass)theEObject; ! Object result = caseCimClass(cimClass); ! if (result == null) result = defaultCase(theEObject); ! return result; ! } ! case XmlOutPackage.CIM_ENUMERATION: { ! CimEnumeration cimEnumeration = (CimEnumeration)theEObject; ! Object result = caseCimEnumeration(cimEnumeration); ! if (result == null) result = defaultCase(theEObject); ! return result; ! } ! case XmlOutPackage.CIM_METHOD: { ! CimMethod cimMethod = (CimMethod)theEObject; ! Object result = caseCimMethod(cimMethod); ! if (result == null) result = defaultCase(theEObject); ! return result; ! } ! case XmlOutPackage.CIM_PACKAGE: { ! CimPackage cimPackage = (CimPackage)theEObject; ! Object result = caseCimPackage(cimPackage); ! if (result == null) result = defaultCase(theEObject); ! return result; ! } ! case XmlOutPackage.CIM_PARAMETER: { ! CimParameter cimParameter = (CimParameter)theEObject; ! Object result = caseCimParameter(cimParameter); ! if (result == null) result = defaultCase(theEObject); ! return result; ! } ! case XmlOutPackage.CIM_PROPERTY: { ! CimProperty cimProperty = (CimProperty)theEObject; ! Object result = caseCimProperty(cimProperty); ! if (result == null) result = defaultCase(theEObject); ! return result; ! } ! case XmlOutPackage.CIM_QUALIFIER: { ! CimQualifier cimQualifier = (CimQualifier)theEObject; ! Object result = caseCimQualifier(cimQualifier); ! if (result == null) result = defaultCase(theEObject); ! return result; ! } ! case XmlOutPackage.CIM_TYPE: { ! CimType cimType = (CimType)theEObject; ! Object result = caseCimType(cimType); ! if (result == null) result = defaultCase(theEObject); ! return result; ! } ! case XmlOutPackage.DOCUMENT_ROOT: { ! DocumentRoot documentRoot = (DocumentRoot)theEObject; ! Object result = caseDocumentRoot(documentRoot); ! if (result == null) result = defaultCase(theEObject); ! return result; ! } ! default: return defaultCase(theEObject); ! } ! } ! ! /** ! * Returns the result of interpretting the object as an instance of '<em>Cim Class</em>'. ! * <!-- begin-user-doc --> ! * This implementation returns null; ! * returning a non-null result will terminate the switch. ! * <!-- end-user-doc --> ! * @param object the target of the switch. ! * @return the result of interpretting the object as an instance of '<em>Cim Class</em>'. ! * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) ! * @generated ! */ ! public Object caseCimClass(CimClass object) { ! return null; ! } ! ! /** ! * Returns the result of interpretting the object as an instance of '<em>Cim Enumeration</em>'. ! * <!-- begin-user-doc --> ! * This implementation returns null; ! * returning a non-null result will terminate the switch. ! * <!-- end-user-doc --> ! * @param object the target of the switch. ! * @return the result of interpretting the object as an instance of '<em>Cim Enumeration</em>'. ! * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) ! * @generated ! */ ! public Object caseCimEnumeration(CimEnumeration object) { ! return null; ! } ! ! /** ! * Returns the result of interpretting the object as an instance of '<em>Cim Method</em>'. ! * <!-- begin-user-doc --> ! * This implementation returns null; ! * returning a non-null result will terminate the switch. ! * <!-- end-user-doc --> ! * @param object the target of the switch. ! * @return the result of interpretting the object as an instance of '<em>Cim Method</em>'. ! * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) ! * @generated ! */ ! public Object caseCimMethod(CimMethod object) { ! return null; ! } ! ! /** ! * Returns the result of interpretting the object as an instance of '<em>Cim Package</em>'. ! * <!-- begin-user-doc --> ! * This implementation returns null; ! * returning a non-null result will terminate the switch. ! * <!-- end-user-doc --> ! * @param object the target of the switch. ! * @return the result of interpretting the object as an instance of '<em>Cim Package</em>'. ! * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) ! * @generated ! */ ! public Object caseCimPackage(CimPackage object) { ! return null; ! } ! ! /** ! * Returns the result of interpretting the object as an instance of '<em>Cim Parameter</em>'. ! * <!-- begin-user-doc --> ! * This implementation returns null; ! * returning a non-null result will terminate the switch. ! * <!-- end-user-doc --> ! * @param object the target of the switch. ! * @return the result of interpretting the object as an instance of '<em>Cim Parameter</em>'. ! * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) ! * @generated ! */ ! public Object caseCimParameter(CimParameter object) { ! return null; ! } ! ! /** ! * Returns the result of interpretting the object as an instance of '<em>Cim Property</em>'. ! * <!-- begin-user-doc --> ! * This implementation returns null; ! * returning a non-null result will terminate the switch. ! * <!-- end-user-doc --> ! * @param object the target of the switch. ! * @return the result of interpretting the object as an instance of '<em>Cim Property</em>'. ! * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) ! * @generated ! */ ! public Object caseCimProperty(CimProperty object) { ! return null; ! } ! ! /** ! * Returns the result of interpretting the object as an instance of '<em>Cim Qualifier</em>'. ! * <!-- begin-user-doc --> ! * This implementation returns null; ! * returning a non-null result will terminate the switch. ! * <!-- end-user-doc --> ! * @param object the target of the switch. ! * @return the result of interpretting the object as an instance of '<em>Cim Qualifier</em>'. ! * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) ! * @generated ! */ ! public Object caseCimQualifier(CimQualifier object) { ! return null; ! } ! ! /** ! * Returns the result of interpretting the object as an instance of '<em>Cim Type</em>'. ! * <!-- begin-user-doc --> ! * This implementation returns null; ! * returning a non-null result will terminate the switch. ! * <!-- end-user-doc --> ! * @param object the target of the switch. ! * @return the result of interpretting the object as an instance of '<em>Cim Type</em>'. ! * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) ! * @generated ! */ ! public Object caseCimType(CimType object) { ! return null; ! } ! ! /** ! * Returns the result of interpretting the object as an instance of '<em>Document Root</em>'. ! * <!-- begin-user-doc --> ! * This implementation returns null; ! * returning a non-null result will terminate the switch. ! * <!-- end-user-doc --> ! * @param object the target of the switch. ! * @return the result of interpretting the object as an instance of '<em>Document Root</em>'. ! * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) ! * @generated ! */ ! public Object caseDocumentRoot(DocumentRoot object) { ! return null; ! } ! ! /** ! * Returns the result of interpretting the object as an instance of '<em>EObject</em>'. ! * <!-- begin-user-doc --> ! * This implementation returns null; ! * returning a non-null result will terminate the switch, but this is the last case anyway. ! * <!-- end-user-doc --> ! * @param object the target of the switch. ! * @return the result of interpretting the object as an instance of '<em>EObject</em>'. ! * @see #doSwitch(org.eclipse.emf.ecore.EObject) ! * @generated ! */ ! public Object defaultCase(EObject object) { ! return null; ! } ! ! } //XmlOutSwitch Index: XmlOutResourceFactoryImpl.java =================================================================== RCS file: /cvsroot/modelwizard/source/Chameleon Plugin/src/net/sourceforge/modelWizard/chameleon/XmlOut/util/XmlOutResourceFactoryImpl.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** XmlOutResourceFactoryImpl.java 15 Nov 2005 20:38:16 -0000 1.1 --- XmlOutResourceFactoryImpl.java 2 Oct 2006 17:28:25 -0000 1.2 *************** *** 1,78 **** ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.chameleon.XmlOut.util; ! ! import net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage; ! ! import org.eclipse.emf.common.util.URI; ! ! import org.eclipse.emf.ecore.EPackage; ! ! import org.eclipse.emf.ecore.impl.EPackageRegistryImpl; ! ! import org.eclipse.emf.ecore.resource.Resource; ! ! import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; ! ! import org.eclipse.emf.ecore.util.BasicExtendedMetaData; ! import org.eclipse.emf.ecore.util.ExtendedMetaData; ! ! import org.eclipse.emf.ecore.xmi.XMLResource; ! ! /** ! * <!-- begin-user-doc --> ! * The <b>Resource Factory</b> associated with the package. ! * <!-- end-user-doc --> ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.util.XmlOutResourceImpl ! * @generated ! */ ! public class XmlOutResourceFactoryImpl extends ResourceFactoryImpl { ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public static final String copyright = "(c) Cisco Systems Inc 2005"; ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! protected ExtendedMetaData extendedMetaData; ! ! /** ! * Creates an instance of the resource factory. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public XmlOutResourceFactoryImpl() { ! super(); ! extendedMetaData = new BasicExtendedMetaData(new EPackageRegistryImpl(EPackage.Registry.INSTANCE)); ! extendedMetaData.putPackage(null, XmlOutPackage.eINSTANCE); ! } ! ! /** ! * Creates an instance of the resource. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public Resource createResource(URI uri) { ! XMLResource result = new XmlOutResourceImpl(uri); ! result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, extendedMetaData); ! result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, extendedMetaData); ! ! result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); ! result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); ! ! result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); ! return result; ! } ! ! } //XmlOutResourceFactoryImpl --- 1,72 ---- ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.chameleon.XmlOut.util; ! ! import net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage; ! ! import org.eclipse.emf.common.util.URI; ! import org.eclipse.emf.ecore.EPackage; ! import org.eclipse.emf.ecore.impl.EPackageRegistryImpl; ! import org.eclipse.emf.ecore.resource.Resource; ! import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; ! import org.eclipse.emf.ecore.util.BasicExtendedMetaData; ! import org.eclipse.emf.ecore.util.ExtendedMetaData; ! import org.eclipse.emf.ecore.xmi.XMLResource; ! ! /** ! * <!-- begin-user-doc --> ! * The <b>Resource Factory</b> associated with the package. ! * <!-- end-user-doc --> ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.util.XmlOutResourceImpl ! * @generated ! */ ! public class XmlOutResourceFactoryImpl extends ResourceFactoryImpl { ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public static final String copyright = "(c) Cisco Systems Inc 2005"; ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! protected ExtendedMetaData extendedMetaData; ! ! /** ! * Creates an instance of the resource factory. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public XmlOutResourceFactoryImpl() { ! super(); ! extendedMetaData = new BasicExtendedMetaData(new EPackageRegistryImpl(EPackage.Registry.INSTANCE)); ! extendedMetaData.putPackage(null, XmlOutPackage.eINSTANCE); ! } ! ! /** ! * Creates an instance of the resource. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public Resource createResource(URI uri) { ! XMLResource result = new XmlOutResourceImpl(uri); ! result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, extendedMetaData); ! result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, extendedMetaData); ! ! result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); ! result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); ! ! result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); ! return result; ! } ! ! } //XmlOutResourceFactoryImpl |
|
From: jistrawn <jis...@us...> - 2006-10-02 17:28:04
|
Update of /cvsroot/modelwizard/source/Chameleon Plugin/src/net/sourceforge/modelWizard/chameleon/XmlOut/impl In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv10185/src/net/sourceforge/modelWizard/chameleon/XmlOut/impl Modified Files: XmlOutPackageImpl.java XmlOutFactoryImpl.java DocumentRootImpl.java CimEnumerationImpl.java CimClassImpl.java CimTypeImpl.java CimPropertyImpl.java CimQualifierImpl.java CimParameterImpl.java CimPackageImpl.java CimMethodImpl.java Log Message: removed unused imports Index: CimPropertyImpl.java =================================================================== RCS file: /cvsroot/modelwizard/source/Chameleon Plugin/src/net/sourceforge/modelWizard/chameleon/XmlOut/impl/CimPropertyImpl.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** CimPropertyImpl.java 15 Nov 2005 20:38:16 -0000 1.1 --- CimPropertyImpl.java 2 Oct 2006 17:27:59 -0000 1.2 *************** *** 1,618 **** ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.chameleon.XmlOut.impl; ! ! import java.util.Collection; ! [...1203 lines suppressed...] ! if (eIsProxy()) return super.toString(); ! ! StringBuffer result = new StringBuffer(super.toString()); ! result.append(" (description: "); ! result.append(description); ! result.append(", value: "); ! result.append(value); ! result.append(", id: "); ! result.append(id); ! result.append(", isEnd: "); ! if (isEndESet) result.append(isEnd); else result.append("<unset>"); ! result.append(", isLocal: "); ! if (isLocalESet) result.append(isLocal); else result.append("<unset>"); ! result.append(", name: "); ! result.append(name); ! result.append(')'); ! return result.toString(); ! } ! ! } //CimPropertyImpl Index: CimParameterImpl.java =================================================================== RCS file: /cvsroot/modelwizard/source/Chameleon Plugin/src/net/sourceforge/modelWizard/chameleon/XmlOut/impl/CimParameterImpl.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** CimParameterImpl.java 15 Nov 2005 20:38:16 -0000 1.1 --- CimParameterImpl.java 2 Oct 2006 17:27:59 -0000 1.2 *************** *** 1,405 **** ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.chameleon.XmlOut.impl; ! ! import java.util.Collection; ! ! import net.sourceforge.modelWizard.chameleon.XmlOut.CimParameter; ! import net.sourceforge.modelWizard.chameleon.XmlOut.CimQualifier; ! import net.sourceforge.modelWizard.chameleon.XmlOut.CimType; ! import net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage; ! ! import org.eclipse.emf.common.notify.Notification; ! import org.eclipse.emf.common.notify.NotificationChain; ! ! import org.eclipse.emf.common.util.EList; ! ! import org.eclipse.emf.ecore.EClass; ! import org.eclipse.emf.ecore.EStructuralFeature; ! import org.eclipse.emf.ecore.InternalEObject; ! ! import org.eclipse.emf.ecore.impl.ENotificationImpl; ! import org.eclipse.emf.ecore.impl.EObjectImpl; ! ! import org.eclipse.emf.ecore.util.EObjectContainmentEList; ! import org.eclipse.emf.ecore.util.InternalEList; ! ! /** ! * <!-- begin-user-doc --> ! * An implementation of the model object '<em><b>Cim Parameter</b></em>'. ! * <!-- end-user-doc --> ! * <p> ! * The following features are implemented: ! * <ul> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.impl.CimParameterImpl#getDescription <em>Description</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.impl.CimParameterImpl#getCimType <em>Cim Type</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.impl.CimParameterImpl#getCimQualifier <em>Cim Qualifier</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.impl.CimParameterImpl#getId <em>Id</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.impl.CimParameterImpl#getName <em>Name</em>}</li> ! * </ul> ! * </p> ! * ! * @generated ! */ ! public class CimParameterImpl extends EObjectImpl implements CimParameter { ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public static final String copyright = "(c) Cisco Systems Inc 2005"; ! ! /** ! * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @see #getDescription() ! * @generated ! * @ordered ! */ ! protected static final String DESCRIPTION_EDEFAULT = null; ! ! /** ! * The cached value of the '{@link #getDescription() <em>Description</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @see #getDescription() ! * @generated ! * @ordered ! */ ! protected String description = DESCRIPTION_EDEFAULT; ! ! /** ! * The cached value of the '{@link #getCimType() <em>Cim Type</em>}' containment reference. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @see #getCimType() ! * @generated ! * @ordered ! */ ! protected CimType cimType = null; ! ! /** ! * The cached value of the '{@link #getCimQualifier() <em>Cim Qualifier</em>}' containment reference list. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @see #getCimQualifier() ! * @generated ! * @ordered ! */ ! protected EList cimQualifier = null; ! ! /** ! * The default value of the '{@link #getId() <em>Id</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @see #getId() ! * @generated ! * @ordered ! */ ! protected static final String ID_EDEFAULT = null; ! ! /** ! * The cached value of the '{@link #getId() <em>Id</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @see #getId() ! * @generated ! * @ordered ! */ ! protected String id = ID_EDEFAULT; ! ! /** ! * The default value of the '{@link #getName() <em>Name</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @see #getName() ! * @generated ! * @ordered ! */ ! protected static final String NAME_EDEFAULT = null; ! ! /** ! * The cached value of the '{@link #getName() <em>Name</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @see #getName() ! * @generated ! * @ordered ! */ ! protected String name = NAME_EDEFAULT; ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! protected CimParameterImpl() { ! super(); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! protected EClass eStaticClass() { ! return XmlOutPackage.eINSTANCE.getCimParameter(); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public String getDescription() { ! return description; ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public void setDescription(String newDescription) { ! String oldDescription = description; ! description = newDescription; ! if (eNotificationRequired()) ! eNotify(new ENotificationImpl(this, Notification.SET, XmlOutPackage.CIM_PARAMETER__DESCRIPTION, oldDescription, description)); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public CimType getCimType() { ! return cimType; ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public NotificationChain basicSetCimType(CimType newCimType, NotificationChain msgs) { ! CimType oldCimType = cimType; ! cimType = newCimType; ! if (eNotificationRequired()) { ! ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, XmlOutPackage.CIM_PARAMETER__CIM_TYPE, oldCimType, newCimType); ! if (msgs == null) msgs = notification; else msgs.add(notification); ! } ! return msgs; ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public void setCimType(CimType newCimType) { ! if (newCimType != cimType) { ! NotificationChain msgs = null; ! if (cimType != null) ! msgs = ((InternalEObject)cimType).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - XmlOutPackage.CIM_PARAMETER__CIM_TYPE, null, msgs); ! if (newCimType != null) ! msgs = ((InternalEObject)newCimType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - XmlOutPackage.CIM_PARAMETER__CIM_TYPE, null, msgs); ! msgs = basicSetCimType(newCimType, msgs); ! if (msgs != null) msgs.dispatch(); ! } ! else if (eNotificationRequired()) ! eNotify(new ENotificationImpl(this, Notification.SET, XmlOutPackage.CIM_PARAMETER__CIM_TYPE, newCimType, newCimType)); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public EList getCimQualifier() { ! if (cimQualifier == null) { ! cimQualifier = new EObjectContainmentEList(CimQualifier.class, this, XmlOutPackage.CIM_PARAMETER__CIM_QUALIFIER); ! } ! return cimQualifier; ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public String getId() { ! return id; ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public void setId(String newId) { ! String oldId = id; ! id = newId; ! if (eNotificationRequired()) ! eNotify(new ENotificationImpl(this, Notification.SET, XmlOutPackage.CIM_PARAMETER__ID, oldId, id)); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public String getName() { ! return name; ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public void setName(String newName) { ! String oldName = name; ! name = newName; ! if (eNotificationRequired()) ! eNotify(new ENotificationImpl(this, Notification.SET, XmlOutPackage.CIM_PARAMETER__NAME, oldName, name)); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { ! if (featureID >= 0) { ! switch (eDerivedStructuralFeatureID(featureID, baseClass)) { ! case XmlOutPackage.CIM_PARAMETER__CIM_TYPE: ! return basicSetCimType(null, msgs); ! case XmlOutPackage.CIM_PARAMETER__CIM_QUALIFIER: ! return ((InternalEList)getCimQualifier()).basicRemove(otherEnd, msgs); ! default: ! return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); ! } ! } ! return eBasicSetContainer(null, featureID, msgs); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public Object eGet(EStructuralFeature eFeature, boolean resolve) { ! switch (eDerivedStructuralFeatureID(eFeature)) { ! case XmlOutPackage.CIM_PARAMETER__DESCRIPTION: ! return getDescription(); ! case XmlOutPackage.CIM_PARAMETER__CIM_TYPE: ! return getCimType(); ! case XmlOutPackage.CIM_PARAMETER__CIM_QUALIFIER: ! return getCimQualifier(); ! case XmlOutPackage.CIM_PARAMETER__ID: ! return getId(); ! case XmlOutPackage.CIM_PARAMETER__NAME: ! return getName(); ! } ! return eDynamicGet(eFeature, resolve); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public void eSet(EStructuralFeature eFeature, Object newValue) { ! switch (eDerivedStructuralFeatureID(eFeature)) { ! case XmlOutPackage.CIM_PARAMETER__DESCRIPTION: ! setDescription((String)newValue); ! return; ! case XmlOutPackage.CIM_PARAMETER__CIM_TYPE: ! setCimType((CimType)newValue); ! return; ! case XmlOutPackage.CIM_PARAMETER__CIM_QUALIFIER: ! getCimQualifier().clear(); ! getCimQualifier().addAll((Collection)newValue); ! return; ! case XmlOutPackage.CIM_PARAMETER__ID: ! setId((String)newValue); ! return; ! case XmlOutPackage.CIM_PARAMETER__NAME: ! setName((String)newValue); ! return; ! } ! eDynamicSet(eFeature, newValue); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public void eUnset(EStructuralFeature eFeature) { ! switch (eDerivedStructuralFeatureID(eFeature)) { ! case XmlOutPackage.CIM_PARAMETER__DESCRIPTION: ! setDescription(DESCRIPTION_EDEFAULT); ! return; ! case XmlOutPackage.CIM_PARAMETER__CIM_TYPE: ! setCimType((CimType)null); ! return; ! case XmlOutPackage.CIM_PARAMETER__CIM_QUALIFIER: ! getCimQualifier().clear(); ! return; ! case XmlOutPackage.CIM_PARAMETER__ID: ! setId(ID_EDEFAULT); ! return; ! case XmlOutPackage.CIM_PARAMETER__NAME: ! setName(NAME_EDEFAULT); ! return; ! } ! eDynamicUnset(eFeature); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public boolean eIsSet(EStructuralFeature eFeature) { ! switch (eDerivedStructuralFeatureID(eFeature)) { ! case XmlOutPackage.CIM_PARAMETER__DESCRIPTION: ! return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); ! case XmlOutPackage.CIM_PARAMETER__CIM_TYPE: ! return cimType != null; ! case XmlOutPackage.CIM_PARAMETER__CIM_QUALIFIER: ! return cimQualifier != null && !cimQualifier.isEmpty(); ! case XmlOutPackage.CIM_PARAMETER__ID: ! return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); ! case XmlOutPackage.CIM_PARAMETER__NAME: ! return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); ! } ! return eDynamicIsSet(eFeature); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public String toString() { ! if (eIsProxy()) return super.toString(); ! ! StringBuffer result = new StringBuffer(super.toString()); ! result.append(" (description: "); ! result.append(description); ! result.append(", id: "); ! result.append(id); ! result.append(", name: "); ! result.append(name); ! result.append(')'); ! return result.toString(); ! } ! ! } //CimParameterImpl --- 1,401 ---- ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.chameleon.XmlOut.impl; ! ! import java.util.Collection; ! ! import net.sourceforge.modelWizard.chameleon.XmlOut.CimParameter; ! import net.sourceforge.modelWizard.chameleon.XmlOut.CimQualifier; ! import net.sourceforge.modelWizard.chameleon.XmlOut.CimType; ! import net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage; ! ! import org.eclipse.emf.common.notify.Notification; ! import org.eclipse.emf.common.notify.NotificationChain; ! import org.eclipse.emf.common.util.EList; ! import org.eclipse.emf.ecore.EClass; ! import org.eclipse.emf.ecore.EStructuralFeature; ! import org.eclipse.emf.ecore.InternalEObject; ! import org.eclipse.emf.ecore.impl.ENotificationImpl; ! import org.eclipse.emf.ecore.impl.EObjectImpl; ! import org.eclipse.emf.ecore.util.EObjectContainmentEList; ! import org.eclipse.emf.ecore.util.InternalEList; ! ! /** ! * <!-- begin-user-doc --> ! * An implementation of the model object '<em><b>Cim Parameter</b></em>'. ! * <!-- end-user-doc --> ! * <p> ! * The following features are implemented: ! * <ul> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.impl.CimParameterImpl#getDescription <em>Description</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.impl.CimParameterImpl#getCimType <em>Cim Type</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.impl.CimParameterImpl#getCimQualifier <em>Cim Qualifier</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.impl.CimParameterImpl#getId <em>Id</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.impl.CimParameterImpl#getName <em>Name</em>}</li> ! * </ul> ! * </p> ! * ! * @generated ! */ ! public class CimParameterImpl extends EObjectImpl implements CimParameter { ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public static final String copyright = "(c) Cisco Systems Inc 2005"; ! ! /** ! * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @see #getDescription() ! * @generated ! * @ordered ! */ ! protected static final String DESCRIPTION_EDEFAULT = null; ! ! /** ! * The cached value of the '{@link #getDescription() <em>Description</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @see #getDescription() ! * @generated ! * @ordered ! */ ! protected String description = DESCRIPTION_EDEFAULT; ! ! /** ! * The cached value of the '{@link #getCimType() <em>Cim Type</em>}' containment reference. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @see #getCimType() ! * @generated ! * @ordered ! */ ! protected CimType cimType = null; ! ! /** ! * The cached value of the '{@link #getCimQualifier() <em>Cim Qualifier</em>}' containment reference list. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @see #getCimQualifier() ! * @generated ! * @ordered ! */ ! protected EList cimQualifier = null; ! ! /** ! * The default value of the '{@link #getId() <em>Id</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @see #getId() ! * @generated ! * @ordered ! */ ! protected static final String ID_EDEFAULT = null; ! ! /** ! * The cached value of the '{@link #getId() <em>Id</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @see #getId() ! * @generated ! * @ordered ! */ ! protected String id = ID_EDEFAULT; ! ! /** ! * The default value of the '{@link #getName() <em>Name</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @see #getName() ! * @generated ! * @ordered ! */ ! protected static final String NAME_EDEFAULT = null; ! ! /** ! * The cached value of the '{@link #getName() <em>Name</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @see #getName() ! * @generated ! * @ordered ! */ ! protected String name = NAME_EDEFAULT; ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! protected CimParameterImpl() { ! super(); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! protected EClass eStaticClass() { ! return XmlOutPackage.eINSTANCE.getCimParameter(); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public String getDescription() { ! return description; ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public void setDescription(String newDescription) { ! String oldDescription = description; ! description = newDescription; ! if (eNotificationRequired()) ! eNotify(new ENotificationImpl(this, Notification.SET, XmlOutPackage.CIM_PARAMETER__DESCRIPTION, oldDescription, description)); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public CimType getCimType() { ! return cimType; ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public NotificationChain basicSetCimType(CimType newCimType, NotificationChain msgs) { ! CimType oldCimType = cimType; ! cimType = newCimType; ! if (eNotificationRequired()) { ! ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, XmlOutPackage.CIM_PARAMETER__CIM_TYPE, oldCimType, newCimType); ! if (msgs == null) msgs = notification; else msgs.add(notification); ! } ! return msgs; ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public void setCimType(CimType newCimType) { ! if (newCimType != cimType) { ! NotificationChain msgs = null; ! if (cimType != null) ! msgs = ((InternalEObject)cimType).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - XmlOutPackage.CIM_PARAMETER__CIM_TYPE, null, msgs); ! if (newCimType != null) ! msgs = ((InternalEObject)newCimType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - XmlOutPackage.CIM_PARAMETER__CIM_TYPE, null, msgs); ! msgs = basicSetCimType(newCimType, msgs); ! if (msgs != null) msgs.dispatch(); ! } ! else if (eNotificationRequired()) ! eNotify(new ENotificationImpl(this, Notification.SET, XmlOutPackage.CIM_PARAMETER__CIM_TYPE, newCimType, newCimType)); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public EList getCimQualifier() { ! if (cimQualifier == null) { ! cimQualifier = new EObjectContainmentEList(CimQualifier.class, this, XmlOutPackage.CIM_PARAMETER__CIM_QUALIFIER); ! } ! return cimQualifier; ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public String getId() { ! return id; ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public void setId(String newId) { ! String oldId = id; ! id = newId; ! if (eNotificationRequired()) ! eNotify(new ENotificationImpl(this, Notification.SET, XmlOutPackage.CIM_PARAMETER__ID, oldId, id)); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public String getName() { ! return name; ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public void setName(String newName) { ! String oldName = name; ! name = newName; ! if (eNotificationRequired()) ! eNotify(new ENotificationImpl(this, Notification.SET, XmlOutPackage.CIM_PARAMETER__NAME, oldName, name)); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { ! if (featureID >= 0) { ! switch (eDerivedStructuralFeatureID(featureID, baseClass)) { ! case XmlOutPackage.CIM_PARAMETER__CIM_TYPE: ! return basicSetCimType(null, msgs); ! case XmlOutPackage.CIM_PARAMETER__CIM_QUALIFIER: ! return ((InternalEList)getCimQualifier()).basicRemove(otherEnd, msgs); ! default: ! return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); ! } ! } ! return eBasicSetContainer(null, featureID, msgs); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public Object eGet(EStructuralFeature eFeature, boolean resolve) { ! switch (eDerivedStructuralFeatureID(eFeature)) { ! case XmlOutPackage.CIM_PARAMETER__DESCRIPTION: ! return getDescription(); ! case XmlOutPackage.CIM_PARAMETER__CIM_TYPE: ! return getCimType(); ! case XmlOutPackage.CIM_PARAMETER__CIM_QUALIFIER: ! return getCimQualifier(); ! case XmlOutPackage.CIM_PARAMETER__ID: ! return getId(); ! case XmlOutPackage.CIM_PARAMETER__NAME: ! return getName(); ! } ! return eDynamicGet(eFeature, resolve); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public void eSet(EStructuralFeature eFeature, Object newValue) { ! switch (eDerivedStructuralFeatureID(eFeature)) { ! case XmlOutPackage.CIM_PARAMETER__DESCRIPTION: ! setDescription((String)newValue); ! return; ! case XmlOutPackage.CIM_PARAMETER__CIM_TYPE: ! setCimType((CimType)newValue); ! return; ! case XmlOutPackage.CIM_PARAMETER__CIM_QUALIFIER: ! getCimQualifier().clear(); ! getCimQualifier().addAll((Collection)newValue); ! return; ! case XmlOutPackage.CIM_PARAMETER__ID: ! setId((String)newValue); ! return; ! case XmlOutPackage.CIM_PARAMETER__NAME: ! setName((String)newValue); ! return; ! } ! eDynamicSet(eFeature, newValue); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public void eUnset(EStructuralFeature eFeature) { ! switch (eDerivedStructuralFeatureID(eFeature)) { ! case XmlOutPackage.CIM_PARAMETER__DESCRIPTION: ! setDescription(DESCRIPTION_EDEFAULT); ! return; ! case XmlOutPackage.CIM_PARAMETER__CIM_TYPE: ! setCimType((CimType)null); ! return; ! case XmlOutPackage.CIM_PARAMETER__CIM_QUALIFIER: ! getCimQualifier().clear(); ! return; ! case XmlOutPackage.CIM_PARAMETER__ID: ! setId(ID_EDEFAULT); ! return; ! case XmlOutPackage.CIM_PARAMETER__NAME: ! setName(NAME_EDEFAULT); ! return; ! } ! eDynamicUnset(eFeature); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public boolean eIsSet(EStructuralFeature eFeature) { ! switch (eDerivedStructuralFeatureID(eFeature)) { ! case XmlOutPackage.CIM_PARAMETER__DESCRIPTION: ! return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); ! case XmlOutPackage.CIM_PARAMETER__CIM_TYPE: ! return cimType != null; ! case XmlOutPackage.CIM_PARAMETER__CIM_QUALIFIER: ! return cimQualifier != null && !cimQualifier.isEmpty(); ! case XmlOutPackage.CIM_PARAMETER__ID: ! return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); ! case XmlOutPackage.CIM_PARAMETER__NAME: ! return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); ! } ! return eDynamicIsSet(eFeature); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public String toString() { ! if (eIsProxy()) return super.toString(); ! ! StringBuffer result = new StringBuffer(super.toString()); ! result.append(" (description: "); ! result.append(description); ! result.append(", id: "); ! result.append(id); ! result.append(", name: "); ! result.append(name); ! result.append(')'); ! return result.toString(); ! } ! ! } //CimParameterImpl Index: DocumentRootImpl.java =================================================================== RCS file: /cvsroot/modelwizard/source/Chameleon Plugin/src/net/sourceforge/modelWizard/chameleon/XmlOut/impl/DocumentRootImpl.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** DocumentRootImpl.java 15 Nov 2005 20:38:16 -0000 1.1 --- DocumentRootImpl.java 2 Oct 2006 17:27:58 -0000 1.2 *************** *** 1,292 **** ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.chameleon.XmlOut.impl; ! ! import java.util.Collection; ! ! import net.sourceforge.modelWizard.chameleon.XmlOut.CimPackage; ! import net.sourceforge.modelWizard.chameleon.XmlOut.DocumentRoot; ! import net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage; ! ! import org.eclipse.emf.common.notify.NotificationChain; ! ! import org.eclipse.emf.common.util.EMap; ! ! import org.eclipse.emf.ecore.EClass; ! import org.eclipse.emf.ecore.EStructuralFeature; ! import org.eclipse.emf.ecore.EcorePackage; ! import org.eclipse.emf.ecore.InternalEObject; ! ! import org.eclipse.emf.ecore.impl.EObjectImpl; ! import org.eclipse.emf.ecore.impl.EStringToStringMapEntryImpl; ! ! import org.eclipse.emf.ecore.util.BasicFeatureMap; ! import org.eclipse.emf.ecore.util.EcoreEMap; ! import org.eclipse.emf.ecore.util.FeatureMap; ! import org.eclipse.emf.ecore.util.InternalEList; ! ! /** ! * <!-- begin-user-doc --> ! * An implementation of the model object '<em><b>Document Root</b></em>'. ! * <!-- end-user-doc --> ! * <p> ! * The following features are implemented: ! * <ul> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.impl.DocumentRootImpl#getMixed <em>Mixed</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.impl.DocumentRootImpl#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.impl.DocumentRootImpl#getXSISchemaLocation <em>XSI Schema Location</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.impl.DocumentRootImpl#getCimCx <em>Cim Cx</em>}</li> ! * </ul> ! * </p> ! * ! * @generated ! */ ! public class DocumentRootImpl extends EObjectImpl implements DocumentRoot { ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public static final String copyright = "(c) Cisco Systems Inc 2005"; ! ! /** ! * The cached value of the '{@link #getMixed() <em>Mixed</em>}' attribute list. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @see #getMixed() ! * @generated ! * @ordered ! */ ! protected FeatureMap mixed = null; ! ! /** ! * The cached value of the '{@link #getXMLNSPrefixMap() <em>XMLNS Prefix Map</em>}' map. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @see #getXMLNSPrefixMap() ! * @generated ! * @ordered ! */ ! protected EMap xMLNSPrefixMap = null; ! ! /** ! * The cached value of the '{@link #getXSISchemaLocation() <em>XSI Schema Location</em>}' map. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @see #getXSISchemaLocation() ! * @generated ! * @ordered ! */ ! protected EMap xSISchemaLocation = null; ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! protected DocumentRootImpl() { ! super(); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! protected EClass eStaticClass() { ! return XmlOutPackage.eINSTANCE.getDocumentRoot(); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public FeatureMap getMixed() { ! if (mixed == null) { ! mixed = new BasicFeatureMap(this, XmlOutPackage.DOCUMENT_ROOT__MIXED); ! } ! return mixed; ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public EMap getXMLNSPrefixMap() { ! if (xMLNSPrefixMap == null) { ! xMLNSPrefixMap = new EcoreEMap(EcorePackage.eINSTANCE.getEStringToStringMapEntry(), EStringToStringMapEntryImpl.class, this, XmlOutPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP); ! } ! return xMLNSPrefixMap; ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public EMap getXSISchemaLocation() { ! if (xSISchemaLocation == null) { ! xSISchemaLocation = new EcoreEMap(EcorePackage.eINSTANCE.getEStringToStringMapEntry(), EStringToStringMapEntryImpl.class, this, XmlOutPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION); ! } ! return xSISchemaLocation; ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public CimPackage getCimCx() { ! return (CimPackage)getMixed().get(XmlOutPackage.eINSTANCE.getDocumentRoot_CimCx(), true); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public NotificationChain basicSetCimCx(CimPackage newCimCx, NotificationChain msgs) { ! return ((FeatureMap.Internal)getMixed()).basicAdd(XmlOutPackage.eINSTANCE.getDocumentRoot_CimCx(), newCimCx, msgs); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public void setCimCx(CimPackage newCimCx) { ! ((FeatureMap.Internal)getMixed()).set(XmlOutPackage.eINSTANCE.getDocumentRoot_CimCx(), newCimCx); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { ! if (featureID >= 0) { ! switch (eDerivedStructuralFeatureID(featureID, baseClass)) { ! case XmlOutPackage.DOCUMENT_ROOT__MIXED: ! return ((InternalEList)getMixed()).basicRemove(otherEnd, msgs); ! case XmlOutPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: ! return ((InternalEList)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs); ! case XmlOutPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: ! return ((InternalEList)getXSISchemaLocation()).basicRemove(otherEnd, msgs); ! case XmlOutPackage.DOCUMENT_ROOT__CIM_CX: ! return basicSetCimCx(null, msgs); ! default: ! return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); ! } ! } ! return eBasicSetContainer(null, featureID, msgs); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public Object eGet(EStructuralFeature eFeature, boolean resolve) { ! switch (eDerivedStructuralFeatureID(eFeature)) { ! case XmlOutPackage.DOCUMENT_ROOT__MIXED: ! return getMixed(); ! case XmlOutPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: ! return getXMLNSPrefixMap(); ! case XmlOutPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: ! return getXSISchemaLocation(); ! case XmlOutPackage.DOCUMENT_ROOT__CIM_CX: ! return getCimCx(); ! } ! return eDynamicGet(eFeature, resolve); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public void eSet(EStructuralFeature eFeature, Object newValue) { ! switch (eDerivedStructuralFeatureID(eFeature)) { ! case XmlOutPackage.DOCUMENT_ROOT__MIXED: ! getMixed().clear(); ! getMixed().addAll((Collection)newValue); ! return; ! case XmlOutPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: ! getXMLNSPrefixMap().clear(); ! getXMLNSPrefixMap().addAll((Collection)newValue); ! return; ! case XmlOutPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: ! getXSISchemaLocation().clear(); ! getXSISchemaLocation().addAll((Collection)newValue); ! return; ! case XmlOutPackage.DOCUMENT_ROOT__CIM_CX: ! setCimCx((CimPackage)newValue); ! return; ! } ! eDynamicSet(eFeature, newValue); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public void eUnset(EStructuralFeature eFeature) { ! switch (eDerivedStructuralFeatureID(eFeature)) { ! case XmlOutPackage.DOCUMENT_ROOT__MIXED: ! getMixed().clear(); ! return; ! case XmlOutPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: ! getXMLNSPrefixMap().clear(); ! return; ! case XmlOutPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: ! getXSISchemaLocation().clear(); ! return; ! case XmlOutPackage.DOCUMENT_ROOT__CIM_CX: ! setCimCx((CimPackage)null); ! return; ! } ! eDynamicUnset(eFeature); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public boolean eIsSet(EStructuralFeature eFeature) { ! switch (eDerivedStructuralFeatureID(eFeature)) { ! case XmlOutPackage.DOCUMENT_ROOT__MIXED: ! return mixed != null && !mixed.isEmpty(); ! case XmlOutPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: ! return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty(); ! case XmlOutPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: ! return xSISchemaLocation != null && !xSISchemaLocation.isEmpty(); ! case XmlOutPackage.DOCUMENT_ROOT__CIM_CX: ! return getCimCx() != null; ! } ! return eDynamicIsSet(eFeature); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public String toString() { ! if (eIsProxy()) return super.toString(); ! ! StringBuffer result = new StringBuffer(super.toString()); ! result.append(" (mixed: "); ! result.append(mixed); ! result.append(')'); ! return result.toString(); ! } ! ! } //DocumentRootImpl --- 1,288 ---- ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.chameleon.XmlOut.impl; ! ! import java.util.Collection; ! ! import net.sourceforge.modelWizard.chameleon.XmlOut.CimPackage; ! import net.sourceforge.modelWizard.chameleon.XmlOut.DocumentRoot; ! import net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage; ! ! import org.eclipse.emf.common.notify.NotificationChain; ! import org.eclipse.emf.common.util.EMap; ! import org.eclipse.emf.ecore.EClass; ! import org.eclipse.emf.ecore.EStructuralFeature; ! import org.eclipse.emf.ecore.EcorePackage; ! import org.eclipse.emf.ecore.InternalEObject; ! import org.eclipse.emf.ecore.impl.EObjectImpl; ! import org.eclipse.emf.ecore.impl.EStringToStringMapEntryImpl; ! import org.eclipse.emf.ecore.util.BasicFeatureMap; ! import org.eclipse.emf.ecore.util.EcoreEMap; ! import org.eclipse.emf.ecore.util.FeatureMap; ! import org.eclipse.emf.ecore.util.InternalEList; ! ! /** ! * <!-- begin-user-doc --> ! * An implementation of the model object '<em><b>Document Root</b></em>'. ! * <!-- end-user-doc --> ! * <p> ! * The following features are implemented: ! * <ul> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.impl.DocumentRootImpl#getMixed <em>Mixed</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.impl.DocumentRootImpl#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.impl.DocumentRootImpl#getXSISchemaLocation <em>XSI Schema Location</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.impl.DocumentRootImpl#getCimCx <em>Cim Cx</em>}</li> ! * </ul> ! * </p> ! * ! * @generated ! */ ! public class DocumentRootImpl extends EObjectImpl implements DocumentRoot { ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public static final String copyright = "(c) Cisco Systems Inc 2005"; ! ! /** ! * The cached value of the '{@link #getMixed() <em>Mixed</em>}' attribute list. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @see #getMixed() ! * @generated ! * @ordered ! */ ! protected FeatureMap mixed = null; ! ! /** ! * The cached value of the '{@link #getXMLNSPrefixMap() <em>XMLNS Prefix Map</em>}' map. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @see #getXMLNSPrefixMap() ! * @generated ! * @ordered ! */ ! protected EMap xMLNSPrefixMap = null; ! ! /** ! * The cached value of the '{@link #getXSISchemaLocation() <em>XSI Schema Location</em>}' map. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @see #getXSISchemaLocation() ! * @generated ! * @ordered ! */ ! protected EMap xSISchemaLocation = null; ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! protected DocumentRootImpl() { ! super(); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! protected EClass eStaticClass() { ! return XmlOutPackage.eINSTANCE.getDocumentRoot(); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public FeatureMap getMixed() { ! if (mixed == null) { ! mixed = new BasicFeatureMap(this, XmlOutPackage.DOCUMENT_ROOT__MIXED); ! } ! return mixed; ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public EMap getXMLNSPrefixMap() { ! if (xMLNSPrefixMap == null) { ! xMLNSPrefixMap = new EcoreEMap(EcorePackage.eINSTANCE.getEStringToStringMapEntry(), EStringToStringMapEntryImpl.class, this, XmlOutPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP); ! } ! return xMLNSPrefixMap; ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public EMap getXSISchemaLocation() { ! if (xSISchemaLocation == null) { ! xSISchemaLocation = new EcoreEMap(EcorePackage.eINSTANCE.getEStringToStringMapEntry(), EStringToStringMapEntryImpl.class, this, XmlOutPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION); ! } ! return xSISchemaLocation; ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public CimPackage getCimCx() { ! return (CimPackage)getMixed().get(XmlOutPackage.eINSTANCE.getDocumentRoot_CimCx(), true); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public NotificationChain basicSetCimCx(CimPackage newCimCx, NotificationChain msgs) { ! return ((FeatureMap.Internal)getMixed()).basicAdd(XmlOutPackage.eINSTANCE.getDocumentRoot_CimCx(), newCimCx, msgs); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public void setCimCx(CimPackage newCimCx) { ! ((FeatureMap.Internal)getMixed()).set(XmlOutPackage.eINSTANCE.getDocumentRoot_CimCx(), newCimCx); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { ! if (featureID >= 0) { ! switch (eDerivedStructuralFeatureID(featureID, baseClass)) { ! case XmlOutPackage.DOCUMENT_ROOT__MIXED: ! return ((InternalEList)getMixed()).basicRemove(otherEnd, msgs); ! case XmlOutPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: ! return ((InternalEList)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs); ! case XmlOutPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: ! return ((InternalEList)getXSISchemaLocation()).basicRemove(otherEnd, msgs); ! case XmlOutPackage.DOCUMENT_ROOT__CIM_CX: ! return basicSetCimCx(null, msgs); ! default: ! return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); ! } ! } ! return eBasicSetContainer(null, featureID, msgs); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public Object eGet(EStructuralFeature eFeature, boolean resolve) { ! switch (eDerivedStructuralFeatureID(eFeature)) { ! case XmlOutPackage.DOCUMENT_ROOT__MIXED: ! return getMixed(); ! case XmlOutPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: ! return getXMLNSPrefixMap(); ! case XmlOutPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: ! return getXSISchemaLocation(); ! case XmlOutPackage.DOCUMENT_ROOT__CIM_CX: ! return getCimCx(); ! } ! return eDynamicGet(eFeature, resolve); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public void eSet(EStructuralFeature eFeature, Object newValue) { ! switch (eDerivedStructuralFeatureID(eFeature)) { ! case XmlOutPackage.DOCUMENT_ROOT__MIXED: ! getMixed().clear(); ! getMixed().addAll((Collection)newValue); ! return; ! case XmlOutPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: ! getXMLNSPrefixMap().clear(); ! getXMLNSPrefixMap().addAll((Collection)newValue); ! return; ! case XmlOutPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: ! getXSISchemaLocation().clear(); ! getXSISchemaLocation().addAll((Collection)newValue); ! return; ! case XmlOutPackage.DOCUMENT_ROOT__CIM_CX: ! setCimCx((CimPackage)newValue); ! return; ! } ! eDynamicSet(eFeature, newValue); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public void eUnset(EStructuralFeature eFeature) { ! switch (eDerivedStructuralFeatureID(eFeature)) { ! case XmlOutPackage.DOCUMENT_ROOT__MIXED: ! getMixed().clear(); ! return; ! case XmlOutPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: ! getXMLNSPrefixMap().clear(); ! return; ! case XmlOutPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: ! getXSISchemaLocation().clear(); ! return; ! case XmlOutPackage.DOCUMENT_ROOT__CIM_CX: ! setCimCx((CimPackage)null); ! return; ! } ! eDynamicUnset(eFeature); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public boolean eIsSet(EStructuralFeature eFeature) { ! switch (eDerivedStructuralFeatureID(eFeature)) { ! case XmlOutPackage.DOCUMENT_ROOT__MIXED: ! return mixed != null && !mixed.isEmpty(); ! case XmlOutPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: ! return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty(); ! case XmlOutPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: ! return xSISchemaLocation != null && !xSISchemaLocation.isEmpty(); ! case XmlOutPackage.DOCUMENT_ROOT__CIM_CX: ! return getCimCx() != null; ! } ! return eDynamicIsSet(eFeature); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public String toString() { ! if (eIsProxy()) return super.toString(); ! ! StringBuffer result = new StringBuffer(super.toString()); ! result.append(" (mixed: "); ! result.append(mixed); ! result.append(')'); ! return result.toString(); ! } ! ! } //DocumentRootImpl Index: XmlOutFactoryImpl.java =================================================================== RCS file: /cvsroot/modelwizard/source/Chameleon Plugin/src/net/sourceforge/modelWizard/chameleon/XmlOut/impl/XmlOutFactoryImpl.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** XmlOutFactoryImpl.java 15 Nov 2005 20:38:16 -0000 1.1 --- XmlOutFactoryImpl.java 2 Oct 2006 17:27:58 -0000 1.2 *************** *** 1,170 **** ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.chameleon.XmlOut.impl; ! ! import net.sourceforge.modelWizard.chameleon.XmlOut.*; ! ! import org.eclipse.emf.ecore.EClass; ! import org.eclipse.emf.ecore.EObject; ! ! import org.eclipse.emf.ecore.impl.EFactoryImpl; ! ! /** ! * <!-- begin-user-doc --> ! * An implementation of the model <b>Factory</b>. ! * <!-- end-user-doc --> ! * @generated ! */ ! public class XmlOutFactoryImpl extends EFactoryImpl implements XmlOutFactory { ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public static final String copyright = "(c) Cisco Systems Inc 2005"; ! ! /** ! * Creates an instance of the factory. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public XmlOutFactoryImpl() { ! super(); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public EObject create(EClass eClass) { ! switch (eClass.getClassifierID()) { ! case XmlOutPackage.CIM_CLASS: return createCimClass(); ! case XmlOutPackage.CIM_ENUMERATION: return createCimEnumeration(); ! case XmlOutPackage.CIM_METHOD: return createCimMethod(); ! case XmlOutPackage.CIM_PACKAGE: return createCimPackage(); ! case XmlOutPackage.CIM_PARAMETER: return createCimParameter(); ! case XmlOutPackage.CIM_PROPERTY: return createCimProperty(); ! case XmlOutPackage.CIM_QUALIFIER: return createCimQualifier(); ! case XmlOutPackage.CIM_TYPE: return createCimType(); ! case XmlOutPackage.DOCUMENT_ROOT: return createDocumentRoot(); ! default: ! throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); ! } ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public CimClass createCimClass() { ! CimClassImpl cimClass = new CimClassImpl(); ! return cimClass; ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public CimEnumeration createCimEnumeration() { ! CimEnumerationImpl cimEnumeration = new CimEnumerationImpl(); ! return cimEnumeration; ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public CimMethod createCimMethod() { ! CimMethodImpl cimMethod = new CimMethodImpl(); ! return cimMethod; ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public CimPackage createCimPackage() { ! CimPackageImpl cimPackage = new CimPackageImpl(); ! return cimPackage; ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public CimParameter createCimParameter() { ! CimParameterImpl cimParameter = new CimParameterImpl(); ! return cimParameter; ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public CimProperty createCimProperty() { ! CimPropertyImpl cimProperty = new CimPropertyImpl(); ! return cimProperty; ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public CimQualifier createCimQualifier() { ! CimQualifierImpl cimQualifier = new CimQualifierImpl(); ! return cimQualifier; ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public CimType createCimType() { ! CimTypeImpl cimType = new CimTypeImpl(); ! return cimType; ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public DocumentRoot createDocumentRoot() { ! DocumentRootImpl documentRoot = new DocumentRootImpl(); ! return documentRoot; ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public XmlOutPackage getXmlOutPackage() { ! return (XmlOutPackage)getEPackage(); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @deprecated ! * @generated ! */ ! public static XmlOutPackage getPackage() { ! return XmlOutPackage.eINSTANCE; ! } ! ! } //XmlOutFactoryImpl --- 1,179 ---- ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.chameleon.XmlOut.impl; ! ! import net.sourceforge.modelWizard.chameleon.XmlOut.CimClass; ! import net.sourceforge.modelWizard.chameleon.XmlOut.CimEnumeration; ! import net.sourceforge.modelWizard.chameleon.XmlOut.CimMethod; ! import net.sourceforge.modelWizard.chameleon.XmlOut.CimPackage; ! import net.sourceforge.modelWizard.chameleon.XmlOut.CimParameter; ! import net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty; ! import net.sourceforge.modelWizard.chameleon.XmlOut.CimQualifier; ! import net.sourceforge.modelWizard.chameleon.XmlOut.CimType; ! import net.sourceforge.modelWizard.chameleon.XmlOut.DocumentRoot; ! import net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutFactory; ! import net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage; ! ! import org.eclipse.emf.ecore.EClass; ! import org.eclipse.emf.ecore.EObject; ! import org.eclipse.emf.ecore.impl.EFactoryImpl; ! ! /** ! * <!-- begin-user-doc --> ! * An implementation of the model <b>Factory</b>. ! * <!-- end-user-doc --> ! * @generated ! */ ! public class XmlOutFactoryImpl extends EFactoryImpl implements XmlOutFactory { ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public static final String copyright = "(c) Cisco Systems Inc 2005"; ! ! /** ! * Creates an instance of the factory. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public XmlOutFactoryImpl() { ! super(); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public EObject create(EClass eClass) { ! switch (eClass.getClassifierID()) { ! case XmlOutPackage.CIM_CLASS: return createCimClass(); ! case XmlOutPackage.CIM_ENUMERATION: return createCimEnumeration(); ! case XmlOutPackage.CIM_METHOD: return createCimMethod(); ! case XmlOutPackage.CIM_PACKAGE: return createCimPackage(); ! case XmlOutPackage.CIM_PARAMETER: return createCimParameter(); ! case XmlOutPackage.CIM_PROPERTY: return createCimProperty(); ! case XmlOutPackage.CIM_QUALIFIER: return createCimQualifier(); ! case XmlOutPackage.CIM_TYPE: return createCimType(); ! case XmlOutPackage.DOCUMENT_ROOT: return createDocumentRoot(); ! default: ! throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); ! } ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public CimClass createCimClass() { ! CimClassImpl cimClass = new CimClassImpl(); ! return cimClass; ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public CimEnumeration createCimEnumeration() { ! CimEnumerationImpl cimEnumeration = new CimEnumerationImpl(); ! return cimEnumeration; ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public CimMethod createCimMethod() { ! CimMethodImpl cimMethod = new CimMethodImpl(); ! return cimMethod; ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public CimPackage createCimPackage() { ! CimPackageImpl cimPackage = new CimPackageImpl(); ! return cimPackage; ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public CimParameter createCimParameter() { ! CimParameterImpl cimParameter = new CimParameterImpl(); ! return cimParameter; ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public CimProperty createCimProperty() { ! CimPropertyImpl cimProperty = new CimPropertyImpl(); ! return cimProperty; ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public CimQualifier createCimQualifier() { ! CimQualifierImpl cimQualifier = new CimQualifierImpl(); ! return cimQualifier; ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public CimType createCimType() { ! CimTypeImpl cimType = new CimTypeImpl(); ! return cimType; ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public DocumentRoot createDocumentRoot() { ! DocumentRootImpl documentRoot = new DocumentRootImpl(); ! return documentRoot; ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public XmlOutPackage getXmlOutPackage() { ! return (XmlOutPackage)getEPackage(); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @deprecated ! * @generated ! */ ! public static XmlOutPackage getPackage() { ! return XmlOutPackage.eINSTANCE; ! } ! ! } //XmlOutFactoryImpl Index: CimQualifierImpl.java =================================================================== RCS file: /cvsroot/modelwizard/source/Chameleon Plugin/src/net/sourceforge/modelWizard/chameleon/XmlOut/impl/CimQualifierImpl.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** CimQualifierImpl.java 15 Nov 2005 20:38:16 -0000 1.1 --- CimQualifierImpl.java 2 Oct 2006 17:27:59 -0000 1.2 *************** *** 1,307 **** ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.chameleon.XmlOut.impl; ! ! import java.util.Collection; ! ! import net.sourceforge.modelWizard.chameleon.XmlOut.CimQualifier; ! import net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage; ! ! import org.eclipse.emf.common.notify.Notification; ! import org.eclipse.emf.common.notify.NotificationChain; ! ! import org.eclipse.emf.common.util.EList; ! ! import org.eclipse.emf.ecore.EClass; ! import org.eclipse.emf.ecore.EStructuralFeature; ! import org.eclipse.emf.ecore.InternalEObject; ! ! import org.eclipse.emf.ecore.impl.ENotificationImpl; ! import org.eclipse.emf.ecore.impl.EObjectImpl; ! ! import org.eclipse.emf.ecore.util.BasicFeatureMap; ! import org.eclipse.emf.ecore.util.FeatureMap; ! import org.eclipse.emf.ecore.util.InternalEList; ! ! /** ! * <!-- begin-user-doc --> ! * An implementation of the model object '<em><b>Cim Qualifier</b></em>'. ! * <!-- end-user-doc --> ! * <p> ! * The following features are implemented: ! * <ul> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.impl.CimQualifierImpl#getGroup <em>Group</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.impl.CimQualifierImpl#getValue <em>Value</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.impl.CimQualifierImpl#getName <em>Name</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.impl.CimQualifierImpl#getType <em>Type</em>}</li> ! * </ul> ! * </p> ! * ! * @generated ! */ ! public class CimQualifierImpl extends EObjectImpl implements CimQualifier { ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public static final String copyright = "(c) Cisco Systems Inc 2005"; ! ! /** ! * The cached value of the '{@link #getGroup() <em>Group</em>}' attribute list. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @see #getGroup() ! * @generated ! * @ordered ! */ ! protected FeatureMap group = null; ! ! /** ! * The default value of the '{@link #getName() <em>Name</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @see #getName() ! * @generated ! * @ordered ! */ ! protected static final String NAME_EDEFAULT = null; ! ! /** ! * The cached value of the '{@link #getName() <em>Name</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @see #getName() ! * @generated ! * @ordered ! */ ! protected String name = NAME_EDEFAULT; ! ! /** ! * The default value of the '{@link #getType() <em>Type</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @see #getType() ! * @generated ! * @ordered ! */ ! protected static final String TYPE_EDEFAULT = null; ! ! /** ! * The cached value of the '{@link #getType() <em>Type</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @see #getType() ! * @generated ! * @ordered ! */ ! protected String type = TYPE_EDEFAULT; ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! protected CimQualifierImpl() { ! super(); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! protected EClass eStaticClass() { ! return XmlOutPackage.eINSTANCE.getCimQualifier(); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public FeatureMap getGroup() { ! if (group == null) { ! group = new BasicFeatureMap(this, XmlOutPackage.CIM_QUALIFIER__GROUP); ! } ! return group; ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public EList getValue() { ! return ((FeatureMap)getGroup()).list(XmlOutPackage.eINSTANCE.getCimQualifier_Value()); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public String getName() { ! return name; ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public void setName(String newName) { ! String oldName = name; ! name = newName; ! if (eNotificationRequired()) ! eNotify(new ENotificationImpl(this, Notification.SET, XmlOutPackage.CIM_QUALIFIER__NAME, oldName, name)); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public String getType() { ! return type; ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public void setType(String newType) { ! String oldType = type; ! type = newType; ! if (eNotificationRequired()) ! eNotify(new ENotificationImpl(this, Notification.SET, XmlOutPackage.CIM_QUALIFIER__TYPE, oldType, type)); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { ! if (featureID >= 0) { ! switch (eDerivedStructuralFeatureID(featureID, baseClass)) { ! case XmlOutPackage.CIM_QUALIFIER__GROUP: ! return ((InternalEList)getGroup()).basicRemove(otherEnd, msgs); ! default: ! return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); ! } ! } ! return eBasicSetContainer(null, featureID, msgs); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public Object eGet(EStructuralFeature eFeature, boolean resolve) { ! switch (eDerivedStructuralFeatureID(eFeature)) { ! case XmlOutPackage.CIM_QUALIFIER__GROUP: ! return getGroup(); ! case XmlOutPackage.CIM_QUALIFIER__VALUE: ! return getValue(); ! case XmlOutPackage.CIM_QUALIFIER__NAME: ! return getName(); ! case XmlOutPackage.CIM_QUALIFIER__TYPE: ! return getType(); ! } ! return eDynamicGet(eFeature, resolve); ! } ! ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public void eSet(EStructuralFeature eFeature, Object newValue) { ! switch (eDerivedStructuralFeatureID(eFeature)) { ! case XmlOutPackage.... [truncated message content] |
|
From: jistrawn <jis...@us...> - 2006-10-02 17:27:42
|
Update of /cvsroot/modelwizard/source/Chameleon Plugin/src/net/sourceforge/modelWizard/chameleon/XmlOut In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv10157/src/net/sourceforge/modelWizard/chameleon/XmlOut Modified Files: DocumentRoot.java CimPackage.java CimEnumeration.java CimMethod.java CimClass.java CimProperty.java CimParameter.java CimQualifier.java Log Message: removed unused imports Index: CimProperty.java =================================================================== RCS file: /cvsroot/modelwizard/source/Chameleon Plugin/src/net/sourceforge/modelWizard/chameleon/XmlOut/CimProperty.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** CimProperty.java 15 Nov 2005 20:38:16 -0000 1.1 --- CimProperty.java 2 Oct 2006 17:27:39 -0000 1.2 *************** *** 1,295 **** ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.chameleon.XmlOut; ! ! import org.eclipse.emf.common.util.EList; ! ! import org.eclipse.emf.ecore.EObject; ! ! /** ! * <!-- begin-user-doc --> ! * A representation of the model object '<em><b>Cim Property</b></em>'. ! * <!-- end-user-doc --> ! * ! * <p> ! * The following features are supported: ! * <ul> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty#getDescription <em>Description</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty#getCimType <em>Cim Type</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty#getCimQualifier <em>Cim Qualifier</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty#getValue <em>Value</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty#getId <em>Id</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty#isIsEnd <em>Is End</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty#isIsLocal <em>Is Local</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty#getName <em>Name</em>}</li> ! * </ul> ! * </p> ! * ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimProperty() ! * @model extendedMetaData="name='cimProperty' kind='elementOnly'" ! * @generated ! */ ! public interface CimProperty extends EObject { ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! String copyright = "(c) Cisco Systems Inc 2005"; ! ! /** ! * Returns the value of the '<em><b>Description</b></em>' attribute. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Description</em>' attribute isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Description</em>' attribute. ! * @see #setDescription(String) ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimProperty_Description() ! * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" required="true" ! * extendedMetaData="kind='element' name='description' namespace='##targetNamespace'" ! * @generated ! */ ! String getDescription(); ! ! /** ! * Sets the value of the '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty#getDescription <em>Description</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param value the new value of the '<em>Description</em>' attribute. ! * @see #getDescription() ! * @generated ! */ ! void setDescription(String value); ! ! /** ! * Returns the value of the '<em><b>Cim Type</b></em>' containment reference. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Cim Type</em>' containment reference isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Cim Type</em>' containment reference. ! * @see #setCimType(CimType) ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimProperty_CimType() ! * @model containment="true" resolveProxies="false" required="true" ! * extendedMetaData="kind='element' name='cimType' namespace='##targetNamespace'" ! * @generated ! */ ! CimType getCimType(); ! ! /** ! * Sets the value of the '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty#getCimType <em>Cim Type</em>}' containment reference. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param value the new value of the '<em>Cim Type</em>' containment reference. ! * @see #getCimType() ! * @generated ! */ ! void setCimType(CimType value); ! ! /** ! * Returns the value of the '<em><b>Cim Qualifier</b></em>' containment reference list. ! * The list contents are of type {@link net.sourceforge.modelWizard.chameleon.XmlOut.CimQualifier}. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Cim Qualifier</em>' containment reference list isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Cim Qualifier</em>' containment reference list. ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimProperty_CimQualifier() ! * @model type="net.sourceforge.modelWizard.chameleon.XmlOut.CimQualifier" containment="true" resolveProxies="false" required="true" ! * extendedMetaData="kind='element' name='cimQualifier' namespace='##targetNamespace'" ! * @generated ! */ ! EList getCimQualifier(); ! ! /** ! * Returns the value of the '<em><b>Value</b></em>' attribute list. ! * The list contents are of type {@link java.lang.String}. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Value</em>' attribute list isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Value</em>' attribute list. ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimProperty_Value() ! * @model type="java.lang.String" unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" ! * extendedMetaData="kind='element' name='value' namespace='##targetNamespace'" ! * @generated ! */ ! EList getValue(); ! ! /** ! * Returns the value of the '<em><b>Id</b></em>' attribute. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Id</em>' attribute isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Id</em>' attribute. ! * @see #setId(String) ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimProperty_Id() ! * @model unique="false" id="true" dataType="org.eclipse.emf.ecore.xml.type.ID" required="true" ! * extendedMetaData="kind='attribute' name='id' namespace='##targetNamespace'" ! * @generated ! */ ! String getId(); ! ! /** ! * Sets the value of the '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty#getId <em>Id</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param value the new value of the '<em>Id</em>' attribute. ! * @see #getId() ! * @generated ! */ ! void setId(String value); ! ! /** ! * Returns the value of the '<em><b>Is End</b></em>' attribute. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Is End</em>' attribute isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Is End</em>' attribute. ! * @see #isSetIsEnd() ! * @see #unsetIsEnd() ! * @see #setIsEnd(boolean) ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimProperty_IsEnd() ! * @model unique="false" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Boolean" ! * extendedMetaData="kind='attribute' name='isEnd' namespace='##targetNamespace'" ! * @generated ! */ ! boolean isIsEnd(); ! ! /** ! * Sets the value of the '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty#isIsEnd <em>Is End</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param value the new value of the '<em>Is End</em>' attribute. ! * @see #isSetIsEnd() ! * @see #unsetIsEnd() ! * @see #isIsEnd() ! * @generated ! */ ! void setIsEnd(boolean value); ! ! /** ! * Unsets the value of the '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty#isIsEnd <em>Is End</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @see #isSetIsEnd() ! * @see #isIsEnd() ! * @see #setIsEnd(boolean) ! * @generated ! */ ! void unsetIsEnd(); ! ! /** ! * Returns whether the value of the '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty#isIsEnd <em>Is End</em>}' attribute is set. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @return whether the value of the '<em>Is End</em>' attribute is set. ! * @see #unsetIsEnd() ! * @see #isIsEnd() ! * @see #setIsEnd(boolean) ! * @generated ! */ ! boolean isSetIsEnd(); ! ! /** ! * Returns the value of the '<em><b>Is Local</b></em>' attribute. ! * The default value is <code>"true"</code>. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Is Local</em>' attribute isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Is Local</em>' attribute. ! * @see #isSetIsLocal() ! * @see #unsetIsLocal() ! * @see #setIsLocal(boolean) ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimProperty_IsLocal() ! * @model default="true" unique="false" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Boolean" ! * extendedMetaData="kind='attribute' name='isLocal' namespace='##targetNamespace'" ! * @generated ! */ ! boolean isIsLocal(); ! ! /** ! * Sets the value of the '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty#isIsLocal <em>Is Local</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param value the new value of the '<em>Is Local</em>' attribute. ! * @see #isSetIsLocal() ! * @see #unsetIsLocal() ! * @see #isIsLocal() ! * @generated ! */ ! void setIsLocal(boolean value); ! ! /** ! * Unsets the value of the '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty#isIsLocal <em>Is Local</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @see #isSetIsLocal() ! * @see #isIsLocal() ! * @see #setIsLocal(boolean) ! * @generated ! */ ! void unsetIsLocal(); ! ! /** ! * Returns whether the value of the '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty#isIsLocal <em>Is Local</em>}' attribute is set. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @return whether the value of the '<em>Is Local</em>' attribute is set. ! * @see #unsetIsLocal() ! * @see #isIsLocal() ! * @see #setIsLocal(boolean) ! * @generated ! */ ! boolean isSetIsLocal(); ! ! /** ! * Returns the value of the '<em><b>Name</b></em>' attribute. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Name</em>' attribute isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Name</em>' attribute. ! * @see #setName(String) ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimProperty_Name() ! * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" required="true" ! * extendedMetaData="kind='attribute' name='name' namespace='##targetNamespace'" ! * @generated ! */ ! String getName(); ! ! /** ! * Sets the value of the '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty#getName <em>Name</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param value the new value of the '<em>Name</em>' attribute. ! * @see #getName() ! * @generated ! */ ! void setName(String value); ! ! } // CimProperty --- 1,294 ---- ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.chameleon.XmlOut; ! ! import org.eclipse.emf.common.util.EList; ! import org.eclipse.emf.ecore.EObject; ! ! /** ! * <!-- begin-user-doc --> ! * A representation of the model object '<em><b>Cim Property</b></em>'. ! * <!-- end-user-doc --> ! * ! * <p> ! * The following features are supported: ! * <ul> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty#getDescription <em>Description</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty#getCimType <em>Cim Type</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty#getCimQualifier <em>Cim Qualifier</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty#getValue <em>Value</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty#getId <em>Id</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty#isIsEnd <em>Is End</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty#isIsLocal <em>Is Local</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty#getName <em>Name</em>}</li> ! * </ul> ! * </p> ! * ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimProperty() ! * @model extendedMetaData="name='cimProperty' kind='elementOnly'" ! * @generated ! */ ! public interface CimProperty extends EObject { ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! String copyright = "(c) Cisco Systems Inc 2005"; ! ! /** ! * Returns the value of the '<em><b>Description</b></em>' attribute. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Description</em>' attribute isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Description</em>' attribute. ! * @see #setDescription(String) ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimProperty_Description() ! * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" required="true" ! * extendedMetaData="kind='element' name='description' namespace='##targetNamespace'" ! * @generated ! */ ! String getDescription(); ! ! /** ! * Sets the value of the '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty#getDescription <em>Description</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param value the new value of the '<em>Description</em>' attribute. ! * @see #getDescription() ! * @generated ! */ ! void setDescription(String value); ! ! /** ! * Returns the value of the '<em><b>Cim Type</b></em>' containment reference. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Cim Type</em>' containment reference isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Cim Type</em>' containment reference. ! * @see #setCimType(CimType) ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimProperty_CimType() ! * @model containment="true" resolveProxies="false" required="true" ! * extendedMetaData="kind='element' name='cimType' namespace='##targetNamespace'" ! * @generated ! */ ! CimType getCimType(); ! ! /** ! * Sets the value of the '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty#getCimType <em>Cim Type</em>}' containment reference. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param value the new value of the '<em>Cim Type</em>' containment reference. ! * @see #getCimType() ! * @generated ! */ ! void setCimType(CimType value); ! ! /** ! * Returns the value of the '<em><b>Cim Qualifier</b></em>' containment reference list. ! * The list contents are of type {@link net.sourceforge.modelWizard.chameleon.XmlOut.CimQualifier}. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Cim Qualifier</em>' containment reference list isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Cim Qualifier</em>' containment reference list. ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimProperty_CimQualifier() ! * @model type="net.sourceforge.modelWizard.chameleon.XmlOut.CimQualifier" containment="true" resolveProxies="false" required="true" ! * extendedMetaData="kind='element' name='cimQualifier' namespace='##targetNamespace'" ! * @generated ! */ ! EList getCimQualifier(); ! ! /** ! * Returns the value of the '<em><b>Value</b></em>' attribute list. ! * The list contents are of type {@link java.lang.String}. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Value</em>' attribute list isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Value</em>' attribute list. ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimProperty_Value() ! * @model type="java.lang.String" unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" ! * extendedMetaData="kind='element' name='value' namespace='##targetNamespace'" ! * @generated ! */ ! EList getValue(); ! ! /** ! * Returns the value of the '<em><b>Id</b></em>' attribute. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Id</em>' attribute isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Id</em>' attribute. ! * @see #setId(String) ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimProperty_Id() ! * @model unique="false" id="true" dataType="org.eclipse.emf.ecore.xml.type.ID" required="true" ! * extendedMetaData="kind='attribute' name='id' namespace='##targetNamespace'" ! * @generated ! */ ! String getId(); ! ! /** ! * Sets the value of the '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty#getId <em>Id</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param value the new value of the '<em>Id</em>' attribute. ! * @see #getId() ! * @generated ! */ ! void setId(String value); ! ! /** ! * Returns the value of the '<em><b>Is End</b></em>' attribute. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Is End</em>' attribute isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Is End</em>' attribute. ! * @see #isSetIsEnd() ! * @see #unsetIsEnd() ! * @see #setIsEnd(boolean) ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimProperty_IsEnd() ! * @model unique="false" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Boolean" ! * extendedMetaData="kind='attribute' name='isEnd' namespace='##targetNamespace'" ! * @generated ! */ ! boolean isIsEnd(); ! ! /** ! * Sets the value of the '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty#isIsEnd <em>Is End</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param value the new value of the '<em>Is End</em>' attribute. ! * @see #isSetIsEnd() ! * @see #unsetIsEnd() ! * @see #isIsEnd() ! * @generated ! */ ! void setIsEnd(boolean value); ! ! /** ! * Unsets the value of the '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty#isIsEnd <em>Is End</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @see #isSetIsEnd() ! * @see #isIsEnd() ! * @see #setIsEnd(boolean) ! * @generated ! */ ! void unsetIsEnd(); ! ! /** ! * Returns whether the value of the '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty#isIsEnd <em>Is End</em>}' attribute is set. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @return whether the value of the '<em>Is End</em>' attribute is set. ! * @see #unsetIsEnd() ! * @see #isIsEnd() ! * @see #setIsEnd(boolean) ! * @generated ! */ ! boolean isSetIsEnd(); ! ! /** ! * Returns the value of the '<em><b>Is Local</b></em>' attribute. ! * The default value is <code>"true"</code>. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Is Local</em>' attribute isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Is Local</em>' attribute. ! * @see #isSetIsLocal() ! * @see #unsetIsLocal() ! * @see #setIsLocal(boolean) ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimProperty_IsLocal() ! * @model default="true" unique="false" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Boolean" ! * extendedMetaData="kind='attribute' name='isLocal' namespace='##targetNamespace'" ! * @generated ! */ ! boolean isIsLocal(); ! ! /** ! * Sets the value of the '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty#isIsLocal <em>Is Local</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param value the new value of the '<em>Is Local</em>' attribute. ! * @see #isSetIsLocal() ! * @see #unsetIsLocal() ! * @see #isIsLocal() ! * @generated ! */ ! void setIsLocal(boolean value); ! ! /** ! * Unsets the value of the '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty#isIsLocal <em>Is Local</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @see #isSetIsLocal() ! * @see #isIsLocal() ! * @see #setIsLocal(boolean) ! * @generated ! */ ! void unsetIsLocal(); ! ! /** ! * Returns whether the value of the '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty#isIsLocal <em>Is Local</em>}' attribute is set. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @return whether the value of the '<em>Is Local</em>' attribute is set. ! * @see #unsetIsLocal() ! * @see #isIsLocal() ! * @see #setIsLocal(boolean) ! * @generated ! */ ! boolean isSetIsLocal(); ! ! /** ! * Returns the value of the '<em><b>Name</b></em>' attribute. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Name</em>' attribute isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Name</em>' attribute. ! * @see #setName(String) ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimProperty_Name() ! * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" required="true" ! * extendedMetaData="kind='attribute' name='name' namespace='##targetNamespace'" ! * @generated ! */ ! String getName(); ! ! /** ! * Sets the value of the '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimProperty#getName <em>Name</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param value the new value of the '<em>Name</em>' attribute. ! * @see #getName() ! * @generated ! */ ! void setName(String value); ! ! } // CimProperty Index: CimParameter.java =================================================================== RCS file: /cvsroot/modelwizard/source/Chameleon Plugin/src/net/sourceforge/modelWizard/chameleon/XmlOut/CimParameter.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** CimParameter.java 15 Nov 2005 20:38:16 -0000 1.1 --- CimParameter.java 2 Oct 2006 17:27:39 -0000 1.2 *************** *** 1,166 **** ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.chameleon.XmlOut; ! ! import org.eclipse.emf.common.util.EList; ! ! import org.eclipse.emf.ecore.EObject; ! ! /** ! * <!-- begin-user-doc --> ! * A representation of the model object '<em><b>Cim Parameter</b></em>'. ! * <!-- end-user-doc --> ! * ! * <p> ! * The following features are supported: ! * <ul> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimParameter#getDescription <em>Description</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimParameter#getCimType <em>Cim Type</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimParameter#getCimQualifier <em>Cim Qualifier</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimParameter#getId <em>Id</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimParameter#getName <em>Name</em>}</li> ! * </ul> ! * </p> ! * ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimParameter() ! * @model extendedMetaData="name='cimParameter' kind='elementOnly'" ! * @generated ! */ ! public interface CimParameter extends EObject { ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! String copyright = "(c) Cisco Systems Inc 2005"; ! ! /** ! * Returns the value of the '<em><b>Description</b></em>' attribute. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Description</em>' attribute isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Description</em>' attribute. ! * @see #setDescription(String) ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimParameter_Description() ! * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" required="true" ! * extendedMetaData="kind='element' name='description' namespace='##targetNamespace'" ! * @generated ! */ ! String getDescription(); ! ! /** ! * Sets the value of the '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimParameter#getDescription <em>Description</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param value the new value of the '<em>Description</em>' attribute. ! * @see #getDescription() ! * @generated ! */ ! void setDescription(String value); ! ! /** ! * Returns the value of the '<em><b>Cim Type</b></em>' containment reference. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Cim Type</em>' containment reference isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Cim Type</em>' containment reference. ! * @see #setCimType(CimType) ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimParameter_CimType() ! * @model containment="true" resolveProxies="false" required="true" ! * extendedMetaData="kind='element' name='cimType' namespace='##targetNamespace'" ! * @generated ! */ ! CimType getCimType(); ! ! /** ! * Sets the value of the '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimParameter#getCimType <em>Cim Type</em>}' containment reference. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param value the new value of the '<em>Cim Type</em>' containment reference. ! * @see #getCimType() ! * @generated ! */ ! void setCimType(CimType value); ! ! /** ! * Returns the value of the '<em><b>Cim Qualifier</b></em>' containment reference list. ! * The list contents are of type {@link net.sourceforge.modelWizard.chameleon.XmlOut.CimQualifier}. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Cim Qualifier</em>' containment reference list isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Cim Qualifier</em>' containment reference list. ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimParameter_CimQualifier() ! * @model type="net.sourceforge.modelWizard.chameleon.XmlOut.CimQualifier" containment="true" resolveProxies="false" ! * extendedMetaData="kind='element' name='cimQualifier' namespace='##targetNamespace'" ! * @generated ! */ ! EList getCimQualifier(); ! ! /** ! * Returns the value of the '<em><b>Id</b></em>' attribute. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Id</em>' attribute isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Id</em>' attribute. ! * @see #setId(String) ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimParameter_Id() ! * @model unique="false" id="true" dataType="org.eclipse.emf.ecore.xml.type.ID" required="true" ! * extendedMetaData="kind='attribute' name='id' namespace='##targetNamespace'" ! * @generated ! */ ! String getId(); ! ! /** ! * Sets the value of the '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimParameter#getId <em>Id</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param value the new value of the '<em>Id</em>' attribute. ! * @see #getId() ! * @generated ! */ ! void setId(String value); ! ! /** ! * Returns the value of the '<em><b>Name</b></em>' attribute. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Name</em>' attribute isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Name</em>' attribute. ! * @see #setName(String) ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimParameter_Name() ! * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" required="true" ! * extendedMetaData="kind='attribute' name='name' namespace='##targetNamespace'" ! * @generated ! */ ! String getName(); ! ! /** ! * Sets the value of the '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimParameter#getName <em>Name</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param value the new value of the '<em>Name</em>' attribute. ! * @see #getName() ! * @generated ! */ ! void setName(String value); ! ! } // CimParameter --- 1,165 ---- ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.chameleon.XmlOut; ! ! import org.eclipse.emf.common.util.EList; ! import org.eclipse.emf.ecore.EObject; ! ! /** ! * <!-- begin-user-doc --> ! * A representation of the model object '<em><b>Cim Parameter</b></em>'. ! * <!-- end-user-doc --> ! * ! * <p> ! * The following features are supported: ! * <ul> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimParameter#getDescription <em>Description</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimParameter#getCimType <em>Cim Type</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimParameter#getCimQualifier <em>Cim Qualifier</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimParameter#getId <em>Id</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimParameter#getName <em>Name</em>}</li> ! * </ul> ! * </p> ! * ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimParameter() ! * @model extendedMetaData="name='cimParameter' kind='elementOnly'" ! * @generated ! */ ! public interface CimParameter extends EObject { ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! String copyright = "(c) Cisco Systems Inc 2005"; ! ! /** ! * Returns the value of the '<em><b>Description</b></em>' attribute. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Description</em>' attribute isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Description</em>' attribute. ! * @see #setDescription(String) ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimParameter_Description() ! * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" required="true" ! * extendedMetaData="kind='element' name='description' namespace='##targetNamespace'" ! * @generated ! */ ! String getDescription(); ! ! /** ! * Sets the value of the '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimParameter#getDescription <em>Description</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param value the new value of the '<em>Description</em>' attribute. ! * @see #getDescription() ! * @generated ! */ ! void setDescription(String value); ! ! /** ! * Returns the value of the '<em><b>Cim Type</b></em>' containment reference. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Cim Type</em>' containment reference isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Cim Type</em>' containment reference. ! * @see #setCimType(CimType) ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimParameter_CimType() ! * @model containment="true" resolveProxies="false" required="true" ! * extendedMetaData="kind='element' name='cimType' namespace='##targetNamespace'" ! * @generated ! */ ! CimType getCimType(); ! ! /** ! * Sets the value of the '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimParameter#getCimType <em>Cim Type</em>}' containment reference. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param value the new value of the '<em>Cim Type</em>' containment reference. ! * @see #getCimType() ! * @generated ! */ ! void setCimType(CimType value); ! ! /** ! * Returns the value of the '<em><b>Cim Qualifier</b></em>' containment reference list. ! * The list contents are of type {@link net.sourceforge.modelWizard.chameleon.XmlOut.CimQualifier}. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Cim Qualifier</em>' containment reference list isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Cim Qualifier</em>' containment reference list. ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimParameter_CimQualifier() ! * @model type="net.sourceforge.modelWizard.chameleon.XmlOut.CimQualifier" containment="true" resolveProxies="false" ! * extendedMetaData="kind='element' name='cimQualifier' namespace='##targetNamespace'" ! * @generated ! */ ! EList getCimQualifier(); ! ! /** ! * Returns the value of the '<em><b>Id</b></em>' attribute. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Id</em>' attribute isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Id</em>' attribute. ! * @see #setId(String) ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimParameter_Id() ! * @model unique="false" id="true" dataType="org.eclipse.emf.ecore.xml.type.ID" required="true" ! * extendedMetaData="kind='attribute' name='id' namespace='##targetNamespace'" ! * @generated ! */ ! String getId(); ! ! /** ! * Sets the value of the '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimParameter#getId <em>Id</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param value the new value of the '<em>Id</em>' attribute. ! * @see #getId() ! * @generated ! */ ! void setId(String value); ! ! /** ! * Returns the value of the '<em><b>Name</b></em>' attribute. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Name</em>' attribute isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Name</em>' attribute. ! * @see #setName(String) ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimParameter_Name() ! * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" required="true" ! * extendedMetaData="kind='attribute' name='name' namespace='##targetNamespace'" ! * @generated ! */ ! String getName(); ! ! /** ! * Sets the value of the '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimParameter#getName <em>Name</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param value the new value of the '<em>Name</em>' attribute. ! * @see #getName() ! * @generated ! */ ! void setName(String value); ! ! } // CimParameter Index: CimClass.java =================================================================== RCS file: /cvsroot/modelwizard/source/Chameleon Plugin/src/net/sourceforge/modelWizard/chameleon/XmlOut/CimClass.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** CimClass.java 5 May 2006 15:33:38 -0000 1.3 --- CimClass.java 2 Oct 2006 17:27:39 -0000 1.4 *************** *** 8,12 **** import org.eclipse.emf.common.util.EList; - import org.eclipse.emf.ecore.EObject; --- 8,11 ---- Index: CimPackage.java =================================================================== RCS file: /cvsroot/modelwizard/source/Chameleon Plugin/src/net/sourceforge/modelWizard/chameleon/XmlOut/CimPackage.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** CimPackage.java 15 Nov 2005 20:38:16 -0000 1.1 --- CimPackage.java 2 Oct 2006 17:27:38 -0000 1.2 *************** *** 1,240 **** ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.chameleon.XmlOut; ! ! import org.eclipse.emf.common.util.EList; ! ! import org.eclipse.emf.ecore.EObject; ! ! import org.eclipse.emf.ecore.util.FeatureMap; ! ! /** ! * <!-- begin-user-doc --> ! * A representation of the model object '<em><b>Cim Package</b></em>'. ! * <!-- end-user-doc --> ! * ! * <p> ! * The following features are supported: ! * <ul> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimPackage#getGroup <em>Group</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimPackage#getDescription <em>Description</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimPackage#getCimEnumeration <em>Cim Enumeration</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimPackage#getCimPackage <em>Cim Package</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimPackage#getCimClass <em>Cim Class</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimPackage#getBasePackage <em>Base Package</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimPackage#getId <em>Id</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimPackage#getName <em>Name</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimPackage#getVersion <em>Version</em>}</li> ! * </ul> ! * </p> ! * ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimPackage() ! * @model extendedMetaData="name='cimPackage' kind='elementOnly'" ! * @generated ! */ ! public interface CimPackage extends EObject { ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! String copyright = "(c) Cisco Systems Inc 2005"; ! ! /** ! * Returns the value of the '<em><b>Group</b></em>' attribute list. ! * The list contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Group</em>' attribute list isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Group</em>' attribute list. ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimPackage_Group() ! * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true" ! * extendedMetaData="kind='group' name='group:0'" ! * @generated ! */ ! FeatureMap getGroup(); ! ! /** ! * Returns the value of the '<em><b>Description</b></em>' attribute list. ! * The list contents are of type {@link java.lang.String}. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Description</em>' attribute list isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Description</em>' attribute list. ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimPackage_Description() ! * @model type="java.lang.String" unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" transient="true" volatile="true" derived="true" ! * extendedMetaData="kind='element' name='description' namespace='##targetNamespace' group='group:0'" ! * @generated ! */ ! EList getDescription(); ! ! /** ! * Returns the value of the '<em><b>Cim Enumeration</b></em>' containment reference list. ! * The list contents are of type {@link net.sourceforge.modelWizard.chameleon.XmlOut.CimEnumeration}. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Cim Enumeration</em>' containment reference list isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Cim Enumeration</em>' containment reference list. ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimPackage_CimEnumeration() ! * @model type="net.sourceforge.modelWizard.chameleon.XmlOut.CimEnumeration" containment="true" resolveProxies="false" transient="true" volatile="true" derived="true" ! * extendedMetaData="kind='element' name='cimEnumeration' namespace='##targetNamespace' group='group:0'" ! * @generated ! */ ! EList getCimEnumeration(); ! ! /** ! * Returns the value of the '<em><b>Cim Package</b></em>' containment reference list. ! * The list contents are of type {@link net.sourceforge.modelWizard.chameleon.XmlOut.CimPackage}. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Cim Package</em>' containment reference list isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Cim Package</em>' containment reference list. ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimPackage_CimPackage() ! * @model type="net.sourceforge.modelWizard.chameleon.XmlOut.CimPackage" containment="true" resolveProxies="false" transient="true" volatile="true" derived="true" ! * extendedMetaData="kind='element' name='cimPackage' namespace='##targetNamespace' group='group:0'" ! * @generated ! */ ! EList getCimPackage(); ! ! /** ! * Returns the value of the '<em><b>Cim Class</b></em>' containment reference list. ! * The list contents are of type {@link net.sourceforge.modelWizard.chameleon.XmlOut.CimClass}. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Cim Class</em>' containment reference list isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Cim Class</em>' containment reference list. ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimPackage_CimClass() ! * @model type="net.sourceforge.modelWizard.chameleon.XmlOut.CimClass" containment="true" resolveProxies="false" transient="true" volatile="true" derived="true" ! * extendedMetaData="kind='element' name='cimClass' namespace='##targetNamespace' group='group:0'" ! * @generated ! */ ! EList getCimClass(); ! ! /** ! * Returns the value of the '<em><b>Base Package</b></em>' attribute. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Base Package</em>' attribute isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Base Package</em>' attribute. ! * @see #setBasePackage(String) ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimPackage_BasePackage() ! * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" ! * extendedMetaData="kind='attribute' name='basePackage' namespace='##targetNamespace'" ! * @generated ! */ ! String getBasePackage(); ! ! /** ! * Sets the value of the '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimPackage#getBasePackage <em>Base Package</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param value the new value of the '<em>Base Package</em>' attribute. ! * @see #getBasePackage() ! * @generated ! */ ! void setBasePackage(String value); ! ! /** ! * Returns the value of the '<em><b>Id</b></em>' attribute. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Id</em>' attribute isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Id</em>' attribute. ! * @see #setId(String) ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimPackage_Id() ! * @model unique="false" id="true" dataType="org.eclipse.emf.ecore.xml.type.ID" required="true" ! * extendedMetaData="kind='attribute' name='id' namespace='##targetNamespace'" ! * @generated ! */ ! String getId(); ! ! /** ! * Sets the value of the '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimPackage#getId <em>Id</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param value the new value of the '<em>Id</em>' attribute. ! * @see #getId() ! * @generated ! */ ! void setId(String value); ! ! /** ! * Returns the value of the '<em><b>Name</b></em>' attribute. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Name</em>' attribute isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Name</em>' attribute. ! * @see #setName(String) ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimPackage_Name() ! * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" required="true" ! * extendedMetaData="kind='attribute' name='name' namespace='##targetNamespace'" ! * @generated ! */ ! String getName(); ! ! /** ! * Sets the value of the '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimPackage#getName <em>Name</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param value the new value of the '<em>Name</em>' attribute. ! * @see #getName() ! * @generated ! */ ! void setName(String value); ! ! /** ! * Returns the value of the '<em><b>Version</b></em>' attribute. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Version</em>' attribute isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Version</em>' attribute. ! * @see #setVersion(String) ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimPackage_Version() ! * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" ! * extendedMetaData="kind='attribute' name='version' namespace='##targetNamespace'" ! * @generated ! */ ! String getVersion(); ! ! /** ! * Sets the value of the '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimPackage#getVersion <em>Version</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param value the new value of the '<em>Version</em>' attribute. ! * @see #getVersion() ! * @generated ! */ ! void setVersion(String value); ! ! } // CimPackage --- 1,238 ---- ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.chameleon.XmlOut; ! ! import org.eclipse.emf.common.util.EList; ! import org.eclipse.emf.ecore.EObject; ! import org.eclipse.emf.ecore.util.FeatureMap; ! ! /** ! * <!-- begin-user-doc --> ! * A representation of the model object '<em><b>Cim Package</b></em>'. ! * <!-- end-user-doc --> ! * ! * <p> ! * The following features are supported: ! * <ul> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimPackage#getGroup <em>Group</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimPackage#getDescription <em>Description</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimPackage#getCimEnumeration <em>Cim Enumeration</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimPackage#getCimPackage <em>Cim Package</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimPackage#getCimClass <em>Cim Class</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimPackage#getBasePackage <em>Base Package</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimPackage#getId <em>Id</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimPackage#getName <em>Name</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimPackage#getVersion <em>Version</em>}</li> ! * </ul> ! * </p> ! * ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimPackage() ! * @model extendedMetaData="name='cimPackage' kind='elementOnly'" ! * @generated ! */ ! public interface CimPackage extends EObject { ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! String copyright = "(c) Cisco Systems Inc 2005"; ! ! /** ! * Returns the value of the '<em><b>Group</b></em>' attribute list. ! * The list contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Group</em>' attribute list isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Group</em>' attribute list. ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimPackage_Group() ! * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true" ! * extendedMetaData="kind='group' name='group:0'" ! * @generated ! */ ! FeatureMap getGroup(); ! ! /** ! * Returns the value of the '<em><b>Description</b></em>' attribute list. ! * The list contents are of type {@link java.lang.String}. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Description</em>' attribute list isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Description</em>' attribute list. ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimPackage_Description() ! * @model type="java.lang.String" unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" transient="true" volatile="true" derived="true" ! * extendedMetaData="kind='element' name='description' namespace='##targetNamespace' group='group:0'" ! * @generated ! */ ! EList getDescription(); ! ! /** ! * Returns the value of the '<em><b>Cim Enumeration</b></em>' containment reference list. ! * The list contents are of type {@link net.sourceforge.modelWizard.chameleon.XmlOut.CimEnumeration}. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Cim Enumeration</em>' containment reference list isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Cim Enumeration</em>' containment reference list. ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimPackage_CimEnumeration() ! * @model type="net.sourceforge.modelWizard.chameleon.XmlOut.CimEnumeration" containment="true" resolveProxies="false" transient="true" volatile="true" derived="true" ! * extendedMetaData="kind='element' name='cimEnumeration' namespace='##targetNamespace' group='group:0'" ! * @generated ! */ ! EList getCimEnumeration(); ! ! /** ! * Returns the value of the '<em><b>Cim Package</b></em>' containment reference list. ! * The list contents are of type {@link net.sourceforge.modelWizard.chameleon.XmlOut.CimPackage}. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Cim Package</em>' containment reference list isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Cim Package</em>' containment reference list. ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimPackage_CimPackage() ! * @model type="net.sourceforge.modelWizard.chameleon.XmlOut.CimPackage" containment="true" resolveProxies="false" transient="true" volatile="true" derived="true" ! * extendedMetaData="kind='element' name='cimPackage' namespace='##targetNamespace' group='group:0'" ! * @generated ! */ ! EList getCimPackage(); ! ! /** ! * Returns the value of the '<em><b>Cim Class</b></em>' containment reference list. ! * The list contents are of type {@link net.sourceforge.modelWizard.chameleon.XmlOut.CimClass}. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Cim Class</em>' containment reference list isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Cim Class</em>' containment reference list. ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimPackage_CimClass() ! * @model type="net.sourceforge.modelWizard.chameleon.XmlOut.CimClass" containment="true" resolveProxies="false" transient="true" volatile="true" derived="true" ! * extendedMetaData="kind='element' name='cimClass' namespace='##targetNamespace' group='group:0'" ! * @generated ! */ ! EList getCimClass(); ! ! /** ! * Returns the value of the '<em><b>Base Package</b></em>' attribute. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Base Package</em>' attribute isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Base Package</em>' attribute. ! * @see #setBasePackage(String) ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimPackage_BasePackage() ! * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" ! * extendedMetaData="kind='attribute' name='basePackage' namespace='##targetNamespace'" ! * @generated ! */ ! String getBasePackage(); ! ! /** ! * Sets the value of the '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimPackage#getBasePackage <em>Base Package</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param value the new value of the '<em>Base Package</em>' attribute. ! * @see #getBasePackage() ! * @generated ! */ ! void setBasePackage(String value); ! ! /** ! * Returns the value of the '<em><b>Id</b></em>' attribute. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Id</em>' attribute isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Id</em>' attribute. ! * @see #setId(String) ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimPackage_Id() ! * @model unique="false" id="true" dataType="org.eclipse.emf.ecore.xml.type.ID" required="true" ! * extendedMetaData="kind='attribute' name='id' namespace='##targetNamespace'" ! * @generated ! */ ! String getId(); ! ! /** ! * Sets the value of the '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimPackage#getId <em>Id</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param value the new value of the '<em>Id</em>' attribute. ! * @see #getId() ! * @generated ! */ ! void setId(String value); ! ! /** ! * Returns the value of the '<em><b>Name</b></em>' attribute. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Name</em>' attribute isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Name</em>' attribute. ! * @see #setName(String) ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimPackage_Name() ! * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" required="true" ! * extendedMetaData="kind='attribute' name='name' namespace='##targetNamespace'" ! * @generated ! */ ! String getName(); ! ! /** ! * Sets the value of the '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimPackage#getName <em>Name</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param value the new value of the '<em>Name</em>' attribute. ! * @see #getName() ! * @generated ! */ ! void setName(String value); ! ! /** ! * Returns the value of the '<em><b>Version</b></em>' attribute. ! * <!-- begin-user-doc --> ! * <p> ! * If the meaning of the '<em>Version</em>' attribute isn't clear, ! * there really should be more of a description here... ! * </p> ! * <!-- end-user-doc --> ! * @return the value of the '<em>Version</em>' attribute. ! * @see #setVersion(String) ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getCimPackage_Version() ! * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" ! * extendedMetaData="kind='attribute' name='version' namespace='##targetNamespace'" ! * @generated ! */ ! String getVersion(); ! ! /** ! * Sets the value of the '{@link net.sourceforge.modelWizard.chameleon.XmlOut.CimPackage#getVersion <em>Version</em>}' attribute. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param value the new value of the '<em>Version</em>' attribute. ! * @see #getVersion() ! * @generated ! */ ! void setVersion(String value); ! ! } // CimPackage Index: DocumentRoot.java =================================================================== RCS file: /cvsroot/modelwizard/source/Chameleon Plugin/src/net/sourceforge/modelWizard/chameleon/XmlOut/DocumentRoot.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** DocumentRoot.java 15 Nov 2005 20:38:16 -0000 1.1 --- DocumentRoot.java 2 Oct 2006 17:27:38 -0000 1.2 *************** *** 1,122 **** ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.chameleon.XmlOut; ! ! import org.eclipse.emf.common.util.EMap; ! ! import org.eclipse.emf.ecore.EObject; ! ! import org.eclipse.emf.ecore.util.FeatureMap; ! ! /** ! * <!-- begin-user-doc --> ! * A representation of the model object '<em><b>Document Root</b></em>'. ! * <!-- end-user-doc --> ! * ! * <p> ! * The following features are supported: ! * <ul> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.DocumentRoot#getMixed <em>Mixed</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}</li> ! * <li>{@link net.sourceforge.modelWizard.chameleon.XmlOut.DocumentRoot#getCimCx <em>Cim Cx</em>}</li> ! * </ul> ! * </p> ! * ! * @see net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutPackage#getDocumentRoot() ! * @model extendedMetaData="name='' kind='mixed'" ! * @gener... [truncated message content] |
|
From: jistrawn <jis...@us...> - 2006-10-02 17:27:23
|
Update of /cvsroot/modelwizard/source/Chameleon Plugin/src/net/sourceforge/modelWizard/chameleon/transforms In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv10109/src/net/sourceforge/modelWizard/chameleon/transforms Modified Files: XmlTransformer.java MofTransformer.java CimV2QualifierDeclarations.java QualifierListFactory.java XmlQualifierFactoryImpl.java HtmlTransformer.java Log Message: removed unused imports Index: MofTransformer.java =================================================================== RCS file: /cvsroot/modelwizard/source/Chameleon Plugin/src/net/sourceforge/modelWizard/chameleon/transforms/MofTransformer.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** MofTransformer.java 5 May 2006 15:33:38 -0000 1.5 --- MofTransformer.java 2 Oct 2006 17:27:19 -0000 1.6 *************** *** 3,11 **** import java.io.StringBufferInputStream; import java.util.ArrayList; - import java.util.Collection; import java.util.HashMap; import java.util.Iterator; - import net.sourceforge.modelWizard.backingModelAbstraction.ModelTransformationException; import net.sourceforge.modelWizard.chameleon.ModelAbstraction.UmlUtilities; --- 3,9 ---- *************** *** 19,23 **** import org.eclipse.core.runtime.SubProgressMonitor; import org.eclipse.emf.common.util.EList; - import org.eclipse.emf.ecore.util.EcoreUtil.Copier; import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin; import org.eclipse.uml2.Association; --- 17,20 ---- *************** *** 31,35 **** import org.eclipse.uml2.Operation; import org.eclipse.uml2.Parameter; - import org.eclipse.uml2.ParameterDirectionKind; import org.eclipse.uml2.PrimitiveType; import org.eclipse.uml2.Property; --- 28,31 ---- *************** *** 37,41 **** import org.eclipse.uml2.Type; import org.eclipse.uml2.TypedElement; - import org.eclipse.uml2.UML2Factory; /** --- 33,36 ---- Index: XmlTransformer.java =================================================================== RCS file: /cvsroot/modelwizard/source/Chameleon Plugin/src/net/sourceforge/modelWizard/chameleon/transforms/XmlTransformer.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** XmlTransformer.java 26 Jul 2006 22:49:38 -0000 1.6 --- XmlTransformer.java 2 Oct 2006 17:27:19 -0000 1.7 *************** *** 7,11 **** import java.util.Iterator; import java.util.Map; - import java.util.Set; import net.sourceforge.modelWizard.backingModelAbstraction.ModelTransformationException; --- 7,10 ---- Index: QualifierListFactory.java =================================================================== RCS file: /cvsroot/modelwizard/source/Chameleon Plugin/src/net/sourceforge/modelWizard/chameleon/transforms/QualifierListFactory.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** QualifierListFactory.java 8 Jan 2006 12:46:07 -0000 1.2 --- QualifierListFactory.java 2 Oct 2006 17:27:19 -0000 1.3 *************** *** 25,29 **** import org.eclipse.uml2.Association; import org.eclipse.uml2.AssociationClass; - import org.eclipse.uml2.Class; import org.eclipse.uml2.Classifier; import org.eclipse.uml2.NamedElement; --- 25,28 ---- Index: XmlQualifierFactoryImpl.java =================================================================== RCS file: /cvsroot/modelwizard/source/Chameleon Plugin/src/net/sourceforge/modelWizard/chameleon/transforms/XmlQualifierFactoryImpl.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** XmlQualifierFactoryImpl.java 15 Nov 2005 20:38:16 -0000 1.1 --- XmlQualifierFactoryImpl.java 2 Oct 2006 17:27:19 -0000 1.2 *************** *** 1,117 **** ! /* ! * Created on Oct 4, 2005 ! * @author stjerman ! * <copyright> ! * ! * Copyright (c) 2005 Cisco Systems Inc, ! * All rights reserved. This program and the accompanying materials ! * are made available under the terms of the BSD License ! * which accompanies this distribution. ! * ! * Contributors: ! * CISCO - Initial API and implementation ! * ! * </copyright> ! */ ! package net.sourceforge.modelWizard.chameleon.transforms; ! ! import org.eclipse.emf.common.util.EList; ! import org.eclipse.uml2.Enumeration; ! import org.eclipse.uml2.EnumerationLiteral; ! import org.eclipse.uml2.NamedElement; ! import org.eclipse.uml2.Property; ! import org.eclipse.uml2.Stereotype; ! import org.eclipse.uml2.Type; ! ! import net.sourceforge.modelWizard.chameleon.XmlOut.CimQualifier; ! import net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutFactory; ! ! /** ! * @author stjerman ! * ! * TODO To change the template for this generated type comment go to ! * Window - Preferences - Java - Code Style - Code Templates ! */ ! public class XmlQualifierFactoryImpl implements QualifierFactory { ! ! /* (non-Javadoc) ! * @see com.cisco.nm.cto.cimWizard.umlAccess.QualifierFactory#createQualifier(java.lang.String, java.lang.String, java.util.ArrayList) ! */ ! public Object createQualifier(String name) { ! return createBooleanQualifier (name,true); ! } ! ! /* (non-Javadoc) ! * @see com.cisco.nm.cto.cimWizard.umlAccess.QualifierFactory#createQualifier(org.eclipse.uml2.Stereotype, org.eclipse.uml2.NamedElement) ! */ ! public Object createQualifier(Stereotype s, NamedElement obj) { ! Property p = s.getAttribute("value"); ! if (p != null) { ! CimQualifier q = XmlOutFactory.eINSTANCE.createCimQualifier(); ! q.setName(s.getName()); ! //type must be a enumeration or a primitive type ! Type t = p.getType(); ! if (t instanceof Enumeration) ! q.setType("string"); ! else ! q.setType(t.getName().toLowerCase()); ! if (p.isMultivalued()){ ! EList values = (EList) obj.getValue(s,p.getName()); ! for (int n=0;n<values.size();n++){ ! if (t instanceof Enumeration) { ! q.getValue().add(((EnumerationLiteral)values.get(n)).getName()); ! } else { ! q.getValue().add(values.get(n).toString()); ! } ! } ! } else { ! Object value = (Object)obj.getValue(s,p.getName()); ! if (t instanceof Enumeration) { ! q.getValue().add(((EnumerationLiteral)value).getName()); ! } else { ! q.getValue().add(value.toString()); ! } ! } ! return q; ! } else ! return createBooleanQualifier (s.getName(),true); ! } ! ! /* (non-Javadoc) ! * @see com.cisco.nm.cto.cimWizard.umlAccess.QualifierFactory#createStringQualifier(java.lang.String) ! */ ! public Object createStringQualifier(String name, String value) { ! CimQualifier q = XmlOutFactory.eINSTANCE.createCimQualifier(); ! q.setName(name); ! q.setType("string"); ! if (value != null) ! q.getValue().add(value); ! return q; ! } ! ! /* (non-Javadoc) ! * @see com.cisco.nm.cto.cimWizard.umlAccess.QualifierFactory#createBooleanQualifier(boolean) ! */ ! public Object createBooleanQualifier(String name, boolean value) { ! CimQualifier q = XmlOutFactory.eINSTANCE.createCimQualifier(); ! q.setName(name); ! q.setType("boolean"); ! if (value) ! q.getValue().add("true"); ! else ! q.getValue().add("false"); ! return q; ! } ! ! /* (non-Javadoc) ! * @see com.cisco.nm.cto.cimWizard.umlAccess.QualifierFactory#createIntegerQualifier(java.lang.String, int) ! */ ! public Object createIntegerQualifier(String name, int value) { ! CimQualifier q = XmlOutFactory.eINSTANCE.createCimQualifier(); ! q.setName(name); ! q.setType("int"); ! q.getValue().add(Integer.toString(value)); ! return q; ! } ! ! } --- 1,117 ---- ! /* ! * Created on Oct 4, 2005 ! * @author stjerman ! * <copyright> ! * ! * Copyright (c) 2005 Cisco Systems Inc, ! * All rights reserved. This program and the accompanying materials ! * are made available under the terms of the BSD License ! * which accompanies this distribution. ! * ! * Contributors: ! * CISCO - Initial API and implementation ! * ! * </copyright> ! */ ! package net.sourceforge.modelWizard.chameleon.transforms; ! ! import net.sourceforge.modelWizard.chameleon.XmlOut.CimQualifier; ! import net.sourceforge.modelWizard.chameleon.XmlOut.XmlOutFactory; ! ! import org.eclipse.emf.common.util.EList; ! import org.eclipse.uml2.Enumeration; ! import org.eclipse.uml2.EnumerationLiteral; ! import org.eclipse.uml2.NamedElement; ! import org.eclipse.uml2.Property; ! import org.eclipse.uml2.Stereotype; ! import org.eclipse.uml2.Type; ! ! /** ! * @author stjerman ! * ! * TODO To change the template for this generated type comment go to ! * Window - Preferences - Java - Code Style - Code Templates ! */ ! public class XmlQualifierFactoryImpl implements QualifierFactory { ! ! /* (non-Javadoc) ! * @see com.cisco.nm.cto.cimWizard.umlAccess.QualifierFactory#createQualifier(java.lang.String, java.lang.String, java.util.ArrayList) ! */ ! public Object createQualifier(String name) { ! return createBooleanQualifier (name,true); ! } ! ! /* (non-Javadoc) ! * @see com.cisco.nm.cto.cimWizard.umlAccess.QualifierFactory#createQualifier(org.eclipse.uml2.Stereotype, org.eclipse.uml2.NamedElement) ! */ ! public Object createQualifier(Stereotype s, NamedElement obj) { ! Property p = s.getAttribute("value"); ! if (p != null) { ! CimQualifier q = XmlOutFactory.eINSTANCE.createCimQualifier(); ! q.setName(s.getName()); ! //type must be a enumeration or a primitive type ! Type t = p.getType(); ! if (t instanceof Enumeration) ! q.setType("string"); ! else ! q.setType(t.getName().toLowerCase()); ! if (p.isMultivalued()){ ! EList values = (EList) obj.getValue(s,p.getName()); ! for (int n=0;n<values.size();n++){ ! if (t instanceof Enumeration) { ! q.getValue().add(((EnumerationLiteral)values.get(n)).getName()); ! } else { ! q.getValue().add(values.get(n).toString()); ! } ! } ! } else { ! Object value = (Object)obj.getValue(s,p.getName()); ! if (t instanceof Enumeration) { ! q.getValue().add(((EnumerationLiteral)value).getName()); ! } else { ! q.getValue().add(value.toString()); ! } ! } ! return q; ! } else ! return createBooleanQualifier (s.getName(),true); ! } ! ! /* (non-Javadoc) ! * @see com.cisco.nm.cto.cimWizard.umlAccess.QualifierFactory#createStringQualifier(java.lang.String) ! */ ! public Object createStringQualifier(String name, String value) { ! CimQualifier q = XmlOutFactory.eINSTANCE.createCimQualifier(); ! q.setName(name); ! q.setType("string"); ! if (value != null) ! q.getValue().add(value); ! return q; ! } ! ! /* (non-Javadoc) ! * @see com.cisco.nm.cto.cimWizard.umlAccess.QualifierFactory#createBooleanQualifier(boolean) ! */ ! public Object createBooleanQualifier(String name, boolean value) { ! CimQualifier q = XmlOutFactory.eINSTANCE.createCimQualifier(); ! q.setName(name); ! q.setType("boolean"); ! if (value) ! q.getValue().add("true"); ! else ! q.getValue().add("false"); ! return q; ! } ! ! /* (non-Javadoc) ! * @see com.cisco.nm.cto.cimWizard.umlAccess.QualifierFactory#createIntegerQualifier(java.lang.String, int) ! */ ! public Object createIntegerQualifier(String name, int value) { ! CimQualifier q = XmlOutFactory.eINSTANCE.createCimQualifier(); ! q.setName(name); ! q.setType("int"); ! q.getValue().add(Integer.toString(value)); ! return q; ! } ! ! } Index: HtmlTransformer.java =================================================================== RCS file: /cvsroot/modelwizard/source/Chameleon Plugin/src/net/sourceforge/modelWizard/chameleon/transforms/HtmlTransformer.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** HtmlTransformer.java 7 Dec 2005 18:17:37 -0000 1.3 --- HtmlTransformer.java 2 Oct 2006 17:27:19 -0000 1.4 *************** *** 1,241 **** ! package net.sourceforge.modelWizard.chameleon.transforms; ! ! import java.io.ByteArrayInputStream; ! import java.io.ByteArrayOutputStream; ! import java.io.IOException; ! import java.net.URL; ! import java.util.HashMap; ! import java.util.Iterator; ! import java.util.Map; ! ! import javax.xml.transform.TransformerException; ! ! import net.sourceforge.modelWizard.chameleon.Plugin; ! import net.sourceforge.modelWizard.chameleon.XmlOut.CimPackage; ! import net.sourceforge.modelWizard.chameleon.XmlOut.DocumentRoot; ! import net.sourceforge.modelWizard.chameleon.XmlOut.util.XmlOutResourceFactoryImpl; ! import net.sourceforge.modelWizard.utilities.ModelWizardConsole; ! import net.sourceforge.modelWizard.utilities.XslTransformer; ! ! import org.eclipse.core.resources.IContainer; ! import org.eclipse.core.resources.IFolder; ! import org.eclipse.core.resources.IProject; ! import org.eclipse.core.resources.IResource; ! import org.eclipse.core.resources.IWorkspaceRoot; ! import org.eclipse.core.resources.ResourcesPlugin; ! import org.eclipse.core.runtime.CoreException; ! import org.eclipse.core.runtime.IPath; ! import org.eclipse.core.runtime.IProgressMonitor; ! import org.eclipse.core.runtime.Path; ! import org.eclipse.core.runtime.Platform; ! import org.eclipse.core.runtime.SubProgressMonitor; ! import org.eclipse.emf.common.util.EList; ! import org.eclipse.emf.common.util.TreeIterator; ! import org.eclipse.emf.common.util.URI; ! import org.eclipse.emf.ecore.EObject; ! import org.eclipse.emf.ecore.resource.Resource; ! import org.eclipse.emf.ecore.xmi.XMLResource; ! import org.eclipse.emf.ecore.xml.type.AnyType; ! import org.eclipse.emf.ecore.util.EcoreUtil.Copier; ! import org.eclipse.uml2.Model; ! import org.eclipse.uml2.Package;; ! ! ! /** ! * Singleton converter that will take a model and spit out the XML transform format to a ! * passed filename ! */ ! ! public class HtmlTransformer { ! ! public static HtmlTransformer INSTANCE = new HtmlTransformer(); ! private static XmlOutResourceFactoryImpl rf = new XmlOutResourceFactoryImpl(); ! private XslTransformer packageTx; ! private Copier copier = new Copier(); ! ! //file for transforming to profiles... ! private static String CREATEPACKAGE_XSL = "xsl/createProfile.xsl"; ! ! // private static String xslPath = "transformCimXml.xsl"; ! private static String INDEX_XSL = "xsl/index.xsl"; ! private static String INDEX_HTML = "index.html"; ! private static String COMPLEXTYPES_XSL = "xsl/complexTypes.xsl"; ! private static String COMPLEXTYPES_HTML = "complexTypes.html"; ! private static String ENUM_XSL = "xsl/enumerations.xsl"; ! private static String ENUM_HTML = "enumerations.html"; ! private static String PACKAGE_XSL = "xsl/package.xsl"; ! ! int id; ! ! public void createPackageBlueprints (IPath container, DocumentRoot docRoot, IProgressMonitor mainMonitor) throws CoreException, InterruptedException, IOException, TransformerException{ ! SubProgressMonitor monitor = new SubProgressMonitor(mainMonitor,1); ! monitor.beginTask("Creating Profiles for packages",5); ! ! //now prepare the output directory... ! IWorkspaceRoot root =ResourcesPlugin.getWorkspace().getRoot(); ! IContainer cont = (IContainer) root.findMember(container); //assumption that the path is valid (should be...) ! IFolder packFolder = cont.getFolder(new Path("blueprints")); ! if (packFolder.exists()) { ! packFolder.delete(true,monitor); ! packFolder.create(true,true,monitor); ! } else { ! packFolder.create(true,true,monitor); ! } ! ! //now create each output file ... ! CimPackage pCx = docRoot.getCimCx(); ! String version = pCx.getVersion(); ! EList packs = pCx.getCimPackage(); ! int size = packs.size(); ! int done =0; ! monitor.beginTask("Creating packages",size); ! for (int n = 0;n<size;n++){ ! CimPackage p = (CimPackage) packs.get(n); ! p.setVersion(version); ! ModelWizardConsole.INSTANCE.status("("+n+") Creating "+p.getName()); ! doPackage(packFolder,p,monitor); ! monitor.worked(done++); ! } ! monitor.done(); ! } ! ! ! /** ! * @param p ! * @param in ! * @param monitor ! * @throws CimWizardTransformException ! * @throws InterruptedException ! * @throws IOException ! * @throws TransformerException ! */ ! private void doPackage(IResource container, CimPackage basep, SubProgressMonitor monitor) throws InterruptedException, IOException, TransformerException { ! ! if (monitor.isCanceled()) ! throw new InterruptedException(); ! ! //first get source document into an array ... ! URI testUri = URI.createPlatformResourceURI(container.getFullPath().addTrailingSeparator().append(basep.getName()).addFileExtension("xml").toOSString()); ! ! Resource resource = rf.createResource(testUri); ! ! CimPackage p = (CimPackage) copier.copy(basep); ! resource.getContents().add(p); ! copier.copyReferences(); ! Map options = new HashMap(); ! options.put(XMLResource.OPTION_ENCODING, "UTF-8"); ! options.put(XMLResource.OPTION_PROCESS_DANGLING_HREF, XMLResource.OPTION_PROCESS_DANGLING_HREF_DISCARD); ! options.put(XMLResource.OPTION_DISABLE_NOTIFY, "True"); ! ! // resource.save(options); ! ! ByteArrayOutputStream out = new ByteArrayOutputStream(); ! resource.save(out,options); ! resource.unload(); ! resource = null; ! ! ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray()); ! ! String fName = p.getName().replaceAll("[\\s,]","")+".prf"; ! ModelWizardConsole.INSTANCE.status("Creating "+fName); ! String path = container.getFullPath().append(fName).toOSString(); ! ! if (packageTx == null){ ! packageTx = new XslTransformer(Plugin.getURL(CREATEPACKAGE_XSL)); ! packageTx.setVersionParameter(); ! } ! URI uri = URI.createPlatformResourceURI(path); ! packageTx.setParameter("InputParam",p.getName()); ! packageTx.transformStream(uri,in); ! ! in.close(); ! in = null; ! out = null; ! String version = basep.getVersion(); ! EList packs = p.getCimPackage(); ! for (int n = 0;n<packs.size();n++){ ! CimPackage sp = (CimPackage) packs.get(n); ! basep.setVersion(version); ! doPackage(container,sp,monitor); ! } ! } ! ! public void createHtml (IPath container, DocumentRoot docRoot, IProgressMonitor mainMonitor) throws InterruptedException, IOException, TransformerException, CoreException { ! ! SubProgressMonitor monitor = new SubProgressMonitor(mainMonitor,1); ! monitor.beginTask("Creating HTML",5); ! //first get source document into an array ... ! Resource resource = rf.createResource(null); ! resource.getContents().add(docRoot); ! Map options = new HashMap(); ! options.put(XMLResource.OPTION_ENCODING, "UTF-8"); ! ByteArrayOutputStream out = new ByteArrayOutputStream(); ! resource.save(out,options); ! //now prepare the output directory... ! IWorkspaceRoot root =ResourcesPlugin.getWorkspace().getRoot(); ! IContainer cont = (IContainer) root.findMember(container); //assumption that the path is valid (should be...) ! IFolder packFolder = cont.getFolder(new Path("html")); ! if (packFolder.exists()) { ! packFolder.delete(true,monitor); ! packFolder.create(true,true,monitor); ! } else { ! packFolder.create(true,true,monitor); ! } ! ! XslTransformer transformer = new XslTransformer(Plugin.getURL(INDEX_XSL)); ! ! //now create each output file ... ! //first the index ! ! ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray()); ! URI uri = URI.createPlatformResourceURI(packFolder.getFullPath().append(INDEX_HTML).toOSString()); ! transformer.transformStream(uri,in); ! ! //then the enums ! in = new ByteArrayInputStream(out.toByteArray()); ! transformer.setXsl(Plugin.getURL(ENUM_XSL)); ! uri = URI.createPlatformResourceURI(packFolder.getFullPath().append(ENUM_HTML).toOSString()); ! transformer.transformStream (uri,in); ! ! //then do each top level package.. ! transformer.setXsl(Plugin.getURL(PACKAGE_XSL)); ! Iterator i = docRoot.getCimCx().getCimPackage().iterator(); ! int size = docRoot.getCimCx().getCimPackage().size(); ! int done =0; ! monitor.beginTask("Creating HTML",size); ! while (i.hasNext()){ ! CimPackage p = (CimPackage) i.next(); ! dph(in, packFolder, p, monitor, transformer); ! monitor.worked(++done); ! } ! monitor.done(); ! } ! ! /** ! * @param out ! * @param packFolder ! * @param p ! * @param monitor ! * @param transformer ! * @throws CimWizardTransformException ! * @throws InterruptedException ! * @throws TransformerException ! * @throws IOException ! */ ! private void dph(ByteArrayInputStream in, IFolder packFolder, CimPackage p, SubProgressMonitor monitor, XslTransformer transformer) throws InterruptedException, IOException, TransformerException { ! URL xsl; ! URI uri; ! String name = p.getId()+".html"; ! in.reset(); ! uri = URI.createPlatformResourceURI(packFolder.getFullPath().append(name).toOSString()); ! transformer.setParameter("InputParam",p.getId()); ! transformer.transformStream (uri,in); ! Iterator i = p.getCimPackage().iterator(); ! if (monitor.isCanceled()) ! throw new InterruptedException(); ! while (i.hasNext()){ ! CimPackage pk = (CimPackage) i.next(); ! dph(in, packFolder, pk, monitor,transformer); ! } ! } } \ No newline at end of file --- 1,235 ---- ! package net.sourceforge.modelWizard.chameleon.transforms; ! ! import java.io.ByteArrayInputStream; ! import java.io.ByteArrayOutputStream; ! import java.io.IOException; ! import java.net.URL; ! import java.util.HashMap; ! import java.util.Iterator; ! import java.util.Map; ! ! import javax.xml.transform.TransformerException; ! ! import net.sourceforge.modelWizard.chameleon.Plugin; ! import net.sourceforge.modelWizard.chameleon.XmlOut.CimPackage; ! import net.sourceforge.modelWizard.chameleon.XmlOut.DocumentRoot; ! import net.sourceforge.modelWizard.chameleon.XmlOut.util.XmlOutResourceFactoryImpl; ! import net.sourceforge.modelWizard.utilities.ModelWizardConsole; ! import net.sourceforge.modelWizard.utilities.XslTransformer; ! ! import org.eclipse.core.resources.IContainer; ! import org.eclipse.core.resources.IFolder; ! import org.eclipse.core.resources.IResource; ! import org.eclipse.core.resources.IWorkspaceRoot; ! import org.eclipse.core.resources.ResourcesPlugin; ! import org.eclipse.core.runtime.CoreException; ! import org.eclipse.core.runtime.IPath; ! import org.eclipse.core.runtime.IProgressMonitor; ! import org.eclipse.core.runtime.Path; ! import org.eclipse.core.runtime.SubProgressMonitor; ! import org.eclipse.emf.common.util.EList; ! import org.eclipse.emf.common.util.URI; ! import org.eclipse.emf.ecore.resource.Resource; ! import org.eclipse.emf.ecore.util.EcoreUtil.Copier; ! import org.eclipse.emf.ecore.xmi.XMLResource; ! ; ! ! ! /** ! * Singleton converter that will take a model and spit out the XML transform format to a ! * passed filename ! */ ! ! public class HtmlTransformer { ! ! public static HtmlTransformer INSTANCE = new HtmlTransformer(); ! private static XmlOutResourceFactoryImpl rf = new XmlOutResourceFactoryImpl(); ! private XslTransformer packageTx; ! private Copier copier = new Copier(); ! ! //file for transforming to profiles... ! private static String CREATEPACKAGE_XSL = "xsl/createProfile.xsl"; ! ! // private static String xslPath = "transformCimXml.xsl"; ! private static String INDEX_XSL = "xsl/index.xsl"; ! private static String INDEX_HTML = "index.html"; ! private static String COMPLEXTYPES_XSL = "xsl/complexTypes.xsl"; ! private static String COMPLEXTYPES_HTML = "complexTypes.html"; ! private static String ENUM_XSL = "xsl/enumerations.xsl"; ! private static String ENUM_HTML = "enumerations.html"; ! private static String PACKAGE_XSL = "xsl/package.xsl"; ! ! int id; ! ! public void createPackageBlueprints (IPath container, DocumentRoot docRoot, IProgressMonitor mainMonitor) throws CoreException, InterruptedException, IOException, TransformerException{ ! SubProgressMonitor monitor = new SubProgressMonitor(mainMonitor,1); ! monitor.beginTask("Creating Profiles for packages",5); ! ! //now prepare the output directory... ! IWorkspaceRoot root =ResourcesPlugin.getWorkspace().getRoot(); ! IContainer cont = (IContainer) root.findMember(container); //assumption that the path is valid (should be...) ! IFolder packFolder = cont.getFolder(new Path("blueprints")); ! if (packFolder.exists()) { ! packFolder.delete(true,monitor); ! packFolder.create(true,true,monitor); ! } else { ! packFolder.create(true,true,monitor); ! } ! ! //now create each output file ... ! CimPackage pCx = docRoot.getCimCx(); ! String version = pCx.getVersion(); ! EList packs = pCx.getCimPackage(); ! int size = packs.size(); ! int done =0; ! monitor.beginTask("Creating packages",size); ! for (int n = 0;n<size;n++){ ! CimPackage p = (CimPackage) packs.get(n); ! p.setVersion(version); ! ModelWizardConsole.INSTANCE.status("("+n+") Creating "+p.getName()); ! doPackage(packFolder,p,monitor); ! monitor.worked(done++); ! } ! monitor.done(); ! } ! ! ! /** ! * @param p ! * @param in ! * @param monitor ! * @throws CimWizardTransformException ! * @throws InterruptedException ! * @throws IOException ! * @throws TransformerException ! */ ! private void doPackage(IResource container, CimPackage basep, SubProgressMonitor monitor) throws InterruptedException, IOException, TransformerException { ! ! if (monitor.isCanceled()) ! throw new InterruptedException(); ! ! //first get source document into an array ... ! URI testUri = URI.createPlatformResourceURI(container.getFullPath().addTrailingSeparator().append(basep.getName()).addFileExtension("xml").toOSString()); ! ! Resource resource = rf.createResource(testUri); ! ! CimPackage p = (CimPackage) copier.copy(basep); ! resource.getContents().add(p); ! copier.copyReferences(); ! Map options = new HashMap(); ! options.put(XMLResource.OPTION_ENCODING, "UTF-8"); ! options.put(XMLResource.OPTION_PROCESS_DANGLING_HREF, XMLResource.OPTION_PROCESS_DANGLING_HREF_DISCARD); ! options.put(XMLResource.OPTION_DISABLE_NOTIFY, "True"); ! ! // resource.save(options); ! ! ByteArrayOutputStream out = new ByteArrayOutputStream(); ! resource.save(out,options); ! resource.unload(); ! resource = null; ! ! ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray()); ! ! String fName = p.getName().replaceAll("[\\s,]","")+".prf"; ! ModelWizardConsole.INSTANCE.status("Creating "+fName); ! String path = container.getFullPath().append(fName).toOSString(); ! ! if (packageTx == null){ ! packageTx = new XslTransformer(Plugin.getURL(CREATEPACKAGE_XSL)); ! packageTx.setVersionParameter(); ! } ! URI uri = URI.createPlatformResourceURI(path); ! packageTx.setParameter("InputParam",p.getName()); ! packageTx.transformStream(uri,in); ! ! in.close(); ! in = null; ! out = null; ! String version = basep.getVersion(); ! EList packs = p.getCimPackage(); ! for (int n = 0;n<packs.size();n++){ ! CimPackage sp = (CimPackage) packs.get(n); ! basep.setVersion(version); ! doPackage(container,sp,monitor); ! } ! } ! ! public void createHtml (IPath container, DocumentRoot docRoot, IProgressMonitor mainMonitor) throws InterruptedException, IOException, TransformerException, CoreException { ! ! SubProgressMonitor monitor = new SubProgressMonitor(mainMonitor,1); ! monitor.beginTask("Creating HTML",5); ! //first get source document into an array ... ! Resource resource = rf.createResource(null); ! resource.getContents().add(docRoot); ! Map options = new HashMap(); ! options.put(XMLResource.OPTION_ENCODING, "UTF-8"); ! ByteArrayOutputStream out = new ByteArrayOutputStream(); ! resource.save(out,options); ! //now prepare the output directory... ! IWorkspaceRoot root =ResourcesPlugin.getWorkspace().getRoot(); ! IContainer cont = (IContainer) root.findMember(container); //assumption that the path is valid (should be...) ! IFolder packFolder = cont.getFolder(new Path("html")); ! if (packFolder.exists()) { ! packFolder.delete(true,monitor); ! packFolder.create(true,true,monitor); ! } else { ! packFolder.create(true,true,monitor); ! } ! ! XslTransformer transformer = new XslTransformer(Plugin.getURL(INDEX_XSL)); ! ! //now create each output file ... ! //first the index ! ! ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray()); ! URI uri = URI.createPlatformResourceURI(packFolder.getFullPath().append(INDEX_HTML).toOSString()); ! transformer.transformStream(uri,in); ! ! //then the enums ! in = new ByteArrayInputStream(out.toByteArray()); ! transformer.setXsl(Plugin.getURL(ENUM_XSL)); ! uri = URI.createPlatformResourceURI(packFolder.getFullPath().append(ENUM_HTML).toOSString()); ! transformer.transformStream (uri,in); ! ! //then do each top level package.. ! transformer.setXsl(Plugin.getURL(PACKAGE_XSL)); ! Iterator i = docRoot.getCimCx().getCimPackage().iterator(); ! int size = docRoot.getCimCx().getCimPackage().size(); ! int done =0; ! monitor.beginTask("Creating HTML",size); ! while (i.hasNext()){ ! CimPackage p = (CimPackage) i.next(); ! dph(in, packFolder, p, monitor, transformer); ! monitor.worked(++done); ! } ! monitor.done(); ! } ! ! /** ! * @param out ! * @param packFolder ! * @param p ! * @param monitor ! * @param transformer ! * @throws CimWizardTransformException ! * @throws InterruptedException ! * @throws TransformerException ! * @throws IOException ! */ ! private void dph(ByteArrayInputStream in, IFolder packFolder, CimPackage p, SubProgressMonitor monitor, XslTransformer transformer) throws InterruptedException, IOException, TransformerException { ! URL xsl; ! URI uri; ! String name = p.getId()+".html"; ! in.reset(); ! uri = URI.createPlatformResourceURI(packFolder.getFullPath().append(name).toOSString()); ! transformer.setParameter("InputParam",p.getId()); ! transformer.transformStream (uri,in); ! Iterator i = p.getCimPackage().iterator(); ! if (monitor.isCanceled()) ! throw new InterruptedException(); ! while (i.hasNext()){ ! CimPackage pk = (CimPackage) i.next(); ! dph(in, packFolder, pk, monitor,transformer); ! } ! } } \ No newline at end of file Index: CimV2QualifierDeclarations.java =================================================================== RCS file: /cvsroot/modelwizard/source/Chameleon Plugin/src/net/sourceforge/modelWizard/chameleon/transforms/CimV2QualifierDeclarations.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** CimV2QualifierDeclarations.java 21 Apr 2006 18:11:42 -0000 1.5 --- CimV2QualifierDeclarations.java 2 Oct 2006 17:27:19 -0000 1.6 *************** *** 14,23 **** import org.eclipse.emf.ecore.EClass; - import org.eclipse.emf.ecore.resource.ResourceSet; import org.eclipse.uml2.Enumeration; import org.eclipse.uml2.EnumerationLiteral; import org.eclipse.uml2.Model; import org.eclipse.uml2.Profile; - import org.eclipse.uml2.Class; import org.eclipse.uml2.ProfileApplication; import org.eclipse.uml2.Property; --- 14,21 ---- |
|
From: jistrawn <jis...@us...> - 2006-10-02 17:26:42
|
Update of /cvsroot/modelwizard/source/Chameleon Plugin/src/net/sourceforge/modelWizard/chameleon/ModelAbstraction In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv9721/src/net/sourceforge/modelWizard/chameleon/ModelAbstraction Modified Files: UmlUtilities.java Log Message: removed unused imports Index: UmlUtilities.java =================================================================== RCS file: /cvsroot/modelwizard/source/Chameleon Plugin/src/net/sourceforge/modelWizard/chameleon/ModelAbstraction/UmlUtilities.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** UmlUtilities.java 5 May 2006 15:33:38 -0000 1.5 --- UmlUtilities.java 2 Oct 2006 17:26:37 -0000 1.6 *************** *** 7,10 **** --- 7,16 ---- package net.sourceforge.modelWizard.chameleon.ModelAbstraction; + import java.util.ArrayList; + import java.util.Collection; + import java.util.HashMap; + import java.util.Iterator; + import java.util.Map; + import net.sourceforge.modelWizard.backingModelAbstraction.ModelAbstractionError; *************** *** 13,19 **** import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.util.EcoreUtil; - import org.eclipse.uml2.Association; - import org.eclipse.uml2.AssociationClass; import org.eclipse.uml2.Class; import org.eclipse.uml2.Classifier; --- 19,23 ---- *************** *** 33,42 **** import org.eclipse.uml2.TypedElement; - import java.util.ArrayList; - import java.util.Collection; - import java.util.HashMap; - import java.util.Iterator; - import java.util.Map; - /** --- 37,40 ---- |
|
From: jistrawn <jis...@us...> - 2006-10-02 17:26:22
|
Update of /cvsroot/modelwizard/source/Chameleon Plugin/src/net/sourceforge/modelWizard/chameleon/ModelAbstraction In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv9702/src/net/sourceforge/modelWizard/chameleon/ModelAbstraction Added Files: OpenModelOp.java Log Message: refactored packaging --- NEW FILE: OpenModelOp.java --- package net.sourceforge.modelWizard.chameleon.ModelAbstraction; import java.io.IOException; import java.lang.reflect.InvocationTargetException; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import org.eclipse.core.resources.IFile; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.emf.common.util.URI; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.resource.Resource; import org.eclipse.emf.ecore.resource.ResourceSet; import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl; import org.eclipse.emf.ecore.xmi.XMLResource; import org.eclipse.jface.operation.IRunnableWithProgress; import org.eclipse.uml2.Model; import org.eclipse.uml2.util.UML2Resource; public final class OpenModelOp implements IRunnableWithProgress { private URI fileUri; private Resource resource; private static ResourceSet resourceSet = new ResourceSetImpl(); private Model model; public OpenModelOp(URI fileUri) { super(); this.fileUri = fileUri; } public OpenModelOp(IFile file) { super(); this.fileUri = URI.createPlatformResourceURI(file.getFullPath().toString()); } public void run(IProgressMonitor monitor) throws InvocationTargetException { monitor.beginTask("Opening "+fileUri.lastSegment(),IProgressMonitor.UNKNOWN); boolean added = false; Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put( "emx", UML2Resource.Factory.INSTANCE); Map options = new HashMap(); options.put(UML2Resource.OPTION_DISABLE_NOTIFY, Boolean.TRUE); options.put(XMLResource.OPTION_RECORD_UNKNOWN_FEATURE, Boolean.TRUE); try { resource = resourceSet.createResource(fileUri); resource.load(options); } catch (Exception e) { monitor.done(); throw new InvocationTargetException(e, "Cannot open model file :"+fileUri); } if (resource.isLoaded()) { Iterator i = resource.getContents().iterator(); while (i.hasNext()){ EObject eo = (EObject) i.next(); if (eo instanceof Model){ model = (Model) eo; monitor.done(); break; } } } else { monitor.done(); throw new InvocationTargetException (null,"Can't find model :"+fileUri.toFileString()); } } public Model getModel() { return model; } public void unload(){ resource.unload(); resource = null; model = null; } public void saveModel() throws IOException{ resource.save(null); } public URI getFileUri() { return fileUri; } public void setFileUri(URI fileUri) { this.fileUri = fileUri; } } |