fixed checkstyle warnings, formatted code
diff --git a/org.eclipse.emf.emfstore.client.backchannel.example/src/org/eclipse/emf/emfstore/backchannel/example/client/Activator.java b/org.eclipse.emf.emfstore.client.backchannel.example/src/org/eclipse/emf/emfstore/backchannel/example/client/Activator.java
index 886262e..1135bc4 100644
--- a/org.eclipse.emf.emfstore.client.backchannel.example/src/org/eclipse/emf/emfstore/backchannel/example/client/Activator.java
+++ b/org.eclipse.emf.emfstore.client.backchannel.example/src/org/eclipse/emf/emfstore/backchannel/example/client/Activator.java
@@ -50,6 +50,7 @@
plugin = null;
super.stop(context);
}
+
// END SUPRESS CATCH EXCEPTION
/**
diff --git a/org.eclipse.emf.emfstore.client.backchannel.example/src/org/eclipse/emf/emfstore/backchannel/example/client/Application.java b/org.eclipse.emf.emfstore.client.backchannel.example/src/org/eclipse/emf/emfstore/backchannel/example/client/Application.java
index acfa9fe..478669e 100644
--- a/org.eclipse.emf.emfstore.client.backchannel.example/src/org/eclipse/emf/emfstore/backchannel/example/client/Application.java
+++ b/org.eclipse.emf.emfstore.client.backchannel.example/src/org/eclipse/emf/emfstore/backchannel/example/client/Application.java
@@ -29,6 +29,7 @@
return IApplication.EXIT_OK;
}
+
// END SUPRESS CATCH EXCEPTION
/**
diff --git a/org.eclipse.emf.emfstore.client.backchannel/src/org/eclipse/emf/emfstore/client/backchannel/Activator.java b/org.eclipse.emf.emfstore.client.backchannel/src/org/eclipse/emf/emfstore/client/backchannel/Activator.java
index c25cab1..bcc68bd 100644
--- a/org.eclipse.emf.emfstore.client.backchannel/src/org/eclipse/emf/emfstore/client/backchannel/Activator.java
+++ b/org.eclipse.emf.emfstore.client.backchannel/src/org/eclipse/emf/emfstore/client/backchannel/Activator.java
@@ -19,7 +19,7 @@
public class Activator extends Plugin {
/**
- * The plug-in ID.
+ * The plug-in ID.
*/
public static final String PLUGIN_ID = "org.eclipse.emf.emfstore.client.backchannel";
@@ -48,6 +48,7 @@
plugin = null;
super.stop(context);
}
+
// END SUPRESS CATCH EXCEPTION
/**
diff --git a/org.eclipse.emf.emfstore.client.backchannel/src/org/eclipse/emf/emfstore/client/backchannel/BackchannelConnectionManager.java b/org.eclipse.emf.emfstore.client.backchannel/src/org/eclipse/emf/emfstore/client/backchannel/BackchannelConnectionManager.java
index 09fb74e..d52910b 100644
--- a/org.eclipse.emf.emfstore.client.backchannel/src/org/eclipse/emf/emfstore/client/backchannel/BackchannelConnectionManager.java
+++ b/org.eclipse.emf.emfstore.client.backchannel/src/org/eclipse/emf/emfstore/client/backchannel/BackchannelConnectionManager.java
@@ -30,17 +30,14 @@
*
* @author wesendon
*/
-public class BackchannelConnectionManager extends
- AbstractConnectionManager<XmlRpcClientManager> implements
- BackchannelInterface {
+public class BackchannelConnectionManager extends AbstractConnectionManager<XmlRpcClientManager> implements
+ BackchannelInterface {
/**
* {@inheritDoc}
*/
- public void initConnection(ServerInfo serverInfo, SessionId id)
- throws ConnectionException {
- XmlRpcClientManager clientManager = new XmlRpcClientManager(
- XmlRpcBackchannelConnectionHandler.BACKCHANNEL);
+ public void initConnection(ServerInfo serverInfo, SessionId id) throws ConnectionException {
+ XmlRpcClientManager clientManager = new XmlRpcClientManager(XmlRpcBackchannelConnectionHandler.BACKCHANNEL);
clientManager.initConnection(serverInfo);
addConnectionProxy(id, clientManager);
}
@@ -51,18 +48,16 @@
* TODO: More fault tolerant implementation would be better. And it
* should be allowed to unregister. SessionTimeOut should be handled.
*/
- public void registerRemoteListener(final SessionId sessionId,
- final EMFStoreEventListener listener, final ProjectId projectId)
- throws EmfStoreException {
+ public void registerRemoteListener(final SessionId sessionId, final EMFStoreEventListener listener,
+ final ProjectId projectId) throws EmfStoreException {
Runnable runnable = new Runnable() {
public void run() {
try {
while (true) {
ServerEvent event;
- event = getConnectionProxy(sessionId).callWithResult(
- "getEvent", ServerEvent.class, sessionId,
- projectId);
+ event = getConnectionProxy(sessionId).callWithResult("getEvent", ServerEvent.class, sessionId,
+ projectId);
if (event != null) {
listener.handleEvent(event);
}
@@ -80,10 +75,8 @@
/**
* {@inheritDoc}
*/
- public void sendEvent(SessionId sessionId, ServerEvent event,
- ProjectId projectId) throws EmfStoreException {
- getConnectionProxy(sessionId).call("sendEvent", sessionId, event,
- projectId);
+ public void sendEvent(SessionId sessionId, ServerEvent event, ProjectId projectId) throws EmfStoreException {
+ getConnectionProxy(sessionId).call("sendEvent", sessionId, event, projectId);
}
}
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.client.proxy/src/org/eclipse/emf/emfstore/client/proxy/Activator.java b/org.eclipse.emf.emfstore.client.proxy/src/org/eclipse/emf/emfstore/client/proxy/Activator.java
index 65b9aff..c4b9650 100644
--- a/org.eclipse.emf.emfstore.client.proxy/src/org/eclipse/emf/emfstore/client/proxy/Activator.java
+++ b/org.eclipse.emf.emfstore.client.proxy/src/org/eclipse/emf/emfstore/client/proxy/Activator.java
@@ -21,7 +21,7 @@
/**
* The plug-in ID.
*/
- public static final String PLUGIN_ID = "org.unicase.proxyclient";
+ public static final String PLUGIN_ID = "org.eclipse.emf.emfstore.client.proxyclient";
// The shared instance
private static Activator plugin;
@@ -50,6 +50,7 @@
plugin = null;
super.stop(context);
}
+
// END SUPRESS CATCH EXCEPTION
/**
diff --git a/org.eclipse.emf.emfstore.client.proxy/src/org/eclipse/emf/emfstore/client/proxy/Application.java b/org.eclipse.emf.emfstore.client.proxy/src/org/eclipse/emf/emfstore/client/proxy/Application.java
index 83db2e8..7ab753f 100644
--- a/org.eclipse.emf.emfstore.client.proxy/src/org/eclipse/emf/emfstore/client/proxy/Application.java
+++ b/org.eclipse.emf.emfstore.client.proxy/src/org/eclipse/emf/emfstore/client/proxy/Application.java
@@ -30,6 +30,7 @@
return IApplication.EXIT_OK;
}
+
// END SUPRESS CATCH EXCEPTION
/**
diff --git a/org.eclipse.emf.emfstore.client.proxy/src/org/eclipse/emf/emfstore/client/proxy/ProxyClient.java b/org.eclipse.emf.emfstore.client.proxy/src/org/eclipse/emf/emfstore/client/proxy/ProxyClient.java
index b87c1fa..d1f11a7 100644
--- a/org.eclipse.emf.emfstore.client.proxy/src/org/eclipse/emf/emfstore/client/proxy/ProxyClient.java
+++ b/org.eclipse.emf.emfstore.client.proxy/src/org/eclipse/emf/emfstore/client/proxy/ProxyClient.java
@@ -47,19 +47,19 @@
* Log in a user with the given password into the server that is specified via the given URL.
*
* @param username
- * the name of the user to be logged in
+ * the name of the user to be logged in
* @param password
- * the password of the user
+ * the password of the user
* @param url
- * the URL of the server
+ * the URL of the server
* @param clientVersion
- * the version of the client the user uses
+ * the version of the client the user uses
* @param certificate
- * the certificate the client uses
+ * the certificate the client uses
* @param port
- * the port of the server
- * @throws EmfStoreException
- * in case any error occurs
+ * the port of the server
+ * @throws EmfStoreException
+ * in case any error occurs
*/
public void loginServer(String username, String password, String url, String clientVersion, String certificate,
int port) throws EmfStoreException {
@@ -75,12 +75,13 @@
/**
* Returns the server info specified by the given arguments.
+ *
* @param url
- * the URL of the server
+ * the URL of the server
* @param certificate
- * the certificate in use
+ * the certificate in use
* @param port
- * the port of the server
+ * the port of the server
* @return the created server info specified by the given arguments
*/
public ServerInfo getServerInfo(String url, String certificate, int port) {
@@ -97,7 +98,7 @@
* Create version which is set to the given ID.
*
* @param id
- * the ID the version will be set to
+ * the ID the version will be set to
*
* @return the created version
*
@@ -112,12 +113,12 @@
* Returns the project info that is specified via the given name.
*
* @param projectName
- * the name of the project
+ * the name of the project
* @param contains
- * whether the name is a substring of the actual project name
+ * whether the name is a substring of the actual project name
* @return the found project info or <code>null</code> if no such project info has been found
* @throws EmfStoreException
- * in case any error occurs
+ * in case any error occurs
*/
public ProjectInfo getProjectInfo(String projectName, boolean contains) throws EmfStoreException {
for (ProjectInfo info : getProjectList()) {
@@ -132,16 +133,18 @@
* Runs the client.
*
* @throws Exception
- * in case any error occurs
+ * in case any error occurs
*/
// BEGIN SUPRESS CATCH EXCEPTION
abstract public void run() throws Exception;
+
// END SUPRESS CATCH EXCEPTION
/**
* Creates a transient project space which contains the given project.
+ *
* @param project
- * the project that should be contained in the created project space
+ * the project that should be contained in the created project space
* @return the created project space
*/
public ProjectSpaceImpl createTransientProjectSpace(Project project) {
@@ -163,11 +166,11 @@
* Creates a log message with the given properties.
*
* @param author
- * the author of the log message
+ * the author of the log message
* @param message
- * the actual content of the log message
+ * the actual content of the log message
* @param date
- * the date of the log message
+ * the date of the log message
* @return the created log message
*/
public LogMessage createLogMessage(String author, String message, Date date) {
@@ -191,6 +194,7 @@
/**
* Returns the workspace.
+ *
* @return the workspace
*/
public Workspace getWorkspace() {
@@ -199,8 +203,9 @@
/**
* Sets the connection manager.
+ *
* @param connectionManager
- * the connection manager to be used
+ * the connection manager to be used
*/
public void setConnectionManager(ConnectionManager connectionManager) {
this.connectionManager = connectionManager;
@@ -217,8 +222,9 @@
/**
* Sets the session ID.
+ *
* @param sessionId
- * the session ID to be used by the client
+ * the session ID to be used by the client
*/
public void setSessionId(SessionId sessionId) {
this.sessionId = sessionId;
@@ -236,7 +242,7 @@
/**
* Sets the project space.
*
- * @param projectSpace the project space
+ * @param projectSpace the project space
*/
public void setProjectSpace(ProjectSpaceImpl projectSpace) {
this.projectSpace = projectSpace;
diff --git a/org.eclipse.emf.emfstore.client.proxy/src/org/eclipse/emf/emfstore/client/proxy/example/CommentFixClient.java b/org.eclipse.emf.emfstore.client.proxy/src/org/eclipse/emf/emfstore/client/proxy/example/CommentFixClient.java
index da7da89..d49065e 100644
--- a/org.eclipse.emf.emfstore.client.proxy/src/org/eclipse/emf/emfstore/client/proxy/example/CommentFixClient.java
+++ b/org.eclipse.emf.emfstore.client.proxy/src/org/eclipse/emf/emfstore/client/proxy/example/CommentFixClient.java
@@ -25,8 +25,8 @@
import org.eclipse.emf.emfstore.server.model.versioning.operations.AbstractOperation;
/**
- * Example client that fixes a comment.
- *
+ * Example client that fixes a comment.
+ *
*/
public class CommentFixClient extends ProxyClient {
@@ -44,6 +44,7 @@
fixProject(projectInfo);
}
}
+
// END SUPRESS CATCH EXCEPTION
private void fixProject(ProjectInfo projectInfo) throws EmfStoreException, InvalidVersionSpecException {
diff --git a/org.eclipse.emf.emfstore.client.transaction/src/org/eclipse/emf/emfstore/client/transaction/EMFStoreTransactionalCommandStack.java b/org.eclipse.emf.emfstore.client.transaction/src/org/eclipse/emf/emfstore/client/transaction/EMFStoreTransactionalCommandStack.java
index ee0ad5f..beede0a 100644
--- a/org.eclipse.emf.emfstore.client.transaction/src/org/eclipse/emf/emfstore/client/transaction/EMFStoreTransactionalCommandStack.java
+++ b/org.eclipse.emf.emfstore.client.transaction/src/org/eclipse/emf/emfstore/client/transaction/EMFStoreTransactionalCommandStack.java
@@ -109,11 +109,11 @@
protected void handleRollback(Command command, RollbackException rbe) {
super.handleRollback(command, rbe);
Exception exception = null;
- if (rbe!=null) {
+ if (rbe != null) {
if (rbe.getCause() != null && rbe.getCause() instanceof Exception) {
exception = (Exception) rbe.getCause();
} else {
- exception=rbe;
+ exception = rbe;
}
}
notifier.notifiyListenersAboutCommandFailed(command, exception);
diff --git a/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/Activator.java b/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/Activator.java
index 958b6f0..6840187 100644
--- a/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/Activator.java
+++ b/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/Activator.java
@@ -24,7 +24,7 @@
public static final String PLUGIN_ID = "org.eclipse.emf.emfstore.client.ui.errorreporting"; //$NON-NLS-1$
private static Activator plugin;
-
+
/**
* Constructor.
*/
@@ -53,7 +53,7 @@
/**
* Returns the shared instance.
- *
+ *
* @return the shared instance
*/
public static Activator getDefault() {
diff --git a/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/DefaultMailBugConfigurationProvider.java b/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/DefaultMailBugConfigurationProvider.java
index 4f69dcd..be42d19 100644
--- a/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/DefaultMailBugConfigurationProvider.java
+++ b/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/DefaultMailBugConfigurationProvider.java
@@ -20,43 +20,41 @@
* Only the E-Mail address must be configured.
*
* @author emueller
- *
+ *
*/
public abstract class DefaultMailBugConfigurationProvider implements IMailBugConfigurationProvider {
-
+
private static final String EMAIL_BODY = "Thank you for reporting this bug. Please help us to fix the problem by following these steps:\n\n"
+ "1. Give a summary\n"
+ "<Description>\n\n"
+ "2. Describe steps to reproduce the error\n"
- + "\t1. <Step 1>\n"
- + "\t2. <Step 2>\n\n";
-
- private static final String EMAIL_BODY_ADDITIONAL_TEXT =
- "3. Paste (Ctrl+v) the content of the clipboard below (parts of the log file have been copied to it)\n"
+ + "\t1. <Step 1>\n" + "\t2. <Step 2>\n\n";
+
+ private static final String EMAIL_BODY_ADDITIONAL_TEXT = "3. Paste (Ctrl+v) the content of the clipboard below (parts of the log file have been copied to it)\n"
+ "\t<Content from Log File>";
/**
* {@inheritDoc}
*/
public String getEmailSubject() {
- return "EMFStore Error Report";
+ return "EMFStore Error Report";
}
/**
* {@inheritDoc}
*/
public String getEmailBody(boolean errorDiagnosisCaptured) {
-
+
StringBuffer body = new StringBuffer(EMAIL_BODY);
-
+
if (errorDiagnosisCaptured) {
try {
body.append(URLEncoder.encode(EMAIL_BODY_ADDITIONAL_TEXT, CommonUtil.getEncoding()));
} catch (UnsupportedEncodingException e) {
// ignore
- }
+ }
}
-
+
return body.toString();
}
diff --git a/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/EmfStoreExceptionObserver.java b/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/EmfStoreExceptionObserver.java
index 4459f1e..abef653 100644
--- a/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/EmfStoreExceptionObserver.java
+++ b/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/EmfStoreExceptionObserver.java
@@ -27,7 +27,7 @@
/**
* An exception observer that collects logs.
- *
+ *
* @author Maximilian Koegel
*/
public class EmfStoreExceptionObserver implements ExceptionObserver {
@@ -62,32 +62,33 @@
* {@inheritDoc}
*/
public boolean handleError(RuntimeException e) {
-
+
if (!enabled) {
return false;
}
-
+
if (Configuration.isDebugMode()) {
-
+
MailBugHandler bugHandler = new MailBugHandler();
-
+
try {
bugHandler.execute(new ExecutionEvent());
} catch (ExecutionException exception) {
WorkspaceUtil.handleException(exception);
}
-
+
ErrorDialog
.openError(
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),
"DEBUG MODE ACTIVE: An Error Occured",
- MessageFormat.format(
- "This error message only appears if debug mode is active. \n"
- + "Although this error message might be an error itself, it might help to find bugs faster. \n"
- + "The most recent log has been copied to the clipboard, please add it to the bug report. Thanks! \n"
- + "To disable, launch without {0}={1} switch.",
- Configuration.DEBUG_SWITCH, Configuration.DEBUG_SWITCH_ENABLED_VALUE),
- new Status(Status.ERROR, "org.eclipse.emf.emfstore.client", "An error occured.", e));
+ MessageFormat
+ .format(
+ "This error message only appears if debug mode is active. \n"
+ + "Although this error message might be an error itself, it might help to find bugs faster. \n"
+ + "The most recent log has been copied to the clipboard, please add it to the bug report. Thanks! \n"
+ + "To disable, launch without {0}={1} switch.", Configuration.DEBUG_SWITCH,
+ Configuration.DEBUG_SWITCH_ENABLED_VALUE), new Status(Status.ERROR,
+ "org.eclipse.emf.emfstore.client", "An error occured.", e));
throw e;
}
@@ -100,7 +101,7 @@
for (ExceptionLog exceptionLog : exceptionLogs) {
exceptionLog.addException(e);
}
-
+
return true;
}
@@ -108,24 +109,25 @@
* Adds a log.
*
* @param log
- * the log being added
+ * the log being added
*/
public void addLog(ExceptionLog log) {
exceptionLogs.add(log);
}
-
+
/**
* Removes a log.
*
- * @param log
- * the log to be removed
+ * @param log
+ * the log to be removed
*/
public void removeLog(ExceptionLog log) {
exceptionLogs.remove(log);
}
/**
- * Returns the log.
+ * Returns the log.
+ *
* @return the log
*/
public ExceptionLog getLog() {
diff --git a/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/EmfStoreStatusHandler.java b/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/EmfStoreStatusHandler.java
index 885de2a..f39e5be 100644
--- a/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/EmfStoreStatusHandler.java
+++ b/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/EmfStoreStatusHandler.java
@@ -19,7 +19,7 @@
* @author Maximilian Koegel
*/
public class EmfStoreStatusHandler extends WorkbenchErrorHandler {
-
+
@Override
protected void configureStatusDialog(WorkbenchStatusDialogManager statusDialog) {
super.configureStatusDialog(statusDialog);
diff --git a/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/ErrorReportingPreferencePage.java b/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/ErrorReportingPreferencePage.java
index 0c031b7..2567d08 100644
--- a/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/ErrorReportingPreferencePage.java
+++ b/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/ErrorReportingPreferencePage.java
@@ -22,7 +22,7 @@
* Preference page for error reporting feature.
*
* @author emueller
- *
+ *
*/
public class ErrorReportingPreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage {
@@ -40,10 +40,10 @@
*/
public void init(IWorkbench workbench) {
setPreferenceStore(Activator.getDefault().getPreferenceStore());
- getPreferenceStore().setDefault(ErrorReportingPreferences.ZIP_PATH_KEY, ErrorReportingPreferences.ZIP_PATH_DEFAULT);
+ getPreferenceStore().setDefault(ErrorReportingPreferences.ZIP_PATH_KEY,
+ ErrorReportingPreferences.ZIP_PATH_DEFAULT);
}
-
private boolean validateZipPath(String zipPath) {
return new File(zipPath).exists();
}
@@ -53,38 +53,39 @@
*/
@Override
protected void createFieldEditors() {
- zipPathEditor = new DirectoryFieldEditor(ErrorReportingPreferences.ZIP_PATH_KEY, "&Zip path:", getFieldEditorParent());
+ zipPathEditor = new DirectoryFieldEditor(ErrorReportingPreferences.ZIP_PATH_KEY, "&Zip path:",
+ getFieldEditorParent());
addField(zipPathEditor);
}
-
+
/**
* {@inheritDoc}
*/
@Override
protected void checkState() {
-
+
super.checkState();
boolean validZipPath = validateZipPath(zipPathEditor.getStringValue());
if (validZipPath) {
setValid(true);
- setErrorMessage(null);
+ setErrorMessage(null);
} else {
setValid(false);
setErrorMessage("Invalid zip path. \n");
}
-
+
}
-
+
/**
* {@inheritDoc}
*/
@Override
public void propertyChange(PropertyChangeEvent event) {
-
+
if (event.getProperty().equals("field_editor_value")) {
checkState();
}
-
+
}
}
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/ErrorReportingPreferences.java b/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/ErrorReportingPreferences.java
index 84bbc34..81c7d82 100644
--- a/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/ErrorReportingPreferences.java
+++ b/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/ErrorReportingPreferences.java
@@ -19,28 +19,27 @@
* Preference keys and default values for error reporting feature.
*
* @author emueller
- *
+ *
*/
public final class ErrorReportingPreferences {
-
+
private ErrorReportingPreferences() {
-
+
}
-
+
/**
* The qualifier of the preferences used by the error reporting feature.
*/
public static final String QUALIFIER = "org.eclipse.emf.emfstore.client.ui.errorreporting";
-
+
/**
- * Preference key for the zip path.
+ * Preference key for the zip path.
*/
public static final String ZIP_PATH_KEY = "zipPath";
-
+
/**
* Default value for the zip path.
*/
public static final String ZIP_PATH_DEFAULT = StringUtils.join(
- Arrays.asList(System.getProperty("user.home"), "Desktop"),
- File.separatorChar);
+ Arrays.asList(System.getProperty("user.home"), "Desktop"), File.separatorChar);
}
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/ErrorReportingUtil.java b/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/ErrorReportingUtil.java
index 2af2f9d..e537923 100644
--- a/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/ErrorReportingUtil.java
+++ b/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/ErrorReportingUtil.java
@@ -57,37 +57,36 @@
* @author emueller
*/
public final class ErrorReportingUtil {
-
+
private static final String CUSTOMLOG_EXTENSION_POINT_ID = "org.eclipse.emf.emfstore.client.ui.errorreporting";
private static final String SCREENSHOT_FOLDER_NAME = "screenshots";
private static final String DEFAULT_SCREENSHOT_PREFIX = "emfstore-screenshot-";
private static final String DEFAULT_SYSINFO_PREFIX = "emfstore-sysinfo-";
private static final String SYSINFO_SUFFIX = "txt";
-
- private static SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd_HH-mm-ss");
+
+ private static SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd_HH-mm-ss");
/**
* Private constructor.
*/
private ErrorReportingUtil() {
-
+
}
-
+
private static String getLogText() {
-
+
String filename = Platform.getLogFileLocation().toOSString();
File log = new File(filename);
-
+
try {
String version = Configuration.getClientVersion().getVersion();
String logFileContent = FileUtils.readFileToString(log);
StringBuffer result = new StringBuffer(16384);
- result.append(
- MessageFormat.format("EMFStore client {0}. Log copied at {1}\n\n",
- version, SimpleDateFormat.getDateTimeInstance().format(new Date())));
+ result.append(MessageFormat.format("EMFStore client {0}. Log copied at {1}\n\n", version, SimpleDateFormat
+ .getDateTimeInstance().format(new Date())));
result.append(logFileContent);
-
+
return result.toString();
} catch (IOException ex) {
WorkspaceUtil.logException("Exception while copying log to clipboard", ex);
@@ -98,18 +97,18 @@
/**
* Copies the content of the current log file to the clipboard.
- *
+ *
* @param window
- * the window that is used to determine which Display to copy to
+ * the window that is used to determine which Display to copy to
*/
public static void copyLogToClipboard(IWorkbenchWindow window) {
String text = getLogText();
Clipboard clipboard = null;
-
+
if (text == null) {
return;
}
-
+
try {
clipboard = new Clipboard(window.getShell().getDisplay());
clipboard.setContents(new Object[] { text }, new Transfer[] { TextTransfer.getInstance() });
@@ -118,7 +117,7 @@
clipboard.dispose();
}
}
- }
+ }
/**
* Creates the error diagnosis file.
@@ -130,7 +129,7 @@
* the parent path under which the error diagnosis file will be put
* @param statusAdapter
* a status adapter that may contain the most recent stack trace, that will be copied
- * into the error diagnosis file
+ * into the error diagnosis file
* @return the absolute path to the created error diagnosis file
*/
public static String captureSysInfo(Date date, String path, StatusAdapter statusAdapter) {
@@ -138,7 +137,7 @@
File temp = new File(path);
FileWriter fileWriter = null;
BufferedWriter bufferedWriter = null;
-
+
temp.deleteOnExit();
try {
@@ -148,8 +147,8 @@
bufferedWriter = new BufferedWriter(fileWriter);
bufferedWriter.write(MessageFormat.format("Log file created on {0}\n", new Date()));
- bufferedWriter.write(MessageFormat.format("Client version: {0} {1}\n",
- Configuration.getClientVersion().getName(), Configuration.getClientVersion().getVersion()));
+ bufferedWriter.write(MessageFormat.format("Client version: {0} {1}\n", Configuration.getClientVersion()
+ .getName(), Configuration.getClientVersion().getVersion()));
bufferedWriter.write("List of open editors:\n");
if (getOpenEditorIDs().size() == 0) {
@@ -160,37 +159,33 @@
}
}
- bufferedWriter.write(MessageFormat.format("Working directory: {0}",
- System.getProperty("user.dir")));
- bufferedWriter.write(MessageFormat.format("System user: {0}",
- System.getProperty("user.name")));
+ bufferedWriter.write(MessageFormat.format("Working directory: {0}", System.getProperty("user.dir")));
+ bufferedWriter.write(MessageFormat.format("System user: {0}", System.getProperty("user.name")));
bufferedWriter.write(MessageFormat.format("Memory usage: {0}/{1} MB",
toMb(runtime.totalMemory() - runtime.freeMemory()), toMb(runtime.maxMemory())));
- bufferedWriter.write(MessageFormat.format("Available processors (cores): {0}\n",
+ bufferedWriter.write(MessageFormat.format("Available processors (cores): {0}\n",
runtime.availableProcessors()));
- bufferedWriter.write(MessageFormat.format("Java version: {0}",
- System.getProperty("java.version")));
- bufferedWriter.write(MessageFormat.format("OS version: {0}",
- System.getProperty("os.version")));
+ bufferedWriter.write(MessageFormat.format("Java version: {0}", System.getProperty("java.version")));
+ bufferedWriter.write(MessageFormat.format("OS version: {0}", System.getProperty("os.version")));
bufferedWriter.write("VM Startup parameters:\n");
for (String vmArg : runtimeMXBean.getInputArguments()) {
bufferedWriter.write(MessageFormat.format("\t{0}\n", vmArg));
}
-
+
ExtensionPoint extPoint = new ExtensionPoint(CUSTOMLOG_EXTENSION_POINT_ID);
for (ExtensionElement el : extPoint.getExtensionElements()) {
ILoggable loggable = el.getClass("loggableClass", ILoggable.class);
-
+
if (loggable == null) {
continue;
}
-
+
bufferedWriter.write(loggable.getLoggable());
}
if (statusAdapter != null) {
- bufferedWriter.write(MessageFormat.format("Stacktrace: {0}\n", getStatus(statusAdapter)));
+ bufferedWriter.write(MessageFormat.format("Stacktrace: {0}\n", getStatus(statusAdapter)));
}
return temp.getAbsolutePath();
@@ -212,7 +207,7 @@
return null;
}
-
+
/**
* Creates the error diagnosis file.
*
@@ -243,7 +238,7 @@
return openedEditors;
}
-
+
private static String getStatus(StatusAdapter statusAdapter) {
StringBuilder sb = new StringBuilder();
addException(sb, statusAdapter.getStatus());
@@ -254,7 +249,6 @@
return logText;
}
-
private static void addException(StringBuilder collector, IStatus iStatus) {
if (iStatus instanceof MultiStatus) {
MultiStatus ms = (MultiStatus) iStatus;
@@ -273,7 +267,7 @@
}
}
}
-
+
private static int toMb(long value) {
return (int) (value / 1024 / 1024);
}
@@ -282,19 +276,20 @@
* Returns the path to the file that contains error diagnosis and system specific information.
*
* @param date
- * the date to be used as a part of the constructed path
+ * the date to be used as a part of the constructed path
* @return the constructed path
*/
public static String getSysInfoPath(Date date) {
- String errorDiagnosisFilename = DEFAULT_SYSINFO_PREFIX + formatDate(date) + "." + SYSINFO_SUFFIX;
+ String errorDiagnosisFilename = DEFAULT_SYSINFO_PREFIX + formatDate(date) + "." + SYSINFO_SUFFIX;
return StringUtils.join(Arrays.asList(Configuration.getErrorLogDirectory(), errorDiagnosisFilename),
File.separatorChar);
}
-
+
/**
* Formats the given date.
+ *
* @param date
- * the date to be formatted
+ * the date to be formatted
* @return the formatted date
*/
public static String formatDate(Date date) {
@@ -303,10 +298,11 @@
/**
* Takes a screenshot.
+ *
* @param screenshotPath
- * the path under which the screenshot will be put
+ * the path under which the screenshot will be put
* @param format
- * the format of the screenshot being created
+ * the format of the screenshot being created
* @return the path to the taken screenshot
*/
public static String makeScreenshot(String screenshotPath, ScreenshotFormat format) {
@@ -328,30 +324,29 @@
return null;
}
-
+
/**
* Returns the screenshot path.
+ *
* @param date
- * the date that will be part of the screenshot name
+ * the date that will be part of the screenshot name
* @param format
- * the format of the screenshot
+ * the format of the screenshot
* @return the constructed path to the screenshot
*/
public static String getScreenshotPath(Date date, ScreenshotFormat format) {
String screenShotFilename = DEFAULT_SCREENSHOT_PREFIX + formatDate(date) + "." + format.getType();
- return StringUtils.join(Arrays.asList(getScreenshotFolder(), screenShotFilename),
- File.separatorChar);
+ return StringUtils.join(Arrays.asList(getScreenshotFolder(), screenShotFilename), File.separatorChar);
}
-
private static String getScreenshotFolder() {
- File screenshotDir = new File(StringUtils.join(Arrays.asList(Configuration.getErrorLogDirectory(),
- SCREENSHOT_FOLDER_NAME), File.separatorChar));
-
+ File screenshotDir = new File(StringUtils.join(
+ Arrays.asList(Configuration.getErrorLogDirectory(), SCREENSHOT_FOLDER_NAME), File.separatorChar));
+
if (!screenshotDir.exists()) {
screenshotDir.mkdir();
}
-
+
return screenshotDir.getAbsolutePath();
}
}
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/ExceptionLog.java b/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/ExceptionLog.java
index c75b380..fb9d8bf 100644
--- a/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/ExceptionLog.java
+++ b/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/ExceptionLog.java
@@ -27,7 +27,7 @@
* Constructor.
*
* @param exceptionObserver
- * the exception that is used to notify this class when to add exceptions
+ * the exception that is used to notify this class when to add exceptions
*/
public ExceptionLog(EmfStoreExceptionObserver exceptionObserver) {
this.exceptions = new ArrayList<Exception>();
@@ -39,7 +39,7 @@
* Adds and exception to the log.
*
* @param exception
- * the exception to be added
+ * the exception to be added
*/
public void addException(Exception exception) {
exceptions.add(exception);
diff --git a/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/ILoggable.java b/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/ILoggable.java
index c675447..5b82705 100644
--- a/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/ILoggable.java
+++ b/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/ILoggable.java
@@ -11,9 +11,9 @@
package org.eclipse.emf.emfstore.client.ui.errorreporting;
/**
- * Interface for adding information to the error diagnosis and system information file that
+ * Interface for adding information to the error diagnosis and system information file that
* is created via {@link ErrorReportingUtil#captureSysInfo(java.util.Date, String)}.
- *
+ *
* @author emueller
*/
public interface ILoggable {
diff --git a/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/IMailBugConfigurationProvider.java b/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/IMailBugConfigurationProvider.java
index 6d8346b..5b9cced 100644
--- a/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/IMailBugConfigurationProvider.java
+++ b/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/IMailBugConfigurationProvider.java
@@ -14,7 +14,7 @@
* Interface used for error reporting feature.
*
* @author emueller
- *
+ *
*/
public interface IMailBugConfigurationProvider {
@@ -24,22 +24,22 @@
* @return the E-Mail address
*/
String getEmailAddress();
-
+
/**
* Returns the E-Mail subject used within the error reporting feature.
*
* @return the E-Mail subject
*/
String getEmailSubject();
-
+
/**
* Returns the E-Mail body text used within the error reporting feature.
*
* @param errorDiagnosisCaptured
- * whether error diagnosis information has been captured
+ * whether error diagnosis information has been captured
*
* @return the E-Mail message body
*/
String getEmailBody(boolean errorDiagnosisCaptured);
-
+
}
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/LogFilenameFilter.java b/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/LogFilenameFilter.java
index f48d11e..6da9229 100644
--- a/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/LogFilenameFilter.java
+++ b/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/LogFilenameFilter.java
@@ -17,7 +17,7 @@
* Filter for log files.
*/
public class LogFilenameFilter implements FilenameFilter {
-
+
/**
* {@inheritDoc}
*/
diff --git a/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/MailBugHandler.java b/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/MailBugHandler.java
index 1c4a147..01c63ac 100644
--- a/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/MailBugHandler.java
+++ b/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/MailBugHandler.java
@@ -54,11 +54,11 @@
* @author emueller
*/
public class MailBugHandler extends AbstractHandler implements IWorkbenchWindowActionDelegate {
-
+
private IWorkbenchWindow window;
private StatusAdapter statusAdapter;
private IMailBugConfigurationProvider configurationProvider;
-
+
/**
* Constructor.
*/
@@ -67,20 +67,21 @@
this.statusAdapter = null;
initConfigurationProvider();
}
-
+
/**
* Constructor.
+ *
* @param window
- * a window that is used to determine the shell
+ * a window that is used to determine the shell
* @param statusAdapter
- * a status adapter that may contain the most recent stack trace
+ * a status adapter that may contain the most recent stack trace
*/
public MailBugHandler(IWorkbenchWindow window, StatusAdapter statusAdapter) {
this.window = window;
this.statusAdapter = statusAdapter;
initConfigurationProvider();
}
-
+
private void initConfigurationProvider() {
ExtensionPoint extensionPoint = new ExtensionPoint(Activator.PLUGIN_ID);
configurationProvider = extensionPoint.getClass("providerClass", IMailBugConfigurationProvider.class);
@@ -89,47 +90,47 @@
}
}
- private void archive(final Date currentDate, IProgressMonitor monitor, String[] paths)
- throws FileNotFoundException {
+ private void archive(final Date currentDate, IProgressMonitor monitor, String[] paths) throws FileNotFoundException {
monitor.beginTask("Creating error report...", paths.length);
try {
ZipHandle zipHandle = ZipHandle.openZipHandle(getZipPathname(currentDate));
-
+
for (String path : paths) {
File file = new File(path);
-
+
if (!file.exists()) {
continue;
}
-
+
if (file.isDirectory()) {
zipHandle.addFile(StringUtils.EMPTY, path + "/");
} else {
zipHandle.addFile(StringUtils.EMPTY, path);
}
-
+
monitor.worked(1);
}
- zipHandle.close();
+ zipHandle.close();
} catch (IOException e) {
- MessageDialog.openError(window.getShell(), "Error while creating zip",
- MessageFormat.format("An error occurred while trying to archive the workspace folder {0}: {1}",
- Configuration.getErrorLogDirectory(), e.getMessage()));
+ MessageDialog.openError(window.getShell(), "Error while creating zip", MessageFormat.format(
+ "An error occurred while trying to archive the workspace folder {0}: {1}",
+ Configuration.getErrorLogDirectory(), e.getMessage()));
}
-
+
monitor.done();
}
private String getZipPathname(Date currentDate) {
- String zipPath = Platform.getPreferencesService().getString(ErrorReportingPreferences.QUALIFIER,
+ String zipPath = Platform.getPreferencesService().getString(ErrorReportingPreferences.QUALIFIER,
ErrorReportingPreferences.ZIP_PATH_KEY, ErrorReportingPreferences.ZIP_PATH_DEFAULT, null);
-
+
if (zipPath.endsWith(File.separator)) {
zipPath = zipPath.substring(0, zipPath.length() - 2);
}
-
- return StringUtils.join(Arrays.asList(zipPath, ZipHandle.ZIP_PREFIX + ErrorReportingUtil.formatDate(currentDate) + ".zip"),
+
+ return StringUtils.join(
+ Arrays.asList(zipPath, ZipHandle.ZIP_PREFIX + ErrorReportingUtil.formatDate(currentDate) + ".zip"),
File.separatorChar);
}
@@ -150,7 +151,7 @@
* {@inheritDoc}
*/
public void selectionChanged(IAction action, ISelection selection) {
-
+
}
/**
@@ -166,7 +167,7 @@
* {@inheritDoc}
*/
public Object execute(ExecutionEvent event) throws ExecutionException {
-
+
final Date date = new Date();
boolean shouldCaptureErrorDiagnosis = openShouldCreateErrorReportDialog(date);
@@ -178,12 +179,13 @@
try {
String screenshotPath = ErrorReportingUtil.makeScreenshot(
ErrorReportingUtil.getScreenshotPath(date, ScreenshotFormat.JPG), ScreenshotFormat.JPG);
- String sysInfoPath = ErrorReportingUtil.captureSysInfo(date, ErrorReportingUtil.getSysInfoPath(date), statusAdapter);
+ String sysInfoPath = ErrorReportingUtil.captureSysInfo(date,
+ ErrorReportingUtil.getSysInfoPath(date), statusAdapter);
IPath logFolder = Platform.getLogFileLocation().removeLastSegments(1);
String[] logFiles = getLogFilePaths(logFolder);
-
- archive(date, monitor, (String[]) ArrayUtils.addAll(new String[] { screenshotPath, sysInfoPath, Configuration.getWorkspaceDirectory() },
- logFiles));
+
+ archive(date, monitor, (String[]) ArrayUtils.addAll(new String[] { screenshotPath,
+ sysInfoPath, Configuration.getWorkspaceDirectory() }, logFiles));
} catch (FileNotFoundException exception) {
WorkspaceUtil.logException("Could not capture error diagnosis information.", exception);
}
@@ -200,7 +202,7 @@
ErrorReportingUtil.copyLogToClipboard(PlatformUI.getWorkbench().getActiveWorkbenchWindow());
String url;
-
+
try {
url = buildUrl(shouldCaptureErrorDiagnosis);
} catch (UnsupportedEncodingException e) {
@@ -209,7 +211,7 @@
}
IWorkbenchBrowserSupport support = PlatformUI.getWorkbench().getBrowserSupport();
-
+
try {
IWebBrowser browser = support.getExternalBrowser();
browser.openURL(new URL(url));
@@ -221,36 +223,36 @@
return null;
}
-
+
private String buildUrl(boolean shouldCaptureErrorDiagnosis) throws UnsupportedEncodingException {
-
+
StringBuffer url = new StringBuffer("mailto:");
String email = configurationProvider.getEmailAddress();
String subject = configurationProvider.getEmailSubject();
String body = configurationProvider.getEmailBody(shouldCaptureErrorDiagnosis);
-
+
url.append(email + "?");
url.append("subject=" + URLEncoder.encode(subject, CommonUtil.getEncoding()) + "&");
url.append("body=" + URLEncoder.encode(body.toString(), CommonUtil.getEncoding()));
-
+
return url.toString();
}
private String[] getLogFilePaths(IPath logFolder) {
String[] logFiles = new File(logFolder.toOSString()).list(new LogFilenameFilter());
-
+
for (int i = 0; i < logFiles.length; i++) {
logFiles[i] = logFolder.toOSString() + File.separatorChar + logFiles[i];
}
-
+
return logFiles;
}
private boolean openShouldCreateErrorReportDialog(final Date date) {
return MessageDialog.openQuestion(window == null ? Display.getDefault().getActiveShell() : window.getShell(),
- "Error diagnosis information capture", MessageFormat.format("Would you like to capture error diagnosis information?\n"
- + "The data will be stored in a zip file under \"{0}\".",
- getZipPathname(date)));
+ "Error diagnosis information capture", MessageFormat.format(
+ "Would you like to capture error diagnosis information?\n"
+ + "The data will be stored in a zip file under \"{0}\".", getZipPathname(date)));
}
/**
@@ -259,7 +261,7 @@
public void run(IAction action) {
execute();
}
-
+
/**
* Executes the handler.
*/
diff --git a/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/MailBugStatusAreaProvider.java b/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/MailBugStatusAreaProvider.java
index 845a320..22b3410 100644
--- a/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/MailBugStatusAreaProvider.java
+++ b/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/MailBugStatusAreaProvider.java
@@ -23,10 +23,10 @@
import org.eclipse.ui.statushandlers.StatusAdapter;
/**
- * Status area provider for sending a bug report via mail.
+ * Status area provider for sending a bug report via mail.
*
* @author Maximilian Koegel
- *
+ *
*/
public class MailBugStatusAreaProvider extends AbstractStatusAreaProvider {
diff --git a/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/ScreenshotFormat.java b/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/ScreenshotFormat.java
index c2f3b5f..99457fa 100644
--- a/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/ScreenshotFormat.java
+++ b/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/ScreenshotFormat.java
@@ -14,29 +14,30 @@
* Represents the format of a screenshot.
*
* @author emueller
- *
+ *
*/
public enum ScreenshotFormat {
-
+
/**
* JPG format.
*/
JPG("jpg");
-
+
private final String type;
-
+
/**
* Constructor.
*
- * @param type
- * the format type
+ * @param type
+ * the format type
*/
ScreenshotFormat(String type) {
this.type = type;
}
-
+
/**
* Returns the format type as a string.
+ *
* @return the format type as a string
*/
public String getType() {
diff --git a/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/ZipHandle.java b/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/ZipHandle.java
index 3cff70f..2023337 100644
--- a/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/ZipHandle.java
+++ b/org.eclipse.emf.emfstore.client.ui.errorreporting/src/org/eclipse/emf/emfstore/client/ui/errorreporting/ZipHandle.java
@@ -32,7 +32,7 @@
* The prefix that will be used as part of the zip file.
*/
public static final String ZIP_PREFIX = "EMFStoreErrorLog_";
-
+
private final ZipOutputStream zipOutputStream;
private final FileOutputStream fileOutputStream;
private final BufferedOutputStream bufferedOutputStream;
@@ -48,9 +48,9 @@
* Adds a file to the zip.
*
* @param base
- * the base name of the file being added
+ * the base name of the file being added
* @param path
- * the actual path of file to be added to the zip
+ * the actual path of file to be added to the zip
* @throws IOException in case the file could not be added
*/
public void addFile(String base, String path) throws IOException {
@@ -86,12 +86,12 @@
* Creates a zip entry for the path specified with a name built from the base passed in and the file/directory
* name. If the path is a directory, a recursive call is made such that the full directory is added to the zip.
*
- * @param zipOutputStream
- * the zip file's output stream
- * @param path
- * the filesystem path of the file/directory being added
- * @param base
- * the base prefix to for the name of the zip file entry
+ * @param zipOutputStream
+ * the zip file's output stream
+ * @param path
+ * the filesystem path of the file/directory being added
+ * @param base
+ * the base prefix to for the name of the zip file entry
*
* @throws IOException in case of an error during addition of the file to the zip
*/
@@ -100,7 +100,6 @@
String entryName = base + file.getName();
ZipEntry zipEntry = new ZipEntry(entryName);
-
if (file.isFile()) {
zipOutputStream.putNextEntry(zipEntry);
FileInputStream fileInputStream = null;
@@ -119,11 +118,12 @@
}
}
}
-
+
/**
* Opens up a zip handle.
+ *
* @param zipPath
- * the path of the zip file being created
+ * the path of the zip file being created
* @return the created zip handle
* @throws FileNotFoundException in case intial zip file creation fails
*/
diff --git a/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/AreaItemProvider.java b/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/AreaItemProvider.java
index 1386b3b..2d7c64e 100644
--- a/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/AreaItemProvider.java
+++ b/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/AreaItemProvider.java
@@ -10,7 +10,6 @@
*/
package org.eclipse.emf.emfstore.bowling.provider;
-
import java.util.Collection;
import java.util.List;
@@ -38,20 +37,16 @@
* This is the item provider adapter for a {@link org.eclipse.emf.emfstore.bowling.Area} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
-public class AreaItemProvider
- extends ItemProviderAdapter
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
+public class AreaItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
/**
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public AreaItemProvider(AdapterFactory adapterFactory) {
@@ -62,6 +57,7 @@
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -79,6 +75,7 @@
* {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -94,6 +91,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -108,6 +106,7 @@
* This returns Area.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -119,6 +118,7 @@
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -131,6 +131,7 @@
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -138,10 +139,10 @@
updateChildren(notification);
switch (notification.getFeatureID(Area.class)) {
- case BowlingPackage.AREA__AREAS:
- case BowlingPackage.AREA__TOURNAMENTS:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
- return;
+ case BowlingPackage.AREA__AREAS:
+ case BowlingPackage.AREA__TOURNAMENTS:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
}
super.notifyChanged(notification);
}
@@ -151,27 +152,25 @@
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
- newChildDescriptors.add
- (createChildParameter
- (BowlingPackage.Literals.AREA__AREAS,
- BowlingFactory.eINSTANCE.createArea()));
+ newChildDescriptors.add(createChildParameter(BowlingPackage.Literals.AREA__AREAS,
+ BowlingFactory.eINSTANCE.createArea()));
- newChildDescriptors.add
- (createChildParameter
- (BowlingPackage.Literals.AREA__TOURNAMENTS,
- BowlingFactory.eINSTANCE.createTournament()));
+ newChildDescriptors.add(createChildParameter(BowlingPackage.Literals.AREA__TOURNAMENTS,
+ BowlingFactory.eINSTANCE.createTournament()));
}
/**
* Return the resource locator for this item provider's resources.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
diff --git a/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/BowlingEditPlugin.java b/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/BowlingEditPlugin.java
index f123f8d..cb64842 100644
--- a/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/BowlingEditPlugin.java
+++ b/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/BowlingEditPlugin.java
@@ -18,6 +18,7 @@
* This is the central singleton for the Bowling edit plugin.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public final class BowlingEditPlugin extends EMFPlugin {
@@ -25,6 +26,7 @@
* Keep track of the singleton.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public static final BowlingEditPlugin INSTANCE = new BowlingEditPlugin();
@@ -33,6 +35,7 @@
* Keep track of the singleton.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private static Implementation plugin;
@@ -41,18 +44,18 @@
* Create the instance.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public BowlingEditPlugin() {
- super
- (new ResourceLocator [] {
- });
+ super(new ResourceLocator[] {});
}
/**
* Returns the singleton instance of the Eclipse plugin.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the singleton instance.
* @generated
*/
@@ -65,6 +68,7 @@
* Returns the singleton instance of the Eclipse plugin.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the singleton instance.
* @generated
*/
@@ -76,6 +80,7 @@
* The actual implementation of the Eclipse <b>Plugin</b>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public static class Implementation extends EclipsePlugin {
@@ -83,6 +88,7 @@
* Creates an instance.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Implementation() {
diff --git a/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/BowlingItemProviderAdapterFactory.java b/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/BowlingItemProviderAdapterFactory.java
index e4665ba..d83bddb 100644
--- a/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/BowlingItemProviderAdapterFactory.java
+++ b/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/BowlingItemProviderAdapterFactory.java
@@ -33,18 +33,22 @@
/**
* This is the factory that is used to provide the interfaces needed to support Viewers.
- * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}.
+ * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged
+ * fireNotifyChanged}.
* The adapters also support Eclipse property sheets.
* Note that most of the adapters are shared among multiple instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
-public class BowlingItemProviderAdapterFactory extends BowlingAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable {
+public class BowlingItemProviderAdapterFactory extends BowlingAdapterFactory implements ComposeableAdapterFactory,
+ IChangeNotifier, IDisposable {
/**
* This keeps track of the root adapter factory that delegates to this adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected ComposedAdapterFactory parentAdapterFactory;
@@ -53,6 +57,7 @@
* This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected IChangeNotifier changeNotifier = new ChangeNotifier();
@@ -61,6 +66,7 @@
* This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Collection<Object> supportedTypes = new ArrayList<Object>();
@@ -69,6 +75,7 @@
* This constructs an instance.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public BowlingItemProviderAdapterFactory() {
@@ -83,6 +90,7 @@
* This keeps track of the one adapter used for all {@link org.eclipse.emf.emfstore.bowling.Player} instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected PlayerItemProvider playerItemProvider;
@@ -91,6 +99,7 @@
* This creates an adapter for a {@link org.eclipse.emf.emfstore.bowling.Player}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -106,6 +115,7 @@
* This keeps track of the one adapter used for all {@link org.eclipse.emf.emfstore.bowling.League} instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected LeagueItemProvider leagueItemProvider;
@@ -114,6 +124,7 @@
* This creates an adapter for a {@link org.eclipse.emf.emfstore.bowling.League}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -129,6 +140,7 @@
* This keeps track of the one adapter used for all {@link org.eclipse.emf.emfstore.bowling.Tournament} instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected TournamentItemProvider tournamentItemProvider;
@@ -137,6 +149,7 @@
* This creates an adapter for a {@link org.eclipse.emf.emfstore.bowling.Tournament}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -152,6 +165,7 @@
* This keeps track of the one adapter used for all {@link org.eclipse.emf.emfstore.bowling.Matchup} instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected MatchupItemProvider matchupItemProvider;
@@ -160,6 +174,7 @@
* This creates an adapter for a {@link org.eclipse.emf.emfstore.bowling.Matchup}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -175,6 +190,7 @@
* This keeps track of the one adapter used for all {@link org.eclipse.emf.emfstore.bowling.Game} instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected GameItemProvider gameItemProvider;
@@ -183,6 +199,7 @@
* This creates an adapter for a {@link org.eclipse.emf.emfstore.bowling.Game}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -198,6 +215,7 @@
* This keeps track of the one adapter used for all {@link java.util.Map.Entry} instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected PlayerToPointsMapItemProvider playerToPointsMapItemProvider;
@@ -206,6 +224,7 @@
* This creates an adapter for a {@link java.util.Map.Entry}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -221,6 +240,7 @@
* This keeps track of the one adapter used for all {@link org.eclipse.emf.emfstore.bowling.Referee} instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected RefereeItemProvider refereeItemProvider;
@@ -229,6 +249,7 @@
* This creates an adapter for a {@link org.eclipse.emf.emfstore.bowling.Referee}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -244,6 +265,7 @@
* This keeps track of the one adapter used for all {@link java.util.Map.Entry} instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected RefereeToGamesMapItemProvider refereeToGamesMapItemProvider;
@@ -252,6 +274,7 @@
* This creates an adapter for a {@link java.util.Map.Entry}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -267,6 +290,7 @@
* This keeps track of the one adapter used for all {@link org.eclipse.emf.emfstore.bowling.Area} instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected AreaItemProvider areaItemProvider;
@@ -275,6 +299,7 @@
* This creates an adapter for a {@link org.eclipse.emf.emfstore.bowling.Area}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -290,6 +315,7 @@
* This returns the root adapter factory that contains this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public ComposeableAdapterFactory getRootAdapterFactory() {
@@ -300,6 +326,7 @@
* This sets the composed adapter factory that contains this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) {
@@ -309,6 +336,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -320,6 +348,7 @@
* This implementation substitutes the factory itself as the key for the adapter.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -330,13 +359,14 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object adapt(Object object, Object type) {
if (isFactoryForType(type)) {
Object adapter = super.adapt(object, type);
- if (!(type instanceof Class<?>) || (((Class<?>)type).isInstance(adapter))) {
+ if (!(type instanceof Class<?>) || (((Class<?>) type).isInstance(adapter))) {
return adapter;
}
}
@@ -348,6 +378,7 @@
* This adds a listener.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void addListener(INotifyChangedListener notifyChangedListener) {
@@ -358,6 +389,7 @@
* This removes a listener.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void removeListener(INotifyChangedListener notifyChangedListener) {
@@ -368,6 +400,7 @@
* This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void fireNotifyChanged(Notification notification) {
@@ -379,21 +412,31 @@
}
/**
- * This disposes all of the item providers created by this factory.
+ * This disposes all of the item providers created by this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void dispose() {
- if (playerItemProvider != null) playerItemProvider.dispose();
- if (leagueItemProvider != null) leagueItemProvider.dispose();
- if (tournamentItemProvider != null) tournamentItemProvider.dispose();
- if (matchupItemProvider != null) matchupItemProvider.dispose();
- if (gameItemProvider != null) gameItemProvider.dispose();
- if (playerToPointsMapItemProvider != null) playerToPointsMapItemProvider.dispose();
- if (refereeItemProvider != null) refereeItemProvider.dispose();
- if (refereeToGamesMapItemProvider != null) refereeToGamesMapItemProvider.dispose();
- if (areaItemProvider != null) areaItemProvider.dispose();
+ if (playerItemProvider != null)
+ playerItemProvider.dispose();
+ if (leagueItemProvider != null)
+ leagueItemProvider.dispose();
+ if (tournamentItemProvider != null)
+ tournamentItemProvider.dispose();
+ if (matchupItemProvider != null)
+ matchupItemProvider.dispose();
+ if (gameItemProvider != null)
+ gameItemProvider.dispose();
+ if (playerToPointsMapItemProvider != null)
+ playerToPointsMapItemProvider.dispose();
+ if (refereeItemProvider != null)
+ refereeItemProvider.dispose();
+ if (refereeToGamesMapItemProvider != null)
+ refereeToGamesMapItemProvider.dispose();
+ if (areaItemProvider != null)
+ areaItemProvider.dispose();
}
}
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/GameItemProvider.java b/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/GameItemProvider.java
index b3b7578..83867b3 100644
--- a/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/GameItemProvider.java
+++ b/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/GameItemProvider.java
@@ -10,7 +10,6 @@
*/
package org.eclipse.emf.emfstore.bowling.provider;
-
import java.util.Collection;
import java.util.List;
@@ -37,20 +36,16 @@
* This is the item provider adapter for a {@link org.eclipse.emf.emfstore.bowling.Game} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
-public class GameItemProvider
- extends ItemProviderAdapter
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
+public class GameItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
/**
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public GameItemProvider(AdapterFactory adapterFactory) {
@@ -61,6 +56,7 @@
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -78,50 +74,38 @@
* This adds a property descriptor for the Player feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addPlayerPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_Game_player_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_Game_player_feature", "_UI_Game_type"),
- BowlingPackage.Literals.GAME__PLAYER,
- true,
- false,
- true,
- null,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Game_player_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Game_player_feature", "_UI_Game_type"),
+ BowlingPackage.Literals.GAME__PLAYER, true, false, true, null, null, null));
}
/**
* This adds a property descriptor for the Frames feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addFramesPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_Game_frames_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_Game_frames_feature", "_UI_Game_type"),
- BowlingPackage.Literals.GAME__FRAMES,
- true,
- false,
- false,
- ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Game_frames_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Game_frames_feature", "_UI_Game_type"),
+ BowlingPackage.Literals.GAME__FRAMES, true, false, false, ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
+ null, null));
}
/**
* This returns Game.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -133,6 +117,7 @@
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -145,6 +130,7 @@
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -152,9 +138,9 @@
updateChildren(notification);
switch (notification.getFeatureID(Game.class)) {
- case BowlingPackage.GAME__FRAMES:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
- return;
+ case BowlingPackage.GAME__FRAMES:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
}
super.notifyChanged(notification);
}
@@ -164,6 +150,7 @@
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -175,6 +162,7 @@
* Return the resource locator for this item provider's resources.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
diff --git a/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/LeagueItemProvider.java b/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/LeagueItemProvider.java
index ccc794e..626c68f 100644
--- a/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/LeagueItemProvider.java
+++ b/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/LeagueItemProvider.java
@@ -10,7 +10,6 @@
*/
package org.eclipse.emf.emfstore.bowling.provider;
-
import java.util.Collection;
import java.util.List;
@@ -40,20 +39,16 @@
* This is the item provider adapter for a {@link org.eclipse.emf.emfstore.bowling.League} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
-public class LeagueItemProvider
- extends ItemProviderAdapter
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
+public class LeagueItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
/**
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public LeagueItemProvider(AdapterFactory adapterFactory) {
@@ -64,6 +59,7 @@
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -80,22 +76,16 @@
* This adds a property descriptor for the Name feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addNamePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_League_name_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_League_name_feature", "_UI_League_type"),
- BowlingPackage.Literals.LEAGUE__NAME,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_League_name_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_League_name_feature", "_UI_League_type"),
+ BowlingPackage.Literals.LEAGUE__NAME, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
}
/**
@@ -104,6 +94,7 @@
* {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -118,6 +109,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -132,6 +124,7 @@
* This returns League.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -143,14 +136,14 @@
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
- String label = ((League)object).getName();
- return label == null || label.length() == 0 ?
- getString("_UI_League_type") :
- getString("_UI_League_type") + " " + label;
+ String label = ((League) object).getName();
+ return label == null || label.length() == 0 ? getString("_UI_League_type") : getString("_UI_League_type") + " "
+ + label;
}
/**
@@ -158,6 +151,7 @@
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -165,12 +159,12 @@
updateChildren(notification);
switch (notification.getFeatureID(League.class)) {
- case BowlingPackage.LEAGUE__NAME:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
- return;
- case BowlingPackage.LEAGUE__PLAYERS:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
- return;
+ case BowlingPackage.LEAGUE__NAME:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ case BowlingPackage.LEAGUE__PLAYERS:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
}
super.notifyChanged(notification);
}
@@ -180,22 +174,22 @@
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
- newChildDescriptors.add
- (createChildParameter
- (BowlingPackage.Literals.LEAGUE__PLAYERS,
- BowlingFactory.eINSTANCE.createPlayer()));
+ newChildDescriptors.add(createChildParameter(BowlingPackage.Literals.LEAGUE__PLAYERS,
+ BowlingFactory.eINSTANCE.createPlayer()));
}
/**
* Return the resource locator for this item provider's resources.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
diff --git a/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/MatchupItemProvider.java b/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/MatchupItemProvider.java
index 9ae089a..ffa26e3 100644
--- a/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/MatchupItemProvider.java
+++ b/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/MatchupItemProvider.java
@@ -10,7 +10,6 @@
*/
package org.eclipse.emf.emfstore.bowling.provider;
-
import java.util.Collection;
import java.util.List;
@@ -38,20 +37,16 @@
* This is the item provider adapter for a {@link org.eclipse.emf.emfstore.bowling.Matchup} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
-public class MatchupItemProvider
- extends ItemProviderAdapter
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
+public class MatchupItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
/**
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public MatchupItemProvider(AdapterFactory adapterFactory) {
@@ -62,6 +57,7 @@
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -79,6 +75,7 @@
* {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -93,6 +90,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -107,6 +105,7 @@
* This returns Matchup.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -118,6 +117,7 @@
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -130,6 +130,7 @@
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -137,9 +138,9 @@
updateChildren(notification);
switch (notification.getFeatureID(Matchup.class)) {
- case BowlingPackage.MATCHUP__GAMES:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
- return;
+ case BowlingPackage.MATCHUP__GAMES:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
}
super.notifyChanged(notification);
}
@@ -149,22 +150,22 @@
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
- newChildDescriptors.add
- (createChildParameter
- (BowlingPackage.Literals.MATCHUP__GAMES,
- BowlingFactory.eINSTANCE.createGame()));
+ newChildDescriptors.add(createChildParameter(BowlingPackage.Literals.MATCHUP__GAMES,
+ BowlingFactory.eINSTANCE.createGame()));
}
/**
* Return the resource locator for this item provider's resources.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
diff --git a/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/PlayerItemProvider.java b/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/PlayerItemProvider.java
index 1603035..0e20910 100644
--- a/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/PlayerItemProvider.java
+++ b/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/PlayerItemProvider.java
@@ -10,7 +10,6 @@
*/
package org.eclipse.emf.emfstore.bowling.provider;
-
import java.util.Collection;
import java.util.List;
@@ -37,20 +36,16 @@
* This is the item provider adapter for a {@link org.eclipse.emf.emfstore.bowling.Player} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
-public class PlayerItemProvider
- extends ItemProviderAdapter
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
+public class PlayerItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
/**
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public PlayerItemProvider(AdapterFactory adapterFactory) {
@@ -61,6 +56,7 @@
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -81,116 +77,87 @@
* This adds a property descriptor for the Name feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addNamePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_Player_name_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_Player_name_feature", "_UI_Player_type"),
- BowlingPackage.Literals.PLAYER__NAME,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Player_name_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Player_name_feature", "_UI_Player_type"),
+ BowlingPackage.Literals.PLAYER__NAME, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
}
/**
* This adds a property descriptor for the Date Of Birth feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addDateOfBirthPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_Player_dateOfBirth_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_Player_dateOfBirth_feature", "_UI_Player_type"),
- BowlingPackage.Literals.PLAYER__DATE_OF_BIRTH,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Player_dateOfBirth_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Player_dateOfBirth_feature", "_UI_Player_type"),
+ BowlingPackage.Literals.PLAYER__DATE_OF_BIRTH, true, false, false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
}
/**
* This adds a property descriptor for the Height feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addHeightPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_Player_height_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_Player_height_feature", "_UI_Player_type"),
- BowlingPackage.Literals.PLAYER__HEIGHT,
- true,
- false,
- false,
- ItemPropertyDescriptor.REAL_VALUE_IMAGE,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Player_height_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Player_height_feature", "_UI_Player_type"),
+ BowlingPackage.Literals.PLAYER__HEIGHT, true, false, false, ItemPropertyDescriptor.REAL_VALUE_IMAGE, null,
+ null));
}
/**
* This adds a property descriptor for the Is Professional feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addIsProfessionalPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_Player_isProfessional_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_Player_isProfessional_feature", "_UI_Player_type"),
- BowlingPackage.Literals.PLAYER__IS_PROFESSIONAL,
- true,
- false,
- false,
- ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Player_isProfessional_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Player_isProfessional_feature", "_UI_Player_type"),
+ BowlingPackage.Literals.PLAYER__IS_PROFESSIONAL, true, false, false,
+ ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, null, null));
}
/**
* This adds a property descriptor for the EMail feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addEMailPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_Player_eMail_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_Player_eMail_feature", "_UI_Player_type"),
- BowlingPackage.Literals.PLAYER__EMAIL,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Player_eMail_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Player_eMail_feature", "_UI_Player_type"),
+ BowlingPackage.Literals.PLAYER__EMAIL, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null, null));
}
/**
* This returns Player.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -202,14 +169,14 @@
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
- String label = ((Player)object).getName();
- return label == null || label.length() == 0 ?
- getString("_UI_Player_type") :
- getString("_UI_Player_type") + " " + label;
+ String label = ((Player) object).getName();
+ return label == null || label.length() == 0 ? getString("_UI_Player_type") : getString("_UI_Player_type") + " "
+ + label;
}
/**
@@ -217,6 +184,7 @@
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -224,13 +192,13 @@
updateChildren(notification);
switch (notification.getFeatureID(Player.class)) {
- case BowlingPackage.PLAYER__NAME:
- case BowlingPackage.PLAYER__DATE_OF_BIRTH:
- case BowlingPackage.PLAYER__HEIGHT:
- case BowlingPackage.PLAYER__IS_PROFESSIONAL:
- case BowlingPackage.PLAYER__EMAIL:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
- return;
+ case BowlingPackage.PLAYER__NAME:
+ case BowlingPackage.PLAYER__DATE_OF_BIRTH:
+ case BowlingPackage.PLAYER__HEIGHT:
+ case BowlingPackage.PLAYER__IS_PROFESSIONAL:
+ case BowlingPackage.PLAYER__EMAIL:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
}
super.notifyChanged(notification);
}
@@ -240,6 +208,7 @@
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -251,6 +220,7 @@
* Return the resource locator for this item provider's resources.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
diff --git a/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/PlayerToPointsMapItemProvider.java b/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/PlayerToPointsMapItemProvider.java
index 186675f..6c86af5 100644
--- a/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/PlayerToPointsMapItemProvider.java
+++ b/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/PlayerToPointsMapItemProvider.java
@@ -10,7 +10,6 @@
*/
package org.eclipse.emf.emfstore.bowling.provider;
-
import java.util.Collection;
import java.util.List;
import java.util.Map;
@@ -37,20 +36,16 @@
* This is the item provider adapter for a {@link java.util.Map.Entry} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
-public class PlayerToPointsMapItemProvider
- extends ItemProviderAdapter
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
+public class PlayerToPointsMapItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
/**
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public PlayerToPointsMapItemProvider(AdapterFactory adapterFactory) {
@@ -61,6 +56,7 @@
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -78,50 +74,41 @@
* This adds a property descriptor for the Key feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addKeyPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_PlayerToPointsMap_key_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_PlayerToPointsMap_key_feature", "_UI_PlayerToPointsMap_type"),
- BowlingPackage.Literals.PLAYER_TO_POINTS_MAP__KEY,
- true,
- false,
- true,
- null,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_PlayerToPointsMap_key_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_PlayerToPointsMap_key_feature",
+ "_UI_PlayerToPointsMap_type"), BowlingPackage.Literals.PLAYER_TO_POINTS_MAP__KEY, true, false, true,
+ null, null, null));
}
/**
* This adds a property descriptor for the Value feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addValuePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_PlayerToPointsMap_value_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_PlayerToPointsMap_value_feature", "_UI_PlayerToPointsMap_type"),
- BowlingPackage.Literals.PLAYER_TO_POINTS_MAP__VALUE,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_PlayerToPointsMap_value_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_PlayerToPointsMap_value_feature",
+ "_UI_PlayerToPointsMap_type"), BowlingPackage.Literals.PLAYER_TO_POINTS_MAP__VALUE, true, false, false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
}
/**
* This returns PlayerToPointsMap.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -133,11 +120,12 @@
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
- Map.Entry<?, ?> playerToPointsMap = (Map.Entry<?, ?>)object;
+ Map.Entry<?, ?> playerToPointsMap = (Map.Entry<?, ?>) object;
return "" + playerToPointsMap.getKey() + " -> " + playerToPointsMap.getValue();
}
@@ -146,6 +134,7 @@
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -153,9 +142,9 @@
updateChildren(notification);
switch (notification.getFeatureID(Map.Entry.class)) {
- case BowlingPackage.PLAYER_TO_POINTS_MAP__VALUE:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
- return;
+ case BowlingPackage.PLAYER_TO_POINTS_MAP__VALUE:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
}
super.notifyChanged(notification);
}
@@ -165,6 +154,7 @@
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -176,6 +166,7 @@
* Return the resource locator for this item provider's resources.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
diff --git a/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/RefereeItemProvider.java b/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/RefereeItemProvider.java
index 2f9180c..c7609a5 100644
--- a/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/RefereeItemProvider.java
+++ b/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/RefereeItemProvider.java
@@ -10,7 +10,6 @@
*/
package org.eclipse.emf.emfstore.bowling.provider;
-
import java.util.Collection;
import java.util.List;
@@ -34,20 +33,16 @@
* This is the item provider adapter for a {@link org.eclipse.emf.emfstore.bowling.Referee} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
-public class RefereeItemProvider
- extends ItemProviderAdapter
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
+public class RefereeItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
/**
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public RefereeItemProvider(AdapterFactory adapterFactory) {
@@ -58,6 +53,7 @@
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -74,28 +70,22 @@
* This adds a property descriptor for the League feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addLeaguePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_Referee_league_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_Referee_league_feature", "_UI_Referee_type"),
- BowlingPackage.Literals.REFEREE__LEAGUE,
- true,
- false,
- true,
- null,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Referee_league_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Referee_league_feature", "_UI_Referee_type"),
+ BowlingPackage.Literals.REFEREE__LEAGUE, true, false, true, null, null, null));
}
/**
* This returns Referee.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -107,6 +97,7 @@
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -119,6 +110,7 @@
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -132,6 +124,7 @@
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -143,6 +136,7 @@
* Return the resource locator for this item provider's resources.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
diff --git a/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/RefereeToGamesMapItemProvider.java b/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/RefereeToGamesMapItemProvider.java
index b1dde3a..1c36e7a 100644
--- a/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/RefereeToGamesMapItemProvider.java
+++ b/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/RefereeToGamesMapItemProvider.java
@@ -10,7 +10,6 @@
*/
package org.eclipse.emf.emfstore.bowling.provider;
-
import java.util.Collection;
import java.util.List;
import java.util.Map;
@@ -39,20 +38,16 @@
* This is the item provider adapter for a {@link java.util.Map.Entry} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
-public class RefereeToGamesMapItemProvider
- extends ItemProviderAdapter
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
+public class RefereeToGamesMapItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
/**
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public RefereeToGamesMapItemProvider(AdapterFactory adapterFactory) {
@@ -63,6 +58,7 @@
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -79,22 +75,17 @@
* This adds a property descriptor for the Value feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addValuePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_RefereeToGamesMap_value_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_RefereeToGamesMap_value_feature", "_UI_RefereeToGamesMap_type"),
- BowlingPackage.Literals.REFEREE_TO_GAMES_MAP__VALUE,
- true,
- false,
- true,
- null,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_RefereeToGamesMap_value_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_RefereeToGamesMap_value_feature",
+ "_UI_RefereeToGamesMap_type"), BowlingPackage.Literals.REFEREE_TO_GAMES_MAP__VALUE, true, false, true,
+ null, null, null));
}
/**
@@ -103,6 +94,7 @@
* {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -117,6 +109,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -131,6 +124,7 @@
* This returns RefereeToGamesMap.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -142,11 +136,12 @@
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
- Map.Entry<?, ?> refereeToGamesMap = (Map.Entry<?, ?>)object;
+ Map.Entry<?, ?> refereeToGamesMap = (Map.Entry<?, ?>) object;
return "" + refereeToGamesMap.getKey() + " -> " + refereeToGamesMap.getValue();
}
@@ -155,6 +150,7 @@
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -162,9 +158,9 @@
updateChildren(notification);
switch (notification.getFeatureID(Map.Entry.class)) {
- case BowlingPackage.REFEREE_TO_GAMES_MAP__KEY:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
- return;
+ case BowlingPackage.REFEREE_TO_GAMES_MAP__KEY:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
}
super.notifyChanged(notification);
}
@@ -174,22 +170,22 @@
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
- newChildDescriptors.add
- (createChildParameter
- (BowlingPackage.Literals.REFEREE_TO_GAMES_MAP__KEY,
- BowlingFactory.eINSTANCE.createReferee()));
+ newChildDescriptors.add(createChildParameter(BowlingPackage.Literals.REFEREE_TO_GAMES_MAP__KEY,
+ BowlingFactory.eINSTANCE.createReferee()));
}
/**
* Return the resource locator for this item provider's resources.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
diff --git a/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/TournamentItemProvider.java b/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/TournamentItemProvider.java
index df86a6a..ca8ef81 100644
--- a/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/TournamentItemProvider.java
+++ b/org.eclipse.emf.emfstore.examplemodel.edit/src/org/eclipse/emf/emfstore/bowling/provider/TournamentItemProvider.java
@@ -10,7 +10,6 @@
*/
package org.eclipse.emf.emfstore.bowling.provider;
-
import java.util.Collection;
import java.util.List;
@@ -41,20 +40,16 @@
* This is the item provider adapter for a {@link org.eclipse.emf.emfstore.bowling.Tournament} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
-public class TournamentItemProvider
- extends ItemProviderAdapter
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
+public class TournamentItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
/**
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public TournamentItemProvider(AdapterFactory adapterFactory) {
@@ -65,6 +60,7 @@
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -82,44 +78,31 @@
* This adds a property descriptor for the Type feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addTypePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_Tournament_type_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_Tournament_type_feature", "_UI_Tournament_type"),
- BowlingPackage.Literals.TOURNAMENT__TYPE,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Tournament_type_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Tournament_type_feature", "_UI_Tournament_type"),
+ BowlingPackage.Literals.TOURNAMENT__TYPE, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null, null));
}
/**
* This adds a property descriptor for the Players feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addPlayersPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_Tournament_players_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_Tournament_players_feature", "_UI_Tournament_type"),
- BowlingPackage.Literals.TOURNAMENT__PLAYERS,
- true,
- false,
- true,
- null,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Tournament_players_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Tournament_players_feature", "_UI_Tournament_type"),
+ BowlingPackage.Literals.TOURNAMENT__PLAYERS, true, false, true, null, null, null));
}
/**
@@ -128,6 +111,7 @@
* {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -144,6 +128,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -158,6 +143,7 @@
* This returns Tournament.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -169,15 +155,15 @@
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
- TournamentType labelValue = ((Tournament)object).getType();
+ TournamentType labelValue = ((Tournament) object).getType();
String label = labelValue == null ? null : labelValue.toString();
- return label == null || label.length() == 0 ?
- getString("_UI_Tournament_type") :
- getString("_UI_Tournament_type") + " " + label;
+ return label == null || label.length() == 0 ? getString("_UI_Tournament_type")
+ : getString("_UI_Tournament_type") + " " + label;
}
/**
@@ -185,6 +171,7 @@
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -192,14 +179,14 @@
updateChildren(notification);
switch (notification.getFeatureID(Tournament.class)) {
- case BowlingPackage.TOURNAMENT__TYPE:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
- return;
- case BowlingPackage.TOURNAMENT__MATCHUPS:
- case BowlingPackage.TOURNAMENT__PLAYER_POINTS:
- case BowlingPackage.TOURNAMENT__REFEREES:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
- return;
+ case BowlingPackage.TOURNAMENT__TYPE:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ case BowlingPackage.TOURNAMENT__MATCHUPS:
+ case BowlingPackage.TOURNAMENT__PLAYER_POINTS:
+ case BowlingPackage.TOURNAMENT__REFEREES:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
}
super.notifyChanged(notification);
}
@@ -209,32 +196,28 @@
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
- newChildDescriptors.add
- (createChildParameter
- (BowlingPackage.Literals.TOURNAMENT__MATCHUPS,
- BowlingFactory.eINSTANCE.createMatchup()));
+ newChildDescriptors.add(createChildParameter(BowlingPackage.Literals.TOURNAMENT__MATCHUPS,
+ BowlingFactory.eINSTANCE.createMatchup()));
- newChildDescriptors.add
- (createChildParameter
- (BowlingPackage.Literals.TOURNAMENT__PLAYER_POINTS,
- BowlingFactory.eINSTANCE.create(BowlingPackage.Literals.PLAYER_TO_POINTS_MAP)));
+ newChildDescriptors.add(createChildParameter(BowlingPackage.Literals.TOURNAMENT__PLAYER_POINTS,
+ BowlingFactory.eINSTANCE.create(BowlingPackage.Literals.PLAYER_TO_POINTS_MAP)));
- newChildDescriptors.add
- (createChildParameter
- (BowlingPackage.Literals.TOURNAMENT__REFEREES,
- BowlingFactory.eINSTANCE.create(BowlingPackage.Literals.REFEREE_TO_GAMES_MAP)));
+ newChildDescriptors.add(createChildParameter(BowlingPackage.Literals.TOURNAMENT__REFEREES,
+ BowlingFactory.eINSTANCE.create(BowlingPackage.Literals.REFEREE_TO_GAMES_MAP)));
}
/**
* Return the resource locator for this item provider's resources.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
diff --git a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/Area.java b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/Area.java
index 985f4e4..64c853f 100644
--- a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/Area.java
+++ b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/Area.java
@@ -18,15 +18,15 @@
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Area</b></em>'.
* <!-- end-user-doc -->
- *
+ *
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.emf.emfstore.bowling.Area#getAreas <em>Areas</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.bowling.Area#getTournaments <em>Tournaments</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.Area#getAreas <em>Areas</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.Area#getTournaments <em>Tournaments</em>}</li>
* </ul>
* </p>
- *
+ *
* @see org.eclipse.emf.emfstore.bowling.BowlingPackage#getArea()
* @model
* @generated
@@ -37,10 +37,11 @@
* The list contents are of type {@link org.eclipse.emf.emfstore.bowling.Area}.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Areas</em>' containment reference list isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Areas</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>Areas</em>' containment reference list.
* @see org.eclipse.emf.emfstore.bowling.BowlingPackage#getArea_Areas()
* @model containment="true" resolveProxies="true"
@@ -53,10 +54,11 @@
* The list contents are of type {@link org.eclipse.emf.emfstore.bowling.Tournament}.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Tournaments</em>' containment reference list isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Tournaments</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>Tournaments</em>' containment reference list.
* @see org.eclipse.emf.emfstore.bowling.BowlingPackage#getArea_Tournaments()
* @model containment="true" resolveProxies="true"
diff --git a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/BowlingFactory.java b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/BowlingFactory.java
index e825e26..d1c1b07 100644
--- a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/BowlingFactory.java
+++ b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/BowlingFactory.java
@@ -17,6 +17,7 @@
* The <b>Factory</b> for the model.
* It provides a create method for each non-abstract class of the model.
* <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.emfstore.bowling.BowlingPackage
* @generated
*/
@@ -25,6 +26,7 @@
* The singleton instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
BowlingFactory eINSTANCE = org.eclipse.emf.emfstore.bowling.impl.BowlingFactoryImpl.init();
@@ -33,6 +35,7 @@
* Returns a new object of class '<em>Player</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return a new object of class '<em>Player</em>'.
* @generated
*/
@@ -42,6 +45,7 @@
* Returns a new object of class '<em>League</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return a new object of class '<em>League</em>'.
* @generated
*/
@@ -51,6 +55,7 @@
* Returns a new object of class '<em>Tournament</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return a new object of class '<em>Tournament</em>'.
* @generated
*/
@@ -60,6 +65,7 @@
* Returns a new object of class '<em>Matchup</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return a new object of class '<em>Matchup</em>'.
* @generated
*/
@@ -69,6 +75,7 @@
* Returns a new object of class '<em>Game</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return a new object of class '<em>Game</em>'.
* @generated
*/
@@ -78,6 +85,7 @@
* Returns a new object of class '<em>Referee</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return a new object of class '<em>Referee</em>'.
* @generated
*/
@@ -87,6 +95,7 @@
* Returns a new object of class '<em>Area</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return a new object of class '<em>Area</em>'.
* @generated
*/
@@ -96,9 +105,10 @@
* Returns the package supported by this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the package supported by this factory.
* @generated
*/
BowlingPackage getBowlingPackage();
-} //BowlingFactory
\ No newline at end of file
+} // BowlingFactory
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/BowlingPackage.java b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/BowlingPackage.java
index ab14c34..c060db3 100644
--- a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/BowlingPackage.java
+++ b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/BowlingPackage.java
@@ -21,12 +21,13 @@
* The <b>Package</b> for the model.
* It contains accessors for the meta objects to represent
* <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
* </ul>
* <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.emfstore.bowling.BowlingFactory
* @model kind="package"
* @generated
@@ -36,6 +37,7 @@
* The package name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
String eNAME = "bowling";
@@ -44,6 +46,7 @@
* The package namespace URI.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
String eNS_URI = "http://org/eclipse/example/bowling";
@@ -52,6 +55,7 @@
* The package namespace name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
String eNS_PREFIX = "org.eclipse.example.bowling";
@@ -60,6 +64,7 @@
* The singleton instance of the package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
BowlingPackage eINSTANCE = org.eclipse.emf.emfstore.bowling.impl.BowlingPackageImpl.init();
@@ -68,6 +73,7 @@
* The meta object id for the '{@link org.eclipse.emf.emfstore.bowling.impl.PlayerImpl <em>Player</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.emfstore.bowling.impl.PlayerImpl
* @see org.eclipse.emf.emfstore.bowling.impl.BowlingPackageImpl#getPlayer()
* @generated
@@ -78,6 +84,7 @@
* The feature id for the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -87,6 +94,7 @@
* The feature id for the '<em><b>Date Of Birth</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -96,6 +104,7 @@
* The feature id for the '<em><b>Height</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -105,6 +114,7 @@
* The feature id for the '<em><b>Is Professional</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -114,6 +124,7 @@
* The feature id for the '<em><b>EMail</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -123,6 +134,7 @@
* The number of structural features of the '<em>Player</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -132,6 +144,7 @@
* The meta object id for the '{@link org.eclipse.emf.emfstore.bowling.impl.LeagueImpl <em>League</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.emfstore.bowling.impl.LeagueImpl
* @see org.eclipse.emf.emfstore.bowling.impl.BowlingPackageImpl#getLeague()
* @generated
@@ -142,6 +155,7 @@
* The feature id for the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -151,6 +165,7 @@
* The feature id for the '<em><b>Players</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -160,15 +175,18 @@
* The number of structural features of the '<em>League</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
int LEAGUE_FEATURE_COUNT = 2;
/**
- * The meta object id for the '{@link org.eclipse.emf.emfstore.bowling.impl.TournamentImpl <em>Tournament</em>}' class.
+ * The meta object id for the '{@link org.eclipse.emf.emfstore.bowling.impl.TournamentImpl <em>Tournament</em>}'
+ * class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.emfstore.bowling.impl.TournamentImpl
* @see org.eclipse.emf.emfstore.bowling.impl.BowlingPackageImpl#getTournament()
* @generated
@@ -179,6 +197,7 @@
* The feature id for the '<em><b>Matchups</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -188,6 +207,7 @@
* The feature id for the '<em><b>Type</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -197,6 +217,7 @@
* The feature id for the '<em><b>Player Points</b></em>' map.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -206,6 +227,7 @@
* The feature id for the '<em><b>Players</b></em>' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -215,6 +237,7 @@
* The feature id for the '<em><b>Referees</b></em>' map.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -224,6 +247,7 @@
* The number of structural features of the '<em>Tournament</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -233,6 +257,7 @@
* The meta object id for the '{@link org.eclipse.emf.emfstore.bowling.impl.MatchupImpl <em>Matchup</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.emfstore.bowling.impl.MatchupImpl
* @see org.eclipse.emf.emfstore.bowling.impl.BowlingPackageImpl#getMatchup()
* @generated
@@ -243,6 +268,7 @@
* The feature id for the '<em><b>Games</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -252,6 +278,7 @@
* The number of structural features of the '<em>Matchup</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -261,6 +288,7 @@
* The meta object id for the '{@link org.eclipse.emf.emfstore.bowling.impl.GameImpl <em>Game</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.emfstore.bowling.impl.GameImpl
* @see org.eclipse.emf.emfstore.bowling.impl.BowlingPackageImpl#getGame()
* @generated
@@ -271,6 +299,7 @@
* The feature id for the '<em><b>Matchup</b></em>' container reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -280,6 +309,7 @@
* The feature id for the '<em><b>Player</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -289,6 +319,7 @@
* The feature id for the '<em><b>Frames</b></em>' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -298,15 +329,18 @@
* The number of structural features of the '<em>Game</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
int GAME_FEATURE_COUNT = 3;
/**
- * The meta object id for the '{@link org.eclipse.emf.emfstore.bowling.impl.PlayerToPointsMapImpl <em>Player To Points Map</em>}' class.
+ * The meta object id for the '{@link org.eclipse.emf.emfstore.bowling.impl.PlayerToPointsMapImpl
+ * <em>Player To Points Map</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.emfstore.bowling.impl.PlayerToPointsMapImpl
* @see org.eclipse.emf.emfstore.bowling.impl.BowlingPackageImpl#getPlayerToPointsMap()
* @generated
@@ -317,6 +351,7 @@
* The feature id for the '<em><b>Key</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -326,6 +361,7 @@
* The feature id for the '<em><b>Value</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -335,6 +371,7 @@
* The number of structural features of the '<em>Player To Points Map</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -344,6 +381,7 @@
* The meta object id for the '{@link org.eclipse.emf.emfstore.bowling.impl.RefereeImpl <em>Referee</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.emfstore.bowling.impl.RefereeImpl
* @see org.eclipse.emf.emfstore.bowling.impl.BowlingPackageImpl#getReferee()
* @generated
@@ -354,6 +392,7 @@
* The feature id for the '<em><b>League</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -363,15 +402,18 @@
* The number of structural features of the '<em>Referee</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
int REFEREE_FEATURE_COUNT = 1;
/**
- * The meta object id for the '{@link org.eclipse.emf.emfstore.bowling.impl.RefereeToGamesMapImpl <em>Referee To Games Map</em>}' class.
+ * The meta object id for the '{@link org.eclipse.emf.emfstore.bowling.impl.RefereeToGamesMapImpl
+ * <em>Referee To Games Map</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.emfstore.bowling.impl.RefereeToGamesMapImpl
* @see org.eclipse.emf.emfstore.bowling.impl.BowlingPackageImpl#getRefereeToGamesMap()
* @generated
@@ -382,6 +424,7 @@
* The feature id for the '<em><b>Key</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -391,6 +434,7 @@
* The feature id for the '<em><b>Value</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -400,6 +444,7 @@
* The number of structural features of the '<em>Referee To Games Map</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -409,6 +454,7 @@
* The meta object id for the '{@link org.eclipse.emf.emfstore.bowling.impl.AreaImpl <em>Area</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.emfstore.bowling.impl.AreaImpl
* @see org.eclipse.emf.emfstore.bowling.impl.BowlingPackageImpl#getArea()
* @generated
@@ -419,6 +465,7 @@
* The feature id for the '<em><b>Areas</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -428,6 +475,7 @@
* The feature id for the '<em><b>Tournaments</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -437,26 +485,29 @@
* The number of structural features of the '<em>Area</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
int AREA_FEATURE_COUNT = 2;
/**
- * The meta object id for the '{@link org.eclipse.emf.emfstore.bowling.TournamentType <em>Tournament Type</em>}' enum.
+ * The meta object id for the '{@link org.eclipse.emf.emfstore.bowling.TournamentType <em>Tournament Type</em>}'
+ * enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.emfstore.bowling.TournamentType
* @see org.eclipse.emf.emfstore.bowling.impl.BowlingPackageImpl#getTournamentType()
* @generated
*/
int TOURNAMENT_TYPE = 9;
-
/**
* Returns the meta object for class '{@link org.eclipse.emf.emfstore.bowling.Player <em>Player</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for class '<em>Player</em>'.
* @see org.eclipse.emf.emfstore.bowling.Player
* @generated
@@ -464,9 +515,11 @@
EClass getPlayer();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.emfstore.bowling.Player#getName <em>Name</em>}'.
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.emfstore.bowling.Player#getName <em>Name</em>}
+ * '.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the attribute '<em>Name</em>'.
* @see org.eclipse.emf.emfstore.bowling.Player#getName()
* @see #getPlayer()
@@ -475,9 +528,11 @@
EAttribute getPlayer_Name();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.emfstore.bowling.Player#getDateOfBirth <em>Date Of Birth</em>}'.
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.emfstore.bowling.Player#getDateOfBirth
+ * <em>Date Of Birth</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the attribute '<em>Date Of Birth</em>'.
* @see org.eclipse.emf.emfstore.bowling.Player#getDateOfBirth()
* @see #getPlayer()
@@ -486,9 +541,11 @@
EAttribute getPlayer_DateOfBirth();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.emfstore.bowling.Player#getHeight <em>Height</em>}'.
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.emfstore.bowling.Player#getHeight
+ * <em>Height</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the attribute '<em>Height</em>'.
* @see org.eclipse.emf.emfstore.bowling.Player#getHeight()
* @see #getPlayer()
@@ -497,9 +554,11 @@
EAttribute getPlayer_Height();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.emfstore.bowling.Player#isIsProfessional <em>Is Professional</em>}'.
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.emfstore.bowling.Player#isIsProfessional
+ * <em>Is Professional</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the attribute '<em>Is Professional</em>'.
* @see org.eclipse.emf.emfstore.bowling.Player#isIsProfessional()
* @see #getPlayer()
@@ -508,9 +567,11 @@
EAttribute getPlayer_IsProfessional();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.emfstore.bowling.Player#getEMail <em>EMail</em>}'.
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.emfstore.bowling.Player#getEMail
+ * <em>EMail</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the attribute '<em>EMail</em>'.
* @see org.eclipse.emf.emfstore.bowling.Player#getEMail()
* @see #getPlayer()
@@ -522,6 +583,7 @@
* Returns the meta object for class '{@link org.eclipse.emf.emfstore.bowling.League <em>League</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for class '<em>League</em>'.
* @see org.eclipse.emf.emfstore.bowling.League
* @generated
@@ -529,9 +591,11 @@
EClass getLeague();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.emfstore.bowling.League#getName <em>Name</em>}'.
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.emfstore.bowling.League#getName <em>Name</em>}
+ * '.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the attribute '<em>Name</em>'.
* @see org.eclipse.emf.emfstore.bowling.League#getName()
* @see #getLeague()
@@ -540,9 +604,11 @@
EAttribute getLeague_Name();
/**
- * Returns the meta object for the containment reference list '{@link org.eclipse.emf.emfstore.bowling.League#getPlayers <em>Players</em>}'.
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.emf.emfstore.bowling.League#getPlayers <em>Players</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the containment reference list '<em>Players</em>'.
* @see org.eclipse.emf.emfstore.bowling.League#getPlayers()
* @see #getLeague()
@@ -554,6 +620,7 @@
* Returns the meta object for class '{@link org.eclipse.emf.emfstore.bowling.Tournament <em>Tournament</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for class '<em>Tournament</em>'.
* @see org.eclipse.emf.emfstore.bowling.Tournament
* @generated
@@ -561,9 +628,11 @@
EClass getTournament();
/**
- * Returns the meta object for the containment reference list '{@link org.eclipse.emf.emfstore.bowling.Tournament#getMatchups <em>Matchups</em>}'.
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.emf.emfstore.bowling.Tournament#getMatchups <em>Matchups</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the containment reference list '<em>Matchups</em>'.
* @see org.eclipse.emf.emfstore.bowling.Tournament#getMatchups()
* @see #getTournament()
@@ -572,9 +641,11 @@
EReference getTournament_Matchups();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.emfstore.bowling.Tournament#getType <em>Type</em>}'.
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.emfstore.bowling.Tournament#getType
+ * <em>Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the attribute '<em>Type</em>'.
* @see org.eclipse.emf.emfstore.bowling.Tournament#getType()
* @see #getTournament()
@@ -583,9 +654,11 @@
EAttribute getTournament_Type();
/**
- * Returns the meta object for the map '{@link org.eclipse.emf.emfstore.bowling.Tournament#getPlayerPoints <em>Player Points</em>}'.
+ * Returns the meta object for the map '{@link org.eclipse.emf.emfstore.bowling.Tournament#getPlayerPoints
+ * <em>Player Points</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the map '<em>Player Points</em>'.
* @see org.eclipse.emf.emfstore.bowling.Tournament#getPlayerPoints()
* @see #getTournament()
@@ -594,9 +667,11 @@
EReference getTournament_PlayerPoints();
/**
- * Returns the meta object for the reference list '{@link org.eclipse.emf.emfstore.bowling.Tournament#getPlayers <em>Players</em>}'.
+ * Returns the meta object for the reference list '{@link org.eclipse.emf.emfstore.bowling.Tournament#getPlayers
+ * <em>Players</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the reference list '<em>Players</em>'.
* @see org.eclipse.emf.emfstore.bowling.Tournament#getPlayers()
* @see #getTournament()
@@ -605,9 +680,11 @@
EReference getTournament_Players();
/**
- * Returns the meta object for the map '{@link org.eclipse.emf.emfstore.bowling.Tournament#getReferees <em>Referees</em>}'.
+ * Returns the meta object for the map '{@link org.eclipse.emf.emfstore.bowling.Tournament#getReferees
+ * <em>Referees</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the map '<em>Referees</em>'.
* @see org.eclipse.emf.emfstore.bowling.Tournament#getReferees()
* @see #getTournament()
@@ -619,6 +696,7 @@
* Returns the meta object for class '{@link org.eclipse.emf.emfstore.bowling.Matchup <em>Matchup</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for class '<em>Matchup</em>'.
* @see org.eclipse.emf.emfstore.bowling.Matchup
* @generated
@@ -626,9 +704,11 @@
EClass getMatchup();
/**
- * Returns the meta object for the containment reference list '{@link org.eclipse.emf.emfstore.bowling.Matchup#getGames <em>Games</em>}'.
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.emf.emfstore.bowling.Matchup#getGames <em>Games</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the containment reference list '<em>Games</em>'.
* @see org.eclipse.emf.emfstore.bowling.Matchup#getGames()
* @see #getMatchup()
@@ -640,6 +720,7 @@
* Returns the meta object for class '{@link org.eclipse.emf.emfstore.bowling.Game <em>Game</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for class '<em>Game</em>'.
* @see org.eclipse.emf.emfstore.bowling.Game
* @generated
@@ -647,9 +728,11 @@
EClass getGame();
/**
- * Returns the meta object for the container reference '{@link org.eclipse.emf.emfstore.bowling.Game#getMatchup <em>Matchup</em>}'.
+ * Returns the meta object for the container reference '{@link org.eclipse.emf.emfstore.bowling.Game#getMatchup
+ * <em>Matchup</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the container reference '<em>Matchup</em>'.
* @see org.eclipse.emf.emfstore.bowling.Game#getMatchup()
* @see #getGame()
@@ -658,9 +741,11 @@
EReference getGame_Matchup();
/**
- * Returns the meta object for the reference '{@link org.eclipse.emf.emfstore.bowling.Game#getPlayer <em>Player</em>}'.
+ * Returns the meta object for the reference '{@link org.eclipse.emf.emfstore.bowling.Game#getPlayer
+ * <em>Player</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the reference '<em>Player</em>'.
* @see org.eclipse.emf.emfstore.bowling.Game#getPlayer()
* @see #getGame()
@@ -669,9 +754,11 @@
EReference getGame_Player();
/**
- * Returns the meta object for the attribute list '{@link org.eclipse.emf.emfstore.bowling.Game#getFrames <em>Frames</em>}'.
+ * Returns the meta object for the attribute list '{@link org.eclipse.emf.emfstore.bowling.Game#getFrames
+ * <em>Frames</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the attribute list '<em>Frames</em>'.
* @see org.eclipse.emf.emfstore.bowling.Game#getFrames()
* @see #getGame()
@@ -683,6 +770,7 @@
* Returns the meta object for class '{@link java.util.Map.Entry <em>Player To Points Map</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for class '<em>Player To Points Map</em>'.
* @see java.util.Map.Entry
* @model keyType="org.eclipse.emf.emfstore.bowling.Player"
@@ -695,6 +783,7 @@
* Returns the meta object for the reference '{@link java.util.Map.Entry <em>Key</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the reference '<em>Key</em>'.
* @see java.util.Map.Entry
* @see #getPlayerToPointsMap()
@@ -706,6 +795,7 @@
* Returns the meta object for the attribute '{@link java.util.Map.Entry <em>Value</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the attribute '<em>Value</em>'.
* @see java.util.Map.Entry
* @see #getPlayerToPointsMap()
@@ -717,6 +807,7 @@
* Returns the meta object for class '{@link org.eclipse.emf.emfstore.bowling.Referee <em>Referee</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for class '<em>Referee</em>'.
* @see org.eclipse.emf.emfstore.bowling.Referee
* @generated
@@ -724,9 +815,11 @@
EClass getReferee();
/**
- * Returns the meta object for the reference '{@link org.eclipse.emf.emfstore.bowling.Referee#getLeague <em>League</em>}'.
+ * Returns the meta object for the reference '{@link org.eclipse.emf.emfstore.bowling.Referee#getLeague
+ * <em>League</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the reference '<em>League</em>'.
* @see org.eclipse.emf.emfstore.bowling.Referee#getLeague()
* @see #getReferee()
@@ -738,6 +831,7 @@
* Returns the meta object for class '{@link java.util.Map.Entry <em>Referee To Games Map</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for class '<em>Referee To Games Map</em>'.
* @see java.util.Map.Entry
* @model keyType="org.eclipse.emf.emfstore.bowling.Referee" keyContainment="true" keyResolveProxies="true"
@@ -750,6 +844,7 @@
* Returns the meta object for the containment reference '{@link java.util.Map.Entry <em>Key</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the containment reference '<em>Key</em>'.
* @see java.util.Map.Entry
* @see #getRefereeToGamesMap()
@@ -761,6 +856,7 @@
* Returns the meta object for the reference '{@link java.util.Map.Entry <em>Value</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the reference '<em>Value</em>'.
* @see java.util.Map.Entry
* @see #getRefereeToGamesMap()
@@ -772,6 +868,7 @@
* Returns the meta object for class '{@link org.eclipse.emf.emfstore.bowling.Area <em>Area</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for class '<em>Area</em>'.
* @see org.eclipse.emf.emfstore.bowling.Area
* @generated
@@ -779,9 +876,11 @@
EClass getArea();
/**
- * Returns the meta object for the containment reference list '{@link org.eclipse.emf.emfstore.bowling.Area#getAreas <em>Areas</em>}'.
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.emf.emfstore.bowling.Area#getAreas <em>Areas</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the containment reference list '<em>Areas</em>'.
* @see org.eclipse.emf.emfstore.bowling.Area#getAreas()
* @see #getArea()
@@ -790,9 +889,11 @@
EReference getArea_Areas();
/**
- * Returns the meta object for the containment reference list '{@link org.eclipse.emf.emfstore.bowling.Area#getTournaments <em>Tournaments</em>}'.
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.emf.emfstore.bowling.Area#getTournaments <em>Tournaments</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the containment reference list '<em>Tournaments</em>'.
* @see org.eclipse.emf.emfstore.bowling.Area#getTournaments()
* @see #getArea()
@@ -801,9 +902,11 @@
EReference getArea_Tournaments();
/**
- * Returns the meta object for enum '{@link org.eclipse.emf.emfstore.bowling.TournamentType <em>Tournament Type</em>}'.
+ * Returns the meta object for enum '{@link org.eclipse.emf.emfstore.bowling.TournamentType
+ * <em>Tournament Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for enum '<em>Tournament Type</em>'.
* @see org.eclipse.emf.emfstore.bowling.TournamentType
* @generated
@@ -814,6 +917,7 @@
* Returns the factory that creates the instances of the model.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the factory that creates the instances of the model.
* @generated
*/
@@ -823,19 +927,22 @@
* <!-- begin-user-doc -->
* Defines literals for the meta objects that represent
* <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
* </ul>
* <!-- end-user-doc -->
+ *
* @generated
*/
interface Literals {
/**
- * The meta object literal for the '{@link org.eclipse.emf.emfstore.bowling.impl.PlayerImpl <em>Player</em>}' class.
+ * The meta object literal for the '{@link org.eclipse.emf.emfstore.bowling.impl.PlayerImpl <em>Player</em>}'
+ * class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.emfstore.bowling.impl.PlayerImpl
* @see org.eclipse.emf.emfstore.bowling.impl.BowlingPackageImpl#getPlayer()
* @generated
@@ -846,6 +953,7 @@
* The meta object literal for the '<em><b>Name</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EAttribute PLAYER__NAME = eINSTANCE.getPlayer_Name();
@@ -854,6 +962,7 @@
* The meta object literal for the '<em><b>Date Of Birth</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EAttribute PLAYER__DATE_OF_BIRTH = eINSTANCE.getPlayer_DateOfBirth();
@@ -862,6 +971,7 @@
* The meta object literal for the '<em><b>Height</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EAttribute PLAYER__HEIGHT = eINSTANCE.getPlayer_Height();
@@ -870,6 +980,7 @@
* The meta object literal for the '<em><b>Is Professional</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EAttribute PLAYER__IS_PROFESSIONAL = eINSTANCE.getPlayer_IsProfessional();
@@ -878,14 +989,17 @@
* The meta object literal for the '<em><b>EMail</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EAttribute PLAYER__EMAIL = eINSTANCE.getPlayer_EMail();
/**
- * The meta object literal for the '{@link org.eclipse.emf.emfstore.bowling.impl.LeagueImpl <em>League</em>}' class.
+ * The meta object literal for the '{@link org.eclipse.emf.emfstore.bowling.impl.LeagueImpl <em>League</em>}'
+ * class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.emfstore.bowling.impl.LeagueImpl
* @see org.eclipse.emf.emfstore.bowling.impl.BowlingPackageImpl#getLeague()
* @generated
@@ -896,6 +1010,7 @@
* The meta object literal for the '<em><b>Name</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EAttribute LEAGUE__NAME = eINSTANCE.getLeague_Name();
@@ -904,14 +1019,17 @@
* The meta object literal for the '<em><b>Players</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EReference LEAGUE__PLAYERS = eINSTANCE.getLeague_Players();
/**
- * The meta object literal for the '{@link org.eclipse.emf.emfstore.bowling.impl.TournamentImpl <em>Tournament</em>}' class.
+ * The meta object literal for the '{@link org.eclipse.emf.emfstore.bowling.impl.TournamentImpl
+ * <em>Tournament</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.emfstore.bowling.impl.TournamentImpl
* @see org.eclipse.emf.emfstore.bowling.impl.BowlingPackageImpl#getTournament()
* @generated
@@ -922,6 +1040,7 @@
* The meta object literal for the '<em><b>Matchups</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EReference TOURNAMENT__MATCHUPS = eINSTANCE.getTournament_Matchups();
@@ -930,6 +1049,7 @@
* The meta object literal for the '<em><b>Type</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EAttribute TOURNAMENT__TYPE = eINSTANCE.getTournament_Type();
@@ -938,6 +1058,7 @@
* The meta object literal for the '<em><b>Player Points</b></em>' map feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EReference TOURNAMENT__PLAYER_POINTS = eINSTANCE.getTournament_PlayerPoints();
@@ -946,6 +1067,7 @@
* The meta object literal for the '<em><b>Players</b></em>' reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EReference TOURNAMENT__PLAYERS = eINSTANCE.getTournament_Players();
@@ -954,14 +1076,17 @@
* The meta object literal for the '<em><b>Referees</b></em>' map feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EReference TOURNAMENT__REFEREES = eINSTANCE.getTournament_Referees();
/**
- * The meta object literal for the '{@link org.eclipse.emf.emfstore.bowling.impl.MatchupImpl <em>Matchup</em>}' class.
+ * The meta object literal for the '{@link org.eclipse.emf.emfstore.bowling.impl.MatchupImpl <em>Matchup</em>}'
+ * class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.emfstore.bowling.impl.MatchupImpl
* @see org.eclipse.emf.emfstore.bowling.impl.BowlingPackageImpl#getMatchup()
* @generated
@@ -972,6 +1097,7 @@
* The meta object literal for the '<em><b>Games</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EReference MATCHUP__GAMES = eINSTANCE.getMatchup_Games();
@@ -980,6 +1106,7 @@
* The meta object literal for the '{@link org.eclipse.emf.emfstore.bowling.impl.GameImpl <em>Game</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.emfstore.bowling.impl.GameImpl
* @see org.eclipse.emf.emfstore.bowling.impl.BowlingPackageImpl#getGame()
* @generated
@@ -990,6 +1117,7 @@
* The meta object literal for the '<em><b>Matchup</b></em>' container reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EReference GAME__MATCHUP = eINSTANCE.getGame_Matchup();
@@ -998,6 +1126,7 @@
* The meta object literal for the '<em><b>Player</b></em>' reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EReference GAME__PLAYER = eINSTANCE.getGame_Player();
@@ -1006,14 +1135,17 @@
* The meta object literal for the '<em><b>Frames</b></em>' attribute list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EAttribute GAME__FRAMES = eINSTANCE.getGame_Frames();
/**
- * The meta object literal for the '{@link org.eclipse.emf.emfstore.bowling.impl.PlayerToPointsMapImpl <em>Player To Points Map</em>}' class.
+ * The meta object literal for the '{@link org.eclipse.emf.emfstore.bowling.impl.PlayerToPointsMapImpl
+ * <em>Player To Points Map</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.emfstore.bowling.impl.PlayerToPointsMapImpl
* @see org.eclipse.emf.emfstore.bowling.impl.BowlingPackageImpl#getPlayerToPointsMap()
* @generated
@@ -1024,6 +1156,7 @@
* The meta object literal for the '<em><b>Key</b></em>' reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EReference PLAYER_TO_POINTS_MAP__KEY = eINSTANCE.getPlayerToPointsMap_Key();
@@ -1032,14 +1165,17 @@
* The meta object literal for the '<em><b>Value</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EAttribute PLAYER_TO_POINTS_MAP__VALUE = eINSTANCE.getPlayerToPointsMap_Value();
/**
- * The meta object literal for the '{@link org.eclipse.emf.emfstore.bowling.impl.RefereeImpl <em>Referee</em>}' class.
+ * The meta object literal for the '{@link org.eclipse.emf.emfstore.bowling.impl.RefereeImpl <em>Referee</em>}'
+ * class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.emfstore.bowling.impl.RefereeImpl
* @see org.eclipse.emf.emfstore.bowling.impl.BowlingPackageImpl#getReferee()
* @generated
@@ -1050,14 +1186,17 @@
* The meta object literal for the '<em><b>League</b></em>' reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EReference REFEREE__LEAGUE = eINSTANCE.getReferee_League();
/**
- * The meta object literal for the '{@link org.eclipse.emf.emfstore.bowling.impl.RefereeToGamesMapImpl <em>Referee To Games Map</em>}' class.
+ * The meta object literal for the '{@link org.eclipse.emf.emfstore.bowling.impl.RefereeToGamesMapImpl
+ * <em>Referee To Games Map</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.emfstore.bowling.impl.RefereeToGamesMapImpl
* @see org.eclipse.emf.emfstore.bowling.impl.BowlingPackageImpl#getRefereeToGamesMap()
* @generated
@@ -1068,6 +1207,7 @@
* The meta object literal for the '<em><b>Key</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EReference REFEREE_TO_GAMES_MAP__KEY = eINSTANCE.getRefereeToGamesMap_Key();
@@ -1076,6 +1216,7 @@
* The meta object literal for the '<em><b>Value</b></em>' reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EReference REFEREE_TO_GAMES_MAP__VALUE = eINSTANCE.getRefereeToGamesMap_Value();
@@ -1084,6 +1225,7 @@
* The meta object literal for the '{@link org.eclipse.emf.emfstore.bowling.impl.AreaImpl <em>Area</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.emfstore.bowling.impl.AreaImpl
* @see org.eclipse.emf.emfstore.bowling.impl.BowlingPackageImpl#getArea()
* @generated
@@ -1094,6 +1236,7 @@
* The meta object literal for the '<em><b>Areas</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EReference AREA__AREAS = eINSTANCE.getArea_Areas();
@@ -1102,14 +1245,17 @@
* The meta object literal for the '<em><b>Tournaments</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EReference AREA__TOURNAMENTS = eINSTANCE.getArea_Tournaments();
/**
- * The meta object literal for the '{@link org.eclipse.emf.emfstore.bowling.TournamentType <em>Tournament Type</em>}' enum.
+ * The meta object literal for the '{@link org.eclipse.emf.emfstore.bowling.TournamentType
+ * <em>Tournament Type</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.emfstore.bowling.TournamentType
* @see org.eclipse.emf.emfstore.bowling.impl.BowlingPackageImpl#getTournamentType()
* @generated
@@ -1118,4 +1264,4 @@
}
-} //BowlingPackage
\ No newline at end of file
+} // BowlingPackage
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/Game.java b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/Game.java
index 6b52732..6db23c5 100644
--- a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/Game.java
+++ b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/Game.java
@@ -18,16 +18,16 @@
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Game</b></em>'.
* <!-- end-user-doc -->
- *
+ *
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.emf.emfstore.bowling.Game#getMatchup <em>Matchup</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.bowling.Game#getPlayer <em>Player</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.bowling.Game#getFrames <em>Frames</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.Game#getMatchup <em>Matchup</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.Game#getPlayer <em>Player</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.Game#getFrames <em>Frames</em>}</li>
* </ul>
* </p>
- *
+ *
* @see org.eclipse.emf.emfstore.bowling.BowlingPackage#getGame()
* @model
* @generated
@@ -35,13 +35,15 @@
public interface Game extends EObject {
/**
* Returns the value of the '<em><b>Matchup</b></em>' container reference.
- * It is bidirectional and its opposite is '{@link org.eclipse.emf.emfstore.bowling.Matchup#getGames <em>Games</em>}'.
+ * It is bidirectional and its opposite is '{@link org.eclipse.emf.emfstore.bowling.Matchup#getGames <em>Games</em>}
+ * '.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Matchup</em>' container reference isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Matchup</em>' container reference isn't clear, there really should be more of a
+ * description here...
* </p>
* <!-- end-user-doc -->
+ *
* @return the value of the '<em>Matchup</em>' container reference.
* @see #setMatchup(Matchup)
* @see org.eclipse.emf.emfstore.bowling.BowlingPackage#getGame_Matchup()
@@ -52,9 +54,11 @@
Matchup getMatchup();
/**
- * Sets the value of the '{@link org.eclipse.emf.emfstore.bowling.Game#getMatchup <em>Matchup</em>}' container reference.
+ * Sets the value of the '{@link org.eclipse.emf.emfstore.bowling.Game#getMatchup <em>Matchup</em>}' container
+ * reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @param value the new value of the '<em>Matchup</em>' container reference.
* @see #getMatchup()
* @generated
@@ -65,10 +69,11 @@
* Returns the value of the '<em><b>Player</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Player</em>' reference isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Player</em>' reference isn't clear, there really should be more of a description
+ * here...
* </p>
* <!-- end-user-doc -->
+ *
* @return the value of the '<em>Player</em>' reference.
* @see #setPlayer(Player)
* @see org.eclipse.emf.emfstore.bowling.BowlingPackage#getGame_Player()
@@ -81,6 +86,7 @@
* Sets the value of the '{@link org.eclipse.emf.emfstore.bowling.Game#getPlayer <em>Player</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @param value the new value of the '<em>Player</em>' reference.
* @see #getPlayer()
* @generated
@@ -92,10 +98,11 @@
* The list contents are of type {@link java.lang.Integer}.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Frames</em>' attribute list isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Frames</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>Frames</em>' attribute list.
* @see org.eclipse.emf.emfstore.bowling.BowlingPackage#getGame_Frames()
* @model upper="10"
diff --git a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/League.java b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/League.java
index ea0c608..d0d538c 100644
--- a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/League.java
+++ b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/League.java
@@ -18,15 +18,15 @@
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>League</b></em>'.
* <!-- end-user-doc -->
- *
+ *
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.emf.emfstore.bowling.League#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.bowling.League#getPlayers <em>Players</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.League#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.League#getPlayers <em>Players</em>}</li>
* </ul>
* </p>
- *
+ *
* @see org.eclipse.emf.emfstore.bowling.BowlingPackage#getLeague()
* @model
* @generated
@@ -36,10 +36,10 @@
* 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...
+ * 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 org.eclipse.emf.emfstore.bowling.BowlingPackage#getLeague_Name()
@@ -52,6 +52,7 @@
* Sets the value of the '{@link org.eclipse.emf.emfstore.bowling.League#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
@@ -63,10 +64,11 @@
* The list contents are of type {@link org.eclipse.emf.emfstore.bowling.Player}.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Players</em>' containment reference list isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Players</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>Players</em>' containment reference list.
* @see org.eclipse.emf.emfstore.bowling.BowlingPackage#getLeague_Players()
* @model containment="true" resolveProxies="true"
diff --git a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/Matchup.java b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/Matchup.java
index ecdb255..a198cde 100644
--- a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/Matchup.java
+++ b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/Matchup.java
@@ -18,14 +18,14 @@
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Matchup</b></em>'.
* <!-- end-user-doc -->
- *
+ *
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.emf.emfstore.bowling.Matchup#getGames <em>Games</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.Matchup#getGames <em>Games</em>}</li>
* </ul>
* </p>
- *
+ *
* @see org.eclipse.emf.emfstore.bowling.BowlingPackage#getMatchup()
* @model
* @generated
@@ -34,13 +34,15 @@
/**
* Returns the value of the '<em><b>Games</b></em>' containment reference list.
* The list contents are of type {@link org.eclipse.emf.emfstore.bowling.Game}.
- * It is bidirectional and its opposite is '{@link org.eclipse.emf.emfstore.bowling.Game#getMatchup <em>Matchup</em>}'.
+ * It is bidirectional and its opposite is '{@link org.eclipse.emf.emfstore.bowling.Game#getMatchup
+ * <em>Matchup</em>}'.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Games</em>' containment reference list isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Games</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>Games</em>' containment reference list.
* @see org.eclipse.emf.emfstore.bowling.BowlingPackage#getMatchup_Games()
* @see org.eclipse.emf.emfstore.bowling.Game#getMatchup
diff --git a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/Player.java b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/Player.java
index 78da950..d9cf294 100644
--- a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/Player.java
+++ b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/Player.java
@@ -18,18 +18,18 @@
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Player</b></em>'.
* <!-- end-user-doc -->
- *
+ *
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.emf.emfstore.bowling.Player#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.bowling.Player#getDateOfBirth <em>Date Of Birth</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.bowling.Player#getHeight <em>Height</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.bowling.Player#isIsProfessional <em>Is Professional</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.bowling.Player#getEMail <em>EMail</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.Player#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.Player#getDateOfBirth <em>Date Of Birth</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.Player#getHeight <em>Height</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.Player#isIsProfessional <em>Is Professional</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.Player#getEMail <em>EMail</em>}</li>
* </ul>
* </p>
- *
+ *
* @see org.eclipse.emf.emfstore.bowling.BowlingPackage#getPlayer()
* @model
* @generated
@@ -39,10 +39,10 @@
* 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...
+ * 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 org.eclipse.emf.emfstore.bowling.BowlingPackage#getPlayer_Name()
@@ -55,6 +55,7 @@
* Sets the value of the '{@link org.eclipse.emf.emfstore.bowling.Player#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
@@ -65,10 +66,11 @@
* Returns the value of the '<em><b>Date Of Birth</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Date Of Birth</em>' attribute isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Date Of Birth</em>' attribute isn't clear, there really should be more of a
+ * description here...
* </p>
* <!-- end-user-doc -->
+ *
* @return the value of the '<em>Date Of Birth</em>' attribute.
* @see #setDateOfBirth(Date)
* @see org.eclipse.emf.emfstore.bowling.BowlingPackage#getPlayer_DateOfBirth()
@@ -78,9 +80,11 @@
Date getDateOfBirth();
/**
- * Sets the value of the '{@link org.eclipse.emf.emfstore.bowling.Player#getDateOfBirth <em>Date Of Birth</em>}' attribute.
+ * Sets the value of the '{@link org.eclipse.emf.emfstore.bowling.Player#getDateOfBirth <em>Date Of Birth</em>}'
+ * attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @param value the new value of the '<em>Date Of Birth</em>' attribute.
* @see #getDateOfBirth()
* @generated
@@ -91,10 +95,11 @@
* Returns the value of the '<em><b>Height</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Height</em>' attribute isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Height</em>' attribute isn't clear, there really should be more of a description
+ * here...
* </p>
* <!-- end-user-doc -->
+ *
* @return the value of the '<em>Height</em>' attribute.
* @see #setHeight(double)
* @see org.eclipse.emf.emfstore.bowling.BowlingPackage#getPlayer_Height()
@@ -107,6 +112,7 @@
* Sets the value of the '{@link org.eclipse.emf.emfstore.bowling.Player#getHeight <em>Height</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @param value the new value of the '<em>Height</em>' attribute.
* @see #getHeight()
* @generated
@@ -117,10 +123,11 @@
* Returns the value of the '<em><b>Is Professional</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Is Professional</em>' attribute isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Is Professional</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 Professional</em>' attribute.
* @see #setIsProfessional(boolean)
* @see org.eclipse.emf.emfstore.bowling.BowlingPackage#getPlayer_IsProfessional()
@@ -130,9 +137,11 @@
boolean isIsProfessional();
/**
- * Sets the value of the '{@link org.eclipse.emf.emfstore.bowling.Player#isIsProfessional <em>Is Professional</em>}' attribute.
+ * Sets the value of the '{@link org.eclipse.emf.emfstore.bowling.Player#isIsProfessional <em>Is Professional</em>}'
+ * attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @param value the new value of the '<em>Is Professional</em>' attribute.
* @see #isIsProfessional()
* @generated
@@ -143,10 +152,11 @@
* Returns the value of the '<em><b>EMail</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>EMail</em>' attribute isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>EMail</em>' attribute isn't clear, there really should be more of a description
+ * here...
* </p>
* <!-- end-user-doc -->
+ *
* @return the value of the '<em>EMail</em>' attribute.
* @see #setEMail(String)
* @see org.eclipse.emf.emfstore.bowling.BowlingPackage#getPlayer_EMail()
@@ -159,6 +169,7 @@
* Sets the value of the '{@link org.eclipse.emf.emfstore.bowling.Player#getEMail <em>EMail</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @param value the new value of the '<em>EMail</em>' attribute.
* @see #getEMail()
* @generated
diff --git a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/Referee.java b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/Referee.java
index 73220a6..dfa25fa 100644
--- a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/Referee.java
+++ b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/Referee.java
@@ -16,14 +16,14 @@
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Referee</b></em>'.
* <!-- end-user-doc -->
- *
+ *
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.emf.emfstore.bowling.Referee#getLeague <em>League</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.Referee#getLeague <em>League</em>}</li>
* </ul>
* </p>
- *
+ *
* @see org.eclipse.emf.emfstore.bowling.BowlingPackage#getReferee()
* @model
* @generated
@@ -33,10 +33,11 @@
* Returns the value of the '<em><b>League</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>League</em>' reference isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>League</em>' reference isn't clear, there really should be more of a description
+ * here...
* </p>
* <!-- end-user-doc -->
+ *
* @return the value of the '<em>League</em>' reference.
* @see #setLeague(League)
* @see org.eclipse.emf.emfstore.bowling.BowlingPackage#getReferee_League()
@@ -49,6 +50,7 @@
* Sets the value of the '{@link org.eclipse.emf.emfstore.bowling.Referee#getLeague <em>League</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @param value the new value of the '<em>League</em>' reference.
* @see #getLeague()
* @generated
diff --git a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/Tournament.java b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/Tournament.java
index f20a0fe..2e8bfa4 100644
--- a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/Tournament.java
+++ b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/Tournament.java
@@ -19,18 +19,18 @@
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Tournament</b></em>'.
* <!-- end-user-doc -->
- *
+ *
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.emf.emfstore.bowling.Tournament#getMatchups <em>Matchups</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.bowling.Tournament#getType <em>Type</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.bowling.Tournament#getPlayerPoints <em>Player Points</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.bowling.Tournament#getPlayers <em>Players</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.bowling.Tournament#getReferees <em>Referees</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.Tournament#getMatchups <em>Matchups</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.Tournament#getType <em>Type</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.Tournament#getPlayerPoints <em>Player Points</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.Tournament#getPlayers <em>Players</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.Tournament#getReferees <em>Referees</em>}</li>
* </ul>
* </p>
- *
+ *
* @see org.eclipse.emf.emfstore.bowling.BowlingPackage#getTournament()
* @model
* @generated
@@ -41,10 +41,11 @@
* The list contents are of type {@link org.eclipse.emf.emfstore.bowling.Matchup}.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Matchups</em>' containment reference list isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Matchups</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>Matchups</em>' containment reference list.
* @see org.eclipse.emf.emfstore.bowling.BowlingPackage#getTournament_Matchups()
* @model containment="true" resolveProxies="true"
@@ -57,10 +58,10 @@
* The literals are from the enumeration {@link org.eclipse.emf.emfstore.bowling.TournamentType}.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Type</em>' attribute isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Type</em>' attribute isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ *
* @return the value of the '<em>Type</em>' attribute.
* @see org.eclipse.emf.emfstore.bowling.TournamentType
* @see #setType(TournamentType)
@@ -74,6 +75,7 @@
* Sets the value of the '{@link org.eclipse.emf.emfstore.bowling.Tournament#getType <em>Type</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @param value the new value of the '<em>Type</em>' attribute.
* @see org.eclipse.emf.emfstore.bowling.TournamentType
* @see #getType()
@@ -87,13 +89,15 @@
* and the value is of type {@link java.lang.Integer},
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Player Points</em>' map isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Player Points</em>' map isn't clear, there really should be more of a description
+ * here...
* </p>
* <!-- end-user-doc -->
+ *
* @return the value of the '<em>Player Points</em>' map.
* @see org.eclipse.emf.emfstore.bowling.BowlingPackage#getTournament_PlayerPoints()
- * @model mapType="org.eclipse.emf.emfstore.bowling.PlayerToPointsMap<org.eclipse.emf.emfstore.bowling.Player, org.eclipse.emf.ecore.EIntegerObject>"
+ * @model mapType=
+ * "org.eclipse.emf.emfstore.bowling.PlayerToPointsMap<org.eclipse.emf.emfstore.bowling.Player, org.eclipse.emf.ecore.EIntegerObject>"
* @generated
*/
EMap<Player, Integer> getPlayerPoints();
@@ -103,10 +107,11 @@
* The list contents are of type {@link org.eclipse.emf.emfstore.bowling.Player}.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Players</em>' reference list isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Players</em>' reference list isn't clear, there really should be more of a description
+ * here...
* </p>
* <!-- end-user-doc -->
+ *
* @return the value of the '<em>Players</em>' reference list.
* @see org.eclipse.emf.emfstore.bowling.BowlingPackage#getTournament_Players()
* @model
@@ -120,13 +125,14 @@
* and the value is of type {@link org.eclipse.emf.emfstore.bowling.Game},
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Referees</em>' map isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Referees</em>' map isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ *
* @return the value of the '<em>Referees</em>' map.
* @see org.eclipse.emf.emfstore.bowling.BowlingPackage#getTournament_Referees()
- * @model mapType="org.eclipse.emf.emfstore.bowling.RefereeToGamesMap<org.eclipse.emf.emfstore.bowling.Referee, org.eclipse.emf.emfstore.bowling.Game>"
+ * @model mapType=
+ * "org.eclipse.emf.emfstore.bowling.RefereeToGamesMap<org.eclipse.emf.emfstore.bowling.Referee, org.eclipse.emf.emfstore.bowling.Game>"
* @generated
*/
EMap<Referee, Game> getReferees();
diff --git a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/TournamentType.java b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/TournamentType.java
index e2a76ec..9a5c1fd 100644
--- a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/TournamentType.java
+++ b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/TournamentType.java
@@ -21,6 +21,7 @@
* A representation of the literals of the enumeration '<em><b>Tournament Type</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.emfstore.bowling.BowlingPackage#getTournamentType()
* @model
* @generated
@@ -30,6 +31,7 @@
* The '<em><b>Pro</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #PRO_VALUE
* @generated
* @ordered
@@ -40,6 +42,7 @@
* The '<em><b>Amateur</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #AMATEUR_VALUE
* @generated
* @ordered
@@ -50,10 +53,11 @@
* The '<em><b>Pro</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of '<em><b>Pro</b></em>' literal object isn't clear,
- * there really should be more of a description here...
+ * If the meaning of '<em><b>Pro</b></em>' literal object isn't clear, there really should be more of a description
+ * here...
* </p>
* <!-- end-user-doc -->
+ *
* @see #PRO
* @model name="Pro"
* @generated
@@ -65,10 +69,11 @@
* The '<em><b>Amateur</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of '<em><b>Amateur</b></em>' literal object isn't clear,
- * there really should be more of a description here...
+ * If the meaning of '<em><b>Amateur</b></em>' literal object isn't clear, there really should be more of a
+ * description here...
* </p>
* <!-- end-user-doc -->
+ *
* @see #AMATEUR
* @model name="Amateur"
* @generated
@@ -80,18 +85,16 @@
* An array of all the '<em><b>Tournament Type</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
- private static final TournamentType[] VALUES_ARRAY =
- new TournamentType[] {
- PRO,
- AMATEUR,
- };
+ private static final TournamentType[] VALUES_ARRAY = new TournamentType[] { PRO, AMATEUR, };
/**
* A public read-only list of all the '<em><b>Tournament Type</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public static final List<TournamentType> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
@@ -100,6 +103,7 @@
* Returns the '<em><b>Tournament Type</b></em>' literal with the specified literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public static TournamentType get(String literal) {
@@ -116,6 +120,7 @@
* Returns the '<em><b>Tournament Type</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public static TournamentType getByName(String name) {
@@ -132,12 +137,15 @@
* Returns the '<em><b>Tournament Type</b></em>' literal with the specified integer value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public static TournamentType get(int value) {
switch (value) {
- case PRO_VALUE: return PRO;
- case AMATEUR_VALUE: return AMATEUR;
+ case PRO_VALUE:
+ return PRO;
+ case AMATEUR_VALUE:
+ return AMATEUR;
}
return null;
}
@@ -145,6 +153,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private final int value;
@@ -152,6 +161,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private final String name;
@@ -159,6 +169,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private final String literal;
@@ -167,6 +178,7 @@
* Only this class can construct instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private TournamentType(int value, String name, String literal) {
@@ -178,39 +190,43 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public int getValue() {
- return value;
+ return value;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public String getName() {
- return name;
+ return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public String getLiteral() {
- return literal;
+ return literal;
}
/**
* Returns the literal value of the enumerator, which is its string representation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String toString() {
return literal;
}
-
-} //TournamentType
\ No newline at end of file
+
+} // TournamentType
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/AreaImpl.java b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/AreaImpl.java
index 08a9f79..4d06c4a 100644
--- a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/AreaImpl.java
+++ b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/AreaImpl.java
@@ -35,11 +35,11 @@
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.emf.emfstore.bowling.impl.AreaImpl#getAreas <em>Areas</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.bowling.impl.AreaImpl#getTournaments <em>Tournaments</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.impl.AreaImpl#getAreas <em>Areas</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.impl.AreaImpl#getTournaments <em>Tournaments</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
public class AreaImpl extends EObjectImpl implements Area {
@@ -47,6 +47,7 @@
* The cached value of the '{@link #getAreas() <em>Areas</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getAreas()
* @generated
* @ordered
@@ -57,6 +58,7 @@
* The cached value of the '{@link #getTournaments() <em>Tournaments</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getTournaments()
* @generated
* @ordered
@@ -66,6 +68,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected AreaImpl() {
@@ -75,6 +78,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -85,6 +89,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EList<Area> getAreas() {
@@ -97,11 +102,13 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EList<Tournament> getTournaments() {
if (tournaments == null) {
- tournaments = new EObjectContainmentEList.Resolving<Tournament>(Tournament.class, this, BowlingPackage.AREA__TOURNAMENTS);
+ tournaments = new EObjectContainmentEList.Resolving<Tournament>(Tournament.class, this,
+ BowlingPackage.AREA__TOURNAMENTS);
}
return tournaments;
}
@@ -109,15 +116,16 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
- case BowlingPackage.AREA__AREAS:
- return ((InternalEList<?>)getAreas()).basicRemove(otherEnd, msgs);
- case BowlingPackage.AREA__TOURNAMENTS:
- return ((InternalEList<?>)getTournaments()).basicRemove(otherEnd, msgs);
+ case BowlingPackage.AREA__AREAS:
+ return ((InternalEList<?>) getAreas()).basicRemove(otherEnd, msgs);
+ case BowlingPackage.AREA__TOURNAMENTS:
+ return ((InternalEList<?>) getTournaments()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -125,15 +133,16 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case BowlingPackage.AREA__AREAS:
- return getAreas();
- case BowlingPackage.AREA__TOURNAMENTS:
- return getTournaments();
+ case BowlingPackage.AREA__AREAS:
+ return getAreas();
+ case BowlingPackage.AREA__TOURNAMENTS:
+ return getTournaments();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -141,20 +150,21 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case BowlingPackage.AREA__AREAS:
- getAreas().clear();
- getAreas().addAll((Collection<? extends Area>)newValue);
- return;
- case BowlingPackage.AREA__TOURNAMENTS:
- getTournaments().clear();
- getTournaments().addAll((Collection<? extends Tournament>)newValue);
- return;
+ case BowlingPackage.AREA__AREAS:
+ getAreas().clear();
+ getAreas().addAll((Collection<? extends Area>) newValue);
+ return;
+ case BowlingPackage.AREA__TOURNAMENTS:
+ getTournaments().clear();
+ getTournaments().addAll((Collection<? extends Tournament>) newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -162,17 +172,18 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case BowlingPackage.AREA__AREAS:
- getAreas().clear();
- return;
- case BowlingPackage.AREA__TOURNAMENTS:
- getTournaments().clear();
- return;
+ case BowlingPackage.AREA__AREAS:
+ getAreas().clear();
+ return;
+ case BowlingPackage.AREA__TOURNAMENTS:
+ getTournaments().clear();
+ return;
}
super.eUnset(featureID);
}
@@ -180,17 +191,18 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case BowlingPackage.AREA__AREAS:
- return areas != null && !areas.isEmpty();
- case BowlingPackage.AREA__TOURNAMENTS:
- return tournaments != null && !tournaments.isEmpty();
+ case BowlingPackage.AREA__AREAS:
+ return areas != null && !areas.isEmpty();
+ case BowlingPackage.AREA__TOURNAMENTS:
+ return tournaments != null && !tournaments.isEmpty();
}
return super.eIsSet(featureID);
}
-} //AreaImpl
\ No newline at end of file
+} // AreaImpl
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/BowlingFactoryImpl.java b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/BowlingFactoryImpl.java
index 4453d92..530143c 100644
--- a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/BowlingFactoryImpl.java
+++ b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/BowlingFactoryImpl.java
@@ -27,6 +27,7 @@
* <!-- begin-user-doc -->
* An implementation of the model <b>Factory</b>.
* <!-- end-user-doc -->
+ *
* @generated
*/
public class BowlingFactoryImpl extends EFactoryImpl implements BowlingFactory {
@@ -34,16 +35,17 @@
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public static BowlingFactory init() {
try {
- BowlingFactory theBowlingFactory = (BowlingFactory)EPackage.Registry.INSTANCE.getEFactory("http://org/eclipse/example/bowling");
+ BowlingFactory theBowlingFactory = (BowlingFactory) EPackage.Registry.INSTANCE
+ .getEFactory("http://org/eclipse/example/bowling");
if (theBowlingFactory != null) {
return theBowlingFactory;
}
- }
- catch (Exception exception) {
+ } catch (Exception exception) {
EcorePlugin.INSTANCE.log(exception);
}
return new BowlingFactoryImpl();
@@ -53,6 +55,7 @@
* Creates an instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public BowlingFactoryImpl() {
@@ -62,58 +65,71 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public EObject create(EClass eClass) {
switch (eClass.getClassifierID()) {
- case BowlingPackage.PLAYER: return createPlayer();
- case BowlingPackage.LEAGUE: return createLeague();
- case BowlingPackage.TOURNAMENT: return createTournament();
- case BowlingPackage.MATCHUP: return createMatchup();
- case BowlingPackage.GAME: return createGame();
- case BowlingPackage.PLAYER_TO_POINTS_MAP: return (EObject)createPlayerToPointsMap();
- case BowlingPackage.REFEREE: return createReferee();
- case BowlingPackage.REFEREE_TO_GAMES_MAP: return (EObject)createRefereeToGamesMap();
- case BowlingPackage.AREA: return createArea();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ case BowlingPackage.PLAYER:
+ return createPlayer();
+ case BowlingPackage.LEAGUE:
+ return createLeague();
+ case BowlingPackage.TOURNAMENT:
+ return createTournament();
+ case BowlingPackage.MATCHUP:
+ return createMatchup();
+ case BowlingPackage.GAME:
+ return createGame();
+ case BowlingPackage.PLAYER_TO_POINTS_MAP:
+ return (EObject) createPlayerToPointsMap();
+ case BowlingPackage.REFEREE:
+ return createReferee();
+ case BowlingPackage.REFEREE_TO_GAMES_MAP:
+ return (EObject) createRefereeToGamesMap();
+ case BowlingPackage.AREA:
+ return createArea();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object createFromString(EDataType eDataType, String initialValue) {
switch (eDataType.getClassifierID()) {
- case BowlingPackage.TOURNAMENT_TYPE:
- return createTournamentTypeFromString(eDataType, initialValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ case BowlingPackage.TOURNAMENT_TYPE:
+ return createTournamentTypeFromString(eDataType, initialValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String convertToString(EDataType eDataType, Object instanceValue) {
switch (eDataType.getClassifierID()) {
- case BowlingPackage.TOURNAMENT_TYPE:
- return convertTournamentTypeToString(eDataType, instanceValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ case BowlingPackage.TOURNAMENT_TYPE:
+ return convertTournamentTypeToString(eDataType, instanceValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Player createPlayer() {
@@ -124,6 +140,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public League createLeague() {
@@ -134,6 +151,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Tournament createTournament() {
@@ -144,6 +162,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Matchup createMatchup() {
@@ -154,6 +173,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Game createGame() {
@@ -164,6 +184,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Map.Entry<Player, Integer> createPlayerToPointsMap() {
@@ -174,6 +195,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Referee createReferee() {
@@ -184,6 +206,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Map.Entry<Referee, Game> createRefereeToGamesMap() {
@@ -194,6 +217,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Area createArea() {
@@ -204,17 +228,21 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public TournamentType createTournamentTypeFromString(EDataType eDataType, String initialValue) {
TournamentType result = TournamentType.get(initialValue);
- if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
+ if (result == null)
+ throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '"
+ + eDataType.getName() + "'");
return result;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public String convertTournamentTypeToString(EDataType eDataType, Object instanceValue) {
@@ -224,15 +252,17 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public BowlingPackage getBowlingPackage() {
- return (BowlingPackage)getEPackage();
+ return (BowlingPackage) getEPackage();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @deprecated
* @generated
*/
@@ -241,4 +271,4 @@
return BowlingPackage.eINSTANCE;
}
-} //BowlingFactoryImpl
\ No newline at end of file
+} // BowlingFactoryImpl
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/BowlingPackageImpl.java b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/BowlingPackageImpl.java
index 39999c3..3652e73 100644
--- a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/BowlingPackageImpl.java
+++ b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/BowlingPackageImpl.java
@@ -35,12 +35,14 @@
* <!-- begin-user-doc -->
* An implementation of the model <b>Package</b>.
* <!-- end-user-doc -->
+ *
* @generated
*/
public class BowlingPackageImpl extends EPackageImpl implements BowlingPackage {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private EClass playerEClass = null;
@@ -48,6 +50,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private EClass leagueEClass = null;
@@ -55,6 +58,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private EClass tournamentEClass = null;
@@ -62,6 +66,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private EClass matchupEClass = null;
@@ -69,6 +74,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private EClass gameEClass = null;
@@ -76,6 +82,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private EClass playerToPointsMapEClass = null;
@@ -83,6 +90,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private EClass refereeEClass = null;
@@ -90,6 +98,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private EClass refereeToGamesMapEClass = null;
@@ -97,6 +106,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private EClass areaEClass = null;
@@ -104,20 +114,20 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private EEnum tournamentTypeEEnum = null;
/**
- * Creates an instance of the model <b>Package</b>, registered with
- * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
+ * Creates an instance of the model <b>Package</b>, registered with {@link org.eclipse.emf.ecore.EPackage.Registry
+ * EPackage.Registry} by the package
* package URI value.
- * <p>Note: the correct way to create the package is via the static
- * factory method {@link #init init()}, which also performs
- * initialization of the package, or returns the registered package,
- * if one already exists.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * <p>
+ * Note: the correct way to create the package is via the static factory method {@link #init init()}, which also
+ * performs initialization of the package, or returns the registered package, if one already exists. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.ecore.EPackage.Registry
* @see org.eclipse.emf.emfstore.bowling.BowlingPackage#eNS_URI
* @see #init()
@@ -130,6 +140,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private static boolean isInited = false;
@@ -137,20 +148,23 @@
/**
* Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
*
- * <p>This method is used to initialize {@link BowlingPackage#eINSTANCE} when that field is accessed.
- * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * <p>
+ * This method is used to initialize {@link BowlingPackage#eINSTANCE} when that field is accessed. Clients should
+ * not invoke it directly. Instead, they should simply access that field to obtain the package. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
* @see #eNS_URI
* @see #createPackageContents()
* @see #initializePackageContents()
* @generated
*/
public static BowlingPackage init() {
- if (isInited) return (BowlingPackage)EPackage.Registry.INSTANCE.getEPackage(BowlingPackage.eNS_URI);
+ if (isInited)
+ return (BowlingPackage) EPackage.Registry.INSTANCE.getEPackage(BowlingPackage.eNS_URI);
// Obtain or create and register package
- BowlingPackageImpl theBowlingPackage = (BowlingPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof BowlingPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new BowlingPackageImpl());
+ BowlingPackageImpl theBowlingPackage = (BowlingPackageImpl) (EPackage.Registry.INSTANCE.get(eNS_URI) instanceof BowlingPackageImpl ? EPackage.Registry.INSTANCE
+ .get(eNS_URI) : new BowlingPackageImpl());
isInited = true;
@@ -163,7 +177,6 @@
// Mark meta-data to indicate it can't be changed
theBowlingPackage.freeze();
-
// Update the registry and return the package
EPackage.Registry.INSTANCE.put(BowlingPackage.eNS_URI, theBowlingPackage);
return theBowlingPackage;
@@ -172,6 +185,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EClass getPlayer() {
@@ -181,51 +195,57 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EAttribute getPlayer_Name() {
- return (EAttribute)playerEClass.getEStructuralFeatures().get(0);
+ return (EAttribute) playerEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EAttribute getPlayer_DateOfBirth() {
- return (EAttribute)playerEClass.getEStructuralFeatures().get(1);
+ return (EAttribute) playerEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EAttribute getPlayer_Height() {
- return (EAttribute)playerEClass.getEStructuralFeatures().get(2);
+ return (EAttribute) playerEClass.getEStructuralFeatures().get(2);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EAttribute getPlayer_IsProfessional() {
- return (EAttribute)playerEClass.getEStructuralFeatures().get(3);
+ return (EAttribute) playerEClass.getEStructuralFeatures().get(3);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EAttribute getPlayer_EMail() {
- return (EAttribute)playerEClass.getEStructuralFeatures().get(4);
+ return (EAttribute) playerEClass.getEStructuralFeatures().get(4);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EClass getLeague() {
@@ -235,24 +255,27 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EAttribute getLeague_Name() {
- return (EAttribute)leagueEClass.getEStructuralFeatures().get(0);
+ return (EAttribute) leagueEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EReference getLeague_Players() {
- return (EReference)leagueEClass.getEStructuralFeatures().get(1);
+ return (EReference) leagueEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EClass getTournament() {
@@ -262,51 +285,57 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EReference getTournament_Matchups() {
- return (EReference)tournamentEClass.getEStructuralFeatures().get(0);
+ return (EReference) tournamentEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EAttribute getTournament_Type() {
- return (EAttribute)tournamentEClass.getEStructuralFeatures().get(1);
+ return (EAttribute) tournamentEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EReference getTournament_PlayerPoints() {
- return (EReference)tournamentEClass.getEStructuralFeatures().get(2);
+ return (EReference) tournamentEClass.getEStructuralFeatures().get(2);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EReference getTournament_Players() {
- return (EReference)tournamentEClass.getEStructuralFeatures().get(3);
+ return (EReference) tournamentEClass.getEStructuralFeatures().get(3);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EReference getTournament_Referees() {
- return (EReference)tournamentEClass.getEStructuralFeatures().get(4);
+ return (EReference) tournamentEClass.getEStructuralFeatures().get(4);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EClass getMatchup() {
@@ -316,15 +345,17 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EReference getMatchup_Games() {
- return (EReference)matchupEClass.getEStructuralFeatures().get(0);
+ return (EReference) matchupEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EClass getGame() {
@@ -334,33 +365,37 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EReference getGame_Matchup() {
- return (EReference)gameEClass.getEStructuralFeatures().get(0);
+ return (EReference) gameEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EReference getGame_Player() {
- return (EReference)gameEClass.getEStructuralFeatures().get(1);
+ return (EReference) gameEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EAttribute getGame_Frames() {
- return (EAttribute)gameEClass.getEStructuralFeatures().get(2);
+ return (EAttribute) gameEClass.getEStructuralFeatures().get(2);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EClass getPlayerToPointsMap() {
@@ -370,24 +405,27 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EReference getPlayerToPointsMap_Key() {
- return (EReference)playerToPointsMapEClass.getEStructuralFeatures().get(0);
+ return (EReference) playerToPointsMapEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EAttribute getPlayerToPointsMap_Value() {
- return (EAttribute)playerToPointsMapEClass.getEStructuralFeatures().get(1);
+ return (EAttribute) playerToPointsMapEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EClass getReferee() {
@@ -397,15 +435,17 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EReference getReferee_League() {
- return (EReference)refereeEClass.getEStructuralFeatures().get(0);
+ return (EReference) refereeEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EClass getRefereeToGamesMap() {
@@ -415,24 +455,27 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EReference getRefereeToGamesMap_Key() {
- return (EReference)refereeToGamesMapEClass.getEStructuralFeatures().get(0);
+ return (EReference) refereeToGamesMapEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EReference getRefereeToGamesMap_Value() {
- return (EReference)refereeToGamesMapEClass.getEStructuralFeatures().get(1);
+ return (EReference) refereeToGamesMapEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EClass getArea() {
@@ -442,24 +485,27 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EReference getArea_Areas() {
- return (EReference)areaEClass.getEStructuralFeatures().get(0);
+ return (EReference) areaEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EReference getArea_Tournaments() {
- return (EReference)areaEClass.getEStructuralFeatures().get(1);
+ return (EReference) areaEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EEnum getTournamentType() {
@@ -469,28 +515,32 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public BowlingFactory getBowlingFactory() {
- return (BowlingFactory)getEFactoryInstance();
+ return (BowlingFactory) getEFactoryInstance();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private boolean isCreated = false;
/**
- * Creates the meta-model objects for the package. This method is
+ * Creates the meta-model objects for the package. This method is
* guarded to have no affect on any invocation but its first.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void createPackageContents() {
- if (isCreated) return;
+ if (isCreated)
+ return;
isCreated = true;
// Create classes and their features
@@ -542,19 +592,22 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private boolean isInitialized = false;
/**
- * Complete the initialization of the package and its meta-model. This
+ * Complete the initialization of the package and its meta-model. This
* method is guarded to have no affect on any invocation but its first.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void initializePackageContents() {
- if (isInitialized) return;
+ if (isInitialized)
+ return;
isInitialized = true;
// Initialize package
@@ -570,45 +623,87 @@
// Initialize classes and features; add operations and parameters
initEClass(playerEClass, Player.class, "Player", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getPlayer_Name(), ecorePackage.getEString(), "name", null, 0, 1, Player.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getPlayer_DateOfBirth(), ecorePackage.getEDate(), "dateOfBirth", null, 0, 1, Player.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getPlayer_Height(), ecorePackage.getEDouble(), "height", null, 0, 1, Player.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getPlayer_IsProfessional(), ecorePackage.getEBoolean(), "isProfessional", null, 0, 1, Player.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getPlayer_EMail(), ecorePackage.getEString(), "eMail", null, 0, 1, Player.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getPlayer_Name(), ecorePackage.getEString(), "name", null, 0, 1, Player.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getPlayer_DateOfBirth(), ecorePackage.getEDate(), "dateOfBirth", null, 0, 1, Player.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getPlayer_Height(), ecorePackage.getEDouble(), "height", null, 0, 1, Player.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getPlayer_IsProfessional(), ecorePackage.getEBoolean(), "isProfessional", null, 0, 1,
+ Player.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEAttribute(getPlayer_EMail(), ecorePackage.getEString(), "eMail", null, 0, 1, Player.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(leagueEClass, League.class, "League", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getLeague_Name(), ecorePackage.getEString(), "name", null, 0, 1, League.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getLeague_Players(), this.getPlayer(), null, "players", null, 0, -1, League.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getLeague_Name(), ecorePackage.getEString(), "name", null, 0, 1, League.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getLeague_Players(), this.getPlayer(), null, "players", null, 0, -1, League.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
- initEClass(tournamentEClass, Tournament.class, "Tournament", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getTournament_Matchups(), this.getMatchup(), null, "matchups", null, 0, -1, Tournament.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getTournament_Type(), this.getTournamentType(), "type", null, 0, 1, Tournament.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getTournament_PlayerPoints(), this.getPlayerToPointsMap(), null, "playerPoints", null, 0, -1, Tournament.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getTournament_Players(), this.getPlayer(), null, "players", null, 0, -1, Tournament.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getTournament_Referees(), this.getRefereeToGamesMap(), null, "referees", null, 0, -1, Tournament.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEClass(tournamentEClass, Tournament.class, "Tournament", !IS_ABSTRACT, !IS_INTERFACE,
+ IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getTournament_Matchups(), this.getMatchup(), null, "matchups", null, 0, -1, Tournament.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getTournament_Type(), this.getTournamentType(), "type", null, 0, 1, Tournament.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getTournament_PlayerPoints(), this.getPlayerToPointsMap(), null, "playerPoints", null, 0, -1,
+ Tournament.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES,
+ !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getTournament_Players(), this.getPlayer(), null, "players", null, 0, -1, Tournament.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEReference(getTournament_Referees(), this.getRefereeToGamesMap(), null, "referees", null, 0, -1,
+ Tournament.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES,
+ !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(matchupEClass, Matchup.class, "Matchup", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getMatchup_Games(), this.getGame(), this.getGame_Matchup(), "games", null, 2, 2, Matchup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getMatchup_Games(), this.getGame(), this.getGame_Matchup(), "games", null, 2, 2, Matchup.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
initEClass(gameEClass, Game.class, "Game", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getGame_Matchup(), this.getMatchup(), this.getMatchup_Games(), "matchup", null, 1, 1, Game.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getGame_Player(), this.getPlayer(), null, "player", null, 0, 1, Game.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getGame_Frames(), ecorePackage.getEInt(), "frames", null, 0, 10, Game.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getGame_Matchup(), this.getMatchup(), this.getMatchup_Games(), "matchup", null, 1, 1,
+ Game.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE,
+ IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getGame_Player(), this.getPlayer(), null, "player", null, 0, 1, Game.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEAttribute(getGame_Frames(), ecorePackage.getEInt(), "frames", null, 0, 10, Game.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEClass(playerToPointsMapEClass, Map.Entry.class, "PlayerToPointsMap", !IS_ABSTRACT, !IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS);
- initEReference(getPlayerToPointsMap_Key(), this.getPlayer(), null, "key", null, 0, 1, Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getPlayerToPointsMap_Value(), ecorePackage.getEIntegerObject(), "value", null, 0, 1, Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEClass(playerToPointsMapEClass, Map.Entry.class, "PlayerToPointsMap", !IS_ABSTRACT, !IS_INTERFACE,
+ !IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getPlayerToPointsMap_Key(), this.getPlayer(), null, "key", null, 0, 1, Map.Entry.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getPlayerToPointsMap_Value(), ecorePackage.getEIntegerObject(), "value", null, 0, 1,
+ Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
initEClass(refereeEClass, Referee.class, "Referee", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getReferee_League(), this.getLeague(), null, "league", null, 0, 1, Referee.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getReferee_League(), this.getLeague(), null, "league", null, 0, 1, Referee.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
- initEClass(refereeToGamesMapEClass, Map.Entry.class, "RefereeToGamesMap", !IS_ABSTRACT, !IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS);
- initEReference(getRefereeToGamesMap_Key(), this.getReferee(), null, "key", null, 0, 1, Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getRefereeToGamesMap_Value(), this.getGame(), null, "value", null, 0, 1, Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEClass(refereeToGamesMapEClass, Map.Entry.class, "RefereeToGamesMap", !IS_ABSTRACT, !IS_INTERFACE,
+ !IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getRefereeToGamesMap_Key(), this.getReferee(), null, "key", null, 0, 1, Map.Entry.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEReference(getRefereeToGamesMap_Value(), this.getGame(), null, "value", null, 0, 1, Map.Entry.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
initEClass(areaEClass, Area.class, "Area", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getArea_Areas(), this.getArea(), null, "areas", null, 0, -1, Area.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getArea_Tournaments(), this.getTournament(), null, "tournaments", null, 0, -1, Area.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getArea_Areas(), this.getArea(), null, "areas", null, 0, -1, Area.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEReference(getArea_Tournaments(), this.getTournament(), null, "tournaments", null, 0, -1, Area.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
// Initialize enums and add enum literals
initEEnum(tournamentTypeEEnum, TournamentType.class, "TournamentType");
@@ -619,4 +714,4 @@
createResource(eNS_URI);
}
-} //BowlingPackageImpl
\ No newline at end of file
+} // BowlingPackageImpl
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/GameImpl.java b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/GameImpl.java
index b20d2c3..08deab1 100644
--- a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/GameImpl.java
+++ b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/GameImpl.java
@@ -38,12 +38,12 @@
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.emf.emfstore.bowling.impl.GameImpl#getMatchup <em>Matchup</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.bowling.impl.GameImpl#getPlayer <em>Player</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.bowling.impl.GameImpl#getFrames <em>Frames</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.impl.GameImpl#getMatchup <em>Matchup</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.impl.GameImpl#getPlayer <em>Player</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.impl.GameImpl#getFrames <em>Frames</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
public class GameImpl extends EObjectImpl implements Game {
@@ -51,6 +51,7 @@
* The cached value of the '{@link #getPlayer() <em>Player</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getPlayer()
* @generated
* @ordered
@@ -61,6 +62,7 @@
* The cached value of the '{@link #getFrames() <em>Frames</em>}' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getFrames()
* @generated
* @ordered
@@ -70,6 +72,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected GameImpl() {
@@ -79,6 +82,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -89,66 +93,76 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Matchup getMatchup() {
- if (eContainerFeatureID() != BowlingPackage.GAME__MATCHUP) return null;
- return (Matchup)eContainer();
+ if (eContainerFeatureID() != BowlingPackage.GAME__MATCHUP)
+ return null;
+ return (Matchup) eContainer();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Matchup basicGetMatchup() {
- if (eContainerFeatureID() != BowlingPackage.GAME__MATCHUP) return null;
- return (Matchup)eInternalContainer();
+ if (eContainerFeatureID() != BowlingPackage.GAME__MATCHUP)
+ return null;
+ return (Matchup) eInternalContainer();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public NotificationChain basicSetMatchup(Matchup newMatchup, NotificationChain msgs) {
- msgs = eBasicSetContainer((InternalEObject)newMatchup, BowlingPackage.GAME__MATCHUP, msgs);
+ msgs = eBasicSetContainer((InternalEObject) newMatchup, BowlingPackage.GAME__MATCHUP, msgs);
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setMatchup(Matchup newMatchup) {
- if (newMatchup != eInternalContainer() || (eContainerFeatureID() != BowlingPackage.GAME__MATCHUP && newMatchup != null)) {
+ if (newMatchup != eInternalContainer()
+ || (eContainerFeatureID() != BowlingPackage.GAME__MATCHUP && newMatchup != null)) {
if (EcoreUtil.isAncestor(this, newMatchup))
throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
NotificationChain msgs = null;
if (eInternalContainer() != null)
msgs = eBasicRemoveFromContainer(msgs);
if (newMatchup != null)
- msgs = ((InternalEObject)newMatchup).eInverseAdd(this, BowlingPackage.MATCHUP__GAMES, Matchup.class, msgs);
+ msgs = ((InternalEObject) newMatchup).eInverseAdd(this, BowlingPackage.MATCHUP__GAMES, Matchup.class,
+ msgs);
msgs = basicSetMatchup(newMatchup, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
+ if (msgs != null)
+ msgs.dispatch();
+ } else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, BowlingPackage.GAME__MATCHUP, newMatchup, newMatchup));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Player getPlayer() {
if (player != null && player.eIsProxy()) {
- InternalEObject oldPlayer = (InternalEObject)player;
- player = (Player)eResolveProxy(oldPlayer);
+ InternalEObject oldPlayer = (InternalEObject) player;
+ player = (Player) eResolveProxy(oldPlayer);
if (player != oldPlayer) {
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, BowlingPackage.GAME__PLAYER, oldPlayer, player));
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, BowlingPackage.GAME__PLAYER, oldPlayer,
+ player));
}
}
return player;
@@ -157,6 +171,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Player basicGetPlayer() {
@@ -166,6 +181,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setPlayer(Player newPlayer) {
@@ -178,6 +194,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EList<Integer> getFrames() {
@@ -190,15 +207,16 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
- case BowlingPackage.GAME__MATCHUP:
- if (eInternalContainer() != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return basicSetMatchup((Matchup)otherEnd, msgs);
+ case BowlingPackage.GAME__MATCHUP:
+ if (eInternalContainer() != null)
+ msgs = eBasicRemoveFromContainer(msgs);
+ return basicSetMatchup((Matchup) otherEnd, msgs);
}
return super.eInverseAdd(otherEnd, featureID, msgs);
}
@@ -206,13 +224,14 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
- case BowlingPackage.GAME__MATCHUP:
- return basicSetMatchup(null, msgs);
+ case BowlingPackage.GAME__MATCHUP:
+ return basicSetMatchup(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -220,13 +239,14 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) {
switch (eContainerFeatureID()) {
- case BowlingPackage.GAME__MATCHUP:
- return eInternalContainer().eInverseRemove(this, BowlingPackage.MATCHUP__GAMES, Matchup.class, msgs);
+ case BowlingPackage.GAME__MATCHUP:
+ return eInternalContainer().eInverseRemove(this, BowlingPackage.MATCHUP__GAMES, Matchup.class, msgs);
}
return super.eBasicRemoveFromContainerFeature(msgs);
}
@@ -234,19 +254,22 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case BowlingPackage.GAME__MATCHUP:
- if (resolve) return getMatchup();
- return basicGetMatchup();
- case BowlingPackage.GAME__PLAYER:
- if (resolve) return getPlayer();
- return basicGetPlayer();
- case BowlingPackage.GAME__FRAMES:
- return getFrames();
+ case BowlingPackage.GAME__MATCHUP:
+ if (resolve)
+ return getMatchup();
+ return basicGetMatchup();
+ case BowlingPackage.GAME__PLAYER:
+ if (resolve)
+ return getPlayer();
+ return basicGetPlayer();
+ case BowlingPackage.GAME__FRAMES:
+ return getFrames();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -254,22 +277,23 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case BowlingPackage.GAME__MATCHUP:
- setMatchup((Matchup)newValue);
- return;
- case BowlingPackage.GAME__PLAYER:
- setPlayer((Player)newValue);
- return;
- case BowlingPackage.GAME__FRAMES:
- getFrames().clear();
- getFrames().addAll((Collection<? extends Integer>)newValue);
- return;
+ case BowlingPackage.GAME__MATCHUP:
+ setMatchup((Matchup) newValue);
+ return;
+ case BowlingPackage.GAME__PLAYER:
+ setPlayer((Player) newValue);
+ return;
+ case BowlingPackage.GAME__FRAMES:
+ getFrames().clear();
+ getFrames().addAll((Collection<? extends Integer>) newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -277,20 +301,21 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case BowlingPackage.GAME__MATCHUP:
- setMatchup((Matchup)null);
- return;
- case BowlingPackage.GAME__PLAYER:
- setPlayer((Player)null);
- return;
- case BowlingPackage.GAME__FRAMES:
- getFrames().clear();
- return;
+ case BowlingPackage.GAME__MATCHUP:
+ setMatchup((Matchup) null);
+ return;
+ case BowlingPackage.GAME__PLAYER:
+ setPlayer((Player) null);
+ return;
+ case BowlingPackage.GAME__FRAMES:
+ getFrames().clear();
+ return;
}
super.eUnset(featureID);
}
@@ -298,17 +323,18 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case BowlingPackage.GAME__MATCHUP:
- return basicGetMatchup() != null;
- case BowlingPackage.GAME__PLAYER:
- return player != null;
- case BowlingPackage.GAME__FRAMES:
- return frames != null && !frames.isEmpty();
+ case BowlingPackage.GAME__MATCHUP:
+ return basicGetMatchup() != null;
+ case BowlingPackage.GAME__PLAYER:
+ return player != null;
+ case BowlingPackage.GAME__FRAMES:
+ return frames != null && !frames.isEmpty();
}
return super.eIsSet(featureID);
}
@@ -316,11 +342,13 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String toString() {
- if (eIsProxy()) return super.toString();
+ if (eIsProxy())
+ return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (frames: ");
@@ -329,4 +357,4 @@
return result.toString();
}
-} //GameImpl
\ No newline at end of file
+} // GameImpl
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/LeagueImpl.java b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/LeagueImpl.java
index 57b46d2..36a98e0 100644
--- a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/LeagueImpl.java
+++ b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/LeagueImpl.java
@@ -37,11 +37,11 @@
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.emf.emfstore.bowling.impl.LeagueImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.bowling.impl.LeagueImpl#getPlayers <em>Players</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.impl.LeagueImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.impl.LeagueImpl#getPlayers <em>Players</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
public class LeagueImpl extends EObjectImpl implements League {
@@ -49,6 +49,7 @@
* The default value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getName()
* @generated
* @ordered
@@ -59,6 +60,7 @@
* The cached value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getName()
* @generated
* @ordered
@@ -69,6 +71,7 @@
* The cached value of the '{@link #getPlayers() <em>Players</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getPlayers()
* @generated
* @ordered
@@ -78,6 +81,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected LeagueImpl() {
@@ -87,6 +91,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -97,6 +102,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public String getName() {
@@ -106,6 +112,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setName(String newName) {
@@ -118,6 +125,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EList<Player> getPlayers() {
@@ -130,13 +138,14 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
- case BowlingPackage.LEAGUE__PLAYERS:
- return ((InternalEList<?>)getPlayers()).basicRemove(otherEnd, msgs);
+ case BowlingPackage.LEAGUE__PLAYERS:
+ return ((InternalEList<?>) getPlayers()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -144,15 +153,16 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case BowlingPackage.LEAGUE__NAME:
- return getName();
- case BowlingPackage.LEAGUE__PLAYERS:
- return getPlayers();
+ case BowlingPackage.LEAGUE__NAME:
+ return getName();
+ case BowlingPackage.LEAGUE__PLAYERS:
+ return getPlayers();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -160,19 +170,20 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case BowlingPackage.LEAGUE__NAME:
- setName((String)newValue);
- return;
- case BowlingPackage.LEAGUE__PLAYERS:
- getPlayers().clear();
- getPlayers().addAll((Collection<? extends Player>)newValue);
- return;
+ case BowlingPackage.LEAGUE__NAME:
+ setName((String) newValue);
+ return;
+ case BowlingPackage.LEAGUE__PLAYERS:
+ getPlayers().clear();
+ getPlayers().addAll((Collection<? extends Player>) newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -180,17 +191,18 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case BowlingPackage.LEAGUE__NAME:
- setName(NAME_EDEFAULT);
- return;
- case BowlingPackage.LEAGUE__PLAYERS:
- getPlayers().clear();
- return;
+ case BowlingPackage.LEAGUE__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case BowlingPackage.LEAGUE__PLAYERS:
+ getPlayers().clear();
+ return;
}
super.eUnset(featureID);
}
@@ -198,15 +210,16 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case BowlingPackage.LEAGUE__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case BowlingPackage.LEAGUE__PLAYERS:
- return players != null && !players.isEmpty();
+ case BowlingPackage.LEAGUE__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case BowlingPackage.LEAGUE__PLAYERS:
+ return players != null && !players.isEmpty();
}
return super.eIsSet(featureID);
}
@@ -214,11 +227,13 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String toString() {
- if (eIsProxy()) return super.toString();
+ if (eIsProxy())
+ return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (name: ");
@@ -227,4 +242,4 @@
return result.toString();
}
-} //LeagueImpl
\ No newline at end of file
+} // LeagueImpl
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/MatchupImpl.java b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/MatchupImpl.java
index 220041a..2d32236 100644
--- a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/MatchupImpl.java
+++ b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/MatchupImpl.java
@@ -35,10 +35,10 @@
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.emf.emfstore.bowling.impl.MatchupImpl#getGames <em>Games</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.impl.MatchupImpl#getGames <em>Games</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
public class MatchupImpl extends EObjectImpl implements Matchup {
@@ -46,6 +46,7 @@
* The cached value of the '{@link #getGames() <em>Games</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getGames()
* @generated
* @ordered
@@ -55,6 +56,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected MatchupImpl() {
@@ -64,6 +66,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -74,11 +77,13 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EList<Game> getGames() {
if (games == null) {
- games = new EObjectContainmentWithInverseEList.Resolving<Game>(Game.class, this, BowlingPackage.MATCHUP__GAMES, BowlingPackage.GAME__MATCHUP);
+ games = new EObjectContainmentWithInverseEList.Resolving<Game>(Game.class, this,
+ BowlingPackage.MATCHUP__GAMES, BowlingPackage.GAME__MATCHUP);
}
return games;
}
@@ -86,14 +91,15 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
- case BowlingPackage.MATCHUP__GAMES:
- return ((InternalEList<InternalEObject>)(InternalEList<?>)getGames()).basicAdd(otherEnd, msgs);
+ case BowlingPackage.MATCHUP__GAMES:
+ return ((InternalEList<InternalEObject>) (InternalEList<?>) getGames()).basicAdd(otherEnd, msgs);
}
return super.eInverseAdd(otherEnd, featureID, msgs);
}
@@ -101,13 +107,14 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
- case BowlingPackage.MATCHUP__GAMES:
- return ((InternalEList<?>)getGames()).basicRemove(otherEnd, msgs);
+ case BowlingPackage.MATCHUP__GAMES:
+ return ((InternalEList<?>) getGames()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -115,13 +122,14 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case BowlingPackage.MATCHUP__GAMES:
- return getGames();
+ case BowlingPackage.MATCHUP__GAMES:
+ return getGames();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -129,16 +137,17 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case BowlingPackage.MATCHUP__GAMES:
- getGames().clear();
- getGames().addAll((Collection<? extends Game>)newValue);
- return;
+ case BowlingPackage.MATCHUP__GAMES:
+ getGames().clear();
+ getGames().addAll((Collection<? extends Game>) newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -146,14 +155,15 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case BowlingPackage.MATCHUP__GAMES:
- getGames().clear();
- return;
+ case BowlingPackage.MATCHUP__GAMES:
+ getGames().clear();
+ return;
}
super.eUnset(featureID);
}
@@ -161,15 +171,16 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case BowlingPackage.MATCHUP__GAMES:
- return games != null && !games.isEmpty();
+ case BowlingPackage.MATCHUP__GAMES:
+ return games != null && !games.isEmpty();
}
return super.eIsSet(featureID);
}
-} //MatchupImpl
\ No newline at end of file
+} // MatchupImpl
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/PlayerImpl.java b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/PlayerImpl.java
index eb778fe..de38765 100644
--- a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/PlayerImpl.java
+++ b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/PlayerImpl.java
@@ -29,14 +29,14 @@
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.emf.emfstore.bowling.impl.PlayerImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.bowling.impl.PlayerImpl#getDateOfBirth <em>Date Of Birth</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.bowling.impl.PlayerImpl#getHeight <em>Height</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.bowling.impl.PlayerImpl#isIsProfessional <em>Is Professional</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.bowling.impl.PlayerImpl#getEMail <em>EMail</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.impl.PlayerImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.impl.PlayerImpl#getDateOfBirth <em>Date Of Birth</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.impl.PlayerImpl#getHeight <em>Height</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.impl.PlayerImpl#isIsProfessional <em>Is Professional</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.impl.PlayerImpl#getEMail <em>EMail</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
public class PlayerImpl extends EObjectImpl implements Player {
@@ -44,6 +44,7 @@
* The default value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getName()
* @generated
* @ordered
@@ -54,6 +55,7 @@
* The cached value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getName()
* @generated
* @ordered
@@ -64,6 +66,7 @@
* The default value of the '{@link #getDateOfBirth() <em>Date Of Birth</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getDateOfBirth()
* @generated
* @ordered
@@ -74,6 +77,7 @@
* The cached value of the '{@link #getDateOfBirth() <em>Date Of Birth</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getDateOfBirth()
* @generated
* @ordered
@@ -84,6 +88,7 @@
* The default value of the '{@link #getHeight() <em>Height</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getHeight()
* @generated
* @ordered
@@ -94,6 +99,7 @@
* The cached value of the '{@link #getHeight() <em>Height</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getHeight()
* @generated
* @ordered
@@ -104,6 +110,7 @@
* The default value of the '{@link #isIsProfessional() <em>Is Professional</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #isIsProfessional()
* @generated
* @ordered
@@ -114,6 +121,7 @@
* The cached value of the '{@link #isIsProfessional() <em>Is Professional</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #isIsProfessional()
* @generated
* @ordered
@@ -124,6 +132,7 @@
* The default value of the '{@link #getEMail() <em>EMail</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getEMail()
* @generated
* @ordered
@@ -134,6 +143,7 @@
* The cached value of the '{@link #getEMail() <em>EMail</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getEMail()
* @generated
* @ordered
@@ -143,6 +153,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected PlayerImpl() {
@@ -152,6 +163,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -162,6 +174,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public String getName() {
@@ -171,6 +184,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setName(String newName) {
@@ -183,6 +197,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Date getDateOfBirth() {
@@ -192,18 +207,21 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setDateOfBirth(Date newDateOfBirth) {
Date oldDateOfBirth = dateOfBirth;
dateOfBirth = newDateOfBirth;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, BowlingPackage.PLAYER__DATE_OF_BIRTH, oldDateOfBirth, dateOfBirth));
+ eNotify(new ENotificationImpl(this, Notification.SET, BowlingPackage.PLAYER__DATE_OF_BIRTH, oldDateOfBirth,
+ dateOfBirth));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public double getHeight() {
@@ -213,6 +231,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setHeight(double newHeight) {
@@ -225,6 +244,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public boolean isIsProfessional() {
@@ -234,18 +254,21 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setIsProfessional(boolean newIsProfessional) {
boolean oldIsProfessional = isProfessional;
isProfessional = newIsProfessional;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, BowlingPackage.PLAYER__IS_PROFESSIONAL, oldIsProfessional, isProfessional));
+ eNotify(new ENotificationImpl(this, Notification.SET, BowlingPackage.PLAYER__IS_PROFESSIONAL,
+ oldIsProfessional, isProfessional));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public String getEMail() {
@@ -255,6 +278,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setEMail(String newEMail) {
@@ -267,21 +291,22 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case BowlingPackage.PLAYER__NAME:
- return getName();
- case BowlingPackage.PLAYER__DATE_OF_BIRTH:
- return getDateOfBirth();
- case BowlingPackage.PLAYER__HEIGHT:
- return getHeight();
- case BowlingPackage.PLAYER__IS_PROFESSIONAL:
- return isIsProfessional();
- case BowlingPackage.PLAYER__EMAIL:
- return getEMail();
+ case BowlingPackage.PLAYER__NAME:
+ return getName();
+ case BowlingPackage.PLAYER__DATE_OF_BIRTH:
+ return getDateOfBirth();
+ case BowlingPackage.PLAYER__HEIGHT:
+ return getHeight();
+ case BowlingPackage.PLAYER__IS_PROFESSIONAL:
+ return isIsProfessional();
+ case BowlingPackage.PLAYER__EMAIL:
+ return getEMail();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -289,26 +314,27 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case BowlingPackage.PLAYER__NAME:
- setName((String)newValue);
- return;
- case BowlingPackage.PLAYER__DATE_OF_BIRTH:
- setDateOfBirth((Date)newValue);
- return;
- case BowlingPackage.PLAYER__HEIGHT:
- setHeight((Double)newValue);
- return;
- case BowlingPackage.PLAYER__IS_PROFESSIONAL:
- setIsProfessional((Boolean)newValue);
- return;
- case BowlingPackage.PLAYER__EMAIL:
- setEMail((String)newValue);
- return;
+ case BowlingPackage.PLAYER__NAME:
+ setName((String) newValue);
+ return;
+ case BowlingPackage.PLAYER__DATE_OF_BIRTH:
+ setDateOfBirth((Date) newValue);
+ return;
+ case BowlingPackage.PLAYER__HEIGHT:
+ setHeight((Double) newValue);
+ return;
+ case BowlingPackage.PLAYER__IS_PROFESSIONAL:
+ setIsProfessional((Boolean) newValue);
+ return;
+ case BowlingPackage.PLAYER__EMAIL:
+ setEMail((String) newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -316,26 +342,27 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case BowlingPackage.PLAYER__NAME:
- setName(NAME_EDEFAULT);
- return;
- case BowlingPackage.PLAYER__DATE_OF_BIRTH:
- setDateOfBirth(DATE_OF_BIRTH_EDEFAULT);
- return;
- case BowlingPackage.PLAYER__HEIGHT:
- setHeight(HEIGHT_EDEFAULT);
- return;
- case BowlingPackage.PLAYER__IS_PROFESSIONAL:
- setIsProfessional(IS_PROFESSIONAL_EDEFAULT);
- return;
- case BowlingPackage.PLAYER__EMAIL:
- setEMail(EMAIL_EDEFAULT);
- return;
+ case BowlingPackage.PLAYER__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case BowlingPackage.PLAYER__DATE_OF_BIRTH:
+ setDateOfBirth(DATE_OF_BIRTH_EDEFAULT);
+ return;
+ case BowlingPackage.PLAYER__HEIGHT:
+ setHeight(HEIGHT_EDEFAULT);
+ return;
+ case BowlingPackage.PLAYER__IS_PROFESSIONAL:
+ setIsProfessional(IS_PROFESSIONAL_EDEFAULT);
+ return;
+ case BowlingPackage.PLAYER__EMAIL:
+ setEMail(EMAIL_EDEFAULT);
+ return;
}
super.eUnset(featureID);
}
@@ -343,21 +370,22 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case BowlingPackage.PLAYER__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case BowlingPackage.PLAYER__DATE_OF_BIRTH:
- return DATE_OF_BIRTH_EDEFAULT == null ? dateOfBirth != null : !DATE_OF_BIRTH_EDEFAULT.equals(dateOfBirth);
- case BowlingPackage.PLAYER__HEIGHT:
- return height != HEIGHT_EDEFAULT;
- case BowlingPackage.PLAYER__IS_PROFESSIONAL:
- return isProfessional != IS_PROFESSIONAL_EDEFAULT;
- case BowlingPackage.PLAYER__EMAIL:
- return EMAIL_EDEFAULT == null ? eMail != null : !EMAIL_EDEFAULT.equals(eMail);
+ case BowlingPackage.PLAYER__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case BowlingPackage.PLAYER__DATE_OF_BIRTH:
+ return DATE_OF_BIRTH_EDEFAULT == null ? dateOfBirth != null : !DATE_OF_BIRTH_EDEFAULT.equals(dateOfBirth);
+ case BowlingPackage.PLAYER__HEIGHT:
+ return height != HEIGHT_EDEFAULT;
+ case BowlingPackage.PLAYER__IS_PROFESSIONAL:
+ return isProfessional != IS_PROFESSIONAL_EDEFAULT;
+ case BowlingPackage.PLAYER__EMAIL:
+ return EMAIL_EDEFAULT == null ? eMail != null : !EMAIL_EDEFAULT.equals(eMail);
}
return super.eIsSet(featureID);
}
@@ -365,11 +393,13 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String toString() {
- if (eIsProxy()) return super.toString();
+ if (eIsProxy())
+ return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (name: ");
@@ -386,4 +416,4 @@
return result.toString();
}
-} //PlayerImpl
\ No newline at end of file
+} // PlayerImpl
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/PlayerToPointsMapImpl.java b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/PlayerToPointsMapImpl.java
index f2dc331..260a78c 100644
--- a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/PlayerToPointsMapImpl.java
+++ b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/PlayerToPointsMapImpl.java
@@ -32,18 +32,19 @@
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.emf.emfstore.bowling.impl.PlayerToPointsMapImpl#getTypedKey <em>Key</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.bowling.impl.PlayerToPointsMapImpl#getTypedValue <em>Value</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.impl.PlayerToPointsMapImpl#getTypedKey <em>Key</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.impl.PlayerToPointsMapImpl#getTypedValue <em>Value</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
-public class PlayerToPointsMapImpl extends EObjectImpl implements BasicEMap.Entry<Player,Integer> {
+public class PlayerToPointsMapImpl extends EObjectImpl implements BasicEMap.Entry<Player, Integer> {
/**
* The cached value of the '{@link #getTypedKey() <em>Key</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getTypedKey()
* @generated
* @ordered
@@ -54,6 +55,7 @@
* The default value of the '{@link #getTypedValue() <em>Value</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getTypedValue()
* @generated
* @ordered
@@ -64,6 +66,7 @@
* The cached value of the '{@link #getTypedValue() <em>Value</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getTypedValue()
* @generated
* @ordered
@@ -73,6 +76,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected PlayerToPointsMapImpl() {
@@ -82,6 +86,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -92,15 +97,17 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Player getTypedKey() {
if (key != null && key.eIsProxy()) {
- InternalEObject oldKey = (InternalEObject)key;
- key = (Player)eResolveProxy(oldKey);
+ InternalEObject oldKey = (InternalEObject) key;
+ key = (Player) eResolveProxy(oldKey);
if (key != oldKey) {
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, BowlingPackage.PLAYER_TO_POINTS_MAP__KEY, oldKey, key));
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, BowlingPackage.PLAYER_TO_POINTS_MAP__KEY,
+ oldKey, key));
}
}
return key;
@@ -109,6 +116,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Player basicGetTypedKey() {
@@ -118,6 +126,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setTypedKey(Player newKey) {
@@ -130,6 +139,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Integer getTypedValue() {
@@ -139,28 +149,32 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setTypedValue(Integer newValue) {
Integer oldValue = value;
value = newValue;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, BowlingPackage.PLAYER_TO_POINTS_MAP__VALUE, oldValue, value));
+ eNotify(new ENotificationImpl(this, Notification.SET, BowlingPackage.PLAYER_TO_POINTS_MAP__VALUE, oldValue,
+ value));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case BowlingPackage.PLAYER_TO_POINTS_MAP__KEY:
- if (resolve) return getTypedKey();
- return basicGetTypedKey();
- case BowlingPackage.PLAYER_TO_POINTS_MAP__VALUE:
- return getTypedValue();
+ case BowlingPackage.PLAYER_TO_POINTS_MAP__KEY:
+ if (resolve)
+ return getTypedKey();
+ return basicGetTypedKey();
+ case BowlingPackage.PLAYER_TO_POINTS_MAP__VALUE:
+ return getTypedValue();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -168,17 +182,18 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case BowlingPackage.PLAYER_TO_POINTS_MAP__KEY:
- setTypedKey((Player)newValue);
- return;
- case BowlingPackage.PLAYER_TO_POINTS_MAP__VALUE:
- setTypedValue((Integer)newValue);
- return;
+ case BowlingPackage.PLAYER_TO_POINTS_MAP__KEY:
+ setTypedKey((Player) newValue);
+ return;
+ case BowlingPackage.PLAYER_TO_POINTS_MAP__VALUE:
+ setTypedValue((Integer) newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -186,17 +201,18 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case BowlingPackage.PLAYER_TO_POINTS_MAP__KEY:
- setTypedKey((Player)null);
- return;
- case BowlingPackage.PLAYER_TO_POINTS_MAP__VALUE:
- setTypedValue(VALUE_EDEFAULT);
- return;
+ case BowlingPackage.PLAYER_TO_POINTS_MAP__KEY:
+ setTypedKey((Player) null);
+ return;
+ case BowlingPackage.PLAYER_TO_POINTS_MAP__VALUE:
+ setTypedValue(VALUE_EDEFAULT);
+ return;
}
super.eUnset(featureID);
}
@@ -204,15 +220,16 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case BowlingPackage.PLAYER_TO_POINTS_MAP__KEY:
- return key != null;
- case BowlingPackage.PLAYER_TO_POINTS_MAP__VALUE:
- return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value);
+ case BowlingPackage.PLAYER_TO_POINTS_MAP__KEY:
+ return key != null;
+ case BowlingPackage.PLAYER_TO_POINTS_MAP__VALUE:
+ return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value);
}
return super.eIsSet(featureID);
}
@@ -220,11 +237,13 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String toString() {
- if (eIsProxy()) return super.toString();
+ if (eIsProxy())
+ return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (value: ");
@@ -236,6 +255,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected int hash = -1;
@@ -243,6 +263,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public int getHash() {
@@ -256,6 +277,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setHash(int hash) {
@@ -265,6 +287,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Player getKey() {
@@ -274,6 +297,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setKey(Player key) {
@@ -283,6 +307,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Integer getValue() {
@@ -292,6 +317,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Integer setValue(Integer value) {
@@ -303,12 +329,13 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@SuppressWarnings("unchecked")
public EMap<Player, Integer> getEMap() {
EObject container = eContainer();
- return container == null ? null : (EMap<Player, Integer>)container.eGet(eContainmentFeature());
+ return container == null ? null : (EMap<Player, Integer>) container.eGet(eContainmentFeature());
}
-} //PlayerToPointsMapImpl
\ No newline at end of file
+} // PlayerToPointsMapImpl
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/RefereeImpl.java b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/RefereeImpl.java
index eba9e89..101047d 100644
--- a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/RefereeImpl.java
+++ b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/RefereeImpl.java
@@ -29,10 +29,10 @@
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.emf.emfstore.bowling.impl.RefereeImpl#getLeague <em>League</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.impl.RefereeImpl#getLeague <em>League</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
public class RefereeImpl extends EObjectImpl implements Referee {
@@ -40,6 +40,7 @@
* The cached value of the '{@link #getLeague() <em>League</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getLeague()
* @generated
* @ordered
@@ -49,6 +50,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected RefereeImpl() {
@@ -58,6 +60,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -68,15 +71,17 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public League getLeague() {
if (league != null && league.eIsProxy()) {
- InternalEObject oldLeague = (InternalEObject)league;
- league = (League)eResolveProxy(oldLeague);
+ InternalEObject oldLeague = (InternalEObject) league;
+ league = (League) eResolveProxy(oldLeague);
if (league != oldLeague) {
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, BowlingPackage.REFEREE__LEAGUE, oldLeague, league));
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, BowlingPackage.REFEREE__LEAGUE,
+ oldLeague, league));
}
}
return league;
@@ -85,6 +90,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public League basicGetLeague() {
@@ -94,6 +100,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setLeague(League newLeague) {
@@ -106,14 +113,16 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case BowlingPackage.REFEREE__LEAGUE:
- if (resolve) return getLeague();
- return basicGetLeague();
+ case BowlingPackage.REFEREE__LEAGUE:
+ if (resolve)
+ return getLeague();
+ return basicGetLeague();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -121,14 +130,15 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case BowlingPackage.REFEREE__LEAGUE:
- setLeague((League)newValue);
- return;
+ case BowlingPackage.REFEREE__LEAGUE:
+ setLeague((League) newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -136,14 +146,15 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case BowlingPackage.REFEREE__LEAGUE:
- setLeague((League)null);
- return;
+ case BowlingPackage.REFEREE__LEAGUE:
+ setLeague((League) null);
+ return;
}
super.eUnset(featureID);
}
@@ -151,15 +162,16 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case BowlingPackage.REFEREE__LEAGUE:
- return league != null;
+ case BowlingPackage.REFEREE__LEAGUE:
+ return league != null;
}
return super.eIsSet(featureID);
}
-} //RefereeImpl
\ No newline at end of file
+} // RefereeImpl
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/RefereeToGamesMapImpl.java b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/RefereeToGamesMapImpl.java
index bce9828..deb5195 100644
--- a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/RefereeToGamesMapImpl.java
+++ b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/RefereeToGamesMapImpl.java
@@ -34,18 +34,19 @@
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.emf.emfstore.bowling.impl.RefereeToGamesMapImpl#getTypedKey <em>Key</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.bowling.impl.RefereeToGamesMapImpl#getTypedValue <em>Value</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.impl.RefereeToGamesMapImpl#getTypedKey <em>Key</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.impl.RefereeToGamesMapImpl#getTypedValue <em>Value</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
-public class RefereeToGamesMapImpl extends EObjectImpl implements BasicEMap.Entry<Referee,Game> {
+public class RefereeToGamesMapImpl extends EObjectImpl implements BasicEMap.Entry<Referee, Game> {
/**
* The cached value of the '{@link #getTypedKey() <em>Key</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getTypedKey()
* @generated
* @ordered
@@ -56,6 +57,7 @@
* The cached value of the '{@link #getTypedValue() <em>Value</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getTypedValue()
* @generated
* @ordered
@@ -65,6 +67,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected RefereeToGamesMapImpl() {
@@ -74,6 +77,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -84,21 +88,26 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Referee getTypedKey() {
if (key != null && key.eIsProxy()) {
- InternalEObject oldKey = (InternalEObject)key;
- key = (Referee)eResolveProxy(oldKey);
+ InternalEObject oldKey = (InternalEObject) key;
+ key = (Referee) eResolveProxy(oldKey);
if (key != oldKey) {
- InternalEObject newKey = (InternalEObject)key;
- NotificationChain msgs = oldKey.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - BowlingPackage.REFEREE_TO_GAMES_MAP__KEY, null, null);
+ InternalEObject newKey = (InternalEObject) key;
+ NotificationChain msgs = oldKey.eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - BowlingPackage.REFEREE_TO_GAMES_MAP__KEY, null, null);
if (newKey.eInternalContainer() == null) {
- msgs = newKey.eInverseAdd(this, EOPPOSITE_FEATURE_BASE - BowlingPackage.REFEREE_TO_GAMES_MAP__KEY, null, msgs);
+ msgs = newKey.eInverseAdd(this, EOPPOSITE_FEATURE_BASE - BowlingPackage.REFEREE_TO_GAMES_MAP__KEY,
+ null, msgs);
}
- if (msgs != null) msgs.dispatch();
+ if (msgs != null)
+ msgs.dispatch();
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, BowlingPackage.REFEREE_TO_GAMES_MAP__KEY, oldKey, key));
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, BowlingPackage.REFEREE_TO_GAMES_MAP__KEY,
+ oldKey, key));
}
}
return key;
@@ -107,6 +116,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Referee basicGetTypedKey() {
@@ -116,14 +126,19 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public NotificationChain basicSetTypedKey(Referee newKey, NotificationChain msgs) {
Referee oldKey = key;
key = newKey;
if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, BowlingPackage.REFEREE_TO_GAMES_MAP__KEY, oldKey, newKey);
- if (msgs == null) msgs = notification; else msgs.add(notification);
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ BowlingPackage.REFEREE_TO_GAMES_MAP__KEY, oldKey, newKey);
+ if (msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
}
return msgs;
}
@@ -131,34 +146,40 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setTypedKey(Referee newKey) {
if (newKey != key) {
NotificationChain msgs = null;
if (key != null)
- msgs = ((InternalEObject)key).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - BowlingPackage.REFEREE_TO_GAMES_MAP__KEY, null, msgs);
+ msgs = ((InternalEObject) key).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - BowlingPackage.REFEREE_TO_GAMES_MAP__KEY, null, msgs);
if (newKey != null)
- msgs = ((InternalEObject)newKey).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - BowlingPackage.REFEREE_TO_GAMES_MAP__KEY, null, msgs);
+ msgs = ((InternalEObject) newKey).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - BowlingPackage.REFEREE_TO_GAMES_MAP__KEY, null, msgs);
msgs = basicSetTypedKey(newKey, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, BowlingPackage.REFEREE_TO_GAMES_MAP__KEY, newKey, newKey));
+ if (msgs != null)
+ msgs.dispatch();
+ } else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, BowlingPackage.REFEREE_TO_GAMES_MAP__KEY, newKey,
+ newKey));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Game getTypedValue() {
if (value != null && value.eIsProxy()) {
- InternalEObject oldValue = (InternalEObject)value;
- value = (Game)eResolveProxy(oldValue);
+ InternalEObject oldValue = (InternalEObject) value;
+ value = (Game) eResolveProxy(oldValue);
if (value != oldValue) {
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, BowlingPackage.REFEREE_TO_GAMES_MAP__VALUE, oldValue, value));
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE,
+ BowlingPackage.REFEREE_TO_GAMES_MAP__VALUE, oldValue, value));
}
}
return value;
@@ -167,6 +188,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Game basicGetTypedValue() {
@@ -176,25 +198,28 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setTypedValue(Game newValue) {
Game oldValue = value;
value = newValue;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, BowlingPackage.REFEREE_TO_GAMES_MAP__VALUE, oldValue, value));
+ eNotify(new ENotificationImpl(this, Notification.SET, BowlingPackage.REFEREE_TO_GAMES_MAP__VALUE, oldValue,
+ value));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
- case BowlingPackage.REFEREE_TO_GAMES_MAP__KEY:
- return basicSetTypedKey(null, msgs);
+ case BowlingPackage.REFEREE_TO_GAMES_MAP__KEY:
+ return basicSetTypedKey(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -202,17 +227,20 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case BowlingPackage.REFEREE_TO_GAMES_MAP__KEY:
- if (resolve) return getTypedKey();
- return basicGetTypedKey();
- case BowlingPackage.REFEREE_TO_GAMES_MAP__VALUE:
- if (resolve) return getTypedValue();
- return basicGetTypedValue();
+ case BowlingPackage.REFEREE_TO_GAMES_MAP__KEY:
+ if (resolve)
+ return getTypedKey();
+ return basicGetTypedKey();
+ case BowlingPackage.REFEREE_TO_GAMES_MAP__VALUE:
+ if (resolve)
+ return getTypedValue();
+ return basicGetTypedValue();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -220,17 +248,18 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case BowlingPackage.REFEREE_TO_GAMES_MAP__KEY:
- setTypedKey((Referee)newValue);
- return;
- case BowlingPackage.REFEREE_TO_GAMES_MAP__VALUE:
- setTypedValue((Game)newValue);
- return;
+ case BowlingPackage.REFEREE_TO_GAMES_MAP__KEY:
+ setTypedKey((Referee) newValue);
+ return;
+ case BowlingPackage.REFEREE_TO_GAMES_MAP__VALUE:
+ setTypedValue((Game) newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -238,17 +267,18 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case BowlingPackage.REFEREE_TO_GAMES_MAP__KEY:
- setTypedKey((Referee)null);
- return;
- case BowlingPackage.REFEREE_TO_GAMES_MAP__VALUE:
- setTypedValue((Game)null);
- return;
+ case BowlingPackage.REFEREE_TO_GAMES_MAP__KEY:
+ setTypedKey((Referee) null);
+ return;
+ case BowlingPackage.REFEREE_TO_GAMES_MAP__VALUE:
+ setTypedValue((Game) null);
+ return;
}
super.eUnset(featureID);
}
@@ -256,15 +286,16 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case BowlingPackage.REFEREE_TO_GAMES_MAP__KEY:
- return key != null;
- case BowlingPackage.REFEREE_TO_GAMES_MAP__VALUE:
- return value != null;
+ case BowlingPackage.REFEREE_TO_GAMES_MAP__KEY:
+ return key != null;
+ case BowlingPackage.REFEREE_TO_GAMES_MAP__VALUE:
+ return value != null;
}
return super.eIsSet(featureID);
}
@@ -272,6 +303,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected int hash = -1;
@@ -279,6 +311,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public int getHash() {
@@ -292,6 +325,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setHash(int hash) {
@@ -301,6 +335,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Referee getKey() {
@@ -310,6 +345,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setKey(Referee key) {
@@ -319,6 +355,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Game getValue() {
@@ -328,6 +365,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Game setValue(Game value) {
@@ -339,12 +377,13 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@SuppressWarnings("unchecked")
public EMap<Referee, Game> getEMap() {
EObject container = eContainer();
- return container == null ? null : (EMap<Referee, Game>)container.eGet(eContainmentFeature());
+ return container == null ? null : (EMap<Referee, Game>) container.eGet(eContainmentFeature());
}
-} //RefereeToGamesMapImpl
\ No newline at end of file
+} // RefereeToGamesMapImpl
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/TournamentImpl.java b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/TournamentImpl.java
index 62b0bd4..78afaef 100644
--- a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/TournamentImpl.java
+++ b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/impl/TournamentImpl.java
@@ -45,14 +45,14 @@
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.emf.emfstore.bowling.impl.TournamentImpl#getMatchups <em>Matchups</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.bowling.impl.TournamentImpl#getType <em>Type</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.bowling.impl.TournamentImpl#getPlayerPoints <em>Player Points</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.bowling.impl.TournamentImpl#getPlayers <em>Players</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.bowling.impl.TournamentImpl#getReferees <em>Referees</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.impl.TournamentImpl#getMatchups <em>Matchups</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.impl.TournamentImpl#getType <em>Type</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.impl.TournamentImpl#getPlayerPoints <em>Player Points</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.impl.TournamentImpl#getPlayers <em>Players</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.bowling.impl.TournamentImpl#getReferees <em>Referees</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
public class TournamentImpl extends EObjectImpl implements Tournament {
@@ -60,6 +60,7 @@
* The cached value of the '{@link #getMatchups() <em>Matchups</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getMatchups()
* @generated
* @ordered
@@ -70,6 +71,7 @@
* The default value of the '{@link #getType() <em>Type</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getType()
* @generated
* @ordered
@@ -80,6 +82,7 @@
* The cached value of the '{@link #getType() <em>Type</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getType()
* @generated
* @ordered
@@ -90,6 +93,7 @@
* The cached value of the '{@link #getPlayerPoints() <em>Player Points</em>}' map.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getPlayerPoints()
* @generated
* @ordered
@@ -100,6 +104,7 @@
* The cached value of the '{@link #getPlayers() <em>Players</em>}' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getPlayers()
* @generated
* @ordered
@@ -110,6 +115,7 @@
* The cached value of the '{@link #getReferees() <em>Referees</em>}' map.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getReferees()
* @generated
* @ordered
@@ -119,6 +125,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected TournamentImpl() {
@@ -128,6 +135,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -138,11 +146,13 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EList<Matchup> getMatchups() {
if (matchups == null) {
- matchups = new EObjectContainmentEList.Resolving<Matchup>(Matchup.class, this, BowlingPackage.TOURNAMENT__MATCHUPS);
+ matchups = new EObjectContainmentEList.Resolving<Matchup>(Matchup.class, this,
+ BowlingPackage.TOURNAMENT__MATCHUPS);
}
return matchups;
}
@@ -150,6 +160,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public TournamentType getType() {
@@ -159,6 +170,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setType(TournamentType newType) {
@@ -171,11 +183,13 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EMap<Player, Integer> getPlayerPoints() {
if (playerPoints == null) {
- playerPoints = new EcoreEMap<Player,Integer>(BowlingPackage.Literals.PLAYER_TO_POINTS_MAP, PlayerToPointsMapImpl.class, this, BowlingPackage.TOURNAMENT__PLAYER_POINTS);
+ playerPoints = new EcoreEMap<Player, Integer>(BowlingPackage.Literals.PLAYER_TO_POINTS_MAP,
+ PlayerToPointsMapImpl.class, this, BowlingPackage.TOURNAMENT__PLAYER_POINTS);
}
return playerPoints;
}
@@ -183,6 +197,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EList<Player> getPlayers() {
@@ -195,11 +210,13 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EMap<Referee, Game> getReferees() {
if (referees == null) {
- referees = new EcoreEMap<Referee,Game>(BowlingPackage.Literals.REFEREE_TO_GAMES_MAP, RefereeToGamesMapImpl.class, this, BowlingPackage.TOURNAMENT__REFEREES);
+ referees = new EcoreEMap<Referee, Game>(BowlingPackage.Literals.REFEREE_TO_GAMES_MAP,
+ RefereeToGamesMapImpl.class, this, BowlingPackage.TOURNAMENT__REFEREES);
}
return referees;
}
@@ -207,17 +224,18 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
- case BowlingPackage.TOURNAMENT__MATCHUPS:
- return ((InternalEList<?>)getMatchups()).basicRemove(otherEnd, msgs);
- case BowlingPackage.TOURNAMENT__PLAYER_POINTS:
- return ((InternalEList<?>)getPlayerPoints()).basicRemove(otherEnd, msgs);
- case BowlingPackage.TOURNAMENT__REFEREES:
- return ((InternalEList<?>)getReferees()).basicRemove(otherEnd, msgs);
+ case BowlingPackage.TOURNAMENT__MATCHUPS:
+ return ((InternalEList<?>) getMatchups()).basicRemove(otherEnd, msgs);
+ case BowlingPackage.TOURNAMENT__PLAYER_POINTS:
+ return ((InternalEList<?>) getPlayerPoints()).basicRemove(otherEnd, msgs);
+ case BowlingPackage.TOURNAMENT__REFEREES:
+ return ((InternalEList<?>) getReferees()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -225,23 +243,28 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case BowlingPackage.TOURNAMENT__MATCHUPS:
- return getMatchups();
- case BowlingPackage.TOURNAMENT__TYPE:
- return getType();
- case BowlingPackage.TOURNAMENT__PLAYER_POINTS:
- if (coreType) return getPlayerPoints();
- else return getPlayerPoints().map();
- case BowlingPackage.TOURNAMENT__PLAYERS:
- return getPlayers();
- case BowlingPackage.TOURNAMENT__REFEREES:
- if (coreType) return getReferees();
- else return getReferees().map();
+ case BowlingPackage.TOURNAMENT__MATCHUPS:
+ return getMatchups();
+ case BowlingPackage.TOURNAMENT__TYPE:
+ return getType();
+ case BowlingPackage.TOURNAMENT__PLAYER_POINTS:
+ if (coreType)
+ return getPlayerPoints();
+ else
+ return getPlayerPoints().map();
+ case BowlingPackage.TOURNAMENT__PLAYERS:
+ return getPlayers();
+ case BowlingPackage.TOURNAMENT__REFEREES:
+ if (coreType)
+ return getReferees();
+ else
+ return getReferees().map();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -249,29 +272,30 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case BowlingPackage.TOURNAMENT__MATCHUPS:
- getMatchups().clear();
- getMatchups().addAll((Collection<? extends Matchup>)newValue);
- return;
- case BowlingPackage.TOURNAMENT__TYPE:
- setType((TournamentType)newValue);
- return;
- case BowlingPackage.TOURNAMENT__PLAYER_POINTS:
- ((EStructuralFeature.Setting)getPlayerPoints()).set(newValue);
- return;
- case BowlingPackage.TOURNAMENT__PLAYERS:
- getPlayers().clear();
- getPlayers().addAll((Collection<? extends Player>)newValue);
- return;
- case BowlingPackage.TOURNAMENT__REFEREES:
- ((EStructuralFeature.Setting)getReferees()).set(newValue);
- return;
+ case BowlingPackage.TOURNAMENT__MATCHUPS:
+ getMatchups().clear();
+ getMatchups().addAll((Collection<? extends Matchup>) newValue);
+ return;
+ case BowlingPackage.TOURNAMENT__TYPE:
+ setType((TournamentType) newValue);
+ return;
+ case BowlingPackage.TOURNAMENT__PLAYER_POINTS:
+ ((EStructuralFeature.Setting) getPlayerPoints()).set(newValue);
+ return;
+ case BowlingPackage.TOURNAMENT__PLAYERS:
+ getPlayers().clear();
+ getPlayers().addAll((Collection<? extends Player>) newValue);
+ return;
+ case BowlingPackage.TOURNAMENT__REFEREES:
+ ((EStructuralFeature.Setting) getReferees()).set(newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -279,26 +303,27 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case BowlingPackage.TOURNAMENT__MATCHUPS:
- getMatchups().clear();
- return;
- case BowlingPackage.TOURNAMENT__TYPE:
- setType(TYPE_EDEFAULT);
- return;
- case BowlingPackage.TOURNAMENT__PLAYER_POINTS:
- getPlayerPoints().clear();
- return;
- case BowlingPackage.TOURNAMENT__PLAYERS:
- getPlayers().clear();
- return;
- case BowlingPackage.TOURNAMENT__REFEREES:
- getReferees().clear();
- return;
+ case BowlingPackage.TOURNAMENT__MATCHUPS:
+ getMatchups().clear();
+ return;
+ case BowlingPackage.TOURNAMENT__TYPE:
+ setType(TYPE_EDEFAULT);
+ return;
+ case BowlingPackage.TOURNAMENT__PLAYER_POINTS:
+ getPlayerPoints().clear();
+ return;
+ case BowlingPackage.TOURNAMENT__PLAYERS:
+ getPlayers().clear();
+ return;
+ case BowlingPackage.TOURNAMENT__REFEREES:
+ getReferees().clear();
+ return;
}
super.eUnset(featureID);
}
@@ -306,21 +331,22 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case BowlingPackage.TOURNAMENT__MATCHUPS:
- return matchups != null && !matchups.isEmpty();
- case BowlingPackage.TOURNAMENT__TYPE:
- return type != TYPE_EDEFAULT;
- case BowlingPackage.TOURNAMENT__PLAYER_POINTS:
- return playerPoints != null && !playerPoints.isEmpty();
- case BowlingPackage.TOURNAMENT__PLAYERS:
- return players != null && !players.isEmpty();
- case BowlingPackage.TOURNAMENT__REFEREES:
- return referees != null && !referees.isEmpty();
+ case BowlingPackage.TOURNAMENT__MATCHUPS:
+ return matchups != null && !matchups.isEmpty();
+ case BowlingPackage.TOURNAMENT__TYPE:
+ return type != TYPE_EDEFAULT;
+ case BowlingPackage.TOURNAMENT__PLAYER_POINTS:
+ return playerPoints != null && !playerPoints.isEmpty();
+ case BowlingPackage.TOURNAMENT__PLAYERS:
+ return players != null && !players.isEmpty();
+ case BowlingPackage.TOURNAMENT__REFEREES:
+ return referees != null && !referees.isEmpty();
}
return super.eIsSet(featureID);
}
@@ -328,11 +354,13 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String toString() {
- if (eIsProxy()) return super.toString();
+ if (eIsProxy())
+ return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (type: ");
@@ -341,4 +369,4 @@
return result.toString();
}
-} //TournamentImpl
\ No newline at end of file
+} // TournamentImpl
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/util/BowlingAdapterFactory.java b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/util/BowlingAdapterFactory.java
index 3070751..2129271 100644
--- a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/util/BowlingAdapterFactory.java
+++ b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/util/BowlingAdapterFactory.java
@@ -26,6 +26,7 @@
* 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 org.eclipse.emf.emfstore.bowling.BowlingPackage
* @generated
*/
@@ -34,6 +35,7 @@
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected static BowlingPackage modelPackage;
@@ -42,6 +44,7 @@
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public BowlingAdapterFactory() {
@@ -53,8 +56,10 @@
/**
* 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.
+ * 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
*/
@@ -64,7 +69,7 @@
return true;
}
if (object instanceof EObject) {
- return ((EObject)object).eClass().getEPackage() == modelPackage;
+ return ((EObject) object).eClass().getEPackage() == modelPackage;
}
return false;
}
@@ -73,72 +78,82 @@
* The switch that delegates to the <code>createXXX</code> methods.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
- protected BowlingSwitch<Adapter> modelSwitch =
- new BowlingSwitch<Adapter>() {
- @Override
- public Adapter casePlayer(Player object) {
- return createPlayerAdapter();
- }
- @Override
- public Adapter caseLeague(League object) {
- return createLeagueAdapter();
- }
- @Override
- public Adapter caseTournament(Tournament object) {
- return createTournamentAdapter();
- }
- @Override
- public Adapter caseMatchup(Matchup object) {
- return createMatchupAdapter();
- }
- @Override
- public Adapter caseGame(Game object) {
- return createGameAdapter();
- }
- @Override
- public Adapter casePlayerToPointsMap(Map.Entry<Player, Integer> object) {
- return createPlayerToPointsMapAdapter();
- }
- @Override
- public Adapter caseReferee(Referee object) {
- return createRefereeAdapter();
- }
- @Override
- public Adapter caseRefereeToGamesMap(Map.Entry<Referee, Game> object) {
- return createRefereeToGamesMapAdapter();
- }
- @Override
- public Adapter caseArea(Area object) {
- return createAreaAdapter();
- }
- @Override
- public Adapter defaultCase(EObject object) {
- return createEObjectAdapter();
- }
- };
+ protected BowlingSwitch<Adapter> modelSwitch = new BowlingSwitch<Adapter>() {
+ @Override
+ public Adapter casePlayer(Player object) {
+ return createPlayerAdapter();
+ }
+
+ @Override
+ public Adapter caseLeague(League object) {
+ return createLeagueAdapter();
+ }
+
+ @Override
+ public Adapter caseTournament(Tournament object) {
+ return createTournamentAdapter();
+ }
+
+ @Override
+ public Adapter caseMatchup(Matchup object) {
+ return createMatchupAdapter();
+ }
+
+ @Override
+ public Adapter caseGame(Game object) {
+ return createGameAdapter();
+ }
+
+ @Override
+ public Adapter casePlayerToPointsMap(Map.Entry<Player, Integer> object) {
+ return createPlayerToPointsMapAdapter();
+ }
+
+ @Override
+ public Adapter caseReferee(Referee object) {
+ return createRefereeAdapter();
+ }
+
+ @Override
+ public Adapter caseRefereeToGamesMap(Map.Entry<Referee, Game> object) {
+ return createRefereeToGamesMapAdapter();
+ }
+
+ @Override
+ public Adapter caseArea(Area object) {
+ return createAreaAdapter();
+ }
+
+ @Override
+ public Adapter 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
*/
@Override
public Adapter createAdapter(Notifier target) {
- return modelSwitch.doSwitch((EObject)target);
+ return modelSwitch.doSwitch((EObject) target);
}
-
/**
* Creates a new adapter for an object of class '{@link org.eclipse.emf.emfstore.bowling.Player <em>Player</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 org.eclipse.emf.emfstore.bowling.Player
* @generated
@@ -153,6 +168,7 @@
* 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 org.eclipse.emf.emfstore.bowling.League
* @generated
@@ -162,11 +178,13 @@
}
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.emfstore.bowling.Tournament <em>Tournament</em>}'.
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.emfstore.bowling.Tournament
+ * <em>Tournament</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 org.eclipse.emf.emfstore.bowling.Tournament
* @generated
@@ -181,6 +199,7 @@
* 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 org.eclipse.emf.emfstore.bowling.Matchup
* @generated
@@ -195,6 +214,7 @@
* 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 org.eclipse.emf.emfstore.bowling.Game
* @generated
@@ -209,6 +229,7 @@
* 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 java.util.Map.Entry
* @generated
@@ -223,6 +244,7 @@
* 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 org.eclipse.emf.emfstore.bowling.Referee
* @generated
@@ -237,6 +259,7 @@
* 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 java.util.Map.Entry
* @generated
@@ -251,6 +274,7 @@
* 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 org.eclipse.emf.emfstore.bowling.Area
* @generated
@@ -264,6 +288,7 @@
* <!-- begin-user-doc -->
* This default implementation returns null.
* <!-- end-user-doc -->
+ *
* @return the new adapter.
* @generated
*/
@@ -271,4 +296,4 @@
return null;
}
-} //BowlingAdapterFactory
\ No newline at end of file
+} // BowlingAdapterFactory
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/util/BowlingSwitch.java b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/util/BowlingSwitch.java
index 9b8152d..7a26255 100644
--- a/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/util/BowlingSwitch.java
+++ b/org.eclipse.emf.emfstore.examplemodel/src/org/eclipse/emf/emfstore/bowling/util/BowlingSwitch.java
@@ -21,13 +21,14 @@
/**
* <!-- 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,
+ * 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 org.eclipse.emf.emfstore.bowling.BowlingPackage
* @generated
*/
@@ -36,6 +37,7 @@
* The cached model package
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected static BowlingPackage modelPackage;
@@ -44,6 +46,7 @@
* Creates an instance of the switch.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public BowlingSwitch() {
@@ -53,9 +56,11 @@
}
/**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+ * 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
*/
@@ -64,89 +69,101 @@
}
/**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+ * 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 T doSwitch(EClass theEClass, EObject theEObject) {
if (theEClass.eContainer() == modelPackage) {
return doSwitch(theEClass.getClassifierID(), theEObject);
- }
- else {
+ } else {
List<EClass> eSuperTypes = theEClass.getESuperTypes();
- return
- eSuperTypes.isEmpty() ?
- defaultCase(theEObject) :
- doSwitch(eSuperTypes.get(0), theEObject);
+ return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(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.
+ * 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 T doSwitch(int classifierID, EObject theEObject) {
switch (classifierID) {
- case BowlingPackage.PLAYER: {
- Player player = (Player)theEObject;
- T result = casePlayer(player);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case BowlingPackage.LEAGUE: {
- League league = (League)theEObject;
- T result = caseLeague(league);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case BowlingPackage.TOURNAMENT: {
- Tournament tournament = (Tournament)theEObject;
- T result = caseTournament(tournament);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case BowlingPackage.MATCHUP: {
- Matchup matchup = (Matchup)theEObject;
- T result = caseMatchup(matchup);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case BowlingPackage.GAME: {
- Game game = (Game)theEObject;
- T result = caseGame(game);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case BowlingPackage.PLAYER_TO_POINTS_MAP: {
- @SuppressWarnings("unchecked") Map.Entry<Player, Integer> playerToPointsMap = (Map.Entry<Player, Integer>)theEObject;
- T result = casePlayerToPointsMap(playerToPointsMap);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case BowlingPackage.REFEREE: {
- Referee referee = (Referee)theEObject;
- T result = caseReferee(referee);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case BowlingPackage.REFEREE_TO_GAMES_MAP: {
- @SuppressWarnings("unchecked") Map.Entry<Referee, Game> refereeToGamesMap = (Map.Entry<Referee, Game>)theEObject;
- T result = caseRefereeToGamesMap(refereeToGamesMap);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case BowlingPackage.AREA: {
- Area area = (Area)theEObject;
- T result = caseArea(area);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- default: return defaultCase(theEObject);
+ case BowlingPackage.PLAYER: {
+ Player player = (Player) theEObject;
+ T result = casePlayer(player);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case BowlingPackage.LEAGUE: {
+ League league = (League) theEObject;
+ T result = caseLeague(league);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case BowlingPackage.TOURNAMENT: {
+ Tournament tournament = (Tournament) theEObject;
+ T result = caseTournament(tournament);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case BowlingPackage.MATCHUP: {
+ Matchup matchup = (Matchup) theEObject;
+ T result = caseMatchup(matchup);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case BowlingPackage.GAME: {
+ Game game = (Game) theEObject;
+ T result = caseGame(game);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case BowlingPackage.PLAYER_TO_POINTS_MAP: {
+ @SuppressWarnings("unchecked")
+ Map.Entry<Player, Integer> playerToPointsMap = (Map.Entry<Player, Integer>) theEObject;
+ T result = casePlayerToPointsMap(playerToPointsMap);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case BowlingPackage.REFEREE: {
+ Referee referee = (Referee) theEObject;
+ T result = caseReferee(referee);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case BowlingPackage.REFEREE_TO_GAMES_MAP: {
+ @SuppressWarnings("unchecked")
+ Map.Entry<Referee, Game> refereeToGamesMap = (Map.Entry<Referee, Game>) theEObject;
+ T result = caseRefereeToGamesMap(refereeToGamesMap);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case BowlingPackage.AREA: {
+ Area area = (Area) theEObject;
+ T result = caseArea(area);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ default:
+ return defaultCase(theEObject);
}
}
@@ -156,6 +173,7 @@
* 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 interpreting the object as an instance of '<em>Player</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -171,6 +189,7 @@
* 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 interpreting the object as an instance of '<em>League</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -186,6 +205,7 @@
* 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 interpreting the object as an instance of '<em>Tournament</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -201,6 +221,7 @@
* 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 interpreting the object as an instance of '<em>Matchup</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -216,6 +237,7 @@
* 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 interpreting the object as an instance of '<em>Game</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -231,6 +253,7 @@
* 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 interpreting the object as an instance of '<em>Player To Points Map</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -246,6 +269,7 @@
* 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 interpreting the object as an instance of '<em>Referee</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -261,6 +285,7 @@
* 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 interpreting the object as an instance of '<em>Referee To Games Map</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -276,6 +301,7 @@
* 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 interpreting the object as an instance of '<em>Area</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -291,6 +317,7 @@
* 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 interpreting the object as an instance of '<em>EObject</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject)
@@ -300,4 +327,4 @@
return null;
}
-} //BowlingSwitch
\ No newline at end of file
+} // BowlingSwitch
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf.edit/src/org/eclipse/emf/emfstore/fuzzy/emf/config/provider/ConfigEditPlugin.java b/org.eclipse.emf.emfstore.fuzzy.emf.edit/src/org/eclipse/emf/emfstore/fuzzy/emf/config/provider/ConfigEditPlugin.java
index f2121dc..81485bc 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf.edit/src/org/eclipse/emf/emfstore/fuzzy/emf/config/provider/ConfigEditPlugin.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf.edit/src/org/eclipse/emf/emfstore/fuzzy/emf/config/provider/ConfigEditPlugin.java
@@ -18,6 +18,7 @@
* This is the central singleton for the Config edit plugin.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public final class ConfigEditPlugin extends EMFPlugin {
@@ -25,6 +26,7 @@
* Keep track of the singleton.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public static final ConfigEditPlugin INSTANCE = new ConfigEditPlugin();
@@ -33,6 +35,7 @@
* Keep track of the singleton.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private static Implementation plugin;
@@ -41,18 +44,18 @@
* Create the instance.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public ConfigEditPlugin() {
- super
- (new ResourceLocator [] {
- });
+ super(new ResourceLocator[] {});
}
/**
* Returns the singleton instance of the Eclipse plugin.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the singleton instance.
* @generated
*/
@@ -65,6 +68,7 @@
* Returns the singleton instance of the Eclipse plugin.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the singleton instance.
* @generated
*/
@@ -76,6 +80,7 @@
* The actual implementation of the Eclipse <b>Plugin</b>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public static class Implementation extends EclipsePlugin {
@@ -83,6 +88,7 @@
* Creates an instance.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Implementation() {
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf.edit/src/org/eclipse/emf/emfstore/fuzzy/emf/config/provider/ConfigItemProviderAdapterFactory.java b/org.eclipse.emf.emfstore.fuzzy.emf.edit/src/org/eclipse/emf/emfstore/fuzzy/emf/config/provider/ConfigItemProviderAdapterFactory.java
index 9b4fbd9..9c0229a 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf.edit/src/org/eclipse/emf/emfstore/fuzzy/emf/config/provider/ConfigItemProviderAdapterFactory.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf.edit/src/org/eclipse/emf/emfstore/fuzzy/emf/config/provider/ConfigItemProviderAdapterFactory.java
@@ -33,18 +33,22 @@
/**
* This is the factory that is used to provide the interfaces needed to support Viewers.
- * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}.
+ * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged
+ * fireNotifyChanged}.
* The adapters also support Eclipse property sheets.
* Note that most of the adapters are shared among multiple instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
-public class ConfigItemProviderAdapterFactory extends ConfigAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable {
+public class ConfigItemProviderAdapterFactory extends ConfigAdapterFactory implements ComposeableAdapterFactory,
+ IChangeNotifier, IDisposable {
/**
* This keeps track of the root adapter factory that delegates to this adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected ComposedAdapterFactory parentAdapterFactory;
@@ -53,6 +57,7 @@
* This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected IChangeNotifier changeNotifier = new ChangeNotifier();
@@ -61,6 +66,7 @@
* This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Collection<Object> supportedTypes = new ArrayList<Object>();
@@ -69,6 +75,7 @@
* This constructs an instance.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public ConfigItemProviderAdapterFactory() {
@@ -80,9 +87,11 @@
}
/**
- * This keeps track of the one adapter used for all {@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig} instances.
+ * This keeps track of the one adapter used for all {@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig}
+ * instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected TestConfigItemProvider testConfigItemProvider;
@@ -91,6 +100,7 @@
* This creates an adapter for a {@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -103,9 +113,11 @@
}
/**
- * This keeps track of the one adapter used for all {@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestRun} instances.
+ * This keeps track of the one adapter used for all {@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestRun}
+ * instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected TestRunItemProvider testRunItemProvider;
@@ -114,6 +126,7 @@
* This creates an adapter for a {@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestRun}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -126,9 +139,11 @@
}
/**
- * This keeps track of the one adapter used for all {@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult} instances.
+ * This keeps track of the one adapter used for all {@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult}
+ * instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected TestResultItemProvider testResultItemProvider;
@@ -137,6 +152,7 @@
* This creates an adapter for a {@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -149,9 +165,11 @@
}
/**
- * This keeps track of the one adapter used for all {@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestDiff} instances.
+ * This keeps track of the one adapter used for all {@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestDiff}
+ * instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected TestDiffItemProvider testDiffItemProvider;
@@ -160,6 +178,7 @@
* This creates an adapter for a {@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestDiff}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -172,9 +191,11 @@
}
/**
- * This keeps track of the one adapter used for all {@link org.eclipse.emf.emfstore.fuzzy.emf.config.DiffReport} instances.
+ * This keeps track of the one adapter used for all {@link org.eclipse.emf.emfstore.fuzzy.emf.config.DiffReport}
+ * instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected DiffReportItemProvider diffReportItemProvider;
@@ -183,6 +204,7 @@
* This creates an adapter for a {@link org.eclipse.emf.emfstore.fuzzy.emf.config.DiffReport}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -195,9 +217,11 @@
}
/**
- * This keeps track of the one adapter used for all {@link org.eclipse.emf.emfstore.fuzzy.emf.config.Root} instances.
+ * This keeps track of the one adapter used for all {@link org.eclipse.emf.emfstore.fuzzy.emf.config.Root}
+ * instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected RootItemProvider rootItemProvider;
@@ -206,6 +230,7 @@
* This creates an adapter for a {@link org.eclipse.emf.emfstore.fuzzy.emf.config.Root}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -218,9 +243,11 @@
}
/**
- * This keeps track of the one adapter used for all {@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig} instances.
+ * This keeps track of the one adapter used for all {@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig}
+ * instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected MutatorConfigItemProvider mutatorConfigItemProvider;
@@ -229,6 +256,7 @@
* This creates an adapter for a {@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -244,6 +272,7 @@
* This returns the root adapter factory that contains this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public ComposeableAdapterFactory getRootAdapterFactory() {
@@ -254,6 +283,7 @@
* This sets the composed adapter factory that contains this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) {
@@ -263,6 +293,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -274,6 +305,7 @@
* This implementation substitutes the factory itself as the key for the adapter.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -284,13 +316,14 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object adapt(Object object, Object type) {
if (isFactoryForType(type)) {
Object adapter = super.adapt(object, type);
- if (!(type instanceof Class<?>) || (((Class<?>)type).isInstance(adapter))) {
+ if (!(type instanceof Class<?>) || (((Class<?>) type).isInstance(adapter))) {
return adapter;
}
}
@@ -302,6 +335,7 @@
* This adds a listener.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void addListener(INotifyChangedListener notifyChangedListener) {
@@ -312,6 +346,7 @@
* This removes a listener.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void removeListener(INotifyChangedListener notifyChangedListener) {
@@ -322,6 +357,7 @@
* This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void fireNotifyChanged(Notification notification) {
@@ -333,19 +369,27 @@
}
/**
- * This disposes all of the item providers created by this factory.
+ * This disposes all of the item providers created by this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void dispose() {
- if (testConfigItemProvider != null) testConfigItemProvider.dispose();
- if (testRunItemProvider != null) testRunItemProvider.dispose();
- if (testResultItemProvider != null) testResultItemProvider.dispose();
- if (testDiffItemProvider != null) testDiffItemProvider.dispose();
- if (diffReportItemProvider != null) diffReportItemProvider.dispose();
- if (rootItemProvider != null) rootItemProvider.dispose();
- if (mutatorConfigItemProvider != null) mutatorConfigItemProvider.dispose();
+ if (testConfigItemProvider != null)
+ testConfigItemProvider.dispose();
+ if (testRunItemProvider != null)
+ testRunItemProvider.dispose();
+ if (testResultItemProvider != null)
+ testResultItemProvider.dispose();
+ if (testDiffItemProvider != null)
+ testDiffItemProvider.dispose();
+ if (diffReportItemProvider != null)
+ diffReportItemProvider.dispose();
+ if (rootItemProvider != null)
+ rootItemProvider.dispose();
+ if (mutatorConfigItemProvider != null)
+ mutatorConfigItemProvider.dispose();
}
}
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf.edit/src/org/eclipse/emf/emfstore/fuzzy/emf/config/provider/DiffReportItemProvider.java b/org.eclipse.emf.emfstore.fuzzy.emf.edit/src/org/eclipse/emf/emfstore/fuzzy/emf/config/provider/DiffReportItemProvider.java
index 614ec9a..c580c57 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf.edit/src/org/eclipse/emf/emfstore/fuzzy/emf/config/provider/DiffReportItemProvider.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf.edit/src/org/eclipse/emf/emfstore/fuzzy/emf/config/provider/DiffReportItemProvider.java
@@ -10,7 +10,6 @@
*/
package org.eclipse.emf.emfstore.fuzzy.emf.config.provider;
-
import java.util.Collection;
import java.util.List;
@@ -38,20 +37,16 @@
* This is the item provider adapter for a {@link org.eclipse.emf.emfstore.fuzzy.emf.config.DiffReport} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
-public class DiffReportItemProvider
- extends ItemProviderAdapter
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
+public class DiffReportItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
/**
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public DiffReportItemProvider(AdapterFactory adapterFactory) {
@@ -62,6 +57,7 @@
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -79,6 +75,7 @@
* {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -93,6 +90,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -107,6 +105,7 @@
* This returns DiffReport.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -118,6 +117,7 @@
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -130,6 +130,7 @@
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -137,9 +138,9 @@
updateChildren(notification);
switch (notification.getFeatureID(DiffReport.class)) {
- case ConfigPackage.DIFF_REPORT__DIFFS:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
- return;
+ case ConfigPackage.DIFF_REPORT__DIFFS:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
}
super.notifyChanged(notification);
}
@@ -149,22 +150,22 @@
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
- newChildDescriptors.add
- (createChildParameter
- (ConfigPackage.Literals.DIFF_REPORT__DIFFS,
- ConfigFactory.eINSTANCE.createTestDiff()));
+ newChildDescriptors.add(createChildParameter(ConfigPackage.Literals.DIFF_REPORT__DIFFS,
+ ConfigFactory.eINSTANCE.createTestDiff()));
}
/**
* Return the resource locator for this item provider's resources.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf.edit/src/org/eclipse/emf/emfstore/fuzzy/emf/config/provider/MutatorConfigItemProvider.java b/org.eclipse.emf.emfstore.fuzzy.emf.edit/src/org/eclipse/emf/emfstore/fuzzy/emf/config/provider/MutatorConfigItemProvider.java
index e11c244..36d0c16 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf.edit/src/org/eclipse/emf/emfstore/fuzzy/emf/config/provider/MutatorConfigItemProvider.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf.edit/src/org/eclipse/emf/emfstore/fuzzy/emf/config/provider/MutatorConfigItemProvider.java
@@ -10,7 +10,6 @@
*/
package org.eclipse.emf.emfstore.fuzzy.emf.config.provider;
-
import java.util.Collection;
import java.util.List;
@@ -37,20 +36,16 @@
* This is the item provider adapter for a {@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
-public class MutatorConfigItemProvider
- extends ItemProviderAdapter
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
+public class MutatorConfigItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
/**
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public MutatorConfigItemProvider(AdapterFactory adapterFactory) {
@@ -61,6 +56,7 @@
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -85,204 +81,160 @@
* This adds a property descriptor for the Root EClass feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addRootEClassPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_MutatorConfig_rootEClass_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_MutatorConfig_rootEClass_feature", "_UI_MutatorConfig_type"),
- ConfigPackage.Literals.MUTATOR_CONFIG__ROOT_ECLASS,
- true,
- false,
- true,
- null,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_MutatorConfig_rootEClass_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_MutatorConfig_rootEClass_feature",
+ "_UI_MutatorConfig_type"), ConfigPackage.Literals.MUTATOR_CONFIG__ROOT_ECLASS, true, false, true, null,
+ null, null));
}
/**
* This adds a property descriptor for the Min Objects Count feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addMinObjectsCountPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_MutatorConfig_minObjectsCount_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_MutatorConfig_minObjectsCount_feature", "_UI_MutatorConfig_type"),
- ConfigPackage.Literals.MUTATOR_CONFIG__MIN_OBJECTS_COUNT,
- true,
- false,
- false,
- ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_MutatorConfig_minObjectsCount_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_MutatorConfig_minObjectsCount_feature",
+ "_UI_MutatorConfig_type"), ConfigPackage.Literals.MUTATOR_CONFIG__MIN_OBJECTS_COUNT, true, false,
+ false, ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, null, null));
}
/**
* This adds a property descriptor for the Ignore And Log feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addIgnoreAndLogPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_MutatorConfig_ignoreAndLog_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_MutatorConfig_ignoreAndLog_feature", "_UI_MutatorConfig_type"),
- ConfigPackage.Literals.MUTATOR_CONFIG__IGNORE_AND_LOG,
- true,
- false,
- false,
- ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_MutatorConfig_ignoreAndLog_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_MutatorConfig_ignoreAndLog_feature",
+ "_UI_MutatorConfig_type"), ConfigPackage.Literals.MUTATOR_CONFIG__IGNORE_AND_LOG, true, false, false,
+ ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, null, null));
}
/**
* This adds a property descriptor for the Do Not Generate Root feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addDoNotGenerateRootPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_MutatorConfig_doNotGenerateRoot_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_MutatorConfig_doNotGenerateRoot_feature", "_UI_MutatorConfig_type"),
- ConfigPackage.Literals.MUTATOR_CONFIG__DO_NOT_GENERATE_ROOT,
- true,
- false,
- false,
- ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_MutatorConfig_doNotGenerateRoot_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_MutatorConfig_doNotGenerateRoot_feature",
+ "_UI_MutatorConfig_type"), ConfigPackage.Literals.MUTATOR_CONFIG__DO_NOT_GENERATE_ROOT, true, false,
+ false, ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, null, null));
}
/**
* This adds a property descriptor for the Use Ecore Util Delete feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addUseEcoreUtilDeletePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_MutatorConfig_useEcoreUtilDelete_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_MutatorConfig_useEcoreUtilDelete_feature", "_UI_MutatorConfig_type"),
- ConfigPackage.Literals.MUTATOR_CONFIG__USE_ECORE_UTIL_DELETE,
- true,
- false,
- false,
- ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_MutatorConfig_useEcoreUtilDelete_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_MutatorConfig_useEcoreUtilDelete_feature",
+ "_UI_MutatorConfig_type"), ConfigPackage.Literals.MUTATOR_CONFIG__USE_ECORE_UTIL_DELETE, true, false,
+ false, ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, null, null));
}
/**
* This adds a property descriptor for the EClasses To Ignore feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addEClassesToIgnorePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_MutatorConfig_eClassesToIgnore_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_MutatorConfig_eClassesToIgnore_feature", "_UI_MutatorConfig_type"),
- ConfigPackage.Literals.MUTATOR_CONFIG__ECLASSES_TO_IGNORE,
- true,
- false,
- true,
- null,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_MutatorConfig_eClassesToIgnore_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_MutatorConfig_eClassesToIgnore_feature",
+ "_UI_MutatorConfig_type"), ConfigPackage.Literals.MUTATOR_CONFIG__ECLASSES_TO_IGNORE, true, false,
+ true, null, null, null));
}
/**
* This adds a property descriptor for the EStructural Features To Ignore feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addEStructuralFeaturesToIgnorePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_MutatorConfig_eStructuralFeaturesToIgnore_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_MutatorConfig_eStructuralFeaturesToIgnore_feature", "_UI_MutatorConfig_type"),
- ConfigPackage.Literals.MUTATOR_CONFIG__ESTRUCTURAL_FEATURES_TO_IGNORE,
- true,
- false,
- true,
- null,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_MutatorConfig_eStructuralFeaturesToIgnore_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_MutatorConfig_eStructuralFeaturesToIgnore_feature",
+ "_UI_MutatorConfig_type"), ConfigPackage.Literals.MUTATOR_CONFIG__ESTRUCTURAL_FEATURES_TO_IGNORE, true,
+ false, true, null, null, null));
}
/**
* This adds a property descriptor for the EPackages feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addEPackagesPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_MutatorConfig_ePackages_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_MutatorConfig_ePackages_feature", "_UI_MutatorConfig_type"),
- ConfigPackage.Literals.MUTATOR_CONFIG__EPACKAGES,
- true,
- false,
- true,
- null,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_MutatorConfig_ePackages_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_MutatorConfig_ePackages_feature",
+ "_UI_MutatorConfig_type"), ConfigPackage.Literals.MUTATOR_CONFIG__EPACKAGES, true, false, true, null,
+ null, null));
}
/**
* This adds a property descriptor for the Max Delete Count feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addMaxDeleteCountPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_MutatorConfig_maxDeleteCount_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_MutatorConfig_maxDeleteCount_feature", "_UI_MutatorConfig_type"),
- ConfigPackage.Literals.MUTATOR_CONFIG__MAX_DELETE_COUNT,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_MutatorConfig_maxDeleteCount_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_MutatorConfig_maxDeleteCount_feature",
+ "_UI_MutatorConfig_type"), ConfigPackage.Literals.MUTATOR_CONFIG__MAX_DELETE_COUNT, true, false, false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
}
/**
* This returns MutatorConfig.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -294,11 +246,12 @@
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
- MutatorConfig mutatorConfig = (MutatorConfig)object;
+ MutatorConfig mutatorConfig = (MutatorConfig) object;
return getString("_UI_MutatorConfig_type") + " " + mutatorConfig.getMinObjectsCount();
}
@@ -307,6 +260,7 @@
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -314,13 +268,13 @@
updateChildren(notification);
switch (notification.getFeatureID(MutatorConfig.class)) {
- case ConfigPackage.MUTATOR_CONFIG__MIN_OBJECTS_COUNT:
- case ConfigPackage.MUTATOR_CONFIG__IGNORE_AND_LOG:
- case ConfigPackage.MUTATOR_CONFIG__DO_NOT_GENERATE_ROOT:
- case ConfigPackage.MUTATOR_CONFIG__USE_ECORE_UTIL_DELETE:
- case ConfigPackage.MUTATOR_CONFIG__MAX_DELETE_COUNT:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
- return;
+ case ConfigPackage.MUTATOR_CONFIG__MIN_OBJECTS_COUNT:
+ case ConfigPackage.MUTATOR_CONFIG__IGNORE_AND_LOG:
+ case ConfigPackage.MUTATOR_CONFIG__DO_NOT_GENERATE_ROOT:
+ case ConfigPackage.MUTATOR_CONFIG__USE_ECORE_UTIL_DELETE:
+ case ConfigPackage.MUTATOR_CONFIG__MAX_DELETE_COUNT:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
}
super.notifyChanged(notification);
}
@@ -330,6 +284,7 @@
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -341,6 +296,7 @@
* Return the resource locator for this item provider's resources.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf.edit/src/org/eclipse/emf/emfstore/fuzzy/emf/config/provider/RootItemProvider.java b/org.eclipse.emf.emfstore.fuzzy.emf.edit/src/org/eclipse/emf/emfstore/fuzzy/emf/config/provider/RootItemProvider.java
index a37d5fc..2ab5e2d 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf.edit/src/org/eclipse/emf/emfstore/fuzzy/emf/config/provider/RootItemProvider.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf.edit/src/org/eclipse/emf/emfstore/fuzzy/emf/config/provider/RootItemProvider.java
@@ -10,7 +10,6 @@
*/
package org.eclipse.emf.emfstore.fuzzy.emf.config.provider;
-
import java.util.Collection;
import java.util.List;
@@ -38,20 +37,16 @@
* This is the item provider adapter for a {@link org.eclipse.emf.emfstore.fuzzy.emf.config.Root} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
-public class RootItemProvider
- extends ItemProviderAdapter
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
+public class RootItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
/**
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public RootItemProvider(AdapterFactory adapterFactory) {
@@ -62,6 +57,7 @@
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -79,6 +75,7 @@
* {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -93,6 +90,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -107,6 +105,7 @@
* This returns Root.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -118,6 +117,7 @@
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -130,6 +130,7 @@
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -137,9 +138,9 @@
updateChildren(notification);
switch (notification.getFeatureID(Root.class)) {
- case ConfigPackage.ROOT__ELEMENTS:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
- return;
+ case ConfigPackage.ROOT__ELEMENTS:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
}
super.notifyChanged(notification);
}
@@ -149,52 +150,40 @@
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
- newChildDescriptors.add
- (createChildParameter
- (ConfigPackage.Literals.ROOT__ELEMENTS,
- ConfigFactory.eINSTANCE.createTestConfig()));
+ newChildDescriptors.add(createChildParameter(ConfigPackage.Literals.ROOT__ELEMENTS,
+ ConfigFactory.eINSTANCE.createTestConfig()));
- newChildDescriptors.add
- (createChildParameter
- (ConfigPackage.Literals.ROOT__ELEMENTS,
- ConfigFactory.eINSTANCE.createTestRun()));
+ newChildDescriptors.add(createChildParameter(ConfigPackage.Literals.ROOT__ELEMENTS,
+ ConfigFactory.eINSTANCE.createTestRun()));
- newChildDescriptors.add
- (createChildParameter
- (ConfigPackage.Literals.ROOT__ELEMENTS,
- ConfigFactory.eINSTANCE.createTestResult()));
+ newChildDescriptors.add(createChildParameter(ConfigPackage.Literals.ROOT__ELEMENTS,
+ ConfigFactory.eINSTANCE.createTestResult()));
- newChildDescriptors.add
- (createChildParameter
- (ConfigPackage.Literals.ROOT__ELEMENTS,
- ConfigFactory.eINSTANCE.createTestDiff()));
+ newChildDescriptors.add(createChildParameter(ConfigPackage.Literals.ROOT__ELEMENTS,
+ ConfigFactory.eINSTANCE.createTestDiff()));
- newChildDescriptors.add
- (createChildParameter
- (ConfigPackage.Literals.ROOT__ELEMENTS,
- ConfigFactory.eINSTANCE.createDiffReport()));
+ newChildDescriptors.add(createChildParameter(ConfigPackage.Literals.ROOT__ELEMENTS,
+ ConfigFactory.eINSTANCE.createDiffReport()));
- newChildDescriptors.add
- (createChildParameter
- (ConfigPackage.Literals.ROOT__ELEMENTS,
- ConfigFactory.eINSTANCE.createRoot()));
+ newChildDescriptors.add(createChildParameter(ConfigPackage.Literals.ROOT__ELEMENTS,
+ ConfigFactory.eINSTANCE.createRoot()));
- newChildDescriptors.add
- (createChildParameter
- (ConfigPackage.Literals.ROOT__ELEMENTS,
- ConfigFactory.eINSTANCE.createMutatorConfig()));
+ newChildDescriptors.add(createChildParameter(ConfigPackage.Literals.ROOT__ELEMENTS,
+ ConfigFactory.eINSTANCE.createMutatorConfig()));
}
/**
* Return the resource locator for this item provider's resources.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf.edit/src/org/eclipse/emf/emfstore/fuzzy/emf/config/provider/TestConfigItemProvider.java b/org.eclipse.emf.emfstore.fuzzy.emf.edit/src/org/eclipse/emf/emfstore/fuzzy/emf/config/provider/TestConfigItemProvider.java
index f9adc9e..ccf4d74 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf.edit/src/org/eclipse/emf/emfstore/fuzzy/emf/config/provider/TestConfigItemProvider.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf.edit/src/org/eclipse/emf/emfstore/fuzzy/emf/config/provider/TestConfigItemProvider.java
@@ -10,7 +10,6 @@
*/
package org.eclipse.emf.emfstore.fuzzy.emf.config.provider;
-
import java.util.Collection;
import java.util.List;
@@ -40,20 +39,16 @@
* This is the item provider adapter for a {@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
-public class TestConfigItemProvider
- extends ItemProviderAdapter
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
+public class TestConfigItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
/**
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public TestConfigItemProvider(AdapterFactory adapterFactory) {
@@ -64,6 +59,7 @@
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -83,88 +79,64 @@
* This adds a property descriptor for the Seed feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addSeedPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_TestConfig_seed_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_TestConfig_seed_feature", "_UI_TestConfig_type"),
- ConfigPackage.Literals.TEST_CONFIG__SEED,
- true,
- false,
- false,
- ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_TestConfig_seed_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_TestConfig_seed_feature", "_UI_TestConfig_type"),
+ ConfigPackage.Literals.TEST_CONFIG__SEED, true, false, false, ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
+ null, null));
}
/**
* This adds a property descriptor for the Count feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addCountPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_TestConfig_count_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_TestConfig_count_feature", "_UI_TestConfig_type"),
- ConfigPackage.Literals.TEST_CONFIG__COUNT,
- true,
- false,
- false,
- ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_TestConfig_count_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_TestConfig_count_feature", "_UI_TestConfig_type"),
+ ConfigPackage.Literals.TEST_CONFIG__COUNT, true, false, false, ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
+ null, null));
}
/**
* This adds a property descriptor for the Test Class feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addTestClassPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_TestConfig_testClass_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_TestConfig_testClass_feature", "_UI_TestConfig_type"),
- ConfigPackage.Literals.TEST_CONFIG__TEST_CLASS,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_TestConfig_testClass_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_TestConfig_testClass_feature", "_UI_TestConfig_type"),
+ ConfigPackage.Literals.TEST_CONFIG__TEST_CLASS, true, false, false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
}
/**
* This adds a property descriptor for the Id feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_TestConfig_id_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_TestConfig_id_feature", "_UI_TestConfig_type"),
- ConfigPackage.Literals.TEST_CONFIG__ID,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_TestConfig_id_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_TestConfig_id_feature", "_UI_TestConfig_type"),
+ ConfigPackage.Literals.TEST_CONFIG__ID, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null, null));
}
/**
@@ -173,6 +145,7 @@
* {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -187,6 +160,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -201,6 +175,7 @@
* This returns TestConfig.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -212,14 +187,14 @@
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
- String label = ((TestConfig)object).getId();
- return label == null || label.length() == 0 ?
- getString("_UI_TestConfig_type") :
- getString("_UI_TestConfig_type") + " " + label;
+ String label = ((TestConfig) object).getId();
+ return label == null || label.length() == 0 ? getString("_UI_TestConfig_type")
+ : getString("_UI_TestConfig_type") + " " + label;
}
/**
@@ -227,6 +202,7 @@
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -234,15 +210,15 @@
updateChildren(notification);
switch (notification.getFeatureID(TestConfig.class)) {
- case ConfigPackage.TEST_CONFIG__SEED:
- case ConfigPackage.TEST_CONFIG__COUNT:
- case ConfigPackage.TEST_CONFIG__TEST_CLASS:
- case ConfigPackage.TEST_CONFIG__ID:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
- return;
- case ConfigPackage.TEST_CONFIG__MUTATOR_CONFIG:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
- return;
+ case ConfigPackage.TEST_CONFIG__SEED:
+ case ConfigPackage.TEST_CONFIG__COUNT:
+ case ConfigPackage.TEST_CONFIG__TEST_CLASS:
+ case ConfigPackage.TEST_CONFIG__ID:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ case ConfigPackage.TEST_CONFIG__MUTATOR_CONFIG:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
}
super.notifyChanged(notification);
}
@@ -252,22 +228,22 @@
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
- newChildDescriptors.add
- (createChildParameter
- (ConfigPackage.Literals.TEST_CONFIG__MUTATOR_CONFIG,
- ConfigFactory.eINSTANCE.createMutatorConfig()));
+ newChildDescriptors.add(createChildParameter(ConfigPackage.Literals.TEST_CONFIG__MUTATOR_CONFIG,
+ ConfigFactory.eINSTANCE.createMutatorConfig()));
}
/**
* Return the resource locator for this item provider's resources.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf.edit/src/org/eclipse/emf/emfstore/fuzzy/emf/config/provider/TestDiffItemProvider.java b/org.eclipse.emf.emfstore.fuzzy.emf.edit/src/org/eclipse/emf/emfstore/fuzzy/emf/config/provider/TestDiffItemProvider.java
index 6a3a18f..a3c4b91 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf.edit/src/org/eclipse/emf/emfstore/fuzzy/emf/config/provider/TestDiffItemProvider.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf.edit/src/org/eclipse/emf/emfstore/fuzzy/emf/config/provider/TestDiffItemProvider.java
@@ -10,7 +10,6 @@
*/
package org.eclipse.emf.emfstore.fuzzy.emf.config.provider;
-
import java.util.Collection;
import java.util.Date;
import java.util.List;
@@ -41,20 +40,16 @@
* This is the item provider adapter for a {@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestDiff} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
-public class TestDiffItemProvider
- extends ItemProviderAdapter
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
+public class TestDiffItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
/**
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public TestDiffItemProvider(AdapterFactory adapterFactory) {
@@ -65,6 +60,7 @@
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -82,44 +78,31 @@
* This adds a property descriptor for the Last Update feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addLastUpdatePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_TestDiff_lastUpdate_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_TestDiff_lastUpdate_feature", "_UI_TestDiff_type"),
- ConfigPackage.Literals.TEST_DIFF__LAST_UPDATE,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_TestDiff_lastUpdate_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_TestDiff_lastUpdate_feature", "_UI_TestDiff_type"),
+ ConfigPackage.Literals.TEST_DIFF__LAST_UPDATE, true, false, false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
}
/**
* This adds a property descriptor for the Config feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addConfigPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_TestDiff_config_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_TestDiff_config_feature", "_UI_TestDiff_type"),
- ConfigPackage.Literals.TEST_DIFF__CONFIG,
- true,
- false,
- true,
- null,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_TestDiff_config_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_TestDiff_config_feature", "_UI_TestDiff_type"),
+ ConfigPackage.Literals.TEST_DIFF__CONFIG, true, false, true, null, null, null));
}
/**
@@ -128,6 +111,7 @@
* {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -143,6 +127,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -157,6 +142,7 @@
* This returns TestDiff.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -168,15 +154,15 @@
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
- Date labelValue = ((TestDiff)object).getLastUpdate();
+ Date labelValue = ((TestDiff) object).getLastUpdate();
String label = labelValue == null ? null : labelValue.toString();
- return label == null || label.length() == 0 ?
- getString("_UI_TestDiff_type") :
- getString("_UI_TestDiff_type") + " " + label;
+ return label == null || label.length() == 0 ? getString("_UI_TestDiff_type") : getString("_UI_TestDiff_type")
+ + " " + label;
}
/**
@@ -184,6 +170,7 @@
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -191,13 +178,13 @@
updateChildren(notification);
switch (notification.getFeatureID(TestDiff.class)) {
- case ConfigPackage.TEST_DIFF__LAST_UPDATE:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
- return;
- case ConfigPackage.TEST_DIFF__OLD_RESULT:
- case ConfigPackage.TEST_DIFF__NEW_RESULT:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
- return;
+ case ConfigPackage.TEST_DIFF__LAST_UPDATE:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ case ConfigPackage.TEST_DIFF__OLD_RESULT:
+ case ConfigPackage.TEST_DIFF__NEW_RESULT:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
}
super.notifyChanged(notification);
}
@@ -207,27 +194,25 @@
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
- newChildDescriptors.add
- (createChildParameter
- (ConfigPackage.Literals.TEST_DIFF__OLD_RESULT,
- ConfigFactory.eINSTANCE.createTestResult()));
+ newChildDescriptors.add(createChildParameter(ConfigPackage.Literals.TEST_DIFF__OLD_RESULT,
+ ConfigFactory.eINSTANCE.createTestResult()));
- newChildDescriptors.add
- (createChildParameter
- (ConfigPackage.Literals.TEST_DIFF__NEW_RESULT,
- ConfigFactory.eINSTANCE.createTestResult()));
+ newChildDescriptors.add(createChildParameter(ConfigPackage.Literals.TEST_DIFF__NEW_RESULT,
+ ConfigFactory.eINSTANCE.createTestResult()));
}
/**
* This returns the label text for {@link org.eclipse.emf.edit.command.CreateChildCommand}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -235,14 +220,12 @@
Object childFeature = feature;
Object childObject = child;
- boolean qualify =
- childFeature == ConfigPackage.Literals.TEST_DIFF__OLD_RESULT ||
- childFeature == ConfigPackage.Literals.TEST_DIFF__NEW_RESULT;
+ boolean qualify = childFeature == ConfigPackage.Literals.TEST_DIFF__OLD_RESULT
+ || childFeature == ConfigPackage.Literals.TEST_DIFF__NEW_RESULT;
if (qualify) {
- return getString
- ("_UI_CreateChild_text2",
- new Object[] { getTypeText(childObject), getFeatureText(childFeature), getTypeText(owner) });
+ return getString("_UI_CreateChild_text2", new Object[] { getTypeText(childObject),
+ getFeatureText(childFeature), getTypeText(owner) });
}
return super.getCreateChildText(owner, feature, child, selection);
}
@@ -251,6 +234,7 @@
* Return the resource locator for this item provider's resources.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf.edit/src/org/eclipse/emf/emfstore/fuzzy/emf/config/provider/TestResultItemProvider.java b/org.eclipse.emf.emfstore.fuzzy.emf.edit/src/org/eclipse/emf/emfstore/fuzzy/emf/config/provider/TestResultItemProvider.java
index 6130574..cff23f3 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf.edit/src/org/eclipse/emf/emfstore/fuzzy/emf/config/provider/TestResultItemProvider.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf.edit/src/org/eclipse/emf/emfstore/fuzzy/emf/config/provider/TestResultItemProvider.java
@@ -10,7 +10,6 @@
*/
package org.eclipse.emf.emfstore.fuzzy.emf.config.provider;
-
import java.util.Collection;
import java.util.List;
@@ -37,20 +36,16 @@
* This is the item provider adapter for a {@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
-public class TestResultItemProvider
- extends ItemProviderAdapter
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
+public class TestResultItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
/**
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public TestResultItemProvider(AdapterFactory adapterFactory) {
@@ -61,6 +56,7 @@
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -81,116 +77,88 @@
* This adds a property descriptor for the Seed Count feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addSeedCountPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_TestResult_seedCount_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_TestResult_seedCount_feature", "_UI_TestResult_type"),
- ConfigPackage.Literals.TEST_RESULT__SEED_COUNT,
- true,
- false,
- false,
- ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_TestResult_seedCount_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_TestResult_seedCount_feature", "_UI_TestResult_type"),
+ ConfigPackage.Literals.TEST_RESULT__SEED_COUNT, true, false, false,
+ ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, null, null));
}
/**
* This adds a property descriptor for the Test Name feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addTestNamePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_TestResult_testName_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_TestResult_testName_feature", "_UI_TestResult_type"),
- ConfigPackage.Literals.TEST_RESULT__TEST_NAME,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_TestResult_testName_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_TestResult_testName_feature", "_UI_TestResult_type"),
+ ConfigPackage.Literals.TEST_RESULT__TEST_NAME, true, false, false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
}
/**
* This adds a property descriptor for the Error feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addErrorPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_TestResult_error_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_TestResult_error_feature", "_UI_TestResult_type"),
- ConfigPackage.Literals.TEST_RESULT__ERROR,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_TestResult_error_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_TestResult_error_feature", "_UI_TestResult_type"),
+ ConfigPackage.Literals.TEST_RESULT__ERROR, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null, null));
}
/**
* This adds a property descriptor for the Failure feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addFailurePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_TestResult_failure_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_TestResult_failure_feature", "_UI_TestResult_type"),
- ConfigPackage.Literals.TEST_RESULT__FAILURE,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_TestResult_failure_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_TestResult_failure_feature", "_UI_TestResult_type"),
+ ConfigPackage.Literals.TEST_RESULT__FAILURE, true, false, false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
}
/**
* This adds a property descriptor for the Execution Time feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addExecutionTimePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_TestResult_executionTime_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_TestResult_executionTime_feature", "_UI_TestResult_type"),
- ConfigPackage.Literals.TEST_RESULT__EXECUTION_TIME,
- true,
- false,
- false,
- ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_TestResult_executionTime_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_TestResult_executionTime_feature",
+ "_UI_TestResult_type"), ConfigPackage.Literals.TEST_RESULT__EXECUTION_TIME, true, false, false,
+ ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, null, null));
}
/**
* This returns TestResult.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -202,14 +170,14 @@
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
- String label = ((TestResult)object).getTestName();
- return label == null || label.length() == 0 ?
- getString("_UI_TestResult_type") :
- getString("_UI_TestResult_type") + " " + label;
+ String label = ((TestResult) object).getTestName();
+ return label == null || label.length() == 0 ? getString("_UI_TestResult_type")
+ : getString("_UI_TestResult_type") + " " + label;
}
/**
@@ -217,6 +185,7 @@
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -224,13 +193,13 @@
updateChildren(notification);
switch (notification.getFeatureID(TestResult.class)) {
- case ConfigPackage.TEST_RESULT__SEED_COUNT:
- case ConfigPackage.TEST_RESULT__TEST_NAME:
- case ConfigPackage.TEST_RESULT__ERROR:
- case ConfigPackage.TEST_RESULT__FAILURE:
- case ConfigPackage.TEST_RESULT__EXECUTION_TIME:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
- return;
+ case ConfigPackage.TEST_RESULT__SEED_COUNT:
+ case ConfigPackage.TEST_RESULT__TEST_NAME:
+ case ConfigPackage.TEST_RESULT__ERROR:
+ case ConfigPackage.TEST_RESULT__FAILURE:
+ case ConfigPackage.TEST_RESULT__EXECUTION_TIME:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
}
super.notifyChanged(notification);
}
@@ -240,6 +209,7 @@
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -251,6 +221,7 @@
* Return the resource locator for this item provider's resources.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf.edit/src/org/eclipse/emf/emfstore/fuzzy/emf/config/provider/TestRunItemProvider.java b/org.eclipse.emf.emfstore.fuzzy.emf.edit/src/org/eclipse/emf/emfstore/fuzzy/emf/config/provider/TestRunItemProvider.java
index a7dd5a7..328eeba 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf.edit/src/org/eclipse/emf/emfstore/fuzzy/emf/config/provider/TestRunItemProvider.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf.edit/src/org/eclipse/emf/emfstore/fuzzy/emf/config/provider/TestRunItemProvider.java
@@ -10,7 +10,6 @@
*/
package org.eclipse.emf.emfstore.fuzzy.emf.config.provider;
-
import java.util.Collection;
import java.util.Date;
import java.util.List;
@@ -41,20 +40,16 @@
* This is the item provider adapter for a {@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestRun} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
-public class TestRunItemProvider
- extends ItemProviderAdapter
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
+public class TestRunItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
/**
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public TestRunItemProvider(AdapterFactory adapterFactory) {
@@ -65,6 +60,7 @@
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -81,22 +77,16 @@
* This adds a property descriptor for the Time feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addTimePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_TestRun_time_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_TestRun_time_feature", "_UI_TestRun_type"),
- ConfigPackage.Literals.TEST_RUN__TIME,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_TestRun_time_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_TestRun_time_feature", "_UI_TestRun_type"),
+ ConfigPackage.Literals.TEST_RUN__TIME, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null, null));
}
/**
@@ -105,6 +95,7 @@
* {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -120,6 +111,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -134,6 +126,7 @@
* This returns TestRun.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -145,15 +138,15 @@
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
- Date labelValue = ((TestRun)object).getTime();
+ Date labelValue = ((TestRun) object).getTime();
String label = labelValue == null ? null : labelValue.toString();
- return label == null || label.length() == 0 ?
- getString("_UI_TestRun_type") :
- getString("_UI_TestRun_type") + " " + label;
+ return label == null || label.length() == 0 ? getString("_UI_TestRun_type") : getString("_UI_TestRun_type")
+ + " " + label;
}
/**
@@ -161,6 +154,7 @@
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -168,13 +162,13 @@
updateChildren(notification);
switch (notification.getFeatureID(TestRun.class)) {
- case ConfigPackage.TEST_RUN__TIME:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
- return;
- case ConfigPackage.TEST_RUN__CONFIG:
- case ConfigPackage.TEST_RUN__RESULTS:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
- return;
+ case ConfigPackage.TEST_RUN__TIME:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ case ConfigPackage.TEST_RUN__CONFIG:
+ case ConfigPackage.TEST_RUN__RESULTS:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
}
super.notifyChanged(notification);
}
@@ -184,27 +178,25 @@
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
- newChildDescriptors.add
- (createChildParameter
- (ConfigPackage.Literals.TEST_RUN__CONFIG,
- ConfigFactory.eINSTANCE.createTestConfig()));
+ newChildDescriptors.add(createChildParameter(ConfigPackage.Literals.TEST_RUN__CONFIG,
+ ConfigFactory.eINSTANCE.createTestConfig()));
- newChildDescriptors.add
- (createChildParameter
- (ConfigPackage.Literals.TEST_RUN__RESULTS,
- ConfigFactory.eINSTANCE.createTestResult()));
+ newChildDescriptors.add(createChildParameter(ConfigPackage.Literals.TEST_RUN__RESULTS,
+ ConfigFactory.eINSTANCE.createTestResult()));
}
/**
* Return the resource locator for this item provider's resources.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf.editor/src/org/eclipse/emf/emfstore/fuzzy/emf/config/presentation/ConfigActionBarContributor.java b/org.eclipse.emf.emfstore.fuzzy.emf.editor/src/org/eclipse/emf/emfstore/fuzzy/emf/config/presentation/ConfigActionBarContributor.java
index 6ec7d0a..9905102 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf.editor/src/org/eclipse/emf/emfstore/fuzzy/emf/config/presentation/ConfigActionBarContributor.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf.editor/src/org/eclipse/emf/emfstore/fuzzy/emf/config/presentation/ConfigActionBarContributor.java
@@ -51,15 +51,15 @@
* This is the action bar contributor for the Config model editor.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
-public class ConfigActionBarContributor
- extends EditingDomainActionBarContributor
- implements ISelectionChangedListener {
+public class ConfigActionBarContributor extends EditingDomainActionBarContributor implements ISelectionChangedListener {
/**
* This keeps track of the active editor.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected IEditorPart activeEditorPart;
@@ -68,6 +68,7 @@
* This keeps track of the current selection provider.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected ISelectionProvider selectionProvider;
@@ -76,51 +77,53 @@
* This action opens the Properties view.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
- protected IAction showPropertiesViewAction =
- new Action(ConfigEditorPlugin.INSTANCE.getString("_UI_ShowPropertiesView_menu_item")) {
- @Override
- public void run() {
- try {
- getPage().showView("org.eclipse.ui.views.PropertySheet");
- }
- catch (PartInitException exception) {
- ConfigEditorPlugin.INSTANCE.log(exception);
- }
+ protected IAction showPropertiesViewAction = new Action(
+ ConfigEditorPlugin.INSTANCE.getString("_UI_ShowPropertiesView_menu_item")) {
+ @Override
+ public void run() {
+ try {
+ getPage().showView("org.eclipse.ui.views.PropertySheet");
+ } catch (PartInitException exception) {
+ ConfigEditorPlugin.INSTANCE.log(exception);
}
- };
+ }
+ };
/**
* This action refreshes the viewer of the current editor if the editor
* implements {@link org.eclipse.emf.common.ui.viewer.IViewerProvider}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
- protected IAction refreshViewerAction =
- new Action(ConfigEditorPlugin.INSTANCE.getString("_UI_RefreshViewer_menu_item")) {
- @Override
- public boolean isEnabled() {
- return activeEditorPart instanceof IViewerProvider;
- }
+ protected IAction refreshViewerAction = new Action(
+ ConfigEditorPlugin.INSTANCE.getString("_UI_RefreshViewer_menu_item")) {
+ @Override
+ public boolean isEnabled() {
+ return activeEditorPart instanceof IViewerProvider;
+ }
- @Override
- public void run() {
- if (activeEditorPart instanceof IViewerProvider) {
- Viewer viewer = ((IViewerProvider)activeEditorPart).getViewer();
- if (viewer != null) {
- viewer.refresh();
- }
+ @Override
+ public void run() {
+ if (activeEditorPart instanceof IViewerProvider) {
+ Viewer viewer = ((IViewerProvider) activeEditorPart).getViewer();
+ if (viewer != null) {
+ viewer.refresh();
}
}
- };
+ }
+ };
/**
* This will contain one {@link org.eclipse.emf.edit.ui.action.CreateChildAction} corresponding to each descriptor
* generated for the current selection by the item provider.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Collection<IAction> createChildActions;
@@ -129,6 +132,7 @@
* This is the menu manager into which menu contribution items should be added for CreateChild actions.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected IMenuManager createChildMenuManager;
@@ -138,6 +142,7 @@
* generated for the current selection by the item provider.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Collection<IAction> createSiblingActions;
@@ -146,6 +151,7 @@
* This is the menu manager into which menu contribution items should be added for CreateSibling actions.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected IMenuManager createSiblingMenuManager;
@@ -154,6 +160,7 @@
* This creates an instance of the contributor.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public ConfigActionBarContributor() {
@@ -167,6 +174,7 @@
* This adds Separators for editor additions to the tool bar.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -180,13 +188,15 @@
* as well as the sub-menus for object creation items.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void contributeToMenu(IMenuManager menuManager) {
super.contributeToMenu(menuManager);
- IMenuManager submenuManager = new MenuManager(ConfigEditorPlugin.INSTANCE.getString("_UI_ConfigEditor_menu"), "org.eclipse.emf.emfstore.fuzzy.emf.configMenuID");
+ IMenuManager submenuManager = new MenuManager(ConfigEditorPlugin.INSTANCE.getString("_UI_ConfigEditor_menu"),
+ "org.eclipse.emf.emfstore.fuzzy.emf.configMenuID");
menuManager.insertAfter("additions", submenuManager);
submenuManager.add(new Separator("settings"));
submenuManager.add(new Separator("actions"));
@@ -205,12 +215,11 @@
// Force an update because Eclipse hides empty menus now.
//
- submenuManager.addMenuListener
- (new IMenuListener() {
- public void menuAboutToShow(IMenuManager menuManager) {
- menuManager.updateAll(true);
- }
- });
+ submenuManager.addMenuListener(new IMenuListener() {
+ public void menuAboutToShow(IMenuManager menuManager) {
+ menuManager.updateAll(true);
+ }
+ });
addGlobalActions(submenuManager);
}
@@ -219,6 +228,7 @@
* When the active editor changes, this remembers the change and registers with it as a selection provider.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -233,8 +243,7 @@
}
if (part == null) {
selectionProvider = null;
- }
- else {
+ } else {
selectionProvider = part.getSite().getSelectionProvider();
selectionProvider.addSelectionChangedListener(this);
@@ -252,6 +261,7 @@
* that can be added to the selected object and updating the menus accordingly.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void selectionChanged(SelectionChangedEvent event) {
@@ -270,10 +280,10 @@
Collection<?> newSiblingDescriptors = null;
ISelection selection = event.getSelection();
- if (selection instanceof IStructuredSelection && ((IStructuredSelection)selection).size() == 1) {
- Object object = ((IStructuredSelection)selection).getFirstElement();
+ if (selection instanceof IStructuredSelection && ((IStructuredSelection) selection).size() == 1) {
+ Object object = ((IStructuredSelection) selection).getFirstElement();
- EditingDomain domain = ((IEditingDomainProvider)activeEditorPart).getEditingDomain();
+ EditingDomain domain = ((IEditingDomainProvider) activeEditorPart).getEditingDomain();
newChildDescriptors = domain.getNewChildDescriptors(object, null);
newSiblingDescriptors = domain.getNewChildDescriptors(null, object);
@@ -295,10 +305,12 @@
}
/**
- * This generates a {@link org.eclipse.emf.edit.ui.action.CreateChildAction} for each object in <code>descriptors</code>,
+ * This generates a {@link org.eclipse.emf.edit.ui.action.CreateChildAction} for each object in
+ * <code>descriptors</code>,
* and returns the collection of these actions.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Collection<IAction> generateCreateChildActions(Collection<?> descriptors, ISelection selection) {
@@ -312,10 +324,12 @@
}
/**
- * This generates a {@link org.eclipse.emf.edit.ui.action.CreateSiblingAction} for each object in <code>descriptors</code>,
+ * This generates a {@link org.eclipse.emf.edit.ui.action.CreateSiblingAction} for each object in
+ * <code>descriptors</code>,
* and returns the collection of these actions.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Collection<IAction> generateCreateSiblingActions(Collection<?> descriptors, ISelection selection) {
@@ -335,26 +349,28 @@
* If <code>contributionID</code> is <code>null</code>, they are simply added.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
- protected void populateManager(IContributionManager manager, Collection<? extends IAction> actions, String contributionID) {
+ protected void populateManager(IContributionManager manager, Collection<? extends IAction> actions,
+ String contributionID) {
if (actions != null) {
for (IAction action : actions) {
if (contributionID != null) {
manager.insertBefore(contributionID, action);
- }
- else {
+ } else {
manager.add(action);
}
}
}
}
-
+
/**
* This removes from the specified <code>manager</code> all {@link org.eclipse.jface.action.ActionContributionItem}s
* based on the {@link org.eclipse.jface.action.IAction}s contained in the <code>actions</code> collection.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void depopulateManager(IContributionManager manager, Collection<? extends IAction> actions) {
@@ -365,13 +381,13 @@
//
IContributionItem contributionItem = items[i];
while (contributionItem instanceof SubContributionItem) {
- contributionItem = ((SubContributionItem)contributionItem).getInnerItem();
+ contributionItem = ((SubContributionItem) contributionItem).getInnerItem();
}
// Delete the ActionContributionItems with matching action.
//
if (contributionItem instanceof ActionContributionItem) {
- IAction action = ((ActionContributionItem)contributionItem).getAction();
+ IAction action = ((ActionContributionItem) contributionItem).getAction();
if (actions.contains(action)) {
manager.remove(contributionItem);
}
@@ -384,6 +400,7 @@
* This populates the pop-up menu before it appears.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -404,6 +421,7 @@
* This inserts global actions before the "additions-end" separator.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -411,7 +429,7 @@
menuManager.insertAfter("additions-end", new Separator("ui-actions"));
menuManager.insertAfter("ui-actions", showPropertiesViewAction);
- refreshViewerAction.setEnabled(refreshViewerAction.isEnabled());
+ refreshViewerAction.setEnabled(refreshViewerAction.isEnabled());
menuManager.insertAfter("ui-actions", refreshViewerAction);
super.addGlobalActions(menuManager);
@@ -421,6 +439,7 @@
* This ensures that a delete action will clean up all references to deleted objects.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf.editor/src/org/eclipse/emf/emfstore/fuzzy/emf/config/presentation/ConfigEditor.java b/org.eclipse.emf.emfstore.fuzzy.emf.editor/src/org/eclipse/emf/emfstore/fuzzy/emf/config/presentation/ConfigEditor.java
index 43ff6d5..a7b4919 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf.editor/src/org/eclipse/emf/emfstore/fuzzy/emf/config/presentation/ConfigEditor.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf.editor/src/org/eclipse/emf/emfstore/fuzzy/emf/config/presentation/ConfigEditor.java
@@ -10,7 +10,6 @@
*/
package org.eclipse.emf.emfstore.fuzzy.emf.config.presentation;
-
import java.io.IOException;
import java.io.InputStream;
@@ -165,20 +164,20 @@
import org.eclipse.ui.actions.WorkspaceModifyOperation;
-
/**
* This is an example of a Config model editor.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
-public class ConfigEditor
- extends MultiPageEditorPart
- implements IEditingDomainProvider, ISelectionProvider, IMenuListener, IViewerProvider, IGotoMarker {
+public class ConfigEditor extends MultiPageEditorPart implements IEditingDomainProvider, ISelectionProvider,
+ IMenuListener, IViewerProvider, IGotoMarker {
/**
* This keeps track of the editing domain that is used to track all changes to the model.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected AdapterFactoryEditingDomain editingDomain;
@@ -187,6 +186,7 @@
* This is the one adapter factory used for providing views of the model.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected ComposedAdapterFactory adapterFactory;
@@ -195,6 +195,7 @@
* This is the content outline page.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected IContentOutlinePage contentOutlinePage;
@@ -203,6 +204,7 @@
* This is a kludge...
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected IStatusLineManager contentOutlineStatusLineManager;
@@ -211,6 +213,7 @@
* This is the content outline page's viewer.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected TreeViewer contentOutlineViewer;
@@ -219,6 +222,7 @@
* This is the property sheet page.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected PropertySheetPage propertySheetPage;
@@ -228,6 +232,7 @@
* The parent relation must be correctly defined for this to work.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected TreeViewer selectionViewer;
@@ -236,6 +241,7 @@
* This inverts the roll of parent and child in the content provider and show parents as a tree.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected TreeViewer parentViewer;
@@ -244,6 +250,7 @@
* This shows how a tree view works.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected TreeViewer treeViewer;
@@ -253,6 +260,7 @@
* A list viewer doesn't support icons.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected ListViewer listViewer;
@@ -262,6 +270,7 @@
* A table can be used as a list with icons.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected TableViewer tableViewer;
@@ -270,6 +279,7 @@
* This shows how a tree view with columns works.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected TreeViewer treeViewerWithColumns;
@@ -278,14 +288,17 @@
* This keeps track of the active viewer pane, in the book.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected ViewerPane currentViewerPane;
/**
- * This keeps track of the active content viewer, which may be either one of the viewers in the pages or the content outline viewer.
+ * This keeps track of the active content viewer, which may be either one of the viewers in the pages or the content
+ * outline viewer.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Viewer currentViewer;
@@ -294,14 +307,17 @@
* This listens to which ever viewer is active.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected ISelectionChangedListener selectionChangedListener;
/**
- * This keeps track of all the {@link org.eclipse.jface.viewers.ISelectionChangedListener}s that are listening to this editor.
+ * This keeps track of all the {@link org.eclipse.jface.viewers.ISelectionChangedListener}s that are listening to
+ * this editor.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Collection<ISelectionChangedListener> selectionChangedListeners = new ArrayList<ISelectionChangedListener>();
@@ -310,6 +326,7 @@
* This keeps track of the selection of the editor as a whole.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected ISelection editorSelection = StructuredSelection.EMPTY;
@@ -319,6 +336,7 @@
* in Eclipse's Problems View.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected MarkerHelper markerHelper = new EditUIMarkerHelper();
@@ -327,46 +345,49 @@
* This listens for when the outline becomes active
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
- protected IPartListener partListener =
- new IPartListener() {
- public void partActivated(IWorkbenchPart p) {
- if (p instanceof ContentOutline) {
- if (((ContentOutline)p).getCurrentPage() == contentOutlinePage) {
- getActionBarContributor().setActiveEditor(ConfigEditor.this);
+ protected IPartListener partListener = new IPartListener() {
+ public void partActivated(IWorkbenchPart p) {
+ if (p instanceof ContentOutline) {
+ if (((ContentOutline) p).getCurrentPage() == contentOutlinePage) {
+ getActionBarContributor().setActiveEditor(ConfigEditor.this);
- setCurrentViewer(contentOutlineViewer);
- }
+ setCurrentViewer(contentOutlineViewer);
}
- else if (p instanceof PropertySheet) {
- if (((PropertySheet)p).getCurrentPage() == propertySheetPage) {
- getActionBarContributor().setActiveEditor(ConfigEditor.this);
- handleActivate();
- }
- }
- else if (p == ConfigEditor.this) {
+ } else if (p instanceof PropertySheet) {
+ if (((PropertySheet) p).getCurrentPage() == propertySheetPage) {
+ getActionBarContributor().setActiveEditor(ConfigEditor.this);
handleActivate();
}
+ } else if (p == ConfigEditor.this) {
+ handleActivate();
}
- public void partBroughtToTop(IWorkbenchPart p) {
- // Ignore.
- }
- public void partClosed(IWorkbenchPart p) {
- // Ignore.
- }
- public void partDeactivated(IWorkbenchPart p) {
- // Ignore.
- }
- public void partOpened(IWorkbenchPart p) {
- // Ignore.
- }
- };
+ }
+
+ public void partBroughtToTop(IWorkbenchPart p) {
+ // Ignore.
+ }
+
+ public void partClosed(IWorkbenchPart p) {
+ // Ignore.
+ }
+
+ public void partDeactivated(IWorkbenchPart p) {
+ // Ignore.
+ }
+
+ public void partOpened(IWorkbenchPart p) {
+ // Ignore.
+ }
+ };
/**
* Resources that have been removed since last activation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Collection<Resource> removedResources = new ArrayList<Resource>();
@@ -375,6 +396,7 @@
* Resources that have been changed since last activation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Collection<Resource> changedResources = new ArrayList<Resource>();
@@ -383,6 +405,7 @@
* Resources that have been saved.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Collection<Resource> savedResources = new ArrayList<Resource>();
@@ -391,6 +414,7 @@
* Map to store the diagnostic associated with a resource.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Map<Resource, Diagnostic> resourceToDiagnosticMap = new LinkedHashMap<Resource, Diagnostic>();
@@ -399,6 +423,7 @@
* Controls whether the problem indication should be updated.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected boolean updateProblemIndication = true;
@@ -407,159 +432,152 @@
* Adapter used to update the problem indication when resources are demanded loaded.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
- protected EContentAdapter problemIndicationAdapter =
- new EContentAdapter() {
- @Override
- public void notifyChanged(Notification notification) {
- if (notification.getNotifier() instanceof Resource) {
- switch (notification.getFeatureID(Resource.class)) {
- case Resource.RESOURCE__IS_LOADED:
- case Resource.RESOURCE__ERRORS:
- case Resource.RESOURCE__WARNINGS: {
- Resource resource = (Resource)notification.getNotifier();
- Diagnostic diagnostic = analyzeResourceProblems(resource, null);
- if (diagnostic.getSeverity() != Diagnostic.OK) {
- resourceToDiagnosticMap.put(resource, diagnostic);
- }
- else {
- resourceToDiagnosticMap.remove(resource);
- }
-
- if (updateProblemIndication) {
- getSite().getShell().getDisplay().asyncExec
- (new Runnable() {
- public void run() {
- updateProblemIndication();
- }
- });
- }
- break;
- }
+ protected EContentAdapter problemIndicationAdapter = new EContentAdapter() {
+ @Override
+ public void notifyChanged(Notification notification) {
+ if (notification.getNotifier() instanceof Resource) {
+ switch (notification.getFeatureID(Resource.class)) {
+ case Resource.RESOURCE__IS_LOADED:
+ case Resource.RESOURCE__ERRORS:
+ case Resource.RESOURCE__WARNINGS: {
+ Resource resource = (Resource) notification.getNotifier();
+ Diagnostic diagnostic = analyzeResourceProblems(resource, null);
+ if (diagnostic.getSeverity() != Diagnostic.OK) {
+ resourceToDiagnosticMap.put(resource, diagnostic);
+ } else {
+ resourceToDiagnosticMap.remove(resource);
}
- }
- else {
- super.notifyChanged(notification);
- }
- }
- @Override
- protected void setTarget(Resource target) {
- basicSetTarget(target);
+ if (updateProblemIndication) {
+ getSite().getShell().getDisplay().asyncExec(new Runnable() {
+ public void run() {
+ updateProblemIndication();
+ }
+ });
+ }
+ break;
+ }
+ }
+ } else {
+ super.notifyChanged(notification);
}
+ }
- @Override
- protected void unsetTarget(Resource target) {
- basicUnsetTarget(target);
- }
- };
+ @Override
+ protected void setTarget(Resource target) {
+ basicSetTarget(target);
+ }
+
+ @Override
+ protected void unsetTarget(Resource target) {
+ basicUnsetTarget(target);
+ }
+ };
/**
* This listens for workspace changes.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
- protected IResourceChangeListener resourceChangeListener =
- new IResourceChangeListener() {
- public void resourceChanged(IResourceChangeEvent event) {
- IResourceDelta delta = event.getDelta();
- try {
- class ResourceDeltaVisitor implements IResourceDeltaVisitor {
- protected ResourceSet resourceSet = editingDomain.getResourceSet();
- protected Collection<Resource> changedResources = new ArrayList<Resource>();
- protected Collection<Resource> removedResources = new ArrayList<Resource>();
+ protected IResourceChangeListener resourceChangeListener = new IResourceChangeListener() {
+ public void resourceChanged(IResourceChangeEvent event) {
+ IResourceDelta delta = event.getDelta();
+ try {
+ class ResourceDeltaVisitor implements IResourceDeltaVisitor {
+ protected ResourceSet resourceSet = editingDomain.getResourceSet();
+ protected Collection<Resource> changedResources = new ArrayList<Resource>();
+ protected Collection<Resource> removedResources = new ArrayList<Resource>();
- public boolean visit(IResourceDelta delta) {
- if (delta.getResource().getType() == IResource.FILE) {
- if (delta.getKind() == IResourceDelta.REMOVED ||
- delta.getKind() == IResourceDelta.CHANGED && delta.getFlags() != IResourceDelta.MARKERS) {
- Resource resource = resourceSet.getResource(URI.createPlatformResourceURI(delta.getFullPath().toString(), true), false);
- if (resource != null) {
- if (delta.getKind() == IResourceDelta.REMOVED) {
- removedResources.add(resource);
- }
- else if (!savedResources.remove(resource)) {
- changedResources.add(resource);
- }
+ public boolean visit(IResourceDelta delta) {
+ if (delta.getResource().getType() == IResource.FILE) {
+ if (delta.getKind() == IResourceDelta.REMOVED || delta.getKind() == IResourceDelta.CHANGED
+ && delta.getFlags() != IResourceDelta.MARKERS) {
+ Resource resource = resourceSet.getResource(
+ URI.createPlatformResourceURI(delta.getFullPath().toString(), true), false);
+ if (resource != null) {
+ if (delta.getKind() == IResourceDelta.REMOVED) {
+ removedResources.add(resource);
+ } else if (!savedResources.remove(resource)) {
+ changedResources.add(resource);
}
}
}
-
- return true;
}
- public Collection<Resource> getChangedResources() {
- return changedResources;
- }
-
- public Collection<Resource> getRemovedResources() {
- return removedResources;
- }
+ return true;
}
- final ResourceDeltaVisitor visitor = new ResourceDeltaVisitor();
- delta.accept(visitor);
-
- if (!visitor.getRemovedResources().isEmpty()) {
- getSite().getShell().getDisplay().asyncExec
- (new Runnable() {
- public void run() {
- removedResources.addAll(visitor.getRemovedResources());
- if (!isDirty()) {
- getSite().getPage().closeEditor(ConfigEditor.this, false);
- }
- }
- });
+ public Collection<Resource> getChangedResources() {
+ return changedResources;
}
- if (!visitor.getChangedResources().isEmpty()) {
- getSite().getShell().getDisplay().asyncExec
- (new Runnable() {
- public void run() {
- changedResources.addAll(visitor.getChangedResources());
- if (getSite().getPage().getActiveEditor() == ConfigEditor.this) {
- handleActivate();
- }
- }
- });
+ public Collection<Resource> getRemovedResources() {
+ return removedResources;
}
}
- catch (CoreException exception) {
- ConfigEditorPlugin.INSTANCE.log(exception);
+
+ final ResourceDeltaVisitor visitor = new ResourceDeltaVisitor();
+ delta.accept(visitor);
+
+ if (!visitor.getRemovedResources().isEmpty()) {
+ getSite().getShell().getDisplay().asyncExec(new Runnable() {
+ public void run() {
+ removedResources.addAll(visitor.getRemovedResources());
+ if (!isDirty()) {
+ getSite().getPage().closeEditor(ConfigEditor.this, false);
+ }
+ }
+ });
}
+
+ if (!visitor.getChangedResources().isEmpty()) {
+ getSite().getShell().getDisplay().asyncExec(new Runnable() {
+ public void run() {
+ changedResources.addAll(visitor.getChangedResources());
+ if (getSite().getPage().getActiveEditor() == ConfigEditor.this) {
+ handleActivate();
+ }
+ }
+ });
+ }
+ } catch (CoreException exception) {
+ ConfigEditorPlugin.INSTANCE.log(exception);
}
- };
+ }
+ };
/**
* Handles activation of the editor or it's associated views.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void handleActivate() {
// Recompute the read only state.
//
if (editingDomain.getResourceToReadOnlyMap() != null) {
- editingDomain.getResourceToReadOnlyMap().clear();
+ editingDomain.getResourceToReadOnlyMap().clear();
- // Refresh any actions that may become enabled or disabled.
- //
- setSelection(getSelection());
+ // Refresh any actions that may become enabled or disabled.
+ //
+ setSelection(getSelection());
}
if (!removedResources.isEmpty()) {
if (handleDirtyConflict()) {
getSite().getPage().closeEditor(ConfigEditor.this, false);
- }
- else {
+ } else {
removedResources.clear();
changedResources.clear();
savedResources.clear();
}
- }
- else if (!changedResources.isEmpty()) {
+ } else if (!changedResources.isEmpty()) {
changedResources.removeAll(savedResources);
handleChangedResources();
changedResources.clear();
@@ -571,6 +589,7 @@
* Handles what to do with changed resources on activation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void handleChangedResources() {
@@ -586,8 +605,7 @@
resource.unload();
try {
resource.load(Collections.EMPTY_MAP);
- }
- catch (IOException exception) {
+ } catch (IOException exception) {
if (!resourceToDiagnosticMap.containsKey(resource)) {
resourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception));
}
@@ -603,22 +621,18 @@
updateProblemIndication();
}
}
-
+
/**
* Updates the problems indication with the information described in the specified diagnostic.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void updateProblemIndication() {
if (updateProblemIndication) {
- BasicDiagnostic diagnostic =
- new BasicDiagnostic
- (Diagnostic.OK,
- "org.eclipse.emf.emfstore.fuzzy.emf.editor",
- 0,
- null,
- new Object [] { editingDomain.getResourceSet() });
+ BasicDiagnostic diagnostic = new BasicDiagnostic(Diagnostic.OK,
+ "org.eclipse.emf.emfstore.fuzzy.emf.editor", 0, null, new Object[] { editingDomain.getResourceSet() });
for (Diagnostic childDiagnostic : resourceToDiagnosticMap.values()) {
if (childDiagnostic.getSeverity() != Diagnostic.OK) {
diagnostic.add(childDiagnostic);
@@ -627,12 +641,11 @@
int lastEditorPage = getPageCount() - 1;
if (lastEditorPage >= 0 && getEditor(lastEditorPage) instanceof ProblemEditorPart) {
- ((ProblemEditorPart)getEditor(lastEditorPage)).setDiagnostic(diagnostic);
+ ((ProblemEditorPart) getEditor(lastEditorPage)).setDiagnostic(diagnostic);
if (diagnostic.getSeverity() != Diagnostic.OK) {
setActivePage(lastEditorPage);
}
- }
- else if (diagnostic.getSeverity() != Diagnostic.OK) {
+ } else if (diagnostic.getSeverity() != Diagnostic.OK) {
ProblemEditorPart problemEditorPart = new ProblemEditorPart();
problemEditorPart.setDiagnostic(diagnostic);
problemEditorPart.setMarkerHelper(markerHelper);
@@ -641,8 +654,7 @@
setPageText(lastEditorPage, problemEditorPart.getPartName());
setActivePage(lastEditorPage);
showTabs();
- }
- catch (PartInitException exception) {
+ } catch (PartInitException exception) {
ConfigEditorPlugin.INSTANCE.log(exception);
}
}
@@ -652,8 +664,7 @@
if (diagnostic.getSeverity() != Diagnostic.OK) {
try {
markerHelper.createMarkers(diagnostic);
- }
- catch (CoreException exception) {
+ } catch (CoreException exception) {
ConfigEditorPlugin.INSTANCE.log(exception);
}
}
@@ -665,20 +676,19 @@
* Shows a dialog that asks if conflicting changes should be discarded.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected boolean handleDirtyConflict() {
- return
- MessageDialog.openQuestion
- (getSite().getShell(),
- getString("_UI_FileConflict_label"),
- getString("_WARN_FileConflict"));
+ return MessageDialog.openQuestion(getSite().getShell(), getString("_UI_FileConflict_label"),
+ getString("_WARN_FileConflict"));
}
/**
* This creates a model editor.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public ConfigEditor() {
@@ -690,6 +700,7 @@
* This sets up the editing domain for the model editor.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void initializeEditingDomain() {
@@ -705,29 +716,28 @@
//
BasicCommandStack commandStack = new BasicCommandStack();
- // Add a listener to set the most recent command's affected objects to be the selection of the viewer with focus.
+ // Add a listener to set the most recent command's affected objects to be the selection of the viewer with
+ // focus.
//
- commandStack.addCommandStackListener
- (new CommandStackListener() {
- public void commandStackChanged(final EventObject event) {
- getContainer().getDisplay().asyncExec
- (new Runnable() {
- public void run() {
- firePropertyChange(IEditorPart.PROP_DIRTY);
+ commandStack.addCommandStackListener(new CommandStackListener() {
+ public void commandStackChanged(final EventObject event) {
+ getContainer().getDisplay().asyncExec(new Runnable() {
+ public void run() {
+ firePropertyChange(IEditorPart.PROP_DIRTY);
- // Try to select the affected objects.
- //
- Command mostRecentCommand = ((CommandStack)event.getSource()).getMostRecentCommand();
- if (mostRecentCommand != null) {
- setSelectionToViewer(mostRecentCommand.getAffectedObjects());
- }
- if (propertySheetPage != null && !propertySheetPage.getControl().isDisposed()) {
- propertySheetPage.refresh();
- }
- }
- });
- }
- });
+ // Try to select the affected objects.
+ //
+ Command mostRecentCommand = ((CommandStack) event.getSource()).getMostRecentCommand();
+ if (mostRecentCommand != null) {
+ setSelectionToViewer(mostRecentCommand.getAffectedObjects());
+ }
+ if (propertySheetPage != null && !propertySheetPage.getControl().isDisposed()) {
+ propertySheetPage.refresh();
+ }
+ }
+ });
+ }
+ });
// Create the editing domain with a special command stack.
//
@@ -738,9 +748,10 @@
* This is here for the listener to be able to call it.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
- @Override
+ @Override
protected void firePropertyChange(int action) {
super.firePropertyChange(action);
}
@@ -749,6 +760,7 @@
* This sets the selection into whichever viewer is active.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setSelectionToViewer(Collection<?> collection) {
@@ -756,26 +768,26 @@
// Make sure it's okay.
//
if (theSelection != null && !theSelection.isEmpty()) {
- Runnable runnable =
- new Runnable() {
- public void run() {
- // Try to select the items in the current content viewer of the editor.
- //
- if (currentViewer != null) {
- currentViewer.setSelection(new StructuredSelection(theSelection.toArray()), true);
- }
+ Runnable runnable = new Runnable() {
+ public void run() {
+ // Try to select the items in the current content viewer of the editor.
+ //
+ if (currentViewer != null) {
+ currentViewer.setSelection(new StructuredSelection(theSelection.toArray()), true);
}
- };
+ }
+ };
getSite().getShell().getDisplay().asyncExec(runnable);
}
}
/**
* This returns the editing domain as required by the {@link IEditingDomainProvider} interface.
- * This is important for implementing the static methods of {@link AdapterFactoryEditingDomain}
- * and for supporting {@link org.eclipse.emf.edit.ui.action.CommandAction}.
+ * This is important for implementing the static methods of {@link AdapterFactoryEditingDomain} and for supporting
+ * {@link org.eclipse.emf.edit.ui.action.CommandAction}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EditingDomain getEditingDomain() {
@@ -785,12 +797,14 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class ReverseAdapterFactoryContentProvider extends AdapterFactoryContentProvider {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public ReverseAdapterFactoryContentProvider(AdapterFactory adapterFactory) {
@@ -800,10 +814,11 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
- public Object [] getElements(Object object) {
+ public Object[] getElements(Object object) {
Object parent = super.getParent(object);
return (parent == null ? Collections.EMPTY_SET : Collections.singleton(parent)).toArray();
}
@@ -811,10 +826,11 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
- public Object [] getChildren(Object object) {
+ public Object[] getChildren(Object object) {
Object parent = super.getParent(object);
return (parent == null ? Collections.EMPTY_SET : Collections.singleton(parent)).toArray();
}
@@ -822,6 +838,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -833,6 +850,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -844,6 +862,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setCurrentViewerPane(ViewerPane viewerPane) {
@@ -861,6 +880,7 @@
* is the current one.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setCurrentViewer(Viewer viewer) {
@@ -870,14 +890,13 @@
if (selectionChangedListener == null) {
// Create the listener on demand.
//
- selectionChangedListener =
- new ISelectionChangedListener() {
- // This just notifies those things that are affected by the section.
- //
- public void selectionChanged(SelectionChangedEvent selectionChangedEvent) {
- setSelection(selectionChangedEvent.getSelection());
- }
- };
+ selectionChangedListener = new ISelectionChangedListener() {
+ // This just notifies those things that are affected by the section.
+ //
+ public void selectionChanged(SelectionChangedEvent selectionChangedEvent) {
+ setSelection(selectionChangedEvent.getSelection());
+ }
+ };
}
// Stop listening to the old one.
@@ -906,6 +925,7 @@
* This returns the viewer as required by the {@link IViewerProvider} interface.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Viewer getViewer() {
@@ -916,6 +936,7 @@
* This creates a context menu for the viewer and adds a listener as well registering the menu for extension.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void createContextMenuFor(StructuredViewer viewer) {
@@ -923,7 +944,7 @@
contextMenu.add(new Separator("additions"));
contextMenu.setRemoveAllWhenShown(true);
contextMenu.addMenuListener(this);
- Menu menu= contextMenu.createContextMenu(viewer.getControl());
+ Menu menu = contextMenu.createContextMenu(viewer.getControl());
viewer.getControl().setMenu(menu);
getSite().registerContextMenu(contextMenu, new UnwrappingSelectionProvider(viewer));
@@ -937,6 +958,7 @@
* This is the method called to load a resource into the editing domain's resource set based on the editor's input.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void createModel() {
@@ -947,15 +969,14 @@
// Load the resource through the editing domain.
//
resource = editingDomain.getResourceSet().getResource(resourceURI, true);
- }
- catch (Exception e) {
+ } catch (Exception e) {
exception = e;
resource = editingDomain.getResourceSet().getResource(resourceURI, false);
}
Diagnostic diagnostic = analyzeResourceProblems(resource, exception);
if (diagnostic.getSeverity() != Diagnostic.OK) {
- resourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception));
+ resourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception));
}
editingDomain.getResourceSet().eAdapters().add(problemIndicationAdapter);
}
@@ -965,30 +986,20 @@
* and the specified exception (if any).
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Diagnostic analyzeResourceProblems(Resource resource, Exception exception) {
if (!resource.getErrors().isEmpty() || !resource.getWarnings().isEmpty()) {
- BasicDiagnostic basicDiagnostic =
- new BasicDiagnostic
- (Diagnostic.ERROR,
- "org.eclipse.emf.emfstore.fuzzy.emf.editor",
- 0,
- getString("_UI_CreateModelError_message", resource.getURI()),
- new Object [] { exception == null ? (Object)resource : exception });
+ BasicDiagnostic basicDiagnostic = new BasicDiagnostic(Diagnostic.ERROR,
+ "org.eclipse.emf.emfstore.fuzzy.emf.editor", 0, getString("_UI_CreateModelError_message",
+ resource.getURI()), new Object[] { exception == null ? (Object) resource : exception });
basicDiagnostic.merge(EcoreUtil.computeDiagnostic(resource, true));
return basicDiagnostic;
- }
- else if (exception != null) {
- return
- new BasicDiagnostic
- (Diagnostic.ERROR,
- "org.eclipse.emf.emfstore.fuzzy.emf.editor",
- 0,
- getString("_UI_CreateModelError_message", resource.getURI()),
- new Object[] { exception });
- }
- else {
+ } else if (exception != null) {
+ return new BasicDiagnostic(Diagnostic.ERROR, "org.eclipse.emf.emfstore.fuzzy.emf.editor", 0, getString(
+ "_UI_CreateModelError_message", resource.getURI()), new Object[] { exception });
+ } else {
return Diagnostic.OK_INSTANCE;
}
}
@@ -997,6 +1008,7 @@
* This is the method used by the framework to install your own controls.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -1011,28 +1023,29 @@
// Create a page for the selection tree view.
//
{
- ViewerPane viewerPane =
- new ViewerPane(getSite().getPage(), ConfigEditor.this) {
- @Override
- public Viewer createViewer(Composite composite) {
- Tree tree = new Tree(composite, SWT.MULTI);
- TreeViewer newTreeViewer = new TreeViewer(tree);
- return newTreeViewer;
- }
- @Override
- public void requestActivation() {
- super.requestActivation();
- setCurrentViewerPane(this);
- }
- };
+ ViewerPane viewerPane = new ViewerPane(getSite().getPage(), ConfigEditor.this) {
+ @Override
+ public Viewer createViewer(Composite composite) {
+ Tree tree = new Tree(composite, SWT.MULTI);
+ TreeViewer newTreeViewer = new TreeViewer(tree);
+ return newTreeViewer;
+ }
+
+ @Override
+ public void requestActivation() {
+ super.requestActivation();
+ setCurrentViewerPane(this);
+ }
+ };
viewerPane.createControl(getContainer());
- selectionViewer = (TreeViewer)viewerPane.getViewer();
+ selectionViewer = (TreeViewer) viewerPane.getViewer();
selectionViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));
selectionViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
selectionViewer.setInput(editingDomain.getResourceSet());
- selectionViewer.setSelection(new StructuredSelection(editingDomain.getResourceSet().getResources().get(0)), true);
+ selectionViewer.setSelection(
+ new StructuredSelection(editingDomain.getResourceSet().getResources().get(0)), true);
viewerPane.setTitle(editingDomain.getResourceSet());
new AdapterFactoryTreeEditor(selectionViewer.getTree(), adapterFactory);
@@ -1045,23 +1058,23 @@
// Create a page for the parent tree view.
//
{
- ViewerPane viewerPane =
- new ViewerPane(getSite().getPage(), ConfigEditor.this) {
- @Override
- public Viewer createViewer(Composite composite) {
- Tree tree = new Tree(composite, SWT.MULTI);
- TreeViewer newTreeViewer = new TreeViewer(tree);
- return newTreeViewer;
- }
- @Override
- public void requestActivation() {
- super.requestActivation();
- setCurrentViewerPane(this);
- }
- };
+ ViewerPane viewerPane = new ViewerPane(getSite().getPage(), ConfigEditor.this) {
+ @Override
+ public Viewer createViewer(Composite composite) {
+ Tree tree = new Tree(composite, SWT.MULTI);
+ TreeViewer newTreeViewer = new TreeViewer(tree);
+ return newTreeViewer;
+ }
+
+ @Override
+ public void requestActivation() {
+ super.requestActivation();
+ setCurrentViewerPane(this);
+ }
+ };
viewerPane.createControl(getContainer());
- parentViewer = (TreeViewer)viewerPane.getViewer();
+ parentViewer = (TreeViewer) viewerPane.getViewer();
parentViewer.setAutoExpandLevel(30);
parentViewer.setContentProvider(new ReverseAdapterFactoryContentProvider(adapterFactory));
parentViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
@@ -1074,20 +1087,20 @@
// This is the page for the list viewer
//
{
- ViewerPane viewerPane =
- new ViewerPane(getSite().getPage(), ConfigEditor.this) {
- @Override
- public Viewer createViewer(Composite composite) {
- return new ListViewer(composite);
- }
- @Override
- public void requestActivation() {
- super.requestActivation();
- setCurrentViewerPane(this);
- }
- };
+ ViewerPane viewerPane = new ViewerPane(getSite().getPage(), ConfigEditor.this) {
+ @Override
+ public Viewer createViewer(Composite composite) {
+ return new ListViewer(composite);
+ }
+
+ @Override
+ public void requestActivation() {
+ super.requestActivation();
+ setCurrentViewerPane(this);
+ }
+ };
viewerPane.createControl(getContainer());
- listViewer = (ListViewer)viewerPane.getViewer();
+ listViewer = (ListViewer) viewerPane.getViewer();
listViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));
listViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
@@ -1099,20 +1112,20 @@
// This is the page for the tree viewer
//
{
- ViewerPane viewerPane =
- new ViewerPane(getSite().getPage(), ConfigEditor.this) {
- @Override
- public Viewer createViewer(Composite composite) {
- return new TreeViewer(composite);
- }
- @Override
- public void requestActivation() {
- super.requestActivation();
- setCurrentViewerPane(this);
- }
- };
+ ViewerPane viewerPane = new ViewerPane(getSite().getPage(), ConfigEditor.this) {
+ @Override
+ public Viewer createViewer(Composite composite) {
+ return new TreeViewer(composite);
+ }
+
+ @Override
+ public void requestActivation() {
+ super.requestActivation();
+ setCurrentViewerPane(this);
+ }
+ };
viewerPane.createControl(getContainer());
- treeViewer = (TreeViewer)viewerPane.getViewer();
+ treeViewer = (TreeViewer) viewerPane.getViewer();
treeViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));
treeViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
@@ -1126,20 +1139,20 @@
// This is the page for the table viewer.
//
{
- ViewerPane viewerPane =
- new ViewerPane(getSite().getPage(), ConfigEditor.this) {
- @Override
- public Viewer createViewer(Composite composite) {
- return new TableViewer(composite);
- }
- @Override
- public void requestActivation() {
- super.requestActivation();
- setCurrentViewerPane(this);
- }
- };
+ ViewerPane viewerPane = new ViewerPane(getSite().getPage(), ConfigEditor.this) {
+ @Override
+ public Viewer createViewer(Composite composite) {
+ return new TableViewer(composite);
+ }
+
+ @Override
+ public void requestActivation() {
+ super.requestActivation();
+ setCurrentViewerPane(this);
+ }
+ };
viewerPane.createControl(getContainer());
- tableViewer = (TableViewer)viewerPane.getViewer();
+ tableViewer = (TableViewer) viewerPane.getViewer();
Table table = tableViewer.getTable();
TableLayout layout = new TableLayout();
@@ -1157,7 +1170,7 @@
selfColumn.setText(getString("_UI_SelfColumn_label"));
selfColumn.setResizable(true);
- tableViewer.setColumnProperties(new String [] {"a", "b"});
+ tableViewer.setColumnProperties(new String[] { "a", "b" });
tableViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));
tableViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
@@ -1169,21 +1182,21 @@
// This is the page for the table tree viewer.
//
{
- ViewerPane viewerPane =
- new ViewerPane(getSite().getPage(), ConfigEditor.this) {
- @Override
- public Viewer createViewer(Composite composite) {
- return new TreeViewer(composite);
- }
- @Override
- public void requestActivation() {
- super.requestActivation();
- setCurrentViewerPane(this);
- }
- };
+ ViewerPane viewerPane = new ViewerPane(getSite().getPage(), ConfigEditor.this) {
+ @Override
+ public Viewer createViewer(Composite composite) {
+ return new TreeViewer(composite);
+ }
+
+ @Override
+ public void requestActivation() {
+ super.requestActivation();
+ setCurrentViewerPane(this);
+ }
+ };
viewerPane.createControl(getContainer());
- treeViewerWithColumns = (TreeViewer)viewerPane.getViewer();
+ treeViewerWithColumns = (TreeViewer) viewerPane.getViewer();
Tree tree = treeViewerWithColumns.getTree();
tree.setLayoutData(new FillLayout());
@@ -1200,7 +1213,7 @@
selfColumn.setResizable(true);
selfColumn.setWidth(200);
- treeViewerWithColumns.setColumnProperties(new String [] {"a", "b"});
+ treeViewerWithColumns.setColumnProperties(new String[] { "a", "b" });
treeViewerWithColumns.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));
treeViewerWithColumns.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
@@ -1209,36 +1222,34 @@
setPageText(pageIndex, getString("_UI_TreeWithColumnsPage_label"));
}
- getSite().getShell().getDisplay().asyncExec
- (new Runnable() {
- public void run() {
- setActivePage(0);
- }
- });
+ getSite().getShell().getDisplay().asyncExec(new Runnable() {
+ public void run() {
+ setActivePage(0);
+ }
+ });
}
// Ensures that this editor will only display the page's tab
// area if there are more than one page
//
- getContainer().addControlListener
- (new ControlAdapter() {
- boolean guard = false;
- @Override
- public void controlResized(ControlEvent event) {
- if (!guard) {
- guard = true;
- hideTabs();
- guard = false;
- }
- }
- });
+ getContainer().addControlListener(new ControlAdapter() {
+ boolean guard = false;
- getSite().getShell().getDisplay().asyncExec
- (new Runnable() {
- public void run() {
- updateProblemIndication();
- }
- });
+ @Override
+ public void controlResized(ControlEvent event) {
+ if (!guard) {
+ guard = true;
+ hideTabs();
+ guard = false;
+ }
+ }
+ });
+
+ getSite().getShell().getDisplay().asyncExec(new Runnable() {
+ public void run() {
+ updateProblemIndication();
+ }
+ });
}
/**
@@ -1246,13 +1257,14 @@
* this hides the single tab at the bottom.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void hideTabs() {
if (getPageCount() <= 1) {
setPageText(0, "");
if (getContainer() instanceof CTabFolder) {
- ((CTabFolder)getContainer()).setTabHeight(1);
+ ((CTabFolder) getContainer()).setTabHeight(1);
Point point = getContainer().getSize();
getContainer().setSize(point.x, point.y + 6);
}
@@ -1264,13 +1276,14 @@
* this shows the tabs at the bottom.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void showTabs() {
if (getPageCount() > 1) {
setPageText(0, getString("_UI_SelectionPage_label"));
if (getContainer() instanceof CTabFolder) {
- ((CTabFolder)getContainer()).setTabHeight(SWT.DEFAULT);
+ ((CTabFolder) getContainer()).setTabHeight(SWT.DEFAULT);
Point point = getContainer().getSize();
getContainer().setSize(point.x, point.y - 6);
}
@@ -1281,6 +1294,7 @@
* This is used to track the active viewer.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -1296,6 +1310,7 @@
* This is how the framework determines which interfaces we implement.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@SuppressWarnings("rawtypes")
@@ -1303,14 +1318,11 @@
public Object getAdapter(Class key) {
if (key.equals(IContentOutlinePage.class)) {
return showOutlineView() ? getContentOutlinePage() : null;
- }
- else if (key.equals(IPropertySheetPage.class)) {
+ } else if (key.equals(IPropertySheetPage.class)) {
return getPropertySheetPage();
- }
- else if (key.equals(IGotoMarker.class)) {
+ } else if (key.equals(IGotoMarker.class)) {
return this;
- }
- else {
+ } else {
return super.getAdapter(key);
}
}
@@ -1319,6 +1331,7 @@
* This accesses a cached version of the content outliner.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public IContentOutlinePage getContentOutlinePage() {
@@ -1343,14 +1356,16 @@
createContextMenuFor(contentOutlineViewer);
if (!editingDomain.getResourceSet().getResources().isEmpty()) {
- // Select the root object in the view.
- //
- contentOutlineViewer.setSelection(new StructuredSelection(editingDomain.getResourceSet().getResources().get(0)), true);
+ // Select the root object in the view.
+ //
+ contentOutlineViewer.setSelection(new StructuredSelection(editingDomain.getResourceSet()
+ .getResources().get(0)), true);
}
}
@Override
- public void makeContributions(IMenuManager menuManager, IToolBarManager toolBarManager, IStatusLineManager statusLineManager) {
+ public void makeContributions(IMenuManager menuManager, IToolBarManager toolBarManager,
+ IStatusLineManager statusLineManager) {
super.makeContributions(menuManager, toolBarManager, statusLineManager);
contentOutlineStatusLineManager = statusLineManager;
}
@@ -1366,14 +1381,13 @@
// Listen to selection so that we can handle it is a special way.
//
- contentOutlinePage.addSelectionChangedListener
- (new ISelectionChangedListener() {
- // This ensures that we handle selections correctly.
- //
- public void selectionChanged(SelectionChangedEvent event) {
- handleContentOutlineSelection(event.getSelection());
- }
- });
+ contentOutlinePage.addSelectionChangedListener(new ISelectionChangedListener() {
+ // This ensures that we handle selections correctly.
+ //
+ public void selectionChanged(SelectionChangedEvent event) {
+ handleContentOutlineSelection(event.getSelection());
+ }
+ });
}
return contentOutlinePage;
@@ -1383,24 +1397,24 @@
* This accesses a cached version of the property sheet.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public IPropertySheetPage getPropertySheetPage() {
if (propertySheetPage == null) {
- propertySheetPage =
- new ExtendedPropertySheetPage(editingDomain) {
- @Override
- public void setSelectionToViewer(List<?> selection) {
- ConfigEditor.this.setSelectionToViewer(selection);
- ConfigEditor.this.setFocus();
- }
+ propertySheetPage = new ExtendedPropertySheetPage(editingDomain) {
+ @Override
+ public void setSelectionToViewer(List<?> selection) {
+ ConfigEditor.this.setSelectionToViewer(selection);
+ ConfigEditor.this.setFocus();
+ }
- @Override
- public void setActionBars(IActionBars actionBars) {
- super.setActionBars(actionBars);
- getActionBarContributor().shareGlobalActions(this, actionBars);
- }
- };
+ @Override
+ public void setActionBars(IActionBars actionBars) {
+ super.setActionBars(actionBars);
+ getActionBarContributor().shareGlobalActions(this, actionBars);
+ }
+ };
propertySheetPage.setPropertySourceProvider(new AdapterFactoryContentProvider(adapterFactory));
}
@@ -1411,11 +1425,12 @@
* This deals with how we want selection in the outliner to affect the other views.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void handleContentOutlineSelection(ISelection selection) {
if (currentViewerPane != null && !selection.isEmpty() && selection instanceof IStructuredSelection) {
- Iterator<?> selectedElements = ((IStructuredSelection)selection).iterator();
+ Iterator<?> selectedElements = ((IStructuredSelection) selection).iterator();
if (selectedElements.hasNext()) {
// Get the first selected element.
//
@@ -1433,8 +1448,7 @@
// Set the selection to the widget.
//
selectionViewer.setSelection(new StructuredSelection(selectionList));
- }
- else {
+ } else {
// Set the input to the widget.
//
if (currentViewerPane.getViewer().getInput() != selectedElement) {
@@ -1450,17 +1464,19 @@
* This is for implementing {@link IEditorPart} and simply tests the command stack.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean isDirty() {
- return ((BasicCommandStack)editingDomain.getCommandStack()).isSaveNeeded();
+ return ((BasicCommandStack) editingDomain.getCommandStack()).isSaveNeeded();
}
/**
* This is for implementing {@link IEditorPart} and simply saves the model file.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -1472,32 +1488,31 @@
// Do the work within an operation because this is a long running activity that modifies the workbench.
//
- WorkspaceModifyOperation operation =
- new WorkspaceModifyOperation() {
- // This is the method that gets invoked when the operation runs.
+ WorkspaceModifyOperation operation = new WorkspaceModifyOperation() {
+ // This is the method that gets invoked when the operation runs.
+ //
+ @Override
+ public void execute(IProgressMonitor monitor) {
+ // Save the resources to the file system.
//
- @Override
- public void execute(IProgressMonitor monitor) {
- // Save the resources to the file system.
- //
- boolean first = true;
- for (Resource resource : editingDomain.getResourceSet().getResources()) {
- if ((first || !resource.getContents().isEmpty() || isPersisted(resource)) && !editingDomain.isReadOnly(resource)) {
- try {
- long timeStamp = resource.getTimeStamp();
- resource.save(saveOptions);
- if (resource.getTimeStamp() != timeStamp) {
- savedResources.add(resource);
- }
+ boolean first = true;
+ for (Resource resource : editingDomain.getResourceSet().getResources()) {
+ if ((first || !resource.getContents().isEmpty() || isPersisted(resource))
+ && !editingDomain.isReadOnly(resource)) {
+ try {
+ long timeStamp = resource.getTimeStamp();
+ resource.save(saveOptions);
+ if (resource.getTimeStamp() != timeStamp) {
+ savedResources.add(resource);
}
- catch (Exception exception) {
- resourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception));
- }
- first = false;
+ } catch (Exception exception) {
+ resourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception));
}
+ first = false;
}
}
- };
+ }
+ };
updateProblemIndication = false;
try {
@@ -1507,10 +1522,9 @@
// Refresh the necessary state.
//
- ((BasicCommandStack)editingDomain.getCommandStack()).saveIsDone();
+ ((BasicCommandStack) editingDomain.getCommandStack()).saveIsDone();
firePropertyChange(IEditorPart.PROP_DIRTY);
- }
- catch (Exception exception) {
+ } catch (Exception exception) {
// Something went wrong that shouldn't.
//
ConfigEditorPlugin.INSTANCE.log(exception);
@@ -1521,9 +1535,10 @@
/**
* This returns whether something has been persisted to the URI of the specified resource.
- * The implementation uses the URI converter from the editor's resource set to try to open an input stream.
+ * The implementation uses the URI converter from the editor's resource set to try to open an input stream.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected boolean isPersisted(Resource resource) {
@@ -1534,8 +1549,7 @@
result = true;
stream.close();
}
- }
- catch (IOException e) {
+ } catch (IOException e) {
// Ignore
}
return result;
@@ -1545,6 +1559,7 @@
* This always returns true because it is not currently supported.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -1556,6 +1571,7 @@
* This also changes the editor's input.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -1574,22 +1590,22 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void doSaveAs(URI uri, IEditorInput editorInput) {
(editingDomain.getResourceSet().getResources().get(0)).setURI(uri);
setInputWithNotify(editorInput);
setPartName(editorInput.getName());
- IProgressMonitor progressMonitor =
- getActionBars().getStatusLineManager() != null ?
- getActionBars().getStatusLineManager().getProgressMonitor() :
- new NullProgressMonitor();
+ IProgressMonitor progressMonitor = getActionBars().getStatusLineManager() != null ? getActionBars()
+ .getStatusLineManager().getProgressMonitor() : new NullProgressMonitor();
doSave(progressMonitor);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void gotoMarker(IMarker marker) {
@@ -1600,12 +1616,11 @@
URI uri = URI.createURI(uriAttribute);
EObject eObject = editingDomain.getResourceSet().getEObject(uri, true);
if (eObject != null) {
- setSelectionToViewer(Collections.singleton(editingDomain.getWrapper(eObject)));
+ setSelectionToViewer(Collections.singleton(editingDomain.getWrapper(eObject)));
}
}
}
- }
- catch (CoreException exception) {
+ } catch (CoreException exception) {
ConfigEditorPlugin.INSTANCE.log(exception);
}
}
@@ -1614,6 +1629,7 @@
* This is called during startup.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -1623,20 +1639,21 @@
setPartName(editorInput.getName());
site.setSelectionProvider(this);
site.getPage().addPartListener(partListener);
- ResourcesPlugin.getWorkspace().addResourceChangeListener(resourceChangeListener, IResourceChangeEvent.POST_CHANGE);
+ ResourcesPlugin.getWorkspace().addResourceChangeListener(resourceChangeListener,
+ IResourceChangeEvent.POST_CHANGE);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void setFocus() {
if (currentViewerPane != null) {
currentViewerPane.setFocus();
- }
- else {
+ } else {
getControl(getActivePage()).setFocus();
}
}
@@ -1645,6 +1662,7 @@
* This implements {@link org.eclipse.jface.viewers.ISelectionProvider}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void addSelectionChangedListener(ISelectionChangedListener listener) {
@@ -1655,6 +1673,7 @@
* This implements {@link org.eclipse.jface.viewers.ISelectionProvider}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void removeSelectionChangedListener(ISelectionChangedListener listener) {
@@ -1665,6 +1684,7 @@
* This implements {@link org.eclipse.jface.viewers.ISelectionProvider} to return this editor's overall selection.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public ISelection getSelection() {
@@ -1676,6 +1696,7 @@
* Calling this result will notify the listeners.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setSelection(ISelection selection) {
@@ -1690,32 +1711,33 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setStatusLineManager(ISelection selection) {
- IStatusLineManager statusLineManager = currentViewer != null && currentViewer == contentOutlineViewer ?
- contentOutlineStatusLineManager : getActionBars().getStatusLineManager();
+ IStatusLineManager statusLineManager = currentViewer != null && currentViewer == contentOutlineViewer ? contentOutlineStatusLineManager
+ : getActionBars().getStatusLineManager();
if (statusLineManager != null) {
if (selection instanceof IStructuredSelection) {
- Collection<?> collection = ((IStructuredSelection)selection).toList();
+ Collection<?> collection = ((IStructuredSelection) selection).toList();
switch (collection.size()) {
- case 0: {
- statusLineManager.setMessage(getString("_UI_NoObjectSelected"));
- break;
- }
- case 1: {
- String text = new AdapterFactoryItemDelegator(adapterFactory).getText(collection.iterator().next());
- statusLineManager.setMessage(getString("_UI_SingleObjectSelected", text));
- break;
- }
- default: {
- statusLineManager.setMessage(getString("_UI_MultiObjectSelected", Integer.toString(collection.size())));
- break;
- }
+ case 0: {
+ statusLineManager.setMessage(getString("_UI_NoObjectSelected"));
+ break;
}
- }
- else {
+ case 1: {
+ String text = new AdapterFactoryItemDelegator(adapterFactory).getText(collection.iterator().next());
+ statusLineManager.setMessage(getString("_UI_SingleObjectSelected", text));
+ break;
+ }
+ default: {
+ statusLineManager.setMessage(getString("_UI_MultiObjectSelected",
+ Integer.toString(collection.size())));
+ break;
+ }
+ }
+ } else {
statusLineManager.setMessage("");
}
}
@@ -1725,6 +1747,7 @@
* This looks up a string in the plugin's plugin.properties file.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private static String getString(String key) {
@@ -1735,34 +1758,39 @@
* This looks up a string in plugin.properties, making a substitution.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private static String getString(String key, Object s1) {
- return ConfigEditorPlugin.INSTANCE.getString(key, new Object [] { s1 });
+ return ConfigEditorPlugin.INSTANCE.getString(key, new Object[] { s1 });
}
/**
- * This implements {@link org.eclipse.jface.action.IMenuListener} to help fill the context menus with contributions from the Edit menu.
+ * This implements {@link org.eclipse.jface.action.IMenuListener} to help fill the context menus with contributions
+ * from the Edit menu.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void menuAboutToShow(IMenuManager menuManager) {
- ((IMenuListener)getEditorSite().getActionBarContributor()).menuAboutToShow(menuManager);
+ ((IMenuListener) getEditorSite().getActionBarContributor()).menuAboutToShow(menuManager);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EditingDomainActionBarContributor getActionBarContributor() {
- return (EditingDomainActionBarContributor)getEditorSite().getActionBarContributor();
+ return (EditingDomainActionBarContributor) getEditorSite().getActionBarContributor();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public IActionBars getActionBars() {
@@ -1772,6 +1800,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public AdapterFactory getAdapterFactory() {
@@ -1781,6 +1810,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -1812,6 +1842,7 @@
* Returns whether the outline view should be presented to the user.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected boolean showOutlineView() {
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf.editor/src/org/eclipse/emf/emfstore/fuzzy/emf/config/presentation/ConfigEditorPlugin.java b/org.eclipse.emf.emfstore.fuzzy.emf.editor/src/org/eclipse/emf/emfstore/fuzzy/emf/config/presentation/ConfigEditorPlugin.java
index a56090e..9651194 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf.editor/src/org/eclipse/emf/emfstore/fuzzy/emf/config/presentation/ConfigEditorPlugin.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf.editor/src/org/eclipse/emf/emfstore/fuzzy/emf/config/presentation/ConfigEditorPlugin.java
@@ -20,6 +20,7 @@
* This is the central singleton for the Config editor plugin.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public final class ConfigEditorPlugin extends EMFPlugin {
@@ -27,14 +28,16 @@
* Keep track of the singleton.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public static final ConfigEditorPlugin INSTANCE = new ConfigEditorPlugin();
-
+
/**
* Keep track of the singleton.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private static Implementation plugin;
@@ -43,18 +46,18 @@
* Create the instance.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public ConfigEditorPlugin() {
- super
- (new ResourceLocator [] {
- });
+ super(new ResourceLocator[] {});
}
/**
* Returns the singleton instance of the Eclipse plugin.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the singleton instance.
* @generated
*/
@@ -62,22 +65,24 @@
public ResourceLocator getPluginResourceLocator() {
return plugin;
}
-
+
/**
* Returns the singleton instance of the Eclipse plugin.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the singleton instance.
* @generated
*/
public static Implementation getPlugin() {
return plugin;
}
-
+
/**
* The actual implementation of the Eclipse <b>Plugin</b>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public static class Implementation extends EclipseUIPlugin {
@@ -85,11 +90,12 @@
* Creates an instance.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Implementation() {
super();
-
+
// Remember the static instance.
//
plugin = this;
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf.editor/src/org/eclipse/emf/emfstore/fuzzy/emf/config/presentation/ConfigModelWizard.java b/org.eclipse.emf.emfstore.fuzzy.emf.editor/src/org/eclipse/emf/emfstore/fuzzy/emf/config/presentation/ConfigModelWizard.java
index aca16e4..1793d4e 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf.editor/src/org/eclipse/emf/emfstore/fuzzy/emf/config/presentation/ConfigModelWizard.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf.editor/src/org/eclipse/emf/emfstore/fuzzy/emf/config/presentation/ConfigModelWizard.java
@@ -10,7 +10,6 @@
*/
package org.eclipse.emf.emfstore.fuzzy.emf.config.presentation;
-
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
@@ -81,7 +80,6 @@
import org.eclipse.emf.emfstore.fuzzy.emf.config.ConfigPackage;
import org.eclipse.emf.emfstore.fuzzy.emf.config.provider.ConfigEditPlugin;
-
import org.eclipse.core.runtime.Path;
import org.eclipse.jface.viewers.ISelection;
@@ -92,11 +90,11 @@
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PartInitException;
-
/**
* This is a simple wizard for creating a new model file.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class ConfigModelWizard extends Wizard implements INewWizard {
@@ -104,24 +102,27 @@
* The supported extensions for created files.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
- public static final List<String> FILE_EXTENSIONS =
- Collections.unmodifiableList(Arrays.asList(ConfigEditorPlugin.INSTANCE.getString("_UI_ConfigEditorFilenameExtensions").split("\\s*,\\s*")));
+ public static final List<String> FILE_EXTENSIONS = Collections.unmodifiableList(Arrays
+ .asList(ConfigEditorPlugin.INSTANCE.getString("_UI_ConfigEditorFilenameExtensions").split("\\s*,\\s*")));
/**
* A formatted list of supported file extensions, suitable for display.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
- public static final String FORMATTED_FILE_EXTENSIONS =
- ConfigEditorPlugin.INSTANCE.getString("_UI_ConfigEditorFilenameExtensions").replaceAll("\\s*,\\s*", ", ");
+ public static final String FORMATTED_FILE_EXTENSIONS = ConfigEditorPlugin.INSTANCE.getString(
+ "_UI_ConfigEditorFilenameExtensions").replaceAll("\\s*,\\s*", ", ");
/**
* This caches an instance of the model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected ConfigPackage configPackage = ConfigPackage.eINSTANCE;
@@ -130,6 +131,7 @@
* This caches an instance of the model factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected ConfigFactory configFactory = configPackage.getConfigFactory();
@@ -138,6 +140,7 @@
* This is the file creation page.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected ConfigModelWizardNewFileCreationPage newFileCreationPage;
@@ -146,6 +149,7 @@
* This is the initial object creation page.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected ConfigModelWizardInitialObjectCreationPage initialObjectCreationPage;
@@ -154,6 +158,7 @@
* Remember the selection during initialization for populating the default container.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected IStructuredSelection selection;
@@ -162,6 +167,7 @@
* Remember the workbench during initialization.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected IWorkbench workbench;
@@ -170,6 +176,7 @@
* Caches the names of the types that can be created as the root object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected List<String> initialObjectNames;
@@ -178,19 +185,22 @@
* This just records the information.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void init(IWorkbench workbench, IStructuredSelection selection) {
this.workbench = workbench;
this.selection = selection;
setWindowTitle(ConfigEditorPlugin.INSTANCE.getString("_UI_Wizard_label"));
- setDefaultPageImageDescriptor(ExtendedImageRegistry.INSTANCE.getImageDescriptor(ConfigEditorPlugin.INSTANCE.getImage("full/wizban/NewConfig")));
+ setDefaultPageImageDescriptor(ExtendedImageRegistry.INSTANCE.getImageDescriptor(ConfigEditorPlugin.INSTANCE
+ .getImage("full/wizban/NewConfig")));
}
/**
* Returns the names of the types that can be created as the root object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Collection<String> getInitialObjectNames() {
@@ -198,7 +208,7 @@
initialObjectNames = new ArrayList<String>();
for (EClassifier eClassifier : configPackage.getEClassifiers()) {
if (eClassifier instanceof EClass) {
- EClass eClass = (EClass)eClassifier;
+ EClass eClass = (EClass) eClassifier;
if (!eClass.isAbstract()) {
initialObjectNames.add(eClass.getName());
}
@@ -213,10 +223,11 @@
* Create a new model.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected EObject createInitialModel() {
- EClass eClass = (EClass)configPackage.getEClassifier(initialObjectCreationPage.getInitialObjectName());
+ EClass eClass = (EClass) configPackage.getEClassifier(initialObjectCreationPage.getInitialObjectName());
EObject rootObject = configFactory.create(eClass);
return rootObject;
}
@@ -225,6 +236,7 @@
* Do the work after everything is specified.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -236,44 +248,41 @@
// Do the work within an operation.
//
- WorkspaceModifyOperation operation =
- new WorkspaceModifyOperation() {
- @Override
- protected void execute(IProgressMonitor progressMonitor) {
- try {
- // Create a resource set
- //
- ResourceSet resourceSet = new ResourceSetImpl();
+ WorkspaceModifyOperation operation = new WorkspaceModifyOperation() {
+ @Override
+ protected void execute(IProgressMonitor progressMonitor) {
+ try {
+ // Create a resource set
+ //
+ ResourceSet resourceSet = new ResourceSetImpl();
- // Get the URI of the model file.
- //
- URI fileURI = URI.createPlatformResourceURI(modelFile.getFullPath().toString(), true);
+ // Get the URI of the model file.
+ //
+ URI fileURI = URI.createPlatformResourceURI(modelFile.getFullPath().toString(), true);
- // Create a resource for this file.
- //
- Resource resource = resourceSet.createResource(fileURI);
+ // Create a resource for this file.
+ //
+ Resource resource = resourceSet.createResource(fileURI);
- // Add the initial model object to the contents.
- //
- EObject rootObject = createInitialModel();
- if (rootObject != null) {
- resource.getContents().add(rootObject);
- }
-
- // Save the contents of the resource to the file system.
- //
- Map<Object, Object> options = new HashMap<Object, Object>();
- options.put(XMLResource.OPTION_ENCODING, initialObjectCreationPage.getEncoding());
- resource.save(options);
+ // Add the initial model object to the contents.
+ //
+ EObject rootObject = createInitialModel();
+ if (rootObject != null) {
+ resource.getContents().add(rootObject);
}
- catch (Exception exception) {
- ConfigEditorPlugin.INSTANCE.log(exception);
- }
- finally {
- progressMonitor.done();
- }
+
+ // Save the contents of the resource to the file system.
+ //
+ Map<Object, Object> options = new HashMap<Object, Object>();
+ options.put(XMLResource.OPTION_ENCODING, initialObjectCreationPage.getEncoding());
+ resource.save(options);
+ } catch (Exception exception) {
+ ConfigEditorPlugin.INSTANCE.log(exception);
+ } finally {
+ progressMonitor.done();
}
- };
+ }
+ };
getContainer().run(false, false, operation);
@@ -284,29 +293,26 @@
final IWorkbenchPart activePart = page.getActivePart();
if (activePart instanceof ISetSelectionTarget) {
final ISelection targetSelection = new StructuredSelection(modelFile);
- getShell().getDisplay().asyncExec
- (new Runnable() {
- public void run() {
- ((ISetSelectionTarget)activePart).selectReveal(targetSelection);
- }
- });
+ getShell().getDisplay().asyncExec(new Runnable() {
+ public void run() {
+ ((ISetSelectionTarget) activePart).selectReveal(targetSelection);
+ }
+ });
}
// Open an editor on the new file.
//
try {
- page.openEditor
- (new FileEditorInput(modelFile),
- workbench.getEditorRegistry().getDefaultEditor(modelFile.getFullPath().toString()).getId());
- }
- catch (PartInitException exception) {
- MessageDialog.openError(workbenchWindow.getShell(), ConfigEditorPlugin.INSTANCE.getString("_UI_OpenEditorError_label"), exception.getMessage());
+ page.openEditor(new FileEditorInput(modelFile),
+ workbench.getEditorRegistry().getDefaultEditor(modelFile.getFullPath().toString()).getId());
+ } catch (PartInitException exception) {
+ MessageDialog.openError(workbenchWindow.getShell(),
+ ConfigEditorPlugin.INSTANCE.getString("_UI_OpenEditorError_label"), exception.getMessage());
return false;
}
return true;
- }
- catch (Exception exception) {
+ } catch (Exception exception) {
ConfigEditorPlugin.INSTANCE.log(exception);
return false;
}
@@ -316,6 +322,7 @@
* This is the one page of the wizard.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class ConfigModelWizardNewFileCreationPage extends WizardNewFileCreationPage {
@@ -323,6 +330,7 @@
* Pass in the selection.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public ConfigModelWizardNewFileCreationPage(String pageId, IStructuredSelection selection) {
@@ -333,6 +341,7 @@
* The framework calls this to see if the file is correct.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -341,7 +350,8 @@
String extension = new Path(getFileName()).getFileExtension();
if (extension == null || !FILE_EXTENSIONS.contains(extension)) {
String key = FILE_EXTENSIONS.size() > 1 ? "_WARN_FilenameExtensions" : "_WARN_FilenameExtension";
- setErrorMessage(ConfigEditorPlugin.INSTANCE.getString(key, new Object [] { FORMATTED_FILE_EXTENSIONS }));
+ setErrorMessage(ConfigEditorPlugin.INSTANCE.getString(key,
+ new Object[] { FORMATTED_FILE_EXTENSIONS }));
return false;
}
return true;
@@ -352,6 +362,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public IFile getModelFile() {
@@ -363,26 +374,29 @@
* This is the page where the type of object to create is selected.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class ConfigModelWizardInitialObjectCreationPage extends WizardPage {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Combo initialObjectField;
/**
* @generated
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
*/
protected List<String> encodings;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Combo encodingField;
@@ -391,6 +405,7 @@
* Pass in the selection.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public ConfigModelWizardInitialObjectCreationPage(String pageId) {
@@ -400,10 +415,12 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void createControl(Composite parent) {
- Composite composite = new Composite(parent, SWT.NONE); {
+ Composite composite = new Composite(parent, SWT.NONE);
+ {
GridLayout layout = new GridLayout();
layout.numColumns = 1;
layout.verticalSpacing = 12;
@@ -472,18 +489,19 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
- protected ModifyListener validator =
- new ModifyListener() {
- public void modifyText(ModifyEvent e) {
- setPageComplete(validatePage());
- }
- };
+ protected ModifyListener validator = new ModifyListener() {
+ public void modifyText(ModifyEvent e) {
+ setPageComplete(validatePage());
+ }
+ };
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected boolean validatePage() {
@@ -493,6 +511,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -502,8 +521,7 @@
if (initialObjectField.getItemCount() == 1) {
initialObjectField.clearSelection();
encodingField.setFocus();
- }
- else {
+ } else {
encodingField.clearSelection();
initialObjectField.setFocus();
}
@@ -513,6 +531,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public String getInitialObjectName() {
@@ -529,6 +548,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public String getEncoding() {
@@ -539,13 +559,13 @@
* Returns the label for the specified type name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected String getLabel(String typeName) {
try {
return ConfigEditPlugin.INSTANCE.getString("_UI_" + typeName + "_type");
- }
- catch(MissingResourceException mre) {
+ } catch (MissingResourceException mre) {
ConfigEditorPlugin.INSTANCE.log(mre);
}
return typeName;
@@ -554,12 +574,14 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Collection<String> getEncodings() {
if (encodings == null) {
encodings = new ArrayList<String>();
- for (StringTokenizer stringTokenizer = new StringTokenizer(ConfigEditorPlugin.INSTANCE.getString("_UI_XMLEncodingChoices")); stringTokenizer.hasMoreTokens(); ) {
+ for (StringTokenizer stringTokenizer = new StringTokenizer(
+ ConfigEditorPlugin.INSTANCE.getString("_UI_XMLEncodingChoices")); stringTokenizer.hasMoreTokens();) {
encodings.add(stringTokenizer.nextToken());
}
}
@@ -571,16 +593,18 @@
* The framework calls this to create the contents of the wizard.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
- @Override
+ @Override
public void addPages() {
// Create a page, set the title, and the initial model file name.
//
newFileCreationPage = new ConfigModelWizardNewFileCreationPage("Whatever", selection);
newFileCreationPage.setTitle(ConfigEditorPlugin.INSTANCE.getString("_UI_ConfigModelWizard_label"));
newFileCreationPage.setDescription(ConfigEditorPlugin.INSTANCE.getString("_UI_ConfigModelWizard_description"));
- newFileCreationPage.setFileName(ConfigEditorPlugin.INSTANCE.getString("_UI_ConfigEditorFilenameDefaultBase") + "." + FILE_EXTENSIONS.get(0));
+ newFileCreationPage.setFileName(ConfigEditorPlugin.INSTANCE.getString("_UI_ConfigEditorFilenameDefaultBase")
+ + "." + FILE_EXTENSIONS.get(0));
addPage(newFileCreationPage);
// Try and get the resource selection to determine a current directory for the file dialog.
@@ -592,7 +616,7 @@
if (selectedElement instanceof IResource) {
// Get the resource parent, if its a file.
//
- IResource selectedResource = (IResource)selectedElement;
+ IResource selectedResource = (IResource) selectedElement;
if (selectedResource.getType() == IResource.FILE) {
selectedResource = selectedResource.getParent();
}
@@ -606,10 +630,11 @@
// Make up a unique new name here.
//
- String defaultModelBaseFilename = ConfigEditorPlugin.INSTANCE.getString("_UI_ConfigEditorFilenameDefaultBase");
+ String defaultModelBaseFilename = ConfigEditorPlugin.INSTANCE
+ .getString("_UI_ConfigEditorFilenameDefaultBase");
String defaultModelFilenameExtension = FILE_EXTENSIONS.get(0);
String modelFilename = defaultModelBaseFilename + "." + defaultModelFilenameExtension;
- for (int i = 1; ((IContainer)selectedResource).findMember(modelFilename) != null; ++i) {
+ for (int i = 1; ((IContainer) selectedResource).findMember(modelFilename) != null; ++i) {
modelFilename = defaultModelBaseFilename + i + "." + defaultModelFilenameExtension;
}
newFileCreationPage.setFileName(modelFilename);
@@ -618,7 +643,8 @@
}
initialObjectCreationPage = new ConfigModelWizardInitialObjectCreationPage("Whatever2");
initialObjectCreationPage.setTitle(ConfigEditorPlugin.INSTANCE.getString("_UI_ConfigModelWizard_label"));
- initialObjectCreationPage.setDescription(ConfigEditorPlugin.INSTANCE.getString("_UI_Wizard_initial_object_description"));
+ initialObjectCreationPage.setDescription(ConfigEditorPlugin.INSTANCE
+ .getString("_UI_Wizard_initial_object_description"));
addPage(initialObjectCreationPage);
}
@@ -626,6 +652,7 @@
* Get the file from the page.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public IFile getModelFile() {
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf.example/src/org/eclipse/emf/emfstore/fuzzy/emf/example/FuzzyTest.java b/org.eclipse.emf.emfstore.fuzzy.emf.example/src/org/eclipse/emf/emfstore/fuzzy/emf/example/FuzzyTest.java
index d084a6b..02c58f0 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf.example/src/org/eclipse/emf/emfstore/fuzzy/emf/example/FuzzyTest.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf.example/src/org/eclipse/emf/emfstore/fuzzy/emf/example/FuzzyTest.java
@@ -23,21 +23,20 @@
* Example test for the {@link FuzzyRunner}.
*
* @author Julian Sommerfeldt
- *
+ *
*/
@RunWith(FuzzyRunner.class)
@DataProvider(EMFDataProvider.class)
public class FuzzyTest {
-
+
@Data
private EObject root;
-
+
/**
* Test to check if the {@link FuzzyRunner} is working.
*/
@Test
- public void test(){
+ public void test() {
Assert.assertNotNull(root);
}
}
-
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf.test/src/org/eclipse/emf/emfstore/fuzzy/emf/test/AllFuzzyTests.java b/org.eclipse.emf.emfstore.fuzzy.emf.test/src/org/eclipse/emf/emfstore/fuzzy/emf/test/AllFuzzyTests.java
index 4eb71b3..3a8af29 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf.test/src/org/eclipse/emf/emfstore/fuzzy/emf/test/AllFuzzyTests.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf.test/src/org/eclipse/emf/emfstore/fuzzy/emf/test/AllFuzzyTests.java
@@ -17,7 +17,7 @@
* Suite for all fuzzy tests.
*
* @author Julian Sommerfeldt
- *
+ *
*/
@RunWith(Suite.class)
@Suite.SuiteClasses({ OperationApplyTest.class, SerializationTest.class, ServerTest.class })
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf.test/src/org/eclipse/emf/emfstore/fuzzy/emf/test/BigMutationTest.java b/org.eclipse.emf.emfstore.fuzzy.emf.test/src/org/eclipse/emf/emfstore/fuzzy/emf/test/BigMutationTest.java
index cf153b4..aab969e 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf.test/src/org/eclipse/emf/emfstore/fuzzy/emf/test/BigMutationTest.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf.test/src/org/eclipse/emf/emfstore/fuzzy/emf/test/BigMutationTest.java
@@ -35,21 +35,21 @@
@Data
private EObject root;
-
+
@Util
private MutateUtil util;
-
+
/***/
@Test
- public void createModel() {
+ public void createModel() {
System.out.println(ModelMutatorUtil.getAllObjectsCount(root));
-
+
System.out.println("CHANGE");
-
+
ModelMutatorConfiguration config = new ModelMutatorConfiguration(util.getEPackages(), root, 1L);
config.setMinObjectsCount(util.getMinObjectsCount());
ModelMutator.changeModel(config);
-
- System.out.println(ModelMutatorUtil.getAllObjectsCount(root));
+
+ System.out.println(ModelMutatorUtil.getAllObjectsCount(root));
}
}
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf.test/src/org/eclipse/emf/emfstore/fuzzy/emf/test/FuzzyModelElementIdGenerator.java b/org.eclipse.emf.emfstore.fuzzy.emf.test/src/org/eclipse/emf/emfstore/fuzzy/emf/test/FuzzyModelElementIdGenerator.java
index 5515f17..7a72eb7 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf.test/src/org/eclipse/emf/emfstore/fuzzy/emf/test/FuzzyModelElementIdGenerator.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf.test/src/org/eclipse/emf/emfstore/fuzzy/emf/test/FuzzyModelElementIdGenerator.java
@@ -21,12 +21,12 @@
* new modelelement for each IdEObjectCollection starting with 0.
*
* @author Julian Sommerfeldt
- *
+ *
*/
public class FuzzyModelElementIdGenerator {
-
+
private Map<Object, Integer> collectionsToIds = new HashMap<Object, Integer>();
-
+
/**
* Generates a new {@link ModelElementId}.
*
@@ -35,7 +35,7 @@
*/
public ModelElementId generateModelElementId(Object collection) {
Integer id = collectionsToIds.get(collection);
- if(id == null){
+ if (id == null) {
id = new Integer(0);
}
ModelElementId modelElementId = ModelFactory.eINSTANCE.createModelElementId();
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf.test/src/org/eclipse/emf/emfstore/fuzzy/emf/test/MutatorTest.java b/org.eclipse.emf.emfstore.fuzzy.emf.test/src/org/eclipse/emf/emfstore/fuzzy/emf/test/MutatorTest.java
index f065e4b..8387348 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf.test/src/org/eclipse/emf/emfstore/fuzzy/emf/test/MutatorTest.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf.test/src/org/eclipse/emf/emfstore/fuzzy/emf/test/MutatorTest.java
@@ -37,85 +37,85 @@
* Test to test the {@link ModelMutator}.
*
* @author Julian Sommerfeldt
- *
+ *
*/
@RunWith(FuzzyRunner.class)
@DataProvider(EMFDataProvider.class)
public class MutatorTest {
-
+
@SuppressWarnings("unused")
@Data
private EObject obj;
-
+
@Util
private MutateUtil util;
-
+
/**
* Tests if two generated models are equal.
*/
@Test
- public void compareTwoGeneratedProjects(){
-
- Project project1 = ModelFactory.eINSTANCE.createProject();
+ public void compareTwoGeneratedProjects() {
+
+ Project project1 = ModelFactory.eINSTANCE.createProject();
Project project2 = ModelFactory.eINSTANCE.createProject();
ModelMutator.generateModel(getConfig(project1));
ModelMutator.generateModel(getConfig(project2));
-
+
ModelMutator.changeModel(getConfig(project1));
ModelMutator.changeModel(getConfig(project2));
-
+
Iterator<EObject> project1Iterator = project1.getAllModelElements().iterator();
Iterator<EObject> project2Iterator = project2.getAllModelElements().iterator();
-
+
while (project1Iterator.hasNext()) {
EObject modelElement = project1Iterator.next();
- ModelElementId modelElementId = project1.getModelElementId(modelElement);
- if(!project2.contains(modelElementId)){
- failed(project1, project2);
+ ModelElementId modelElementId = project1.getModelElementId(modelElement);
+ if (!project2.contains(modelElementId)) {
+ failed(project1, project2);
}
}
-
+
TreeIterator<EObject> allContentsProject1 = project1.eAllContents();
TreeIterator<EObject> allContentsProject2 = project2.eAllContents();
-
+
while (allContentsProject1.hasNext()) {
- if(!allContentsProject2.hasNext()){
+ if (!allContentsProject2.hasNext()) {
failed(project1, project2);
}
EObject modelElement = allContentsProject1.next();
ModelElementId modelElementId = project1.getModelElementId(modelElement);
EObject modelElement2 = allContentsProject2.next();
ModelElementId modelElementId2 = project2.getModelElementId(modelElement2);
- if(!modelElementId.equals(modelElementId2)){
+ if (!modelElementId.equals(modelElementId2)) {
failed(project1, project2);
}
}
project1Iterator = project1.getAllModelElements().iterator();
project2Iterator = project2.getAllModelElements().iterator();
-
+
while (project1Iterator.hasNext()) {
EObject modelElement = project1Iterator.next();
ModelElementId modelElementId = project1.getModelElementId(modelElement);
ModelElementId modelElementId2 = project2.getModelElementId(project2Iterator.next());
- if(!modelElementId.equals(modelElementId2)){
- failed(project1, project2);
- }
- }
+ if (!modelElementId.equals(modelElementId2)) {
+ failed(project1, project2);
+ }
+ }
}
-
- private void failed(Project project1, Project project2){
+
+ private void failed(Project project1, Project project2) {
util.saveEObject(project1, "original_project", true);
util.saveEObject(project2, "own_project", true);
Assert.assertTrue(false);
}
-
- private ModelMutatorConfiguration getConfig(Project root){
+
+ private ModelMutatorConfiguration getConfig(Project root) {
ModelMutatorConfiguration mmc = new ModelMutatorConfiguration(util.getEPackages(), root, util.getSeed());
Collection<EStructuralFeature> eStructuralFeaturesToIgnore = new HashSet<EStructuralFeature>();
eStructuralFeaturesToIgnore.add(ModelPackage.Literals.PROJECT__CUT_ELEMENTS);
mmc.seteStructuralFeaturesToIgnore(eStructuralFeaturesToIgnore);
mmc.setMinObjectsCount(util.getMinObjectsCount());
return mmc;
- }
+ }
}
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf.test/src/org/eclipse/emf/emfstore/fuzzy/emf/test/OperationApplyTest.java b/org.eclipse.emf.emfstore.fuzzy.emf.test/src/org/eclipse/emf/emfstore/fuzzy/emf/test/OperationApplyTest.java
index d44a015..6a07e92 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf.test/src/org/eclipse/emf/emfstore/fuzzy/emf/test/OperationApplyTest.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf.test/src/org/eclipse/emf/emfstore/fuzzy/emf/test/OperationApplyTest.java
@@ -25,35 +25,35 @@
* Then compares the two mutated projects.
*
* @author Julian Sommerfeldt
- *
+ *
*/
@RunWith(FuzzyRunner.class)
@DataProvider(EMFDataProvider.class)
public class OperationApplyTest extends FuzzyProjectTest {
-
+
/***/
@Test
public void applyTest() {
-
- final ProjectSpace projectSpace = getProjectSpace();
+
+ final ProjectSpace projectSpace = getProjectSpace();
final ModelMutatorConfiguration mmc = getModelMutatorConfiguration(projectSpace.getProject());
-
- new EMFStoreCommand() {
- @Override
- protected void doRun() {
- getUtil().mutate(mmc);
- }
- }.run(false);
-
- final ProjectSpace copyProjectSpace = getCopyProjectSpace();
-
+
new EMFStoreCommand() {
@Override
protected void doRun() {
- ((ProjectSpaceBase)copyProjectSpace).applyOperations(projectSpace.getOperations(), false);
+ getUtil().mutate(mmc);
}
}.run(false);
-
- compareIgnoreOrder(projectSpace.getProject(), copyProjectSpace.getProject());
- }
+
+ final ProjectSpace copyProjectSpace = getCopyProjectSpace();
+
+ new EMFStoreCommand() {
+ @Override
+ protected void doRun() {
+ ((ProjectSpaceBase) copyProjectSpace).applyOperations(projectSpace.getOperations(), false);
+ }
+ }.run(false);
+
+ compareIgnoreOrder(projectSpace.getProject(), copyProjectSpace.getProject());
+ }
}
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf.test/src/org/eclipse/emf/emfstore/fuzzy/emf/test/OperationReverseTest.java b/org.eclipse.emf.emfstore.fuzzy.emf.test/src/org/eclipse/emf/emfstore/fuzzy/emf/test/OperationReverseTest.java
index 624b27a..fb4a342 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf.test/src/org/eclipse/emf/emfstore/fuzzy/emf/test/OperationReverseTest.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf.test/src/org/eclipse/emf/emfstore/fuzzy/emf/test/OperationReverseTest.java
@@ -23,32 +23,32 @@
* Fuzzy Test for the reverse functionality of operations.
*
* @author Julian Sommerfeldt
- *
+ *
*/
@RunWith(FuzzyRunner.class)
@DataProvider(EMFDataProvider.class)
public class OperationReverseTest extends FuzzyProjectTest {
-
+
/***/
@Test
- public void reverseTest(){
- final ProjectSpaceBase projectSpace = (ProjectSpaceBase) getProjectSpace();
+ public void reverseTest() {
+ final ProjectSpaceBase projectSpace = (ProjectSpaceBase) getProjectSpace();
final ModelMutatorConfiguration mmc = getModelMutatorConfiguration(projectSpace.getProject());
-
+
new EMFStoreCommand() {
@Override
- protected void doRun() {
+ protected void doRun() {
getUtil().mutate(mmc);
}
}.run(false);
-
+
new EMFStoreCommand() {
@Override
protected void doRun() {
projectSpace.getLocalChangePackage().reverse().apply(projectSpace.getProject());
}
}.run(false);
-
- compareIgnoreOrder(getCopyProjectSpace().getProject(), projectSpace.getProject());
- }
+
+ compareIgnoreOrder(getCopyProjectSpace().getProject(), projectSpace.getProject());
+ }
}
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf.test/src/org/eclipse/emf/emfstore/fuzzy/emf/test/ProjectLoggingAdapter.java b/org.eclipse.emf.emfstore.fuzzy.emf.test/src/org/eclipse/emf/emfstore/fuzzy/emf/test/ProjectLoggingAdapter.java
index 851c781..dbca2f3 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf.test/src/org/eclipse/emf/emfstore/fuzzy/emf/test/ProjectLoggingAdapter.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf.test/src/org/eclipse/emf/emfstore/fuzzy/emf/test/ProjectLoggingAdapter.java
@@ -24,28 +24,31 @@
* Extends the {@link LoggingAdapter} to print out {@link ModelElementId}s.
*
* @author Julian Sommerfeldt
- *
+ *
*/
public class ProjectLoggingAdapter extends LoggingAdapter {
private ProjectImpl projectImpl;
-
+
/**
* @param project The project containing the elements notifying.
* @param toLogClasses The {@link EClass}es to log. If <code>null</code> every {@link EClass} is logged.
- * @param toLogReferences The {@link EReference}es of the toLogClasses to log. If <code>null</code> every {@link EReference} is logged.
+ * @param toLogReferences The {@link EReference}es of the toLogClasses to log. If <code>null</code> every
+ * {@link EReference} is logged.
* @param references Log reference changes?
* @param attributes Log attribute changes?
*/
- public ProjectLoggingAdapter(ProjectImpl project, List<EClass> toLogClasses, List<EReference> toLogReferences, boolean references, boolean attributes) {
+ public ProjectLoggingAdapter(ProjectImpl project, List<EClass> toLogClasses, List<EReference> toLogReferences,
+ boolean references, boolean attributes) {
super(toLogClasses, toLogReferences, references, attributes);
this.projectImpl = project;
}
-
+
@Override
- protected String format(Notification notification){
+ protected String format(Notification notification) {
StringBuffer result = new StringBuffer();
- result.append("Notifier: " + getModelElementId(projectImpl, notification.getNotifier()) + " " + notification.getNotifier());
+ result.append("Notifier: " + getModelElementId(projectImpl, notification.getNotifier()) + " "
+ + notification.getNotifier());
result.append("\n");
result.append("Feature: " + notification.getFeature());
result.append("\n");
@@ -53,25 +56,27 @@
result.append("\n");
result.append("EventType: " + getEventType(notification.getEventType()));
result.append("\n");
- result.append("OldValue: " + getModelElementId(projectImpl, notification.getOldValue()) + " " + notification.getOldValue());
+ result.append("OldValue: " + getModelElementId(projectImpl, notification.getOldValue()) + " "
+ + notification.getOldValue());
result.append("\n");
- result.append("NewValue: " + getModelElementId(projectImpl, notification.getNewValue()) + " " + notification.getNewValue());
+ result.append("NewValue: " + getModelElementId(projectImpl, notification.getNewValue()) + " "
+ + notification.getNewValue());
result.append("\n");
return result.toString();
}
-
- private String getModelElementId(ProjectImpl project, Object o){
- if(o == null){
+
+ private String getModelElementId(ProjectImpl project, Object o) {
+ if (o == null) {
return null;
}
-
- if(!(o instanceof EObject)){
+
+ if (!(o instanceof EObject)) {
return null;
}
-
+
EObject eObject = (EObject) o;
ModelElementId modelElementId = project.getModelElementId(eObject);
- if(modelElementId != null){
+ if (modelElementId != null) {
return modelElementId.getId();
}
ModelElementId deletedModelElementId = project.getDeletedModelElementId(eObject);
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf.test/src/org/eclipse/emf/emfstore/fuzzy/emf/test/SerializationTest.java b/org.eclipse.emf.emfstore.fuzzy.emf.test/src/org/eclipse/emf/emfstore/fuzzy/emf/test/SerializationTest.java
index 712dfff..1721cfa 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf.test/src/org/eclipse/emf/emfstore/fuzzy/emf/test/SerializationTest.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf.test/src/org/eclipse/emf/emfstore/fuzzy/emf/test/SerializationTest.java
@@ -26,44 +26,45 @@
* Class to test serialization functionality of the {@link WorkspaceManager}.
*
* @author Julian Sommerfeldt
- *
+ *
*/
@RunWith(FuzzyRunner.class)
@DataProvider(EMFDataProvider.class)
public class SerializationTest extends FuzzyProjectTest {
-
+
/**
* Load and save a {@link ProjectSpace} via {@link WorkspaceManager} and compare them.
*/
@Test
- public void loadAndSaveToResource(){
-
+ public void loadAndSaveToResource() {
+
// mutate already saved (through importing) projectSpace and save it again
ProjectSpace projectSpace = getProjectSpace();
final ModelMutatorConfiguration mmc = getModelMutatorConfiguration(projectSpace.getProject());
new EMFStoreCommand() {
@Override
- protected void doRun() {
+ protected void doRun() {
getUtil().mutate(mmc);
}
}.run(false);
-
+
projectSpace.save();
-
+
// dispose and reinit WorkspaceManager
WorkspaceManager.getInstance().dispose();
WorkspaceManager.getInstance().reinit();
-
+
// reload projectSpaces and check for valid state
EList<ProjectSpace> projectSpaces = WorkspaceManager.getInstance().getCurrentWorkspace().getProjectSpaces();
- if(projectSpaces.size() != 1){
- throw new IllegalStateException("There must be exactly one projectSpace in the workspace! Current value: " + projectSpaces.size());
+ if (projectSpaces.size() != 1) {
+ throw new IllegalStateException("There must be exactly one projectSpace in the workspace! Current value: "
+ + projectSpaces.size());
}
-
- // compare
+
+ // compare
ProjectSpace reloadedProjectSpace = projectSpaces.get(0);
- try{
- if(!ModelUtil.areEqual(reloadedProjectSpace.getProject(), projectSpace.getProject())){
+ try {
+ if (!ModelUtil.areEqual(reloadedProjectSpace.getProject(), projectSpace.getProject())) {
fail(reloadedProjectSpace.getProject(), projectSpace.getProject());
}
} finally {
@@ -71,9 +72,9 @@
setProjectSpace(reloadedProjectSpace);
}
}
-
+
@Override
- public boolean projectSpaceCopyNeeded(){
+ public boolean projectSpaceCopyNeeded() {
return false;
}
}
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf.test/src/org/eclipse/emf/emfstore/fuzzy/emf/test/ServerTest.java b/org.eclipse.emf.emfstore.fuzzy.emf.test/src/org/eclipse/emf/emfstore/fuzzy/emf/test/ServerTest.java
index 35d93f3..8b06f33 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf.test/src/org/eclipse/emf/emfstore/fuzzy/emf/test/ServerTest.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf.test/src/org/eclipse/emf/emfstore/fuzzy/emf/test/ServerTest.java
@@ -31,26 +31,26 @@
import org.junit.runner.RunWith;
/**
- * Fuzzy Server test to test share, checkout, commit and update.
+ * Fuzzy Server test to test share, checkout, commit and update.
*
* @author Julian Sommerfeldt
- *
+ *
*/
@RunWith(FuzzyRunner.class)
@DataProvider(EMFDataProvider.class)
public class ServerTest extends CoreServerTest {
-
+
@Data
private Project project;
-
+
@Util
private MutateUtil util;
-
+
/**
* Setup the needed projectspace.
*/
@Before
- public void setupProjectSpace(){
+ public void setupProjectSpace() {
CommonUtil.setTesting(true);
Configuration.setAutoSave(false);
new EMFStoreCommand() {
@@ -61,33 +61,34 @@
}.run(false);
setProject(project);
}
-
+
/**
- * @throws EmfStoreException Problems with share, checkout, commit or update.
+ * @throws EmfStoreException Problems with share, checkout, commit or update.
*/
@Test
- public void shareCheckoutCommitUpdate() throws EmfStoreException{
-
+ public void shareCheckoutCommitUpdate() throws EmfStoreException {
+
// share original project
PrimaryVersionSpec versionSpec = share(projectSpace);
-
+
// checkout project
final ProjectSpace psCheckedout = checkout(projectSpace.getProjectInfo(), versionSpec);
-
+
// compare original and checkedout project
FuzzyProjectTest.compareIgnoreOrder(projectSpace.getProject(), psCheckedout.getProject(), util);
-
+
// change & commit original project
- final ModelMutatorConfiguration mmc = FuzzyProjectTest.getModelMutatorConfiguration(projectSpace.getProject(), util);
+ final ModelMutatorConfiguration mmc = FuzzyProjectTest.getModelMutatorConfiguration(projectSpace.getProject(),
+ util);
new EMFStoreCommand() {
@Override
- protected void doRun() {
+ protected void doRun() {
util.mutate(mmc);
}
}.run(false);
-
+
commit(projectSpace);
-
+
// update checkedout project
new EMFStoreCommand() {
@Override
@@ -99,8 +100,8 @@
}
}
}.run(false);
-
+
// compare original and updated project
- FuzzyProjectTest.compareIgnoreOrder(projectSpace.getProject(), psCheckedout.getProject(), util);
- }
+ FuzzyProjectTest.compareIgnoreOrder(projectSpace.getProject(), psCheckedout.getProject(), util);
+ }
}
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/EMFDataProvider.java b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/EMFDataProvider.java
index 2ae71db..6d40e32 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/EMFDataProvider.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/EMFDataProvider.java
@@ -46,92 +46,93 @@
import org.junit.runners.model.TestClass;
/**
- * This implementation of a {@link FuzzyDataProvider} provides generated models using the functionality of {@link ModelMutator}.
- * <br><br>
- * The run of a test is based on a {@link TestConfig}, defining model etc.
- * <br><br>
+ * This implementation of a {@link FuzzyDataProvider} provides generated models using the functionality of
+ * {@link ModelMutator}. <br>
+ * <br>
+ * The run of a test is based on a {@link TestConfig}, defining model etc. <br>
+ * <br>
* During the run it records {@link TestResult}s to create a {@link TestRun} for reporting purpose.
- *
+ *
* @author Julian Sommerfeldt
- *
+ *
*/
public class EMFDataProvider implements FuzzyDataProvider<EObject> {
-
+
private Random random;
-
+
private int count;
-
+
private int seedCount;
-
+
private TestClass testClass;
private TestRun testRun;
-
+
private TestConfig config;
-
+
private boolean filterTests;
-
+
private String configFile;
private long nextSeed;
private EClass rootEClass;
-
+
private ModelMutatorConfiguration modelMutatorConfig;
private Resource diffResource;
-
+
/**
* Prefix of the properties concerning the {@link EMFDataProvider}.
*/
public static final String PROP_EMFDATAPROVIDER = ".emfdataprovider";
-
+
/**
- * Property specifying the path to the config file for the {@link EMFDataProvider}.
+ * Property specifying the path to the config file for the {@link EMFDataProvider}.
*/
public static final String PROP_CONFIGS_FILE = ".configsFile";
-
+
/**
* Options constant for the exception log set for the mutator.
* Has to be filled with a <code>Set</code> of <code>RuntimeException</code>.
*/
public static final String MUTATOR_EXC_LOG = "mutatorExcLog";
-
+
/**
* Options constant for the {@link EditingDomain} for the {@link ModelMutator}.
*/
public static final String MUTATOR_EDITINGDOMAIN = "mutatorEditingDomain";
-
+
/**
* Init the {@link EMFDataProvider}.
*/
- public void init(){
+ public void init() {
// fill properties like the config file
fillProperties();
-
+
// load testconfig from file
Resource loadResource = FuzzyUtil.createResource(configFile);
- try {
+ try {
loadResource.load(null);
} catch (IOException e) {
throw new RuntimeException("Could not load " + configFile, e);
}
-
+
// get the testconfig fitting to the current testclass
config = FuzzyUtil.getTestConfig(loadResource, testClass);
-
+
// add the config to the configs file
addToConfigFile();
-
+
// init variables
random = new Random(config.getSeed());
count = config.getCount();
seedCount = 0;
-
+
// read variables out of mutatorConfig and write into modelmutatorConfig
MutatorConfig mutatorConfig = config.getMutatorConfig();
rootEClass = mutatorConfig.getRootEClass();
- if(rootEClass == null){
+ if (rootEClass == null) {
rootEClass = ConfigPackage.Literals.ROOT;
}
modelMutatorConfig = new ModelMutatorConfiguration();
@@ -142,78 +143,80 @@
modelMutatorConfig.setIgnoreAndLog(mutatorConfig.isIgnoreAndLog());
modelMutatorConfig.setUseEcoreUtilDelete(mutatorConfig.isUseEcoreUtilDelete());
modelMutatorConfig.setMaxDeleteCount(mutatorConfig.getMaxDeleteCount());
- modelMutatorConfig.setModelPackages(mutatorConfig.getEPackages());
-
+ modelMutatorConfig.setModelPackages(mutatorConfig.getEPackages());
+
// create new TestRun with config
testRun = ConfigFactory.eINSTANCE.createTestRun();
testRun.setConfig(config);
testRun.setTime(new Date());
}
-
+
/**
* Add the config to the file containing all configs.
*/
private void addToConfigFile() {
Resource resource = FuzzyUtil.createResource(FuzzyUtil.ROOT_FOLDER + FuzzyUtil.TEST_CONFIG_FILE);
try {
- if(FuzzyUtil.resourceExists(resource)){
+ if (FuzzyUtil.resourceExists(resource)) {
resource.load(null);
}
- if(!FuzzyUtil.containsConfig(resource, config)){
+ if (!FuzzyUtil.containsConfig(resource, config)) {
resource.getContents().add(config);
resource.save(null);
}
} catch (IOException e) {
throw new RuntimeException("Could not save config!", e);
- }
+ }
}
-
+
/**
* See {@link FuzzyDataProvider}.
+ *
* @param count Which run is it?
* @return The new {@link EObject}.
*/
- public EObject get(int count) {
+ public EObject get(int count) {
seedCount++;
-
+
// adjust the seed
- fitSeed(count);
-
- // generate the model
- nextSeed = random.nextLong();
-
+ fitSeed(count);
+
+ // generate the model
+ nextSeed = random.nextLong();
+
// get the root eclass for the generation
EObject root = EcoreUtil.create(rootEClass);
-
+
// generate the model
modelMutatorConfig.reset();
modelMutatorConfig.setRootEObject(root);
modelMutatorConfig.setSeed(nextSeed);
ModelMutator.generateModel(modelMutatorConfig);
-
- return root;
+
+ return root;
}
-
+
private void fitSeed(int count) {
- if(count == seedCount){
+ if (count == seedCount) {
return;
- } else if(count < seedCount){
+ } else if (count < seedCount) {
random = new Random(config.getSeed());
seedCount = 0;
- }
-
- while(seedCount < count){
+ }
+
+ while (seedCount < count) {
random.nextLong();
seedCount++;
}
}
-
+
/**
* Call finish as last action of the {@link EMFDataProvider}. Used for saving the results.
*/
- public void finish(){
+ public void finish() {
// create run resource
- Resource runResource = FuzzyUtil.createResource(FuzzyUtil.ROOT_FOLDER + FuzzyUtil.RUN_FOLDER + config.getId() + FuzzyUtil.FILE_SUFFIX);
+ Resource runResource = FuzzyUtil.createResource(FuzzyUtil.ROOT_FOLDER + FuzzyUtil.RUN_FOLDER + config.getId()
+ + FuzzyUtil.FILE_SUFFIX);
runResource.getContents().add(testRun);
try {
@@ -222,7 +225,7 @@
throw new RuntimeException("Could not save the run result after running!", e);
}
}
-
+
/**
* @return How much objects will be created?
*/
@@ -236,25 +239,24 @@
public void setTestClass(TestClass testClass) {
this.testClass = testClass;
}
-
+
/**
* @return The {@link RunListener} of this {@link EMFDataProvider}.
*/
public List<RunListener> getListener() {
- return Arrays.asList(
- new RunListener[]{new EMFRunListener(this, testRun)});
+ return Arrays.asList(new RunListener[] { new EMFRunListener(this, testRun) });
}
-
+
/**
* @return all {@link Test}s to run or null if all tests should run.
*/
public List<Test> getTestsToRun() {
- if(!filterTests){
+ if (!filterTests) {
return null;
- }
-
+ }
+
// first time load diffResource
- if(diffResource == null){
+ if (diffResource == null) {
try {
diffResource = HudsonTestRunProvider.getDiffResource();
diffResource.load(null);
@@ -264,69 +266,69 @@
throw new RuntimeException("Could not load diff file!", e);
}
}
-
+
// filter for correct config
EList<EObject> contents = diffResource.getContents();
List<Test> tests = new ArrayList<Test>();
- for(EObject obj : contents){
- if(obj instanceof DiffReport){
- for(TestDiff diff : ((DiffReport)obj).getDiffs()){
- if(diff.getConfig().getId().equals(config.getId())){
+ for (EObject obj : contents) {
+ if (obj instanceof DiffReport) {
+ for (TestDiff diff : ((DiffReport) obj).getDiffs()) {
+ if (diff.getConfig().getId().equals(config.getId())) {
TestResult result = FuzzyUtil.getValidTestResult(diff);
tests.add(new Test(result.getTestName(), result.getSeedCount()));
}
}
}
}
-
+
return tests;
}
-
+
/**
* @return The current seed used to create the model
*/
- public int getCurrentSeedCount(){
+ public int getCurrentSeedCount() {
return seedCount;
}
-
+
/**
* @return The current seed for the {@link ModelMutator}.
*/
- public long getSeed(){
+ public long getSeed() {
return nextSeed;
}
-
+
/**
* @return The {@link EPackage} of the model to generate/mutate.
*/
- public Collection<EPackage> getEPackages(){
+ public Collection<EPackage> getEPackages() {
return modelMutatorConfig.getModelPackages();
}
-
- private void fillProperties(){
+
+ private void fillProperties() {
String filterTests = System.getProperty("filterTests");
- if(filterTests == null){
+ if (filterTests == null) {
this.filterTests = false;
} else {
this.filterTests = Boolean.parseBoolean(filterTests);
}
- configFile = FuzzyUtil.getProperty(PROP_EMFDATAPROVIDER + PROP_CONFIGS_FILE, FuzzyUtil.TEST_CONFIG_PATH);
+ configFile = FuzzyUtil.getProperty(PROP_EMFDATAPROVIDER + PROP_CONFIGS_FILE, FuzzyUtil.TEST_CONFIG_PATH);
}
-
+
/**
* @return The {@link MutateUtil} for this {@link EMFDataProvider}.
*/
public Util getUtil() {
return new MutateUtil(this);
}
-
+
/**
* @return The config specifying this run of the {@link EMFDataProvider}.
*/
- public TestConfig getConfig(){
+ public TestConfig getConfig() {
return config;
}
-
+
/**
* Set the options for the {@link EMFDataProvider}.
*
@@ -336,21 +338,21 @@
public void setOptions(Map<String, Object> options) {
// exc log
Object o = options.get(MUTATOR_EXC_LOG);
- if(o != null && o instanceof Set<?>){
+ if (o != null && o instanceof Set<?>) {
this.modelMutatorConfig.setExceptionLog((Set<RuntimeException>) o);
- }
-
+ }
+
// model mutator editing domain
o = options.get(MUTATOR_EDITINGDOMAIN);
- if(o != null && o instanceof EditingDomain){
+ if (o != null && o instanceof EditingDomain) {
this.modelMutatorConfig.setEditingDomain((EditingDomain) o);
- }
+ }
}
-
+
/**
* @return The currently active {@link ModelMutatorConfiguration}.
*/
- public ModelMutatorConfiguration getModelMutatorConfiguration() {
+ public ModelMutatorConfiguration getModelMutatorConfiguration() {
return modelMutatorConfig;
}
}
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/EMFRunListener.java b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/EMFRunListener.java
index 12fda3d..821def3 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/EMFRunListener.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/EMFRunListener.java
@@ -29,72 +29,72 @@
* {@link RunListener} used to create the report of a run of the {@link EMFDataProvider}.
*
* @author Julian Sommerfeldt
- *
+ *
*/
public class EMFRunListener extends RunListener {
-
+
private TestRun testRun;
-
+
private EMFDataProvider dataProvider;
-
+
private TestResult testResult;
-
+
private long testStartTime;
private String className;
-
+
/**
* @param dataProvider The {@link EMFDataProvider} containing the infos.
* @param testRun The {@link TestRun} where to save the results.
*/
- public EMFRunListener(EMFDataProvider dataProvider, TestRun testRun){
+ public EMFRunListener(EMFDataProvider dataProvider, TestRun testRun) {
this.dataProvider = dataProvider;
this.testRun = testRun;
className = dataProvider.getConfig().getTestClass().getName();
}
-
+
@Override
public void testRunFinished(Result result) {
dataProvider.finish();
- }
-
+ }
+
@Override
public void testStarted(Description description) {
- if(filter(description)){
+ if (filter(description)) {
return;
}
- testResult = ConfigFactory.eINSTANCE.createTestResult();
- testResult.setTestName(description.getMethodName().split(FuzzyRunner.NAME_SEPARATOR)[0]);
+ testResult = ConfigFactory.eINSTANCE.createTestResult();
+ testResult.setTestName(description.getMethodName().split(FuzzyRunner.NAME_SEPARATOR)[0]);
testStartTime = System.currentTimeMillis();
}
- @Override
+ @Override
public void testFinished(Description description) {
- if(filter(description)){
+ if (filter(description)) {
return;
}
testResult.setExecutionTime(System.currentTimeMillis() - testStartTime);
testResult.setSeedCount(dataProvider.getCurrentSeedCount());
- testRun.getResults().add(testResult);
+ testRun.getResults().add(testResult);
}
-
+
@Override
public void testFailure(Failure failure) {
- if(filter(failure.getDescription())){
+ if (filter(failure.getDescription())) {
return;
}
Throwable throwable = failure.getException();
StringWriter sw = new StringWriter();
- PrintWriter pw = new PrintWriter(sw);
- throwable.printStackTrace(new PrintWriter(sw));
-
- // TODO filter stack trace ?
- if(throwable instanceof AssertionFailedError){
+ PrintWriter pw = new PrintWriter(sw);
+ throwable.printStackTrace(new PrintWriter(sw));
+
+ // TODO filter stack trace ?
+ if (throwable instanceof AssertionFailedError) {
testResult.setFailure(sw.toString());
} else {
testResult.setError(sw.toString());
}
-
+
try {
sw.close();
} catch (IOException e) {
@@ -102,9 +102,8 @@
}
pw.close();
}
-
- private boolean filter(Description description){
+
+ private boolean filter(Description description) {
return !description.getClassName().equals(className);
}
}
-
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/FuzzyUtil.java b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/FuzzyUtil.java
index 0bfb995..4874a49 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/FuzzyUtil.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/FuzzyUtil.java
@@ -29,63 +29,64 @@
* Utility class for different methods used in {@link EMFDataProvider} context.
*
* @author Julian Sommerfeldt
- *
+ *
*/
public final class FuzzyUtil {
-
+
// TODO make folders etc configurable
/**
- * The main folder containing all files.
+ * The main folder containing all files.
*/
public static final String FUZZY_FOLDER = "fuzzy/";
-
+
/**
* The folder where to put the artifacts.
*/
public static final String ROOT_FOLDER = "../" + FUZZY_FOLDER;
-
+
/**
* The folder where to store the {@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestRun}s.
*/
public static final String RUN_FOLDER = "testruns/";
-
+
/**
* The file suffix for the files.
*/
public static final String FILE_SUFFIX = ".xml";
-
+
/**
* The file containing the {@link TestConfig}s.
*/
public static final String TEST_CONFIG_FILE = "fuzzyConfig.fuzzy";
-
+
/**
* The path to the TEST_CONFIG_FILE.
*/
public static final String TEST_CONFIG_PATH = FUZZY_FOLDER + TEST_CONFIG_FILE;
-
+
/**
* The path to the file containing the {@link TestDiff}.
*/
public static final String DIFF_FILE = ROOT_FOLDER + "diff" + FILE_SUFFIX;
-
+
/**
- * The path to the properties file.
+ * The path to the properties file.
*/
public static final String PROPERTIES_FILE = FUZZY_FOLDER + "fuzzy.properties";
-
+
/**
* The prefix for all fuzzy properties in the properties file.
*/
public static final String PROP_PRE = "fuzzy";
-
- private static final AdapterFactoryEditingDomain EDITING_DOMAIN = new AdapterFactoryEditingDomain(new ComposedAdapterFactory(
- ComposedAdapterFactory.Descriptor.Registry.INSTANCE), new BasicCommandStack());
+
+ private static final AdapterFactoryEditingDomain EDITING_DOMAIN = new AdapterFactoryEditingDomain(
+ new ComposedAdapterFactory(ComposedAdapterFactory.Descriptor.Registry.INSTANCE), new BasicCommandStack());
private static Properties properties;
-
- private FuzzyUtil(){}
-
+
+ private FuzzyUtil() {
+ }
+
/**
* Searches in the resource for a {@link TestConfig} fitting to the given {@link TestClass}.
*
@@ -93,22 +94,22 @@
* @param testClass The TestClass to which the {@link TestConfig} should fit.
* @return The {@link TestConfig} fitting to the {@link TestClass}.
*/
- public static TestConfig getTestConfig(Resource resource, TestClass testClass){
+ public static TestConfig getTestConfig(Resource resource, TestClass testClass) {
// TODO add a standard TestConfig? e.g. where clazz = null / or testconfig for complete packages
- for(EObject object : resource.getContents()){
- if(object instanceof TestConfig){
+ for (EObject object : resource.getContents()) {
+ if (object instanceof TestConfig) {
TestConfig config = (TestConfig) object;
Class<?> clazz = config.getTestClass();
- if(clazz.getName().equals(testClass.getJavaClass().getName())){
+ if (clazz.getName().equals(testClass.getJavaClass().getName())) {
return config;
}
}
}
-
- throw new IllegalArgumentException("No fitting testconfig for " +
- testClass.getName() + " in " + resource.getURI() + " found.");
+
+ throw new IllegalArgumentException("No fitting testconfig for " + testClass.getName() + " in "
+ + resource.getURI() + " found.");
}
-
+
/**
* Checks if a resource contains a {@link TestConfig}.
*
@@ -116,85 +117,84 @@
* @param config The {@link TestConfig} to check.
* @return <code>true</code> if the resource contains the {@link TestConfig}, else <code>false</code>.
*/
- public static boolean containsConfig(Resource resource, TestConfig config){
- for(EObject obj : resource.getContents()){
+ public static boolean containsConfig(Resource resource, TestConfig config) {
+ for (EObject obj : resource.getContents()) {
if (obj instanceof TestConfig) {
TestConfig c = (TestConfig) obj;
- if(c.getId().equals(config.getId())){
+ if (c.getId().equals(config.getId())) {
return true;
}
}
}
return false;
}
-
+
/**
* Checks if the resource exists.
*
* @param resource The {@link Resource} to check.
* @return <code>true</code> if the resource exists, <code>false</code> otherwise.
*/
- public static boolean resourceExists(Resource resource){
+ public static boolean resourceExists(Resource resource) {
return resource.getResourceSet().getURIConverter().exists(resource.getURI(), null);
}
-
+
/**
* Create a new {@link Resource}.
*
* @param fileNameURI The uri of the resource.
* @return The newly created {@link Resource}.
*/
- public static Resource createResource(String fileNameURI){
+ public static Resource createResource(String fileNameURI) {
return EDITING_DOMAIN.createResource(fileNameURI);
}
-
+
/**
* Get a valid {@link TestResult} out of a {@link TestDiff}. Valid means non null.
*
* @param diff The {@link TestDiff} containing the {@link TestResult}.
* @return The valid {@link TestResult} of the {@link TestDiff}.
*/
- public static TestResult getValidTestResult(TestDiff diff){
+ public static TestResult getValidTestResult(TestDiff diff) {
TestResult result = diff.getOldResult();
- if(result != null){
+ if (result != null) {
return result;
}
result = diff.getNewResult();
- if(result != null){
+ if (result != null) {
return result;
}
throw new RuntimeException("Configuration of TestDiff is wrong! (Does not contain any TestResult)");
}
-
-
+
/**
* Get a property out of the properties file.
*
* @param key The key of the property.
- * @param defaultValue The value if the properties do not contain the key.
+ * @param defaultValue The value if the properties do not contain the key.
* @return The value if the properties contain the key or the defaultValue if not.
*/
- public static String getProperty(String key, String defaultValue){
+ public static String getProperty(String key, String defaultValue) {
initProperties();
return properties.getProperty(PROP_PRE + key, defaultValue);
}
-
- private static void initProperties(){
- if(properties != null){
+
+ private static void initProperties() {
+ if (properties != null) {
return;
}
-
+
File file = new File(PROPERTIES_FILE);
properties = new Properties();
-
- if(file.exists()){
+
+ if (file.exists()) {
try {
- FileInputStream fs = new FileInputStream(file);
- properties.load(fs);
+ FileInputStream fs = new FileInputStream(file);
+ properties.load(fs);
fs.close();
} catch (IOException e) {
throw new RuntimeException("Could not load properties from " + file.getAbsolutePath(), e);
}
}
- }
+ }
}
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/MutateUtil.java b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/MutateUtil.java
index ae90198..0e2bf33 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/MutateUtil.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/MutateUtil.java
@@ -30,12 +30,12 @@
* A {@link Util} class for tests using the {@link EMFDataProvider}.
*
* @author Julian Sommerfeldt
- *
+ *
*/
public class MutateUtil implements Util {
-
+
private EMFDataProvider dataProvider;
-
+
/**
* For internal use.
*
@@ -44,67 +44,68 @@
public MutateUtil(EMFDataProvider dataProvider) {
this.dataProvider = dataProvider;
}
-
+
/**
* @return The {@link EPackage} of the {@link EMFDataProvider}.
*/
- public Collection<EPackage> getEPackages(){
+ public Collection<EPackage> getEPackages() {
return dataProvider.getEPackages();
- }
-
+ }
+
/**
- * @return The minimum objects count of the current {@link ModelMutatorConfiguration} of the {@link EMFDataProvider}.
+ * @return The minimum objects count of the current {@link ModelMutatorConfiguration} of the {@link EMFDataProvider}
+ * .
*/
- public int getMinObjectsCount(){
+ public int getMinObjectsCount() {
return dataProvider.getModelMutatorConfiguration().getMinObjectsCount();
}
-
+
/**
* @return The seed of the {@link EMFDataProvider}.
*/
- public long getSeed(){
+ public long getSeed() {
return dataProvider.getSeed();
}
-
+
/**
* @return The current seed (run) of the {@link EMFDataProvider}.
*/
- public int getSeedCount(){
+ public int getSeedCount() {
return dataProvider.getCurrentSeedCount();
}
-
+
/**
* @return The EClasses to ignore in the current {@link ModelMutatorConfiguration}.
*/
- public Collection<EClass> getEClassesToIgnore(){
+ public Collection<EClass> getEClassesToIgnore() {
return dataProvider.getModelMutatorConfiguration().geteClassesToIgnore();
}
-
+
/**
* @return The {@link EStructuralFeature}s to ignore in the current {@link ModelMutatorConfiguration}.
*/
- public Collection<EStructuralFeature> getEStructuralFeaturesToIgnore(){
+ public Collection<EStructuralFeature> getEStructuralFeaturesToIgnore() {
return dataProvider.getModelMutatorConfiguration().geteStructuralFeaturesToIgnore();
}
-
+
/**
* Mutate with a {@link ModelMutatorConfiguration}.
*
* @param mmc The {@link ModelMutatorConfiguration} to use for mutation.
*/
- public void mutate(final ModelMutatorConfiguration mmc){
- ModelMutator.changeModel(mmc);
+ public void mutate(final ModelMutatorConfiguration mmc) {
+ ModelMutator.changeModel(mmc);
}
-
+
/**
* @see #saveEObject(EObject, String)
*
* @param obj The {@link EObject} to save.
*/
- public void saveEObject(EObject obj){
+ public void saveEObject(EObject obj) {
saveEObject(obj, null, true);
}
-
+
/**
* Save an {@link EObject} in the folder: artifacts/runs/configID.
*
@@ -113,16 +114,16 @@
* The file name is always: COUNT_SUFFIX.xml so e.g. 3_testFile.xml
*
* @param obj The EObject to save.
- * @param suffix The suffix of the file: e.g. testFile. <code>null</code> permitted.
+ * @param suffix The suffix of the file: e.g. testFile. <code>null</code> permitted.
* @param discardDanglingHREF Should the save ignore dangling hrefs?
*/
- public void saveEObject(EObject obj, String suffix, boolean discardDanglingHREF){
+ public void saveEObject(EObject obj, String suffix, boolean discardDanglingHREF) {
Resource resource = FuzzyUtil.createResource(getRunResourcePath(suffix));
resource.getContents().add(obj);
try {
Map<Object, Object> options = new HashMap<Object, Object>();
- if(discardDanglingHREF){
+ if (discardDanglingHREF) {
options.put(XMLResource.OPTION_PROCESS_DANGLING_HREF, XMLResource.OPTION_PROCESS_DANGLING_HREF_DISCARD);
}
resource.save(options);
@@ -130,23 +131,23 @@
throw new RuntimeException("Could not save the eobject: " + obj, e);
}
}
-
+
/**
* @param suffix The suffix for the file: e.g. testFile. <code>null</code> permitted.
* @return A file path to the current run folder.
*/
- public String getRunResourcePath(String suffix){
+ public String getRunResourcePath(String suffix) {
String toAdd = (suffix == null || "".equals(suffix)) ? "" : "_" + suffix;
- return FuzzyUtil.ROOT_FOLDER + FuzzyUtil.RUN_FOLDER + dataProvider.getConfig().getId() + "/" +
- dataProvider.getCurrentSeedCount() + toAdd + FuzzyUtil.FILE_SUFFIX;
+ return FuzzyUtil.ROOT_FOLDER + FuzzyUtil.RUN_FOLDER + dataProvider.getConfig().getId() + "/"
+ + dataProvider.getCurrentSeedCount() + toAdd + FuzzyUtil.FILE_SUFFIX;
}
-
+
/**
*
* @param suffix The suffix for the file: e.g. testFile. <code>null</code> permitted.
* @return A file {@link URI} to the current run folder.
*/
- public URI getRunResourceURI(String suffix){
+ public URI getRunResourceURI(String suffix) {
return URI.createFileURI(getRunResourcePath(suffix));
}
}
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/ConfigFactory.java b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/ConfigFactory.java
index c9bc9ab..563c495 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/ConfigFactory.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/ConfigFactory.java
@@ -17,6 +17,7 @@
* The <b>Factory</b> for the model.
* It provides a create method for each non-abstract class of the model.
* <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.ConfigPackage
* @generated
*/
@@ -25,6 +26,7 @@
* The singleton instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
ConfigFactory eINSTANCE = org.eclipse.emf.emfstore.fuzzy.emf.config.impl.ConfigFactoryImpl.init();
@@ -33,6 +35,7 @@
* Returns a new object of class '<em>Test Config</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return a new object of class '<em>Test Config</em>'.
* @generated
*/
@@ -42,6 +45,7 @@
* Returns a new object of class '<em>Test Run</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return a new object of class '<em>Test Run</em>'.
* @generated
*/
@@ -51,6 +55,7 @@
* Returns a new object of class '<em>Test Result</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return a new object of class '<em>Test Result</em>'.
* @generated
*/
@@ -60,6 +65,7 @@
* Returns a new object of class '<em>Test Diff</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return a new object of class '<em>Test Diff</em>'.
* @generated
*/
@@ -69,6 +75,7 @@
* Returns a new object of class '<em>Diff Report</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return a new object of class '<em>Diff Report</em>'.
* @generated
*/
@@ -78,6 +85,7 @@
* Returns a new object of class '<em>Root</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return a new object of class '<em>Root</em>'.
* @generated
*/
@@ -87,6 +95,7 @@
* Returns a new object of class '<em>Mutator Config</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return a new object of class '<em>Mutator Config</em>'.
* @generated
*/
@@ -96,9 +105,10 @@
* Returns the package supported by this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the package supported by this factory.
* @generated
*/
ConfigPackage getConfigPackage();
-} //ConfigFactory
\ No newline at end of file
+} // ConfigFactory
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/ConfigPackage.java b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/ConfigPackage.java
index d8ab666..06fa0ce 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/ConfigPackage.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/ConfigPackage.java
@@ -20,12 +20,13 @@
* The <b>Package</b> for the model.
* It contains accessors for the meta objects to represent
* <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
* </ul>
* <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.ConfigFactory
* @model kind="package"
* @generated
@@ -35,6 +36,7 @@
* The package name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
String eNAME = "config";
@@ -43,6 +45,7 @@
* The package namespace URI.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
String eNS_URI = "http://org/eclipse/emf/emfstore/fuzzy/emf/config";
@@ -51,6 +54,7 @@
* The package namespace name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
String eNS_PREFIX = "org.eclipse.emf.emfstore.fuzzy.emf.config";
@@ -59,14 +63,17 @@
* The singleton instance of the package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
ConfigPackage eINSTANCE = org.eclipse.emf.emfstore.fuzzy.emf.config.impl.ConfigPackageImpl.init();
/**
- * The meta object id for the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestConfigImpl <em>Test Config</em>}' class.
+ * The meta object id for the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestConfigImpl
+ * <em>Test Config</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestConfigImpl
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.impl.ConfigPackageImpl#getTestConfig()
* @generated
@@ -77,6 +84,7 @@
* The feature id for the '<em><b>Seed</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -86,6 +94,7 @@
* The feature id for the '<em><b>Count</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -95,6 +104,7 @@
* The feature id for the '<em><b>Test Class</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -104,6 +114,7 @@
* The feature id for the '<em><b>Id</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -113,6 +124,7 @@
* The feature id for the '<em><b>Mutator Config</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -122,15 +134,18 @@
* The number of structural features of the '<em>Test Config</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
int TEST_CONFIG_FEATURE_COUNT = 5;
/**
- * The meta object id for the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestRunImpl <em>Test Run</em>}' class.
+ * The meta object id for the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestRunImpl <em>Test Run</em>}'
+ * class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestRunImpl
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.impl.ConfigPackageImpl#getTestRun()
* @generated
@@ -141,6 +156,7 @@
* The feature id for the '<em><b>Config</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -150,6 +166,7 @@
* The feature id for the '<em><b>Time</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -159,6 +176,7 @@
* The feature id for the '<em><b>Results</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -168,15 +186,18 @@
* The number of structural features of the '<em>Test Run</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
int TEST_RUN_FEATURE_COUNT = 3;
/**
- * The meta object id for the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestResultImpl <em>Test Result</em>}' class.
+ * The meta object id for the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestResultImpl
+ * <em>Test Result</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestResultImpl
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.impl.ConfigPackageImpl#getTestResult()
* @generated
@@ -187,6 +208,7 @@
* The feature id for the '<em><b>Seed Count</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -196,6 +218,7 @@
* The feature id for the '<em><b>Test Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -205,6 +228,7 @@
* The feature id for the '<em><b>Error</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -214,6 +238,7 @@
* The feature id for the '<em><b>Failure</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -223,6 +248,7 @@
* The feature id for the '<em><b>Execution Time</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -232,15 +258,18 @@
* The number of structural features of the '<em>Test Result</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
int TEST_RESULT_FEATURE_COUNT = 5;
/**
- * The meta object id for the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestDiffImpl <em>Test Diff</em>}' class.
+ * The meta object id for the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestDiffImpl
+ * <em>Test Diff</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestDiffImpl
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.impl.ConfigPackageImpl#getTestDiff()
* @generated
@@ -251,6 +280,7 @@
* The feature id for the '<em><b>Last Update</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -260,6 +290,7 @@
* The feature id for the '<em><b>Config</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -269,6 +300,7 @@
* The feature id for the '<em><b>Old Result</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -278,6 +310,7 @@
* The feature id for the '<em><b>New Result</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -287,15 +320,18 @@
* The number of structural features of the '<em>Test Diff</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
int TEST_DIFF_FEATURE_COUNT = 4;
/**
- * The meta object id for the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.DiffReportImpl <em>Diff Report</em>}' class.
+ * The meta object id for the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.DiffReportImpl
+ * <em>Diff Report</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.impl.DiffReportImpl
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.impl.ConfigPackageImpl#getDiffReport()
* @generated
@@ -306,6 +342,7 @@
* The feature id for the '<em><b>Diffs</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -315,6 +352,7 @@
* The number of structural features of the '<em>Diff Report</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -324,6 +362,7 @@
* The meta object id for the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.RootImpl <em>Root</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.impl.RootImpl
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.impl.ConfigPackageImpl#getRoot()
* @generated
@@ -334,6 +373,7 @@
* The feature id for the '<em><b>Elements</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -343,15 +383,18 @@
* The number of structural features of the '<em>Root</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
int ROOT_FEATURE_COUNT = 1;
/**
- * The meta object id for the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.MutatorConfigImpl <em>Mutator Config</em>}' class.
+ * The meta object id for the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.MutatorConfigImpl
+ * <em>Mutator Config</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.impl.MutatorConfigImpl
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.impl.ConfigPackageImpl#getMutatorConfig()
* @generated
@@ -362,6 +405,7 @@
* The feature id for the '<em><b>Root EClass</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -371,6 +415,7 @@
* The feature id for the '<em><b>Min Objects Count</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -380,6 +425,7 @@
* The feature id for the '<em><b>Ignore And Log</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -389,6 +435,7 @@
* The feature id for the '<em><b>Do Not Generate Root</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -398,6 +445,7 @@
* The feature id for the '<em><b>Use Ecore Util Delete</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -407,6 +455,7 @@
* The feature id for the '<em><b>EClasses To Ignore</b></em>' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -416,6 +465,7 @@
* The feature id for the '<em><b>EStructural Features To Ignore</b></em>' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -425,6 +475,7 @@
* The feature id for the '<em><b>EPackages</b></em>' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -434,6 +485,7 @@
* The feature id for the '<em><b>Max Delete Count</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -443,16 +495,18 @@
* The number of structural features of the '<em>Mutator Config</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
int MUTATOR_CONFIG_FEATURE_COUNT = 9;
-
/**
- * Returns the meta object for class '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig <em>Test Config</em>}'.
+ * Returns the meta object for class '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig
+ * <em>Test Config</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for class '<em>Test Config</em>'.
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig
* @generated
@@ -460,9 +514,11 @@
EClass getTestConfig();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig#getSeed <em>Seed</em>}'.
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig#getSeed
+ * <em>Seed</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the attribute '<em>Seed</em>'.
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig#getSeed()
* @see #getTestConfig()
@@ -471,9 +527,11 @@
EAttribute getTestConfig_Seed();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig#getCount <em>Count</em>}'.
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig#getCount
+ * <em>Count</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the attribute '<em>Count</em>'.
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig#getCount()
* @see #getTestConfig()
@@ -482,9 +540,11 @@
EAttribute getTestConfig_Count();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig#getTestClass <em>Test Class</em>}'.
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig#getTestClass <em>Test Class</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the attribute '<em>Test Class</em>'.
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig#getTestClass()
* @see #getTestConfig()
@@ -493,9 +553,11 @@
EAttribute getTestConfig_TestClass();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig#getId <em>Id</em>}'.
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig#getId
+ * <em>Id</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the attribute '<em>Id</em>'.
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig#getId()
* @see #getTestConfig()
@@ -504,9 +566,11 @@
EAttribute getTestConfig_Id();
/**
- * Returns the meta object for the containment reference '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig#getMutatorConfig <em>Mutator Config</em>}'.
+ * Returns the meta object for the containment reference '
+ * {@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig#getMutatorConfig <em>Mutator Config</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the containment reference '<em>Mutator Config</em>'.
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig#getMutatorConfig()
* @see #getTestConfig()
@@ -518,6 +582,7 @@
* Returns the meta object for class '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestRun <em>Test Run</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for class '<em>Test Run</em>'.
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.TestRun
* @generated
@@ -525,9 +590,11 @@
EClass getTestRun();
/**
- * Returns the meta object for the containment reference '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestRun#getConfig <em>Config</em>}'.
+ * Returns the meta object for the containment reference '
+ * {@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestRun#getConfig <em>Config</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the containment reference '<em>Config</em>'.
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.TestRun#getConfig()
* @see #getTestRun()
@@ -536,9 +603,11 @@
EReference getTestRun_Config();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestRun#getTime <em>Time</em>}'.
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestRun#getTime
+ * <em>Time</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the attribute '<em>Time</em>'.
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.TestRun#getTime()
* @see #getTestRun()
@@ -547,9 +616,11 @@
EAttribute getTestRun_Time();
/**
- * Returns the meta object for the containment reference list '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestRun#getResults <em>Results</em>}'.
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestRun#getResults <em>Results</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the containment reference list '<em>Results</em>'.
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.TestRun#getResults()
* @see #getTestRun()
@@ -558,9 +629,11 @@
EReference getTestRun_Results();
/**
- * Returns the meta object for class '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult <em>Test Result</em>}'.
+ * Returns the meta object for class '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult
+ * <em>Test Result</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for class '<em>Test Result</em>'.
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult
* @generated
@@ -568,9 +641,11 @@
EClass getTestResult();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult#getSeedCount <em>Seed Count</em>}'.
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult#getSeedCount <em>Seed Count</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the attribute '<em>Seed Count</em>'.
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult#getSeedCount()
* @see #getTestResult()
@@ -579,9 +654,11 @@
EAttribute getTestResult_SeedCount();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult#getTestName <em>Test Name</em>}'.
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult#getTestName <em>Test Name</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the attribute '<em>Test Name</em>'.
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult#getTestName()
* @see #getTestResult()
@@ -590,9 +667,11 @@
EAttribute getTestResult_TestName();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult#getError <em>Error</em>}'.
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult#getError
+ * <em>Error</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the attribute '<em>Error</em>'.
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult#getError()
* @see #getTestResult()
@@ -601,9 +680,11 @@
EAttribute getTestResult_Error();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult#getFailure <em>Failure</em>}'.
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult#getFailure <em>Failure</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the attribute '<em>Failure</em>'.
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult#getFailure()
* @see #getTestResult()
@@ -612,9 +693,11 @@
EAttribute getTestResult_Failure();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult#getExecutionTime <em>Execution Time</em>}'.
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult#getExecutionTime <em>Execution Time</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the attribute '<em>Execution Time</em>'.
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult#getExecutionTime()
* @see #getTestResult()
@@ -623,9 +706,11 @@
EAttribute getTestResult_ExecutionTime();
/**
- * Returns the meta object for class '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestDiff <em>Test Diff</em>}'.
+ * Returns the meta object for class '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestDiff <em>Test Diff</em>}
+ * '.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for class '<em>Test Diff</em>'.
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.TestDiff
* @generated
@@ -633,9 +718,11 @@
EClass getTestDiff();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestDiff#getLastUpdate <em>Last Update</em>}'.
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestDiff#getLastUpdate <em>Last Update</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the attribute '<em>Last Update</em>'.
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.TestDiff#getLastUpdate()
* @see #getTestDiff()
@@ -644,9 +731,11 @@
EAttribute getTestDiff_LastUpdate();
/**
- * Returns the meta object for the reference '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestDiff#getConfig <em>Config</em>}'.
+ * Returns the meta object for the reference '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestDiff#getConfig
+ * <em>Config</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the reference '<em>Config</em>'.
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.TestDiff#getConfig()
* @see #getTestDiff()
@@ -655,9 +744,11 @@
EReference getTestDiff_Config();
/**
- * Returns the meta object for the containment reference '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestDiff#getOldResult <em>Old Result</em>}'.
+ * Returns the meta object for the containment reference '
+ * {@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestDiff#getOldResult <em>Old Result</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the containment reference '<em>Old Result</em>'.
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.TestDiff#getOldResult()
* @see #getTestDiff()
@@ -666,9 +757,11 @@
EReference getTestDiff_OldResult();
/**
- * Returns the meta object for the containment reference '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestDiff#getNewResult <em>New Result</em>}'.
+ * Returns the meta object for the containment reference '
+ * {@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestDiff#getNewResult <em>New Result</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the containment reference '<em>New Result</em>'.
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.TestDiff#getNewResult()
* @see #getTestDiff()
@@ -677,9 +770,11 @@
EReference getTestDiff_NewResult();
/**
- * Returns the meta object for class '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.DiffReport <em>Diff Report</em>}'.
+ * Returns the meta object for class '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.DiffReport
+ * <em>Diff Report</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for class '<em>Diff Report</em>'.
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.DiffReport
* @generated
@@ -687,9 +782,11 @@
EClass getDiffReport();
/**
- * Returns the meta object for the containment reference list '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.DiffReport#getDiffs <em>Diffs</em>}'.
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.emf.emfstore.fuzzy.emf.config.DiffReport#getDiffs <em>Diffs</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the containment reference list '<em>Diffs</em>'.
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.DiffReport#getDiffs()
* @see #getDiffReport()
@@ -701,6 +798,7 @@
* Returns the meta object for class '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.Root <em>Root</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for class '<em>Root</em>'.
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.Root
* @generated
@@ -708,9 +806,11 @@
EClass getRoot();
/**
- * Returns the meta object for the containment reference list '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.Root#getElements <em>Elements</em>}'.
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.emf.emfstore.fuzzy.emf.config.Root#getElements <em>Elements</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the containment reference list '<em>Elements</em>'.
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.Root#getElements()
* @see #getRoot()
@@ -719,9 +819,11 @@
EReference getRoot_Elements();
/**
- * Returns the meta object for class '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig <em>Mutator Config</em>}'.
+ * Returns the meta object for class '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig
+ * <em>Mutator Config</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for class '<em>Mutator Config</em>'.
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig
* @generated
@@ -729,9 +831,11 @@
EClass getMutatorConfig();
/**
- * Returns the meta object for the reference '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#getRootEClass <em>Root EClass</em>}'.
+ * Returns the meta object for the reference '
+ * {@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#getRootEClass <em>Root EClass</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the reference '<em>Root EClass</em>'.
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#getRootEClass()
* @see #getMutatorConfig()
@@ -740,9 +844,11 @@
EReference getMutatorConfig_RootEClass();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#getMinObjectsCount <em>Min Objects Count</em>}'.
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#getMinObjectsCount <em>Min Objects Count</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the attribute '<em>Min Objects Count</em>'.
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#getMinObjectsCount()
* @see #getMutatorConfig()
@@ -751,9 +857,11 @@
EAttribute getMutatorConfig_MinObjectsCount();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#isIgnoreAndLog <em>Ignore And Log</em>}'.
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#isIgnoreAndLog <em>Ignore And Log</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the attribute '<em>Ignore And Log</em>'.
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#isIgnoreAndLog()
* @see #getMutatorConfig()
@@ -762,9 +870,12 @@
EAttribute getMutatorConfig_IgnoreAndLog();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#isDoNotGenerateRoot <em>Do Not Generate Root</em>}'.
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#isDoNotGenerateRoot <em>Do Not Generate Root</em>}
+ * '.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the attribute '<em>Do Not Generate Root</em>'.
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#isDoNotGenerateRoot()
* @see #getMutatorConfig()
@@ -773,9 +884,12 @@
EAttribute getMutatorConfig_DoNotGenerateRoot();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#isUseEcoreUtilDelete <em>Use Ecore Util Delete</em>}'.
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#isUseEcoreUtilDelete
+ * <em>Use Ecore Util Delete</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the attribute '<em>Use Ecore Util Delete</em>'.
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#isUseEcoreUtilDelete()
* @see #getMutatorConfig()
@@ -784,9 +898,11 @@
EAttribute getMutatorConfig_UseEcoreUtilDelete();
/**
- * Returns the meta object for the reference list '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#getEClassesToIgnore <em>EClasses To Ignore</em>}'.
+ * Returns the meta object for the reference list '
+ * {@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#getEClassesToIgnore <em>EClasses To Ignore</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the reference list '<em>EClasses To Ignore</em>'.
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#getEClassesToIgnore()
* @see #getMutatorConfig()
@@ -795,9 +911,12 @@
EReference getMutatorConfig_EClassesToIgnore();
/**
- * Returns the meta object for the reference list '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#getEStructuralFeaturesToIgnore <em>EStructural Features To Ignore</em>}'.
+ * Returns the meta object for the reference list '
+ * {@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#getEStructuralFeaturesToIgnore
+ * <em>EStructural Features To Ignore</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the reference list '<em>EStructural Features To Ignore</em>'.
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#getEStructuralFeaturesToIgnore()
* @see #getMutatorConfig()
@@ -806,9 +925,11 @@
EReference getMutatorConfig_EStructuralFeaturesToIgnore();
/**
- * Returns the meta object for the reference list '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#getEPackages <em>EPackages</em>}'.
+ * Returns the meta object for the reference list '
+ * {@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#getEPackages <em>EPackages</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the reference list '<em>EPackages</em>'.
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#getEPackages()
* @see #getMutatorConfig()
@@ -817,9 +938,11 @@
EReference getMutatorConfig_EPackages();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#getMaxDeleteCount <em>Max Delete Count</em>}'.
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#getMaxDeleteCount <em>Max Delete Count</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the attribute '<em>Max Delete Count</em>'.
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#getMaxDeleteCount()
* @see #getMutatorConfig()
@@ -831,6 +954,7 @@
* Returns the factory that creates the instances of the model.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the factory that creates the instances of the model.
* @generated
*/
@@ -840,19 +964,22 @@
* <!-- begin-user-doc -->
* Defines literals for the meta objects that represent
* <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
* </ul>
* <!-- end-user-doc -->
+ *
* @generated
*/
interface Literals {
/**
- * The meta object literal for the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestConfigImpl <em>Test Config</em>}' class.
+ * The meta object literal for the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestConfigImpl
+ * <em>Test Config</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestConfigImpl
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.impl.ConfigPackageImpl#getTestConfig()
* @generated
@@ -863,6 +990,7 @@
* The meta object literal for the '<em><b>Seed</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EAttribute TEST_CONFIG__SEED = eINSTANCE.getTestConfig_Seed();
@@ -871,6 +999,7 @@
* The meta object literal for the '<em><b>Count</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EAttribute TEST_CONFIG__COUNT = eINSTANCE.getTestConfig_Count();
@@ -879,6 +1008,7 @@
* The meta object literal for the '<em><b>Test Class</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EAttribute TEST_CONFIG__TEST_CLASS = eINSTANCE.getTestConfig_TestClass();
@@ -887,6 +1017,7 @@
* The meta object literal for the '<em><b>Id</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EAttribute TEST_CONFIG__ID = eINSTANCE.getTestConfig_Id();
@@ -895,14 +1026,17 @@
* The meta object literal for the '<em><b>Mutator Config</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EReference TEST_CONFIG__MUTATOR_CONFIG = eINSTANCE.getTestConfig_MutatorConfig();
/**
- * The meta object literal for the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestRunImpl <em>Test Run</em>}' class.
+ * The meta object literal for the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestRunImpl
+ * <em>Test Run</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestRunImpl
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.impl.ConfigPackageImpl#getTestRun()
* @generated
@@ -913,6 +1047,7 @@
* The meta object literal for the '<em><b>Config</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EReference TEST_RUN__CONFIG = eINSTANCE.getTestRun_Config();
@@ -921,6 +1056,7 @@
* The meta object literal for the '<em><b>Time</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EAttribute TEST_RUN__TIME = eINSTANCE.getTestRun_Time();
@@ -929,14 +1065,17 @@
* The meta object literal for the '<em><b>Results</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EReference TEST_RUN__RESULTS = eINSTANCE.getTestRun_Results();
/**
- * The meta object literal for the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestResultImpl <em>Test Result</em>}' class.
+ * The meta object literal for the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestResultImpl
+ * <em>Test Result</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestResultImpl
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.impl.ConfigPackageImpl#getTestResult()
* @generated
@@ -947,6 +1086,7 @@
* The meta object literal for the '<em><b>Seed Count</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EAttribute TEST_RESULT__SEED_COUNT = eINSTANCE.getTestResult_SeedCount();
@@ -955,6 +1095,7 @@
* The meta object literal for the '<em><b>Test Name</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EAttribute TEST_RESULT__TEST_NAME = eINSTANCE.getTestResult_TestName();
@@ -963,6 +1104,7 @@
* The meta object literal for the '<em><b>Error</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EAttribute TEST_RESULT__ERROR = eINSTANCE.getTestResult_Error();
@@ -971,6 +1113,7 @@
* The meta object literal for the '<em><b>Failure</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EAttribute TEST_RESULT__FAILURE = eINSTANCE.getTestResult_Failure();
@@ -979,14 +1122,17 @@
* The meta object literal for the '<em><b>Execution Time</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EAttribute TEST_RESULT__EXECUTION_TIME = eINSTANCE.getTestResult_ExecutionTime();
/**
- * The meta object literal for the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestDiffImpl <em>Test Diff</em>}' class.
+ * The meta object literal for the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestDiffImpl
+ * <em>Test Diff</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestDiffImpl
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.impl.ConfigPackageImpl#getTestDiff()
* @generated
@@ -997,6 +1143,7 @@
* The meta object literal for the '<em><b>Last Update</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EAttribute TEST_DIFF__LAST_UPDATE = eINSTANCE.getTestDiff_LastUpdate();
@@ -1005,6 +1152,7 @@
* The meta object literal for the '<em><b>Config</b></em>' reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EReference TEST_DIFF__CONFIG = eINSTANCE.getTestDiff_Config();
@@ -1013,6 +1161,7 @@
* The meta object literal for the '<em><b>Old Result</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EReference TEST_DIFF__OLD_RESULT = eINSTANCE.getTestDiff_OldResult();
@@ -1021,14 +1170,17 @@
* The meta object literal for the '<em><b>New Result</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EReference TEST_DIFF__NEW_RESULT = eINSTANCE.getTestDiff_NewResult();
/**
- * The meta object literal for the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.DiffReportImpl <em>Diff Report</em>}' class.
+ * The meta object literal for the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.DiffReportImpl
+ * <em>Diff Report</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.impl.DiffReportImpl
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.impl.ConfigPackageImpl#getDiffReport()
* @generated
@@ -1039,14 +1191,17 @@
* The meta object literal for the '<em><b>Diffs</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EReference DIFF_REPORT__DIFFS = eINSTANCE.getDiffReport_Diffs();
/**
- * The meta object literal for the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.RootImpl <em>Root</em>}' class.
+ * The meta object literal for the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.RootImpl
+ * <em>Root</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.impl.RootImpl
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.impl.ConfigPackageImpl#getRoot()
* @generated
@@ -1057,14 +1212,17 @@
* The meta object literal for the '<em><b>Elements</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EReference ROOT__ELEMENTS = eINSTANCE.getRoot_Elements();
/**
- * The meta object literal for the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.MutatorConfigImpl <em>Mutator Config</em>}' class.
+ * The meta object literal for the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.MutatorConfigImpl
+ * <em>Mutator Config</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.impl.MutatorConfigImpl
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.impl.ConfigPackageImpl#getMutatorConfig()
* @generated
@@ -1075,6 +1233,7 @@
* The meta object literal for the '<em><b>Root EClass</b></em>' reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EReference MUTATOR_CONFIG__ROOT_ECLASS = eINSTANCE.getMutatorConfig_RootEClass();
@@ -1083,6 +1242,7 @@
* The meta object literal for the '<em><b>Min Objects Count</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EAttribute MUTATOR_CONFIG__MIN_OBJECTS_COUNT = eINSTANCE.getMutatorConfig_MinObjectsCount();
@@ -1091,6 +1251,7 @@
* The meta object literal for the '<em><b>Ignore And Log</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EAttribute MUTATOR_CONFIG__IGNORE_AND_LOG = eINSTANCE.getMutatorConfig_IgnoreAndLog();
@@ -1099,6 +1260,7 @@
* The meta object literal for the '<em><b>Do Not Generate Root</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EAttribute MUTATOR_CONFIG__DO_NOT_GENERATE_ROOT = eINSTANCE.getMutatorConfig_DoNotGenerateRoot();
@@ -1107,6 +1269,7 @@
* The meta object literal for the '<em><b>Use Ecore Util Delete</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EAttribute MUTATOR_CONFIG__USE_ECORE_UTIL_DELETE = eINSTANCE.getMutatorConfig_UseEcoreUtilDelete();
@@ -1115,6 +1278,7 @@
* The meta object literal for the '<em><b>EClasses To Ignore</b></em>' reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EReference MUTATOR_CONFIG__ECLASSES_TO_IGNORE = eINSTANCE.getMutatorConfig_EClassesToIgnore();
@@ -1123,14 +1287,17 @@
* The meta object literal for the '<em><b>EStructural Features To Ignore</b></em>' reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
- EReference MUTATOR_CONFIG__ESTRUCTURAL_FEATURES_TO_IGNORE = eINSTANCE.getMutatorConfig_EStructuralFeaturesToIgnore();
+ EReference MUTATOR_CONFIG__ESTRUCTURAL_FEATURES_TO_IGNORE = eINSTANCE
+ .getMutatorConfig_EStructuralFeaturesToIgnore();
/**
* The meta object literal for the '<em><b>EPackages</b></em>' reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EReference MUTATOR_CONFIG__EPACKAGES = eINSTANCE.getMutatorConfig_EPackages();
@@ -1139,10 +1306,11 @@
* The meta object literal for the '<em><b>Max Delete Count</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EAttribute MUTATOR_CONFIG__MAX_DELETE_COUNT = eINSTANCE.getMutatorConfig_MaxDeleteCount();
}
-} //ConfigPackage
\ No newline at end of file
+} // ConfigPackage
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/DiffReport.java b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/DiffReport.java
index cb14089..0a61d81 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/DiffReport.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/DiffReport.java
@@ -18,14 +18,14 @@
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Diff Report</b></em>'.
* <!-- end-user-doc -->
- *
+ *
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.DiffReport#getDiffs <em>Diffs</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.DiffReport#getDiffs <em>Diffs</em>}</li>
* </ul>
* </p>
- *
+ *
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.ConfigPackage#getDiffReport()
* @model
* @generated
@@ -36,10 +36,11 @@
* The list contents are of type {@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestDiff}.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Diffs</em>' containment reference list isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Diffs</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>Diffs</em>' containment reference list.
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.ConfigPackage#getDiffReport_Diffs()
* @model containment="true"
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/MutatorConfig.java b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/MutatorConfig.java
index b474749..914be59 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/MutatorConfig.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/MutatorConfig.java
@@ -21,22 +21,25 @@
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Mutator Config</b></em>'.
* <!-- end-user-doc -->
- *
+ *
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#getRootEClass <em>Root EClass</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#getMinObjectsCount <em>Min Objects Count</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#isIgnoreAndLog <em>Ignore And Log</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#isDoNotGenerateRoot <em>Do Not Generate Root</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#isUseEcoreUtilDelete <em>Use Ecore Util Delete</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#getEClassesToIgnore <em>EClasses To Ignore</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#getEStructuralFeaturesToIgnore <em>EStructural Features To Ignore</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#getEPackages <em>EPackages</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#getMaxDeleteCount <em>Max Delete Count</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#getRootEClass <em>Root EClass</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#getMinObjectsCount <em>Min Objects Count</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#isIgnoreAndLog <em>Ignore And Log</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#isDoNotGenerateRoot <em>Do Not Generate Root</em>}
+ * </li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#isUseEcoreUtilDelete <em>Use Ecore Util Delete
+ * </em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#getEClassesToIgnore <em>EClasses To Ignore</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#getEStructuralFeaturesToIgnore <em>EStructural
+ * Features To Ignore</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#getEPackages <em>EPackages</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#getMaxDeleteCount <em>Max Delete Count</em>}</li>
* </ul>
* </p>
- *
+ *
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.ConfigPackage#getMutatorConfig()
* @model
* @generated
@@ -46,10 +49,11 @@
* Returns the value of the '<em><b>Root EClass</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Root EClass</em>' reference isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Root EClass</em>' reference isn't clear, there really should be more of a description
+ * here...
* </p>
* <!-- end-user-doc -->
+ *
* @return the value of the '<em>Root EClass</em>' reference.
* @see #setRootEClass(EClass)
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.ConfigPackage#getMutatorConfig_RootEClass()
@@ -59,9 +63,11 @@
EClass getRootEClass();
/**
- * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#getRootEClass <em>Root EClass</em>}' reference.
+ * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#getRootEClass
+ * <em>Root EClass</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @param value the new value of the '<em>Root EClass</em>' reference.
* @see #getRootEClass()
* @generated
@@ -73,10 +79,11 @@
* The default value is <code>"100"</code>.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Min Objects Count</em>' attribute isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Min Objects Count</em>' attribute isn't clear, there really should be more of a
+ * description here...
* </p>
* <!-- end-user-doc -->
+ *
* @return the value of the '<em>Min Objects Count</em>' attribute.
* @see #setMinObjectsCount(int)
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.ConfigPackage#getMutatorConfig_MinObjectsCount()
@@ -86,9 +93,11 @@
int getMinObjectsCount();
/**
- * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#getMinObjectsCount <em>Min Objects Count</em>}' attribute.
+ * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#getMinObjectsCount
+ * <em>Min Objects Count</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @param value the new value of the '<em>Min Objects Count</em>' attribute.
* @see #getMinObjectsCount()
* @generated
@@ -100,10 +109,11 @@
* The default value is <code>"false"</code>.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Ignore And Log</em>' attribute isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Ignore And Log</em>' attribute isn't clear, there really should be more of a
+ * description here...
* </p>
* <!-- end-user-doc -->
+ *
* @return the value of the '<em>Ignore And Log</em>' attribute.
* @see #setIgnoreAndLog(boolean)
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.ConfigPackage#getMutatorConfig_IgnoreAndLog()
@@ -113,9 +123,11 @@
boolean isIgnoreAndLog();
/**
- * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#isIgnoreAndLog <em>Ignore And Log</em>}' attribute.
+ * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#isIgnoreAndLog
+ * <em>Ignore And Log</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @param value the new value of the '<em>Ignore And Log</em>' attribute.
* @see #isIgnoreAndLog()
* @generated
@@ -127,10 +139,11 @@
* The default value is <code>"false"</code>.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Do Not Generate Root</em>' attribute isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Do Not Generate Root</em>' attribute isn't clear, there really should be more of a
+ * description here...
* </p>
* <!-- end-user-doc -->
+ *
* @return the value of the '<em>Do Not Generate Root</em>' attribute.
* @see #setDoNotGenerateRoot(boolean)
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.ConfigPackage#getMutatorConfig_DoNotGenerateRoot()
@@ -140,9 +153,11 @@
boolean isDoNotGenerateRoot();
/**
- * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#isDoNotGenerateRoot <em>Do Not Generate Root</em>}' attribute.
+ * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#isDoNotGenerateRoot
+ * <em>Do Not Generate Root</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @param value the new value of the '<em>Do Not Generate Root</em>' attribute.
* @see #isDoNotGenerateRoot()
* @generated
@@ -154,10 +169,11 @@
* The default value is <code>"false"</code>.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Use Ecore Util Delete</em>' attribute isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Use Ecore Util Delete</em>' attribute isn't clear, there really should be more of a
+ * description here...
* </p>
* <!-- end-user-doc -->
+ *
* @return the value of the '<em>Use Ecore Util Delete</em>' attribute.
* @see #setUseEcoreUtilDelete(boolean)
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.ConfigPackage#getMutatorConfig_UseEcoreUtilDelete()
@@ -167,9 +183,11 @@
boolean isUseEcoreUtilDelete();
/**
- * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#isUseEcoreUtilDelete <em>Use Ecore Util Delete</em>}' attribute.
+ * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#isUseEcoreUtilDelete
+ * <em>Use Ecore Util Delete</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @param value the new value of the '<em>Use Ecore Util Delete</em>' attribute.
* @see #isUseEcoreUtilDelete()
* @generated
@@ -181,10 +199,11 @@
* The list contents are of type {@link org.eclipse.emf.ecore.EClass}.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>EClasses To Ignore</em>' reference list isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>EClasses To Ignore</em>' reference list isn't clear, there really should be more of a
+ * description here...
* </p>
* <!-- end-user-doc -->
+ *
* @return the value of the '<em>EClasses To Ignore</em>' reference list.
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.ConfigPackage#getMutatorConfig_EClassesToIgnore()
* @model
@@ -197,10 +216,11 @@
* The list contents are of type {@link org.eclipse.emf.ecore.EStructuralFeature}.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>EStructural Features To Ignore</em>' reference list isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>EStructural Features To Ignore</em>' reference list isn't clear, there really should
+ * be more of a description here...
* </p>
* <!-- end-user-doc -->
+ *
* @return the value of the '<em>EStructural Features To Ignore</em>' reference list.
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.ConfigPackage#getMutatorConfig_EStructuralFeaturesToIgnore()
* @model
@@ -213,10 +233,11 @@
* The list contents are of type {@link org.eclipse.emf.ecore.EPackage}.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>EPackages</em>' reference list isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>EPackages</em>' reference list isn't clear, there really should be more of a
+ * description here...
* </p>
* <!-- end-user-doc -->
+ *
* @return the value of the '<em>EPackages</em>' reference list.
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.ConfigPackage#getMutatorConfig_EPackages()
* @model
@@ -228,10 +249,11 @@
* Returns the value of the '<em><b>Max Delete Count</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Max Delete Count</em>' attribute isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Max Delete Count</em>' attribute isn't clear, there really should be more of a
+ * description here...
* </p>
* <!-- end-user-doc -->
+ *
* @return the value of the '<em>Max Delete Count</em>' attribute.
* @see #setMaxDeleteCount(Integer)
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.ConfigPackage#getMutatorConfig_MaxDeleteCount()
@@ -241,9 +263,11 @@
Integer getMaxDeleteCount();
/**
- * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#getMaxDeleteCount <em>Max Delete Count</em>}' attribute.
+ * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig#getMaxDeleteCount
+ * <em>Max Delete Count</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @param value the new value of the '<em>Max Delete Count</em>' attribute.
* @see #getMaxDeleteCount()
* @generated
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/Root.java b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/Root.java
index 07c18ea..b01afbc 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/Root.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/Root.java
@@ -18,14 +18,14 @@
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Root</b></em>'.
* <!-- end-user-doc -->
- *
+ *
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.Root#getElements <em>Elements</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.Root#getElements <em>Elements</em>}</li>
* </ul>
* </p>
- *
+ *
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.ConfigPackage#getRoot()
* @model
* @generated
@@ -36,10 +36,11 @@
* The list contents are of type {@link org.eclipse.emf.ecore.EObject}.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Elements</em>' containment reference list isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Elements</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>Elements</em>' containment reference list.
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.ConfigPackage#getRoot_Elements()
* @model containment="true"
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/TestConfig.java b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/TestConfig.java
index ebd7c04..6abc4bd 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/TestConfig.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/TestConfig.java
@@ -16,18 +16,18 @@
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Test Config</b></em>'.
* <!-- end-user-doc -->
- *
+ *
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig#getSeed <em>Seed</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig#getCount <em>Count</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig#getTestClass <em>Test Class</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig#getId <em>Id</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig#getMutatorConfig <em>Mutator Config</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig#getSeed <em>Seed</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig#getCount <em>Count</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig#getTestClass <em>Test Class</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig#getId <em>Id</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig#getMutatorConfig <em>Mutator Config</em>}</li>
* </ul>
* </p>
- *
+ *
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.ConfigPackage#getTestConfig()
* @model
* @generated
@@ -37,10 +37,10 @@
* Returns the value of the '<em><b>Seed</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Seed</em>' attribute isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Seed</em>' attribute isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ *
* @return the value of the '<em>Seed</em>' attribute.
* @see #setSeed(long)
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.ConfigPackage#getTestConfig_Seed()
@@ -50,9 +50,11 @@
long getSeed();
/**
- * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig#getSeed <em>Seed</em>}' attribute.
+ * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig#getSeed <em>Seed</em>}'
+ * attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @param value the new value of the '<em>Seed</em>' attribute.
* @see #getSeed()
* @generated
@@ -63,10 +65,11 @@
* Returns the value of the '<em><b>Count</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Count</em>' attribute isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Count</em>' attribute isn't clear, there really should be more of a description
+ * here...
* </p>
* <!-- end-user-doc -->
+ *
* @return the value of the '<em>Count</em>' attribute.
* @see #setCount(int)
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.ConfigPackage#getTestConfig_Count()
@@ -76,9 +79,11 @@
int getCount();
/**
- * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig#getCount <em>Count</em>}' attribute.
+ * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig#getCount <em>Count</em>}'
+ * attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @param value the new value of the '<em>Count</em>' attribute.
* @see #getCount()
* @generated
@@ -89,10 +94,11 @@
* Returns the value of the '<em><b>Test Class</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Test Class</em>' attribute isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Test Class</em>' attribute isn't clear, there really should be more of a description
+ * here...
* </p>
* <!-- end-user-doc -->
+ *
* @return the value of the '<em>Test Class</em>' attribute.
* @see #setTestClass(Class)
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.ConfigPackage#getTestConfig_TestClass()
@@ -102,9 +108,11 @@
Class<?> getTestClass();
/**
- * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig#getTestClass <em>Test Class</em>}' attribute.
+ * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig#getTestClass
+ * <em>Test Class</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @param value the new value of the '<em>Test Class</em>' attribute.
* @see #getTestClass()
* @generated
@@ -115,10 +123,10 @@
* 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...
+ * 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 org.eclipse.emf.emfstore.fuzzy.emf.config.ConfigPackage#getTestConfig_Id()
@@ -131,6 +139,7 @@
* Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig#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
@@ -141,10 +150,11 @@
* Returns the value of the '<em><b>Mutator Config</b></em>' containment reference.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Mutator Config</em>' containment reference isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Mutator Config</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>Mutator Config</em>' containment reference.
* @see #setMutatorConfig(MutatorConfig)
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.ConfigPackage#getTestConfig_MutatorConfig()
@@ -154,9 +164,11 @@
MutatorConfig getMutatorConfig();
/**
- * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig#getMutatorConfig <em>Mutator Config</em>}' containment reference.
+ * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig#getMutatorConfig
+ * <em>Mutator Config</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @param value the new value of the '<em>Mutator Config</em>' containment reference.
* @see #getMutatorConfig()
* @generated
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/TestDiff.java b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/TestDiff.java
index f3afff2..04546de 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/TestDiff.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/TestDiff.java
@@ -18,17 +18,17 @@
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Test Diff</b></em>'.
* <!-- end-user-doc -->
- *
+ *
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestDiff#getLastUpdate <em>Last Update</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestDiff#getConfig <em>Config</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestDiff#getOldResult <em>Old Result</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestDiff#getNewResult <em>New Result</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestDiff#getLastUpdate <em>Last Update</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestDiff#getConfig <em>Config</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestDiff#getOldResult <em>Old Result</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestDiff#getNewResult <em>New Result</em>}</li>
* </ul>
* </p>
- *
+ *
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.ConfigPackage#getTestDiff()
* @model
* @generated
@@ -38,10 +38,11 @@
* Returns the value of the '<em><b>Last Update</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Last Update</em>' attribute isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Last Update</em>' attribute isn't clear, there really should be more of a description
+ * here...
* </p>
* <!-- end-user-doc -->
+ *
* @return the value of the '<em>Last Update</em>' attribute.
* @see #setLastUpdate(Date)
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.ConfigPackage#getTestDiff_LastUpdate()
@@ -51,9 +52,11 @@
Date getLastUpdate();
/**
- * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestDiff#getLastUpdate <em>Last Update</em>}' attribute.
+ * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestDiff#getLastUpdate
+ * <em>Last Update</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @param value the new value of the '<em>Last Update</em>' attribute.
* @see #getLastUpdate()
* @generated
@@ -64,10 +67,11 @@
* Returns the value of the '<em><b>Config</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Config</em>' reference isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Config</em>' reference isn't clear, there really should be more of a description
+ * here...
* </p>
* <!-- end-user-doc -->
+ *
* @return the value of the '<em>Config</em>' reference.
* @see #setConfig(TestConfig)
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.ConfigPackage#getTestDiff_Config()
@@ -77,9 +81,11 @@
TestConfig getConfig();
/**
- * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestDiff#getConfig <em>Config</em>}' reference.
+ * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestDiff#getConfig <em>Config</em>}'
+ * reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @param value the new value of the '<em>Config</em>' reference.
* @see #getConfig()
* @generated
@@ -90,10 +96,11 @@
* Returns the value of the '<em><b>Old Result</b></em>' containment reference.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Old Result</em>' containment reference isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Old Result</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>Old Result</em>' containment reference.
* @see #setOldResult(TestResult)
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.ConfigPackage#getTestDiff_OldResult()
@@ -103,9 +110,11 @@
TestResult getOldResult();
/**
- * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestDiff#getOldResult <em>Old Result</em>}' containment reference.
+ * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestDiff#getOldResult
+ * <em>Old Result</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @param value the new value of the '<em>Old Result</em>' containment reference.
* @see #getOldResult()
* @generated
@@ -116,10 +125,11 @@
* Returns the value of the '<em><b>New Result</b></em>' containment reference.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>New Result</em>' containment reference isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>New Result</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>New Result</em>' containment reference.
* @see #setNewResult(TestResult)
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.ConfigPackage#getTestDiff_NewResult()
@@ -129,9 +139,11 @@
TestResult getNewResult();
/**
- * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestDiff#getNewResult <em>New Result</em>}' containment reference.
+ * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestDiff#getNewResult
+ * <em>New Result</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @param value the new value of the '<em>New Result</em>' containment reference.
* @see #getNewResult()
* @generated
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/TestResult.java b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/TestResult.java
index 92196cd..b6e02c9 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/TestResult.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/TestResult.java
@@ -16,18 +16,18 @@
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Test Result</b></em>'.
* <!-- end-user-doc -->
- *
+ *
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult#getSeedCount <em>Seed Count</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult#getTestName <em>Test Name</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult#getError <em>Error</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult#getFailure <em>Failure</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult#getExecutionTime <em>Execution Time</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult#getSeedCount <em>Seed Count</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult#getTestName <em>Test Name</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult#getError <em>Error</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult#getFailure <em>Failure</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult#getExecutionTime <em>Execution Time</em>}</li>
* </ul>
* </p>
- *
+ *
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.ConfigPackage#getTestResult()
* @model
* @generated
@@ -37,10 +37,11 @@
* Returns the value of the '<em><b>Seed Count</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Seed Count</em>' attribute isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Seed Count</em>' attribute isn't clear, there really should be more of a description
+ * here...
* </p>
* <!-- end-user-doc -->
+ *
* @return the value of the '<em>Seed Count</em>' attribute.
* @see #setSeedCount(int)
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.ConfigPackage#getTestResult_SeedCount()
@@ -50,9 +51,11 @@
int getSeedCount();
/**
- * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult#getSeedCount <em>Seed Count</em>}' attribute.
+ * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult#getSeedCount
+ * <em>Seed Count</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @param value the new value of the '<em>Seed Count</em>' attribute.
* @see #getSeedCount()
* @generated
@@ -63,10 +66,11 @@
* Returns the value of the '<em><b>Test Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Test Name</em>' attribute isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Test 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>Test Name</em>' attribute.
* @see #setTestName(String)
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.ConfigPackage#getTestResult_TestName()
@@ -76,9 +80,11 @@
String getTestName();
/**
- * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult#getTestName <em>Test Name</em>}' attribute.
+ * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult#getTestName
+ * <em>Test Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @param value the new value of the '<em>Test Name</em>' attribute.
* @see #getTestName()
* @generated
@@ -89,10 +95,11 @@
* Returns the value of the '<em><b>Error</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Error</em>' attribute isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Error</em>' attribute isn't clear, there really should be more of a description
+ * here...
* </p>
* <!-- end-user-doc -->
+ *
* @return the value of the '<em>Error</em>' attribute.
* @see #setError(String)
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.ConfigPackage#getTestResult_Error()
@@ -102,9 +109,11 @@
String getError();
/**
- * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult#getError <em>Error</em>}' attribute.
+ * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult#getError <em>Error</em>}'
+ * attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @param value the new value of the '<em>Error</em>' attribute.
* @see #getError()
* @generated
@@ -115,10 +124,11 @@
* Returns the value of the '<em><b>Failure</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Failure</em>' attribute isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Failure</em>' attribute isn't clear, there really should be more of a description
+ * here...
* </p>
* <!-- end-user-doc -->
+ *
* @return the value of the '<em>Failure</em>' attribute.
* @see #setFailure(String)
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.ConfigPackage#getTestResult_Failure()
@@ -128,9 +138,11 @@
String getFailure();
/**
- * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult#getFailure <em>Failure</em>}' attribute.
+ * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult#getFailure <em>Failure</em>}'
+ * attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @param value the new value of the '<em>Failure</em>' attribute.
* @see #getFailure()
* @generated
@@ -141,10 +153,11 @@
* Returns the value of the '<em><b>Execution Time</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Execution Time</em>' attribute isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Execution Time</em>' attribute isn't clear, there really should be more of a
+ * description here...
* </p>
* <!-- end-user-doc -->
+ *
* @return the value of the '<em>Execution Time</em>' attribute.
* @see #setExecutionTime(long)
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.ConfigPackage#getTestResult_ExecutionTime()
@@ -154,9 +167,11 @@
long getExecutionTime();
/**
- * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult#getExecutionTime <em>Execution Time</em>}' attribute.
+ * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult#getExecutionTime
+ * <em>Execution Time</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @param value the new value of the '<em>Execution Time</em>' attribute.
* @see #getExecutionTime()
* @generated
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/TestRun.java b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/TestRun.java
index efec152..6aa388a 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/TestRun.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/TestRun.java
@@ -20,16 +20,16 @@
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Test Run</b></em>'.
* <!-- end-user-doc -->
- *
+ *
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestRun#getConfig <em>Config</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestRun#getTime <em>Time</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestRun#getResults <em>Results</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestRun#getConfig <em>Config</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestRun#getTime <em>Time</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestRun#getResults <em>Results</em>}</li>
* </ul>
* </p>
- *
+ *
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.ConfigPackage#getTestRun()
* @model
* @generated
@@ -39,10 +39,11 @@
* Returns the value of the '<em><b>Config</b></em>' containment reference.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Config</em>' containment reference isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Config</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>Config</em>' containment reference.
* @see #setConfig(TestConfig)
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.ConfigPackage#getTestRun_Config()
@@ -52,9 +53,11 @@
TestConfig getConfig();
/**
- * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestRun#getConfig <em>Config</em>}' containment reference.
+ * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestRun#getConfig <em>Config</em>}'
+ * containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @param value the new value of the '<em>Config</em>' containment reference.
* @see #getConfig()
* @generated
@@ -65,10 +68,10 @@
* Returns the value of the '<em><b>Time</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Time</em>' attribute isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Time</em>' attribute isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ *
* @return the value of the '<em>Time</em>' attribute.
* @see #setTime(Date)
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.ConfigPackage#getTestRun_Time()
@@ -78,9 +81,11 @@
Date getTime();
/**
- * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestRun#getTime <em>Time</em>}' attribute.
+ * Sets the value of the '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestRun#getTime <em>Time</em>}'
+ * attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @param value the new value of the '<em>Time</em>' attribute.
* @see #getTime()
* @generated
@@ -92,10 +97,11 @@
* The list contents are of type {@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult}.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Results</em>' containment reference list isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Results</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>Results</em>' containment reference list.
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.ConfigPackage#getTestRun_Results()
* @model containment="true"
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/impl/ConfigFactoryImpl.java b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/impl/ConfigFactoryImpl.java
index 2f3fe73..ffa0f67 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/impl/ConfigFactoryImpl.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/impl/ConfigFactoryImpl.java
@@ -29,6 +29,7 @@
* <!-- begin-user-doc -->
* An implementation of the model <b>Factory</b>.
* <!-- end-user-doc -->
+ *
* @generated
*/
public class ConfigFactoryImpl extends EFactoryImpl implements ConfigFactory {
@@ -36,16 +37,17 @@
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public static ConfigFactory init() {
try {
- ConfigFactory theConfigFactory = (ConfigFactory)EPackage.Registry.INSTANCE.getEFactory("http://org/eclipse/emf/emfstore/fuzzy/emf/config");
+ ConfigFactory theConfigFactory = (ConfigFactory) EPackage.Registry.INSTANCE
+ .getEFactory("http://org/eclipse/emf/emfstore/fuzzy/emf/config");
if (theConfigFactory != null) {
return theConfigFactory;
}
- }
- catch (Exception exception) {
+ } catch (Exception exception) {
EcorePlugin.INSTANCE.log(exception);
}
return new ConfigFactoryImpl();
@@ -55,6 +57,7 @@
* Creates an instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public ConfigFactoryImpl() {
@@ -64,26 +67,35 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public EObject create(EClass eClass) {
switch (eClass.getClassifierID()) {
- case ConfigPackage.TEST_CONFIG: return createTestConfig();
- case ConfigPackage.TEST_RUN: return createTestRun();
- case ConfigPackage.TEST_RESULT: return createTestResult();
- case ConfigPackage.TEST_DIFF: return createTestDiff();
- case ConfigPackage.DIFF_REPORT: return createDiffReport();
- case ConfigPackage.ROOT: return createRoot();
- case ConfigPackage.MUTATOR_CONFIG: return createMutatorConfig();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ case ConfigPackage.TEST_CONFIG:
+ return createTestConfig();
+ case ConfigPackage.TEST_RUN:
+ return createTestRun();
+ case ConfigPackage.TEST_RESULT:
+ return createTestResult();
+ case ConfigPackage.TEST_DIFF:
+ return createTestDiff();
+ case ConfigPackage.DIFF_REPORT:
+ return createDiffReport();
+ case ConfigPackage.ROOT:
+ return createRoot();
+ case ConfigPackage.MUTATOR_CONFIG:
+ return createMutatorConfig();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public TestConfig createTestConfig() {
@@ -94,6 +106,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public TestRun createTestRun() {
@@ -104,6 +117,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public TestResult createTestResult() {
@@ -114,6 +128,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public TestDiff createTestDiff() {
@@ -124,6 +139,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public DiffReport createDiffReport() {
@@ -134,6 +150,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Root createRoot() {
@@ -144,6 +161,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public MutatorConfig createMutatorConfig() {
@@ -154,15 +172,17 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public ConfigPackage getConfigPackage() {
- return (ConfigPackage)getEPackage();
+ return (ConfigPackage) getEPackage();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @deprecated
* @generated
*/
@@ -171,4 +191,4 @@
return ConfigPackage.eINSTANCE;
}
-} //ConfigFactoryImpl
\ No newline at end of file
+} // ConfigFactoryImpl
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/impl/ConfigPackageImpl.java b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/impl/ConfigPackageImpl.java
index 760f845..0e07b74 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/impl/ConfigPackageImpl.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/impl/ConfigPackageImpl.java
@@ -32,12 +32,14 @@
* <!-- begin-user-doc -->
* An implementation of the model <b>Package</b>.
* <!-- end-user-doc -->
+ *
* @generated
*/
public class ConfigPackageImpl extends EPackageImpl implements ConfigPackage {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private EClass testConfigEClass = null;
@@ -45,6 +47,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private EClass testRunEClass = null;
@@ -52,6 +55,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private EClass testResultEClass = null;
@@ -59,6 +63,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private EClass testDiffEClass = null;
@@ -66,6 +71,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private EClass diffReportEClass = null;
@@ -73,6 +79,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private EClass rootEClass = null;
@@ -80,20 +87,20 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private EClass mutatorConfigEClass = null;
/**
- * Creates an instance of the model <b>Package</b>, registered with
- * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
+ * Creates an instance of the model <b>Package</b>, registered with {@link org.eclipse.emf.ecore.EPackage.Registry
+ * EPackage.Registry} by the package
* package URI value.
- * <p>Note: the correct way to create the package is via the static
- * factory method {@link #init init()}, which also performs
- * initialization of the package, or returns the registered package,
- * if one already exists.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * <p>
+ * Note: the correct way to create the package is via the static factory method {@link #init init()}, which also
+ * performs initialization of the package, or returns the registered package, if one already exists. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.ecore.EPackage.Registry
* @see org.eclipse.emf.emfstore.fuzzy.emf.config.ConfigPackage#eNS_URI
* @see #init()
@@ -106,6 +113,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private static boolean isInited = false;
@@ -113,20 +121,23 @@
/**
* Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
*
- * <p>This method is used to initialize {@link ConfigPackage#eINSTANCE} when that field is accessed.
- * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
- * <!-- begin-user-doc -->
+ * <p>
+ * This method is used to initialize {@link ConfigPackage#eINSTANCE} when that field is accessed. Clients should not
+ * invoke it directly. Instead, they should simply access that field to obtain the package. <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #eNS_URI
* @see #createPackageContents()
* @see #initializePackageContents()
* @generated
*/
public static ConfigPackage init() {
- if (isInited) return (ConfigPackage)EPackage.Registry.INSTANCE.getEPackage(ConfigPackage.eNS_URI);
+ if (isInited)
+ return (ConfigPackage) EPackage.Registry.INSTANCE.getEPackage(ConfigPackage.eNS_URI);
// Obtain or create and register package
- ConfigPackageImpl theConfigPackage = (ConfigPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ConfigPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ConfigPackageImpl());
+ ConfigPackageImpl theConfigPackage = (ConfigPackageImpl) (EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ConfigPackageImpl ? EPackage.Registry.INSTANCE
+ .get(eNS_URI) : new ConfigPackageImpl());
isInited = true;
@@ -139,7 +150,6 @@
// Mark meta-data to indicate it can't be changed
theConfigPackage.freeze();
-
// Update the registry and return the package
EPackage.Registry.INSTANCE.put(ConfigPackage.eNS_URI, theConfigPackage);
return theConfigPackage;
@@ -148,6 +158,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EClass getTestConfig() {
@@ -157,51 +168,57 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EAttribute getTestConfig_Seed() {
- return (EAttribute)testConfigEClass.getEStructuralFeatures().get(0);
+ return (EAttribute) testConfigEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EAttribute getTestConfig_Count() {
- return (EAttribute)testConfigEClass.getEStructuralFeatures().get(1);
+ return (EAttribute) testConfigEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EAttribute getTestConfig_TestClass() {
- return (EAttribute)testConfigEClass.getEStructuralFeatures().get(2);
+ return (EAttribute) testConfigEClass.getEStructuralFeatures().get(2);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EAttribute getTestConfig_Id() {
- return (EAttribute)testConfigEClass.getEStructuralFeatures().get(3);
+ return (EAttribute) testConfigEClass.getEStructuralFeatures().get(3);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EReference getTestConfig_MutatorConfig() {
- return (EReference)testConfigEClass.getEStructuralFeatures().get(4);
+ return (EReference) testConfigEClass.getEStructuralFeatures().get(4);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EClass getTestRun() {
@@ -211,33 +228,37 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EReference getTestRun_Config() {
- return (EReference)testRunEClass.getEStructuralFeatures().get(0);
+ return (EReference) testRunEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EAttribute getTestRun_Time() {
- return (EAttribute)testRunEClass.getEStructuralFeatures().get(1);
+ return (EAttribute) testRunEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EReference getTestRun_Results() {
- return (EReference)testRunEClass.getEStructuralFeatures().get(2);
+ return (EReference) testRunEClass.getEStructuralFeatures().get(2);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EClass getTestResult() {
@@ -247,51 +268,57 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EAttribute getTestResult_SeedCount() {
- return (EAttribute)testResultEClass.getEStructuralFeatures().get(0);
+ return (EAttribute) testResultEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EAttribute getTestResult_TestName() {
- return (EAttribute)testResultEClass.getEStructuralFeatures().get(1);
+ return (EAttribute) testResultEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EAttribute getTestResult_Error() {
- return (EAttribute)testResultEClass.getEStructuralFeatures().get(2);
+ return (EAttribute) testResultEClass.getEStructuralFeatures().get(2);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EAttribute getTestResult_Failure() {
- return (EAttribute)testResultEClass.getEStructuralFeatures().get(3);
+ return (EAttribute) testResultEClass.getEStructuralFeatures().get(3);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EAttribute getTestResult_ExecutionTime() {
- return (EAttribute)testResultEClass.getEStructuralFeatures().get(4);
+ return (EAttribute) testResultEClass.getEStructuralFeatures().get(4);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EClass getTestDiff() {
@@ -301,42 +328,47 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EAttribute getTestDiff_LastUpdate() {
- return (EAttribute)testDiffEClass.getEStructuralFeatures().get(0);
+ return (EAttribute) testDiffEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EReference getTestDiff_Config() {
- return (EReference)testDiffEClass.getEStructuralFeatures().get(1);
+ return (EReference) testDiffEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EReference getTestDiff_OldResult() {
- return (EReference)testDiffEClass.getEStructuralFeatures().get(2);
+ return (EReference) testDiffEClass.getEStructuralFeatures().get(2);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EReference getTestDiff_NewResult() {
- return (EReference)testDiffEClass.getEStructuralFeatures().get(3);
+ return (EReference) testDiffEClass.getEStructuralFeatures().get(3);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EClass getDiffReport() {
@@ -346,15 +378,17 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EReference getDiffReport_Diffs() {
- return (EReference)diffReportEClass.getEStructuralFeatures().get(0);
+ return (EReference) diffReportEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EClass getRoot() {
@@ -364,15 +398,17 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EReference getRoot_Elements() {
- return (EReference)rootEClass.getEStructuralFeatures().get(0);
+ return (EReference) rootEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EClass getMutatorConfig() {
@@ -382,109 +418,122 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EReference getMutatorConfig_RootEClass() {
- return (EReference)mutatorConfigEClass.getEStructuralFeatures().get(0);
+ return (EReference) mutatorConfigEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EAttribute getMutatorConfig_MinObjectsCount() {
- return (EAttribute)mutatorConfigEClass.getEStructuralFeatures().get(1);
+ return (EAttribute) mutatorConfigEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EAttribute getMutatorConfig_IgnoreAndLog() {
- return (EAttribute)mutatorConfigEClass.getEStructuralFeatures().get(2);
+ return (EAttribute) mutatorConfigEClass.getEStructuralFeatures().get(2);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EAttribute getMutatorConfig_DoNotGenerateRoot() {
- return (EAttribute)mutatorConfigEClass.getEStructuralFeatures().get(3);
+ return (EAttribute) mutatorConfigEClass.getEStructuralFeatures().get(3);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EAttribute getMutatorConfig_UseEcoreUtilDelete() {
- return (EAttribute)mutatorConfigEClass.getEStructuralFeatures().get(4);
+ return (EAttribute) mutatorConfigEClass.getEStructuralFeatures().get(4);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EReference getMutatorConfig_EClassesToIgnore() {
- return (EReference)mutatorConfigEClass.getEStructuralFeatures().get(5);
+ return (EReference) mutatorConfigEClass.getEStructuralFeatures().get(5);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EReference getMutatorConfig_EStructuralFeaturesToIgnore() {
- return (EReference)mutatorConfigEClass.getEStructuralFeatures().get(6);
+ return (EReference) mutatorConfigEClass.getEStructuralFeatures().get(6);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EReference getMutatorConfig_EPackages() {
- return (EReference)mutatorConfigEClass.getEStructuralFeatures().get(7);
+ return (EReference) mutatorConfigEClass.getEStructuralFeatures().get(7);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EAttribute getMutatorConfig_MaxDeleteCount() {
- return (EAttribute)mutatorConfigEClass.getEStructuralFeatures().get(8);
+ return (EAttribute) mutatorConfigEClass.getEStructuralFeatures().get(8);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public ConfigFactory getConfigFactory() {
- return (ConfigFactory)getEFactoryInstance();
+ return (ConfigFactory) getEFactoryInstance();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private boolean isCreated = false;
/**
- * Creates the meta-model objects for the package. This method is
+ * Creates the meta-model objects for the package. This method is
* guarded to have no affect on any invocation but its first.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void createPackageContents() {
- if (isCreated) return;
+ if (isCreated)
+ return;
isCreated = true;
// Create classes and their features
@@ -534,19 +583,22 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private boolean isInitialized = false;
/**
- * Complete the initialization of the package and its meta-model. This
+ * Complete the initialization of the package and its meta-model. This
* method is guarded to have no affect on any invocation but its first.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void initializePackageContents() {
- if (isInitialized) return;
+ if (isInitialized)
+ return;
isInitialized = true;
// Initialize package
@@ -561,53 +613,103 @@
// Add supertypes to classes
// Initialize classes and features; add operations and parameters
- initEClass(testConfigEClass, TestConfig.class, "TestConfig", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getTestConfig_Seed(), ecorePackage.getELong(), "seed", null, 0, 1, TestConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getTestConfig_Count(), ecorePackage.getEInt(), "count", null, 0, 1, TestConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEClass(testConfigEClass, TestConfig.class, "TestConfig", !IS_ABSTRACT, !IS_INTERFACE,
+ IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getTestConfig_Seed(), ecorePackage.getELong(), "seed", null, 0, 1, TestConfig.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getTestConfig_Count(), ecorePackage.getEInt(), "count", null, 0, 1, TestConfig.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
EGenericType g1 = createEGenericType(ecorePackage.getEJavaClass());
EGenericType g2 = createEGenericType();
g1.getETypeArguments().add(g2);
- initEAttribute(getTestConfig_TestClass(), g1, "testClass", null, 0, 1, TestConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getTestConfig_Id(), ecorePackage.getEString(), "id", null, 0, 1, TestConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getTestConfig_MutatorConfig(), this.getMutatorConfig(), null, "mutatorConfig", null, 0, 1, TestConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getTestConfig_TestClass(), g1, "testClass", null, 0, 1, TestConfig.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getTestConfig_Id(), ecorePackage.getEString(), "id", null, 0, 1, TestConfig.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getTestConfig_MutatorConfig(), this.getMutatorConfig(), null, "mutatorConfig", null, 0, 1,
+ TestConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
+ !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(testRunEClass, TestRun.class, "TestRun", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getTestRun_Config(), this.getTestConfig(), null, "config", null, 0, 1, TestRun.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getTestRun_Time(), ecorePackage.getEDate(), "time", null, 0, 1, TestRun.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getTestRun_Results(), this.getTestResult(), null, "results", null, 0, -1, TestRun.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getTestRun_Config(), this.getTestConfig(), null, "config", null, 0, 1, TestRun.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getTestRun_Time(), ecorePackage.getEDate(), "time", null, 0, 1, TestRun.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getTestRun_Results(), this.getTestResult(), null, "results", null, 0, -1, TestRun.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
- initEClass(testResultEClass, TestResult.class, "TestResult", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getTestResult_SeedCount(), ecorePackage.getEInt(), "seedCount", null, 0, 1, TestResult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getTestResult_TestName(), ecorePackage.getEString(), "testName", null, 0, 1, TestResult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getTestResult_Error(), ecorePackage.getEString(), "error", null, 0, 1, TestResult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getTestResult_Failure(), ecorePackage.getEString(), "failure", null, 0, 1, TestResult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getTestResult_ExecutionTime(), ecorePackage.getELong(), "executionTime", null, 0, 1, TestResult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEClass(testResultEClass, TestResult.class, "TestResult", !IS_ABSTRACT, !IS_INTERFACE,
+ IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getTestResult_SeedCount(), ecorePackage.getEInt(), "seedCount", null, 0, 1, TestResult.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getTestResult_TestName(), ecorePackage.getEString(), "testName", null, 0, 1, TestResult.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getTestResult_Error(), ecorePackage.getEString(), "error", null, 0, 1, TestResult.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getTestResult_Failure(), ecorePackage.getEString(), "failure", null, 0, 1, TestResult.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getTestResult_ExecutionTime(), ecorePackage.getELong(), "executionTime", null, 0, 1,
+ TestResult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
initEClass(testDiffEClass, TestDiff.class, "TestDiff", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getTestDiff_LastUpdate(), ecorePackage.getEDate(), "lastUpdate", null, 0, 1, TestDiff.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getTestDiff_Config(), this.getTestConfig(), null, "config", null, 0, 1, TestDiff.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getTestDiff_OldResult(), this.getTestResult(), null, "oldResult", null, 0, 1, TestDiff.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getTestDiff_NewResult(), this.getTestResult(), null, "newResult", null, 0, 1, TestDiff.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getTestDiff_LastUpdate(), ecorePackage.getEDate(), "lastUpdate", null, 0, 1, TestDiff.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getTestDiff_Config(), this.getTestConfig(), null, "config", null, 0, 1, TestDiff.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEReference(getTestDiff_OldResult(), this.getTestResult(), null, "oldResult", null, 0, 1, TestDiff.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEReference(getTestDiff_NewResult(), this.getTestResult(), null, "newResult", null, 0, 1, TestDiff.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
- initEClass(diffReportEClass, DiffReport.class, "DiffReport", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getDiffReport_Diffs(), this.getTestDiff(), null, "diffs", null, 0, -1, DiffReport.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEClass(diffReportEClass, DiffReport.class, "DiffReport", !IS_ABSTRACT, !IS_INTERFACE,
+ IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getDiffReport_Diffs(), this.getTestDiff(), null, "diffs", null, 0, -1, DiffReport.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
initEClass(rootEClass, Root.class, "Root", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getRoot_Elements(), ecorePackage.getEObject(), null, "elements", null, 0, -1, Root.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getRoot_Elements(), ecorePackage.getEObject(), null, "elements", null, 0, -1, Root.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
- initEClass(mutatorConfigEClass, MutatorConfig.class, "MutatorConfig", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getMutatorConfig_RootEClass(), ecorePackage.getEClass(), null, "rootEClass", null, 0, 1, MutatorConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getMutatorConfig_MinObjectsCount(), ecorePackage.getEInt(), "minObjectsCount", "100", 0, 1, MutatorConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getMutatorConfig_IgnoreAndLog(), ecorePackage.getEBoolean(), "ignoreAndLog", "false", 0, 1, MutatorConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getMutatorConfig_DoNotGenerateRoot(), ecorePackage.getEBoolean(), "doNotGenerateRoot", "false", 0, 1, MutatorConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getMutatorConfig_UseEcoreUtilDelete(), ecorePackage.getEBoolean(), "useEcoreUtilDelete", "false", 0, 1, MutatorConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getMutatorConfig_EClassesToIgnore(), ecorePackage.getEClass(), null, "eClassesToIgnore", null, 0, -1, MutatorConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getMutatorConfig_EStructuralFeaturesToIgnore(), ecorePackage.getEStructuralFeature(), null, "eStructuralFeaturesToIgnore", null, 0, -1, MutatorConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getMutatorConfig_EPackages(), ecorePackage.getEPackage(), null, "ePackages", null, 0, -1, MutatorConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getMutatorConfig_MaxDeleteCount(), ecorePackage.getEIntegerObject(), "maxDeleteCount", null, 0, 1, MutatorConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEClass(mutatorConfigEClass, MutatorConfig.class, "MutatorConfig", !IS_ABSTRACT, !IS_INTERFACE,
+ IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getMutatorConfig_RootEClass(), ecorePackage.getEClass(), null, "rootEClass", null, 0, 1,
+ MutatorConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,
+ !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getMutatorConfig_MinObjectsCount(), ecorePackage.getEInt(), "minObjectsCount", "100", 0, 1,
+ MutatorConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getMutatorConfig_IgnoreAndLog(), ecorePackage.getEBoolean(), "ignoreAndLog", "false", 0, 1,
+ MutatorConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getMutatorConfig_DoNotGenerateRoot(), ecorePackage.getEBoolean(), "doNotGenerateRoot", "false",
+ 0, 1, MutatorConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getMutatorConfig_UseEcoreUtilDelete(), ecorePackage.getEBoolean(), "useEcoreUtilDelete",
+ "false", 0, 1, MutatorConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
+ IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getMutatorConfig_EClassesToIgnore(), ecorePackage.getEClass(), null, "eClassesToIgnore", null,
+ 0, -1, MutatorConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,
+ !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getMutatorConfig_EStructuralFeaturesToIgnore(), ecorePackage.getEStructuralFeature(), null,
+ "eStructuralFeaturesToIgnore", null, 0, -1, MutatorConfig.class, !IS_TRANSIENT, !IS_VOLATILE,
+ IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getMutatorConfig_EPackages(), ecorePackage.getEPackage(), null, "ePackages", null, 0, -1,
+ MutatorConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,
+ !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getMutatorConfig_MaxDeleteCount(), ecorePackage.getEIntegerObject(), "maxDeleteCount", null, 0,
+ 1, MutatorConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
// Create resource
createResource(eNS_URI);
}
-} //ConfigPackageImpl
\ No newline at end of file
+} // ConfigPackageImpl
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/impl/DiffReportImpl.java b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/impl/DiffReportImpl.java
index 8b02c8d..bda9548 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/impl/DiffReportImpl.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/impl/DiffReportImpl.java
@@ -35,10 +35,10 @@
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.DiffReportImpl#getDiffs <em>Diffs</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.DiffReportImpl#getDiffs <em>Diffs</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
public class DiffReportImpl extends EObjectImpl implements DiffReport {
@@ -46,6 +46,7 @@
* The cached value of the '{@link #getDiffs() <em>Diffs</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getDiffs()
* @generated
* @ordered
@@ -55,6 +56,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected DiffReportImpl() {
@@ -64,6 +66,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -74,6 +77,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EList<TestDiff> getDiffs() {
@@ -86,13 +90,14 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
- case ConfigPackage.DIFF_REPORT__DIFFS:
- return ((InternalEList<?>)getDiffs()).basicRemove(otherEnd, msgs);
+ case ConfigPackage.DIFF_REPORT__DIFFS:
+ return ((InternalEList<?>) getDiffs()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -100,13 +105,14 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case ConfigPackage.DIFF_REPORT__DIFFS:
- return getDiffs();
+ case ConfigPackage.DIFF_REPORT__DIFFS:
+ return getDiffs();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -114,16 +120,17 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case ConfigPackage.DIFF_REPORT__DIFFS:
- getDiffs().clear();
- getDiffs().addAll((Collection<? extends TestDiff>)newValue);
- return;
+ case ConfigPackage.DIFF_REPORT__DIFFS:
+ getDiffs().clear();
+ getDiffs().addAll((Collection<? extends TestDiff>) newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -131,14 +138,15 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case ConfigPackage.DIFF_REPORT__DIFFS:
- getDiffs().clear();
- return;
+ case ConfigPackage.DIFF_REPORT__DIFFS:
+ getDiffs().clear();
+ return;
}
super.eUnset(featureID);
}
@@ -146,15 +154,16 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case ConfigPackage.DIFF_REPORT__DIFFS:
- return diffs != null && !diffs.isEmpty();
+ case ConfigPackage.DIFF_REPORT__DIFFS:
+ return diffs != null && !diffs.isEmpty();
}
return super.eIsSet(featureID);
}
-} //DiffReportImpl
\ No newline at end of file
+} // DiffReportImpl
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/impl/MutatorConfigImpl.java b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/impl/MutatorConfigImpl.java
index 8eeeb7d..01324c9 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/impl/MutatorConfigImpl.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/impl/MutatorConfigImpl.java
@@ -36,18 +36,24 @@
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.MutatorConfigImpl#getRootEClass <em>Root EClass</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.MutatorConfigImpl#getMinObjectsCount <em>Min Objects Count</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.MutatorConfigImpl#isIgnoreAndLog <em>Ignore And Log</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.MutatorConfigImpl#isDoNotGenerateRoot <em>Do Not Generate Root</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.MutatorConfigImpl#isUseEcoreUtilDelete <em>Use Ecore Util Delete</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.MutatorConfigImpl#getEClassesToIgnore <em>EClasses To Ignore</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.MutatorConfigImpl#getEStructuralFeaturesToIgnore <em>EStructural Features To Ignore</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.MutatorConfigImpl#getEPackages <em>EPackages</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.MutatorConfigImpl#getMaxDeleteCount <em>Max Delete Count</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.MutatorConfigImpl#getRootEClass <em>Root EClass</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.MutatorConfigImpl#getMinObjectsCount <em>Min Objects Count
+ * </em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.MutatorConfigImpl#isIgnoreAndLog <em>Ignore And Log</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.MutatorConfigImpl#isDoNotGenerateRoot <em>Do Not Generate
+ * Root</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.MutatorConfigImpl#isUseEcoreUtilDelete <em>Use Ecore Util
+ * Delete</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.MutatorConfigImpl#getEClassesToIgnore <em>EClasses To
+ * Ignore</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.MutatorConfigImpl#getEStructuralFeaturesToIgnore <em>
+ * EStructural Features To Ignore</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.MutatorConfigImpl#getEPackages <em>EPackages</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.MutatorConfigImpl#getMaxDeleteCount <em>Max Delete Count
+ * </em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
public class MutatorConfigImpl extends EObjectImpl implements MutatorConfig {
@@ -55,6 +61,7 @@
* The cached value of the '{@link #getRootEClass() <em>Root EClass</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getRootEClass()
* @generated
* @ordered
@@ -65,6 +72,7 @@
* The default value of the '{@link #getMinObjectsCount() <em>Min Objects Count</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getMinObjectsCount()
* @generated
* @ordered
@@ -75,6 +83,7 @@
* The cached value of the '{@link #getMinObjectsCount() <em>Min Objects Count</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getMinObjectsCount()
* @generated
* @ordered
@@ -85,6 +94,7 @@
* The default value of the '{@link #isIgnoreAndLog() <em>Ignore And Log</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #isIgnoreAndLog()
* @generated
* @ordered
@@ -95,6 +105,7 @@
* The cached value of the '{@link #isIgnoreAndLog() <em>Ignore And Log</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #isIgnoreAndLog()
* @generated
* @ordered
@@ -105,6 +116,7 @@
* The default value of the '{@link #isDoNotGenerateRoot() <em>Do Not Generate Root</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #isDoNotGenerateRoot()
* @generated
* @ordered
@@ -115,6 +127,7 @@
* The cached value of the '{@link #isDoNotGenerateRoot() <em>Do Not Generate Root</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #isDoNotGenerateRoot()
* @generated
* @ordered
@@ -125,6 +138,7 @@
* The default value of the '{@link #isUseEcoreUtilDelete() <em>Use Ecore Util Delete</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #isUseEcoreUtilDelete()
* @generated
* @ordered
@@ -135,6 +149,7 @@
* The cached value of the '{@link #isUseEcoreUtilDelete() <em>Use Ecore Util Delete</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #isUseEcoreUtilDelete()
* @generated
* @ordered
@@ -145,6 +160,7 @@
* The cached value of the '{@link #getEClassesToIgnore() <em>EClasses To Ignore</em>}' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getEClassesToIgnore()
* @generated
* @ordered
@@ -152,9 +168,11 @@
protected EList<EClass> eClassesToIgnore;
/**
- * The cached value of the '{@link #getEStructuralFeaturesToIgnore() <em>EStructural Features To Ignore</em>}' reference list.
+ * The cached value of the '{@link #getEStructuralFeaturesToIgnore() <em>EStructural Features To Ignore</em>}'
+ * reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getEStructuralFeaturesToIgnore()
* @generated
* @ordered
@@ -165,6 +183,7 @@
* The cached value of the '{@link #getEPackages() <em>EPackages</em>}' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getEPackages()
* @generated
* @ordered
@@ -175,6 +194,7 @@
* The default value of the '{@link #getMaxDeleteCount() <em>Max Delete Count</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getMaxDeleteCount()
* @generated
* @ordered
@@ -185,6 +205,7 @@
* The cached value of the '{@link #getMaxDeleteCount() <em>Max Delete Count</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getMaxDeleteCount()
* @generated
* @ordered
@@ -194,6 +215,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected MutatorConfigImpl() {
@@ -203,6 +225,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -213,15 +236,17 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EClass getRootEClass() {
if (rootEClass != null && rootEClass.eIsProxy()) {
- InternalEObject oldRootEClass = (InternalEObject)rootEClass;
- rootEClass = (EClass)eResolveProxy(oldRootEClass);
+ InternalEObject oldRootEClass = (InternalEObject) rootEClass;
+ rootEClass = (EClass) eResolveProxy(oldRootEClass);
if (rootEClass != oldRootEClass) {
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, ConfigPackage.MUTATOR_CONFIG__ROOT_ECLASS, oldRootEClass, rootEClass));
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE,
+ ConfigPackage.MUTATOR_CONFIG__ROOT_ECLASS, oldRootEClass, rootEClass));
}
}
return rootEClass;
@@ -230,6 +255,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EClass basicGetRootEClass() {
@@ -239,18 +265,21 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setRootEClass(EClass newRootEClass) {
EClass oldRootEClass = rootEClass;
rootEClass = newRootEClass;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.MUTATOR_CONFIG__ROOT_ECLASS, oldRootEClass, rootEClass));
+ eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.MUTATOR_CONFIG__ROOT_ECLASS,
+ oldRootEClass, rootEClass));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public int getMinObjectsCount() {
@@ -260,18 +289,21 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setMinObjectsCount(int newMinObjectsCount) {
int oldMinObjectsCount = minObjectsCount;
minObjectsCount = newMinObjectsCount;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.MUTATOR_CONFIG__MIN_OBJECTS_COUNT, oldMinObjectsCount, minObjectsCount));
+ eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.MUTATOR_CONFIG__MIN_OBJECTS_COUNT,
+ oldMinObjectsCount, minObjectsCount));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public boolean isIgnoreAndLog() {
@@ -281,18 +313,21 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setIgnoreAndLog(boolean newIgnoreAndLog) {
boolean oldIgnoreAndLog = ignoreAndLog;
ignoreAndLog = newIgnoreAndLog;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.MUTATOR_CONFIG__IGNORE_AND_LOG, oldIgnoreAndLog, ignoreAndLog));
+ eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.MUTATOR_CONFIG__IGNORE_AND_LOG,
+ oldIgnoreAndLog, ignoreAndLog));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public boolean isDoNotGenerateRoot() {
@@ -302,18 +337,21 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setDoNotGenerateRoot(boolean newDoNotGenerateRoot) {
boolean oldDoNotGenerateRoot = doNotGenerateRoot;
doNotGenerateRoot = newDoNotGenerateRoot;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.MUTATOR_CONFIG__DO_NOT_GENERATE_ROOT, oldDoNotGenerateRoot, doNotGenerateRoot));
+ eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.MUTATOR_CONFIG__DO_NOT_GENERATE_ROOT,
+ oldDoNotGenerateRoot, doNotGenerateRoot));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public boolean isUseEcoreUtilDelete() {
@@ -323,23 +361,27 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setUseEcoreUtilDelete(boolean newUseEcoreUtilDelete) {
boolean oldUseEcoreUtilDelete = useEcoreUtilDelete;
useEcoreUtilDelete = newUseEcoreUtilDelete;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.MUTATOR_CONFIG__USE_ECORE_UTIL_DELETE, oldUseEcoreUtilDelete, useEcoreUtilDelete));
+ eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.MUTATOR_CONFIG__USE_ECORE_UTIL_DELETE,
+ oldUseEcoreUtilDelete, useEcoreUtilDelete));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EList<EClass> getEClassesToIgnore() {
if (eClassesToIgnore == null) {
- eClassesToIgnore = new EObjectResolvingEList<EClass>(EClass.class, this, ConfigPackage.MUTATOR_CONFIG__ECLASSES_TO_IGNORE);
+ eClassesToIgnore = new EObjectResolvingEList<EClass>(EClass.class, this,
+ ConfigPackage.MUTATOR_CONFIG__ECLASSES_TO_IGNORE);
}
return eClassesToIgnore;
}
@@ -347,11 +389,13 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EList<EStructuralFeature> getEStructuralFeaturesToIgnore() {
if (eStructuralFeaturesToIgnore == null) {
- eStructuralFeaturesToIgnore = new EObjectResolvingEList<EStructuralFeature>(EStructuralFeature.class, this, ConfigPackage.MUTATOR_CONFIG__ESTRUCTURAL_FEATURES_TO_IGNORE);
+ eStructuralFeaturesToIgnore = new EObjectResolvingEList<EStructuralFeature>(EStructuralFeature.class, this,
+ ConfigPackage.MUTATOR_CONFIG__ESTRUCTURAL_FEATURES_TO_IGNORE);
}
return eStructuralFeaturesToIgnore;
}
@@ -359,11 +403,13 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EList<EPackage> getEPackages() {
if (ePackages == null) {
- ePackages = new EObjectResolvingEList<EPackage>(EPackage.class, this, ConfigPackage.MUTATOR_CONFIG__EPACKAGES);
+ ePackages = new EObjectResolvingEList<EPackage>(EPackage.class, this,
+ ConfigPackage.MUTATOR_CONFIG__EPACKAGES);
}
return ePackages;
}
@@ -371,6 +417,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Integer getMaxDeleteCount() {
@@ -380,42 +427,46 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setMaxDeleteCount(Integer newMaxDeleteCount) {
Integer oldMaxDeleteCount = maxDeleteCount;
maxDeleteCount = newMaxDeleteCount;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.MUTATOR_CONFIG__MAX_DELETE_COUNT, oldMaxDeleteCount, maxDeleteCount));
+ eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.MUTATOR_CONFIG__MAX_DELETE_COUNT,
+ oldMaxDeleteCount, maxDeleteCount));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case ConfigPackage.MUTATOR_CONFIG__ROOT_ECLASS:
- if (resolve) return getRootEClass();
- return basicGetRootEClass();
- case ConfigPackage.MUTATOR_CONFIG__MIN_OBJECTS_COUNT:
- return getMinObjectsCount();
- case ConfigPackage.MUTATOR_CONFIG__IGNORE_AND_LOG:
- return isIgnoreAndLog();
- case ConfigPackage.MUTATOR_CONFIG__DO_NOT_GENERATE_ROOT:
- return isDoNotGenerateRoot();
- case ConfigPackage.MUTATOR_CONFIG__USE_ECORE_UTIL_DELETE:
- return isUseEcoreUtilDelete();
- case ConfigPackage.MUTATOR_CONFIG__ECLASSES_TO_IGNORE:
- return getEClassesToIgnore();
- case ConfigPackage.MUTATOR_CONFIG__ESTRUCTURAL_FEATURES_TO_IGNORE:
- return getEStructuralFeaturesToIgnore();
- case ConfigPackage.MUTATOR_CONFIG__EPACKAGES:
- return getEPackages();
- case ConfigPackage.MUTATOR_CONFIG__MAX_DELETE_COUNT:
- return getMaxDeleteCount();
+ case ConfigPackage.MUTATOR_CONFIG__ROOT_ECLASS:
+ if (resolve)
+ return getRootEClass();
+ return basicGetRootEClass();
+ case ConfigPackage.MUTATOR_CONFIG__MIN_OBJECTS_COUNT:
+ return getMinObjectsCount();
+ case ConfigPackage.MUTATOR_CONFIG__IGNORE_AND_LOG:
+ return isIgnoreAndLog();
+ case ConfigPackage.MUTATOR_CONFIG__DO_NOT_GENERATE_ROOT:
+ return isDoNotGenerateRoot();
+ case ConfigPackage.MUTATOR_CONFIG__USE_ECORE_UTIL_DELETE:
+ return isUseEcoreUtilDelete();
+ case ConfigPackage.MUTATOR_CONFIG__ECLASSES_TO_IGNORE:
+ return getEClassesToIgnore();
+ case ConfigPackage.MUTATOR_CONFIG__ESTRUCTURAL_FEATURES_TO_IGNORE:
+ return getEStructuralFeaturesToIgnore();
+ case ConfigPackage.MUTATOR_CONFIG__EPACKAGES:
+ return getEPackages();
+ case ConfigPackage.MUTATOR_CONFIG__MAX_DELETE_COUNT:
+ return getMaxDeleteCount();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -423,42 +474,43 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case ConfigPackage.MUTATOR_CONFIG__ROOT_ECLASS:
- setRootEClass((EClass)newValue);
- return;
- case ConfigPackage.MUTATOR_CONFIG__MIN_OBJECTS_COUNT:
- setMinObjectsCount((Integer)newValue);
- return;
- case ConfigPackage.MUTATOR_CONFIG__IGNORE_AND_LOG:
- setIgnoreAndLog((Boolean)newValue);
- return;
- case ConfigPackage.MUTATOR_CONFIG__DO_NOT_GENERATE_ROOT:
- setDoNotGenerateRoot((Boolean)newValue);
- return;
- case ConfigPackage.MUTATOR_CONFIG__USE_ECORE_UTIL_DELETE:
- setUseEcoreUtilDelete((Boolean)newValue);
- return;
- case ConfigPackage.MUTATOR_CONFIG__ECLASSES_TO_IGNORE:
- getEClassesToIgnore().clear();
- getEClassesToIgnore().addAll((Collection<? extends EClass>)newValue);
- return;
- case ConfigPackage.MUTATOR_CONFIG__ESTRUCTURAL_FEATURES_TO_IGNORE:
- getEStructuralFeaturesToIgnore().clear();
- getEStructuralFeaturesToIgnore().addAll((Collection<? extends EStructuralFeature>)newValue);
- return;
- case ConfigPackage.MUTATOR_CONFIG__EPACKAGES:
- getEPackages().clear();
- getEPackages().addAll((Collection<? extends EPackage>)newValue);
- return;
- case ConfigPackage.MUTATOR_CONFIG__MAX_DELETE_COUNT:
- setMaxDeleteCount((Integer)newValue);
- return;
+ case ConfigPackage.MUTATOR_CONFIG__ROOT_ECLASS:
+ setRootEClass((EClass) newValue);
+ return;
+ case ConfigPackage.MUTATOR_CONFIG__MIN_OBJECTS_COUNT:
+ setMinObjectsCount((Integer) newValue);
+ return;
+ case ConfigPackage.MUTATOR_CONFIG__IGNORE_AND_LOG:
+ setIgnoreAndLog((Boolean) newValue);
+ return;
+ case ConfigPackage.MUTATOR_CONFIG__DO_NOT_GENERATE_ROOT:
+ setDoNotGenerateRoot((Boolean) newValue);
+ return;
+ case ConfigPackage.MUTATOR_CONFIG__USE_ECORE_UTIL_DELETE:
+ setUseEcoreUtilDelete((Boolean) newValue);
+ return;
+ case ConfigPackage.MUTATOR_CONFIG__ECLASSES_TO_IGNORE:
+ getEClassesToIgnore().clear();
+ getEClassesToIgnore().addAll((Collection<? extends EClass>) newValue);
+ return;
+ case ConfigPackage.MUTATOR_CONFIG__ESTRUCTURAL_FEATURES_TO_IGNORE:
+ getEStructuralFeaturesToIgnore().clear();
+ getEStructuralFeaturesToIgnore().addAll((Collection<? extends EStructuralFeature>) newValue);
+ return;
+ case ConfigPackage.MUTATOR_CONFIG__EPACKAGES:
+ getEPackages().clear();
+ getEPackages().addAll((Collection<? extends EPackage>) newValue);
+ return;
+ case ConfigPackage.MUTATOR_CONFIG__MAX_DELETE_COUNT:
+ setMaxDeleteCount((Integer) newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -466,38 +518,39 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case ConfigPackage.MUTATOR_CONFIG__ROOT_ECLASS:
- setRootEClass((EClass)null);
- return;
- case ConfigPackage.MUTATOR_CONFIG__MIN_OBJECTS_COUNT:
- setMinObjectsCount(MIN_OBJECTS_COUNT_EDEFAULT);
- return;
- case ConfigPackage.MUTATOR_CONFIG__IGNORE_AND_LOG:
- setIgnoreAndLog(IGNORE_AND_LOG_EDEFAULT);
- return;
- case ConfigPackage.MUTATOR_CONFIG__DO_NOT_GENERATE_ROOT:
- setDoNotGenerateRoot(DO_NOT_GENERATE_ROOT_EDEFAULT);
- return;
- case ConfigPackage.MUTATOR_CONFIG__USE_ECORE_UTIL_DELETE:
- setUseEcoreUtilDelete(USE_ECORE_UTIL_DELETE_EDEFAULT);
- return;
- case ConfigPackage.MUTATOR_CONFIG__ECLASSES_TO_IGNORE:
- getEClassesToIgnore().clear();
- return;
- case ConfigPackage.MUTATOR_CONFIG__ESTRUCTURAL_FEATURES_TO_IGNORE:
- getEStructuralFeaturesToIgnore().clear();
- return;
- case ConfigPackage.MUTATOR_CONFIG__EPACKAGES:
- getEPackages().clear();
- return;
- case ConfigPackage.MUTATOR_CONFIG__MAX_DELETE_COUNT:
- setMaxDeleteCount(MAX_DELETE_COUNT_EDEFAULT);
- return;
+ case ConfigPackage.MUTATOR_CONFIG__ROOT_ECLASS:
+ setRootEClass((EClass) null);
+ return;
+ case ConfigPackage.MUTATOR_CONFIG__MIN_OBJECTS_COUNT:
+ setMinObjectsCount(MIN_OBJECTS_COUNT_EDEFAULT);
+ return;
+ case ConfigPackage.MUTATOR_CONFIG__IGNORE_AND_LOG:
+ setIgnoreAndLog(IGNORE_AND_LOG_EDEFAULT);
+ return;
+ case ConfigPackage.MUTATOR_CONFIG__DO_NOT_GENERATE_ROOT:
+ setDoNotGenerateRoot(DO_NOT_GENERATE_ROOT_EDEFAULT);
+ return;
+ case ConfigPackage.MUTATOR_CONFIG__USE_ECORE_UTIL_DELETE:
+ setUseEcoreUtilDelete(USE_ECORE_UTIL_DELETE_EDEFAULT);
+ return;
+ case ConfigPackage.MUTATOR_CONFIG__ECLASSES_TO_IGNORE:
+ getEClassesToIgnore().clear();
+ return;
+ case ConfigPackage.MUTATOR_CONFIG__ESTRUCTURAL_FEATURES_TO_IGNORE:
+ getEStructuralFeaturesToIgnore().clear();
+ return;
+ case ConfigPackage.MUTATOR_CONFIG__EPACKAGES:
+ getEPackages().clear();
+ return;
+ case ConfigPackage.MUTATOR_CONFIG__MAX_DELETE_COUNT:
+ setMaxDeleteCount(MAX_DELETE_COUNT_EDEFAULT);
+ return;
}
super.eUnset(featureID);
}
@@ -505,29 +558,31 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case ConfigPackage.MUTATOR_CONFIG__ROOT_ECLASS:
- return rootEClass != null;
- case ConfigPackage.MUTATOR_CONFIG__MIN_OBJECTS_COUNT:
- return minObjectsCount != MIN_OBJECTS_COUNT_EDEFAULT;
- case ConfigPackage.MUTATOR_CONFIG__IGNORE_AND_LOG:
- return ignoreAndLog != IGNORE_AND_LOG_EDEFAULT;
- case ConfigPackage.MUTATOR_CONFIG__DO_NOT_GENERATE_ROOT:
- return doNotGenerateRoot != DO_NOT_GENERATE_ROOT_EDEFAULT;
- case ConfigPackage.MUTATOR_CONFIG__USE_ECORE_UTIL_DELETE:
- return useEcoreUtilDelete != USE_ECORE_UTIL_DELETE_EDEFAULT;
- case ConfigPackage.MUTATOR_CONFIG__ECLASSES_TO_IGNORE:
- return eClassesToIgnore != null && !eClassesToIgnore.isEmpty();
- case ConfigPackage.MUTATOR_CONFIG__ESTRUCTURAL_FEATURES_TO_IGNORE:
- return eStructuralFeaturesToIgnore != null && !eStructuralFeaturesToIgnore.isEmpty();
- case ConfigPackage.MUTATOR_CONFIG__EPACKAGES:
- return ePackages != null && !ePackages.isEmpty();
- case ConfigPackage.MUTATOR_CONFIG__MAX_DELETE_COUNT:
- return MAX_DELETE_COUNT_EDEFAULT == null ? maxDeleteCount != null : !MAX_DELETE_COUNT_EDEFAULT.equals(maxDeleteCount);
+ case ConfigPackage.MUTATOR_CONFIG__ROOT_ECLASS:
+ return rootEClass != null;
+ case ConfigPackage.MUTATOR_CONFIG__MIN_OBJECTS_COUNT:
+ return minObjectsCount != MIN_OBJECTS_COUNT_EDEFAULT;
+ case ConfigPackage.MUTATOR_CONFIG__IGNORE_AND_LOG:
+ return ignoreAndLog != IGNORE_AND_LOG_EDEFAULT;
+ case ConfigPackage.MUTATOR_CONFIG__DO_NOT_GENERATE_ROOT:
+ return doNotGenerateRoot != DO_NOT_GENERATE_ROOT_EDEFAULT;
+ case ConfigPackage.MUTATOR_CONFIG__USE_ECORE_UTIL_DELETE:
+ return useEcoreUtilDelete != USE_ECORE_UTIL_DELETE_EDEFAULT;
+ case ConfigPackage.MUTATOR_CONFIG__ECLASSES_TO_IGNORE:
+ return eClassesToIgnore != null && !eClassesToIgnore.isEmpty();
+ case ConfigPackage.MUTATOR_CONFIG__ESTRUCTURAL_FEATURES_TO_IGNORE:
+ return eStructuralFeaturesToIgnore != null && !eStructuralFeaturesToIgnore.isEmpty();
+ case ConfigPackage.MUTATOR_CONFIG__EPACKAGES:
+ return ePackages != null && !ePackages.isEmpty();
+ case ConfigPackage.MUTATOR_CONFIG__MAX_DELETE_COUNT:
+ return MAX_DELETE_COUNT_EDEFAULT == null ? maxDeleteCount != null : !MAX_DELETE_COUNT_EDEFAULT
+ .equals(maxDeleteCount);
}
return super.eIsSet(featureID);
}
@@ -535,11 +590,13 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String toString() {
- if (eIsProxy()) return super.toString();
+ if (eIsProxy())
+ return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (minObjectsCount: ");
@@ -556,4 +613,4 @@
return result.toString();
}
-} //MutatorConfigImpl
\ No newline at end of file
+} // MutatorConfigImpl
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/impl/RootImpl.java b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/impl/RootImpl.java
index f13bdb3..194d4ac 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/impl/RootImpl.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/impl/RootImpl.java
@@ -35,10 +35,10 @@
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.RootImpl#getElements <em>Elements</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.RootImpl#getElements <em>Elements</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
public class RootImpl extends EObjectImpl implements Root {
@@ -46,6 +46,7 @@
* The cached value of the '{@link #getElements() <em>Elements</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getElements()
* @generated
* @ordered
@@ -55,6 +56,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected RootImpl() {
@@ -64,6 +66,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -74,6 +77,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EList<EObject> getElements() {
@@ -86,13 +90,14 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
- case ConfigPackage.ROOT__ELEMENTS:
- return ((InternalEList<?>)getElements()).basicRemove(otherEnd, msgs);
+ case ConfigPackage.ROOT__ELEMENTS:
+ return ((InternalEList<?>) getElements()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -100,13 +105,14 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case ConfigPackage.ROOT__ELEMENTS:
- return getElements();
+ case ConfigPackage.ROOT__ELEMENTS:
+ return getElements();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -114,16 +120,17 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case ConfigPackage.ROOT__ELEMENTS:
- getElements().clear();
- getElements().addAll((Collection<? extends EObject>)newValue);
- return;
+ case ConfigPackage.ROOT__ELEMENTS:
+ getElements().clear();
+ getElements().addAll((Collection<? extends EObject>) newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -131,14 +138,15 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case ConfigPackage.ROOT__ELEMENTS:
- getElements().clear();
- return;
+ case ConfigPackage.ROOT__ELEMENTS:
+ getElements().clear();
+ return;
}
super.eUnset(featureID);
}
@@ -146,15 +154,16 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case ConfigPackage.ROOT__ELEMENTS:
- return elements != null && !elements.isEmpty();
+ case ConfigPackage.ROOT__ELEMENTS:
+ return elements != null && !elements.isEmpty();
}
return super.eIsSet(featureID);
}
-} //RootImpl
\ No newline at end of file
+} // RootImpl
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/impl/TestConfigImpl.java b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/impl/TestConfigImpl.java
index 3744104..128e732 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/impl/TestConfigImpl.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/impl/TestConfigImpl.java
@@ -30,14 +30,14 @@
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestConfigImpl#getSeed <em>Seed</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestConfigImpl#getCount <em>Count</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestConfigImpl#getTestClass <em>Test Class</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestConfigImpl#getId <em>Id</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestConfigImpl#getMutatorConfig <em>Mutator Config</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestConfigImpl#getSeed <em>Seed</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestConfigImpl#getCount <em>Count</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestConfigImpl#getTestClass <em>Test Class</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestConfigImpl#getId <em>Id</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestConfigImpl#getMutatorConfig <em>Mutator Config</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
public class TestConfigImpl extends EObjectImpl implements TestConfig {
@@ -45,6 +45,7 @@
* The default value of the '{@link #getSeed() <em>Seed</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getSeed()
* @generated
* @ordered
@@ -55,6 +56,7 @@
* The cached value of the '{@link #getSeed() <em>Seed</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getSeed()
* @generated
* @ordered
@@ -65,6 +67,7 @@
* The default value of the '{@link #getCount() <em>Count</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getCount()
* @generated
* @ordered
@@ -75,6 +78,7 @@
* The cached value of the '{@link #getCount() <em>Count</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getCount()
* @generated
* @ordered
@@ -85,6 +89,7 @@
* The cached value of the '{@link #getTestClass() <em>Test Class</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getTestClass()
* @generated
* @ordered
@@ -95,6 +100,7 @@
* The default value of the '{@link #getId() <em>Id</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getId()
* @generated
* @ordered
@@ -105,6 +111,7 @@
* The cached value of the '{@link #getId() <em>Id</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getId()
* @generated
* @ordered
@@ -115,6 +122,7 @@
* The cached value of the '{@link #getMutatorConfig() <em>Mutator Config</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getMutatorConfig()
* @generated
* @ordered
@@ -124,6 +132,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected TestConfigImpl() {
@@ -133,6 +142,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -143,6 +153,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public long getSeed() {
@@ -152,6 +163,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setSeed(long newSeed) {
@@ -164,6 +176,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public int getCount() {
@@ -173,6 +186,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setCount(int newCount) {
@@ -185,6 +199,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Class<?> getTestClass() {
@@ -194,18 +209,21 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setTestClass(Class<?> newTestClass) {
Class<?> oldTestClass = testClass;
testClass = newTestClass;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.TEST_CONFIG__TEST_CLASS, oldTestClass, testClass));
+ eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.TEST_CONFIG__TEST_CLASS, oldTestClass,
+ testClass));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public String getId() {
@@ -215,6 +233,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setId(String newId) {
@@ -227,6 +246,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public MutatorConfig getMutatorConfig() {
@@ -236,14 +256,19 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public NotificationChain basicSetMutatorConfig(MutatorConfig newMutatorConfig, NotificationChain msgs) {
MutatorConfig oldMutatorConfig = mutatorConfig;
mutatorConfig = newMutatorConfig;
if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ConfigPackage.TEST_CONFIG__MUTATOR_CONFIG, oldMutatorConfig, newMutatorConfig);
- if (msgs == null) msgs = notification; else msgs.add(notification);
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ ConfigPackage.TEST_CONFIG__MUTATOR_CONFIG, oldMutatorConfig, newMutatorConfig);
+ if (msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
}
return msgs;
}
@@ -251,32 +276,37 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setMutatorConfig(MutatorConfig newMutatorConfig) {
if (newMutatorConfig != mutatorConfig) {
NotificationChain msgs = null;
if (mutatorConfig != null)
- msgs = ((InternalEObject)mutatorConfig).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ConfigPackage.TEST_CONFIG__MUTATOR_CONFIG, null, msgs);
+ msgs = ((InternalEObject) mutatorConfig).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - ConfigPackage.TEST_CONFIG__MUTATOR_CONFIG, null, msgs);
if (newMutatorConfig != null)
- msgs = ((InternalEObject)newMutatorConfig).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ConfigPackage.TEST_CONFIG__MUTATOR_CONFIG, null, msgs);
+ msgs = ((InternalEObject) newMutatorConfig).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - ConfigPackage.TEST_CONFIG__MUTATOR_CONFIG, null, msgs);
msgs = basicSetMutatorConfig(newMutatorConfig, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.TEST_CONFIG__MUTATOR_CONFIG, newMutatorConfig, newMutatorConfig));
+ if (msgs != null)
+ msgs.dispatch();
+ } else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.TEST_CONFIG__MUTATOR_CONFIG,
+ newMutatorConfig, newMutatorConfig));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
- case ConfigPackage.TEST_CONFIG__MUTATOR_CONFIG:
- return basicSetMutatorConfig(null, msgs);
+ case ConfigPackage.TEST_CONFIG__MUTATOR_CONFIG:
+ return basicSetMutatorConfig(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -284,21 +314,22 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case ConfigPackage.TEST_CONFIG__SEED:
- return getSeed();
- case ConfigPackage.TEST_CONFIG__COUNT:
- return getCount();
- case ConfigPackage.TEST_CONFIG__TEST_CLASS:
- return getTestClass();
- case ConfigPackage.TEST_CONFIG__ID:
- return getId();
- case ConfigPackage.TEST_CONFIG__MUTATOR_CONFIG:
- return getMutatorConfig();
+ case ConfigPackage.TEST_CONFIG__SEED:
+ return getSeed();
+ case ConfigPackage.TEST_CONFIG__COUNT:
+ return getCount();
+ case ConfigPackage.TEST_CONFIG__TEST_CLASS:
+ return getTestClass();
+ case ConfigPackage.TEST_CONFIG__ID:
+ return getId();
+ case ConfigPackage.TEST_CONFIG__MUTATOR_CONFIG:
+ return getMutatorConfig();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -306,26 +337,27 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case ConfigPackage.TEST_CONFIG__SEED:
- setSeed((Long)newValue);
- return;
- case ConfigPackage.TEST_CONFIG__COUNT:
- setCount((Integer)newValue);
- return;
- case ConfigPackage.TEST_CONFIG__TEST_CLASS:
- setTestClass((Class<?>)newValue);
- return;
- case ConfigPackage.TEST_CONFIG__ID:
- setId((String)newValue);
- return;
- case ConfigPackage.TEST_CONFIG__MUTATOR_CONFIG:
- setMutatorConfig((MutatorConfig)newValue);
- return;
+ case ConfigPackage.TEST_CONFIG__SEED:
+ setSeed((Long) newValue);
+ return;
+ case ConfigPackage.TEST_CONFIG__COUNT:
+ setCount((Integer) newValue);
+ return;
+ case ConfigPackage.TEST_CONFIG__TEST_CLASS:
+ setTestClass((Class<?>) newValue);
+ return;
+ case ConfigPackage.TEST_CONFIG__ID:
+ setId((String) newValue);
+ return;
+ case ConfigPackage.TEST_CONFIG__MUTATOR_CONFIG:
+ setMutatorConfig((MutatorConfig) newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -333,26 +365,27 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case ConfigPackage.TEST_CONFIG__SEED:
- setSeed(SEED_EDEFAULT);
- return;
- case ConfigPackage.TEST_CONFIG__COUNT:
- setCount(COUNT_EDEFAULT);
- return;
- case ConfigPackage.TEST_CONFIG__TEST_CLASS:
- setTestClass((Class<?>)null);
- return;
- case ConfigPackage.TEST_CONFIG__ID:
- setId(ID_EDEFAULT);
- return;
- case ConfigPackage.TEST_CONFIG__MUTATOR_CONFIG:
- setMutatorConfig((MutatorConfig)null);
- return;
+ case ConfigPackage.TEST_CONFIG__SEED:
+ setSeed(SEED_EDEFAULT);
+ return;
+ case ConfigPackage.TEST_CONFIG__COUNT:
+ setCount(COUNT_EDEFAULT);
+ return;
+ case ConfigPackage.TEST_CONFIG__TEST_CLASS:
+ setTestClass((Class<?>) null);
+ return;
+ case ConfigPackage.TEST_CONFIG__ID:
+ setId(ID_EDEFAULT);
+ return;
+ case ConfigPackage.TEST_CONFIG__MUTATOR_CONFIG:
+ setMutatorConfig((MutatorConfig) null);
+ return;
}
super.eUnset(featureID);
}
@@ -360,21 +393,22 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case ConfigPackage.TEST_CONFIG__SEED:
- return seed != SEED_EDEFAULT;
- case ConfigPackage.TEST_CONFIG__COUNT:
- return count != COUNT_EDEFAULT;
- case ConfigPackage.TEST_CONFIG__TEST_CLASS:
- return testClass != null;
- case ConfigPackage.TEST_CONFIG__ID:
- return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
- case ConfigPackage.TEST_CONFIG__MUTATOR_CONFIG:
- return mutatorConfig != null;
+ case ConfigPackage.TEST_CONFIG__SEED:
+ return seed != SEED_EDEFAULT;
+ case ConfigPackage.TEST_CONFIG__COUNT:
+ return count != COUNT_EDEFAULT;
+ case ConfigPackage.TEST_CONFIG__TEST_CLASS:
+ return testClass != null;
+ case ConfigPackage.TEST_CONFIG__ID:
+ return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
+ case ConfigPackage.TEST_CONFIG__MUTATOR_CONFIG:
+ return mutatorConfig != null;
}
return super.eIsSet(featureID);
}
@@ -382,11 +416,13 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String toString() {
- if (eIsProxy()) return super.toString();
+ if (eIsProxy())
+ return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (seed: ");
@@ -401,4 +437,4 @@
return result.toString();
}
-} //TestConfigImpl
\ No newline at end of file
+} // TestConfigImpl
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/impl/TestDiffImpl.java b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/impl/TestDiffImpl.java
index 79dcb8e..1151ab1 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/impl/TestDiffImpl.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/impl/TestDiffImpl.java
@@ -33,13 +33,13 @@
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestDiffImpl#getLastUpdate <em>Last Update</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestDiffImpl#getConfig <em>Config</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestDiffImpl#getOldResult <em>Old Result</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestDiffImpl#getNewResult <em>New Result</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestDiffImpl#getLastUpdate <em>Last Update</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestDiffImpl#getConfig <em>Config</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestDiffImpl#getOldResult <em>Old Result</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestDiffImpl#getNewResult <em>New Result</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
public class TestDiffImpl extends EObjectImpl implements TestDiff {
@@ -47,6 +47,7 @@
* The default value of the '{@link #getLastUpdate() <em>Last Update</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getLastUpdate()
* @generated
* @ordered
@@ -57,6 +58,7 @@
* The cached value of the '{@link #getLastUpdate() <em>Last Update</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getLastUpdate()
* @generated
* @ordered
@@ -67,6 +69,7 @@
* The cached value of the '{@link #getConfig() <em>Config</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getConfig()
* @generated
* @ordered
@@ -77,6 +80,7 @@
* The cached value of the '{@link #getOldResult() <em>Old Result</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getOldResult()
* @generated
* @ordered
@@ -87,6 +91,7 @@
* The cached value of the '{@link #getNewResult() <em>New Result</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getNewResult()
* @generated
* @ordered
@@ -96,6 +101,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected TestDiffImpl() {
@@ -105,6 +111,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -115,6 +122,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Date getLastUpdate() {
@@ -124,27 +132,31 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setLastUpdate(Date newLastUpdate) {
Date oldLastUpdate = lastUpdate;
lastUpdate = newLastUpdate;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.TEST_DIFF__LAST_UPDATE, oldLastUpdate, lastUpdate));
+ eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.TEST_DIFF__LAST_UPDATE, oldLastUpdate,
+ lastUpdate));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public TestConfig getConfig() {
if (config != null && config.eIsProxy()) {
- InternalEObject oldConfig = (InternalEObject)config;
- config = (TestConfig)eResolveProxy(oldConfig);
+ InternalEObject oldConfig = (InternalEObject) config;
+ config = (TestConfig) eResolveProxy(oldConfig);
if (config != oldConfig) {
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, ConfigPackage.TEST_DIFF__CONFIG, oldConfig, config));
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, ConfigPackage.TEST_DIFF__CONFIG,
+ oldConfig, config));
}
}
return config;
@@ -153,6 +165,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public TestConfig basicGetConfig() {
@@ -162,6 +175,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setConfig(TestConfig newConfig) {
@@ -174,6 +188,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public TestResult getOldResult() {
@@ -183,14 +198,19 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public NotificationChain basicSetOldResult(TestResult newOldResult, NotificationChain msgs) {
TestResult oldOldResult = oldResult;
oldResult = newOldResult;
if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ConfigPackage.TEST_DIFF__OLD_RESULT, oldOldResult, newOldResult);
- if (msgs == null) msgs = notification; else msgs.add(notification);
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ ConfigPackage.TEST_DIFF__OLD_RESULT, oldOldResult, newOldResult);
+ if (msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
}
return msgs;
}
@@ -198,25 +218,30 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setOldResult(TestResult newOldResult) {
if (newOldResult != oldResult) {
NotificationChain msgs = null;
if (oldResult != null)
- msgs = ((InternalEObject)oldResult).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ConfigPackage.TEST_DIFF__OLD_RESULT, null, msgs);
+ msgs = ((InternalEObject) oldResult).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - ConfigPackage.TEST_DIFF__OLD_RESULT, null, msgs);
if (newOldResult != null)
- msgs = ((InternalEObject)newOldResult).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ConfigPackage.TEST_DIFF__OLD_RESULT, null, msgs);
+ msgs = ((InternalEObject) newOldResult).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - ConfigPackage.TEST_DIFF__OLD_RESULT, null, msgs);
msgs = basicSetOldResult(newOldResult, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.TEST_DIFF__OLD_RESULT, newOldResult, newOldResult));
+ if (msgs != null)
+ msgs.dispatch();
+ } else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.TEST_DIFF__OLD_RESULT, newOldResult,
+ newOldResult));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public TestResult getNewResult() {
@@ -226,14 +251,19 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public NotificationChain basicSetNewResult(TestResult newNewResult, NotificationChain msgs) {
TestResult oldNewResult = newResult;
newResult = newNewResult;
if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ConfigPackage.TEST_DIFF__NEW_RESULT, oldNewResult, newNewResult);
- if (msgs == null) msgs = notification; else msgs.add(notification);
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ ConfigPackage.TEST_DIFF__NEW_RESULT, oldNewResult, newNewResult);
+ if (msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
}
return msgs;
}
@@ -241,34 +271,39 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setNewResult(TestResult newNewResult) {
if (newNewResult != newResult) {
NotificationChain msgs = null;
if (newResult != null)
- msgs = ((InternalEObject)newResult).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ConfigPackage.TEST_DIFF__NEW_RESULT, null, msgs);
+ msgs = ((InternalEObject) newResult).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - ConfigPackage.TEST_DIFF__NEW_RESULT, null, msgs);
if (newNewResult != null)
- msgs = ((InternalEObject)newNewResult).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ConfigPackage.TEST_DIFF__NEW_RESULT, null, msgs);
+ msgs = ((InternalEObject) newNewResult).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - ConfigPackage.TEST_DIFF__NEW_RESULT, null, msgs);
msgs = basicSetNewResult(newNewResult, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.TEST_DIFF__NEW_RESULT, newNewResult, newNewResult));
+ if (msgs != null)
+ msgs.dispatch();
+ } else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.TEST_DIFF__NEW_RESULT, newNewResult,
+ newNewResult));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
- case ConfigPackage.TEST_DIFF__OLD_RESULT:
- return basicSetOldResult(null, msgs);
- case ConfigPackage.TEST_DIFF__NEW_RESULT:
- return basicSetNewResult(null, msgs);
+ case ConfigPackage.TEST_DIFF__OLD_RESULT:
+ return basicSetOldResult(null, msgs);
+ case ConfigPackage.TEST_DIFF__NEW_RESULT:
+ return basicSetNewResult(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -276,20 +311,22 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case ConfigPackage.TEST_DIFF__LAST_UPDATE:
- return getLastUpdate();
- case ConfigPackage.TEST_DIFF__CONFIG:
- if (resolve) return getConfig();
- return basicGetConfig();
- case ConfigPackage.TEST_DIFF__OLD_RESULT:
- return getOldResult();
- case ConfigPackage.TEST_DIFF__NEW_RESULT:
- return getNewResult();
+ case ConfigPackage.TEST_DIFF__LAST_UPDATE:
+ return getLastUpdate();
+ case ConfigPackage.TEST_DIFF__CONFIG:
+ if (resolve)
+ return getConfig();
+ return basicGetConfig();
+ case ConfigPackage.TEST_DIFF__OLD_RESULT:
+ return getOldResult();
+ case ConfigPackage.TEST_DIFF__NEW_RESULT:
+ return getNewResult();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -297,23 +334,24 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case ConfigPackage.TEST_DIFF__LAST_UPDATE:
- setLastUpdate((Date)newValue);
- return;
- case ConfigPackage.TEST_DIFF__CONFIG:
- setConfig((TestConfig)newValue);
- return;
- case ConfigPackage.TEST_DIFF__OLD_RESULT:
- setOldResult((TestResult)newValue);
- return;
- case ConfigPackage.TEST_DIFF__NEW_RESULT:
- setNewResult((TestResult)newValue);
- return;
+ case ConfigPackage.TEST_DIFF__LAST_UPDATE:
+ setLastUpdate((Date) newValue);
+ return;
+ case ConfigPackage.TEST_DIFF__CONFIG:
+ setConfig((TestConfig) newValue);
+ return;
+ case ConfigPackage.TEST_DIFF__OLD_RESULT:
+ setOldResult((TestResult) newValue);
+ return;
+ case ConfigPackage.TEST_DIFF__NEW_RESULT:
+ setNewResult((TestResult) newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -321,23 +359,24 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case ConfigPackage.TEST_DIFF__LAST_UPDATE:
- setLastUpdate(LAST_UPDATE_EDEFAULT);
- return;
- case ConfigPackage.TEST_DIFF__CONFIG:
- setConfig((TestConfig)null);
- return;
- case ConfigPackage.TEST_DIFF__OLD_RESULT:
- setOldResult((TestResult)null);
- return;
- case ConfigPackage.TEST_DIFF__NEW_RESULT:
- setNewResult((TestResult)null);
- return;
+ case ConfigPackage.TEST_DIFF__LAST_UPDATE:
+ setLastUpdate(LAST_UPDATE_EDEFAULT);
+ return;
+ case ConfigPackage.TEST_DIFF__CONFIG:
+ setConfig((TestConfig) null);
+ return;
+ case ConfigPackage.TEST_DIFF__OLD_RESULT:
+ setOldResult((TestResult) null);
+ return;
+ case ConfigPackage.TEST_DIFF__NEW_RESULT:
+ setNewResult((TestResult) null);
+ return;
}
super.eUnset(featureID);
}
@@ -345,19 +384,20 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case ConfigPackage.TEST_DIFF__LAST_UPDATE:
- return LAST_UPDATE_EDEFAULT == null ? lastUpdate != null : !LAST_UPDATE_EDEFAULT.equals(lastUpdate);
- case ConfigPackage.TEST_DIFF__CONFIG:
- return config != null;
- case ConfigPackage.TEST_DIFF__OLD_RESULT:
- return oldResult != null;
- case ConfigPackage.TEST_DIFF__NEW_RESULT:
- return newResult != null;
+ case ConfigPackage.TEST_DIFF__LAST_UPDATE:
+ return LAST_UPDATE_EDEFAULT == null ? lastUpdate != null : !LAST_UPDATE_EDEFAULT.equals(lastUpdate);
+ case ConfigPackage.TEST_DIFF__CONFIG:
+ return config != null;
+ case ConfigPackage.TEST_DIFF__OLD_RESULT:
+ return oldResult != null;
+ case ConfigPackage.TEST_DIFF__NEW_RESULT:
+ return newResult != null;
}
return super.eIsSet(featureID);
}
@@ -365,11 +405,13 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String toString() {
- if (eIsProxy()) return super.toString();
+ if (eIsProxy())
+ return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (lastUpdate: ");
@@ -378,4 +420,4 @@
return result.toString();
}
-} //TestDiffImpl
\ No newline at end of file
+} // TestDiffImpl
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/impl/TestResultImpl.java b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/impl/TestResultImpl.java
index 0e85804..2552221 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/impl/TestResultImpl.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/impl/TestResultImpl.java
@@ -27,14 +27,14 @@
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestResultImpl#getSeedCount <em>Seed Count</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestResultImpl#getTestName <em>Test Name</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestResultImpl#getError <em>Error</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestResultImpl#getFailure <em>Failure</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestResultImpl#getExecutionTime <em>Execution Time</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestResultImpl#getSeedCount <em>Seed Count</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestResultImpl#getTestName <em>Test Name</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestResultImpl#getError <em>Error</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestResultImpl#getFailure <em>Failure</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestResultImpl#getExecutionTime <em>Execution Time</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
public class TestResultImpl extends EObjectImpl implements TestResult {
@@ -42,6 +42,7 @@
* The default value of the '{@link #getSeedCount() <em>Seed Count</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getSeedCount()
* @generated
* @ordered
@@ -52,6 +53,7 @@
* The cached value of the '{@link #getSeedCount() <em>Seed Count</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getSeedCount()
* @generated
* @ordered
@@ -62,6 +64,7 @@
* The default value of the '{@link #getTestName() <em>Test Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getTestName()
* @generated
* @ordered
@@ -72,6 +75,7 @@
* The cached value of the '{@link #getTestName() <em>Test Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getTestName()
* @generated
* @ordered
@@ -82,6 +86,7 @@
* The default value of the '{@link #getError() <em>Error</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getError()
* @generated
* @ordered
@@ -92,6 +97,7 @@
* The cached value of the '{@link #getError() <em>Error</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getError()
* @generated
* @ordered
@@ -102,6 +108,7 @@
* The default value of the '{@link #getFailure() <em>Failure</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getFailure()
* @generated
* @ordered
@@ -112,6 +119,7 @@
* The cached value of the '{@link #getFailure() <em>Failure</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getFailure()
* @generated
* @ordered
@@ -122,6 +130,7 @@
* The default value of the '{@link #getExecutionTime() <em>Execution Time</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getExecutionTime()
* @generated
* @ordered
@@ -132,6 +141,7 @@
* The cached value of the '{@link #getExecutionTime() <em>Execution Time</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getExecutionTime()
* @generated
* @ordered
@@ -141,6 +151,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected TestResultImpl() {
@@ -150,6 +161,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -160,6 +172,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public int getSeedCount() {
@@ -169,18 +182,21 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setSeedCount(int newSeedCount) {
int oldSeedCount = seedCount;
seedCount = newSeedCount;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.TEST_RESULT__SEED_COUNT, oldSeedCount, seedCount));
+ eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.TEST_RESULT__SEED_COUNT, oldSeedCount,
+ seedCount));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public String getTestName() {
@@ -190,18 +206,21 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setTestName(String newTestName) {
String oldTestName = testName;
testName = newTestName;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.TEST_RESULT__TEST_NAME, oldTestName, testName));
+ eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.TEST_RESULT__TEST_NAME, oldTestName,
+ testName));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public String getError() {
@@ -211,6 +230,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setError(String newError) {
@@ -223,6 +243,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public String getFailure() {
@@ -232,18 +253,21 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setFailure(String newFailure) {
String oldFailure = failure;
failure = newFailure;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.TEST_RESULT__FAILURE, oldFailure, failure));
+ eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.TEST_RESULT__FAILURE, oldFailure,
+ failure));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public long getExecutionTime() {
@@ -253,33 +277,36 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setExecutionTime(long newExecutionTime) {
long oldExecutionTime = executionTime;
executionTime = newExecutionTime;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.TEST_RESULT__EXECUTION_TIME, oldExecutionTime, executionTime));
+ eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.TEST_RESULT__EXECUTION_TIME,
+ oldExecutionTime, executionTime));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case ConfigPackage.TEST_RESULT__SEED_COUNT:
- return getSeedCount();
- case ConfigPackage.TEST_RESULT__TEST_NAME:
- return getTestName();
- case ConfigPackage.TEST_RESULT__ERROR:
- return getError();
- case ConfigPackage.TEST_RESULT__FAILURE:
- return getFailure();
- case ConfigPackage.TEST_RESULT__EXECUTION_TIME:
- return getExecutionTime();
+ case ConfigPackage.TEST_RESULT__SEED_COUNT:
+ return getSeedCount();
+ case ConfigPackage.TEST_RESULT__TEST_NAME:
+ return getTestName();
+ case ConfigPackage.TEST_RESULT__ERROR:
+ return getError();
+ case ConfigPackage.TEST_RESULT__FAILURE:
+ return getFailure();
+ case ConfigPackage.TEST_RESULT__EXECUTION_TIME:
+ return getExecutionTime();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -287,26 +314,27 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case ConfigPackage.TEST_RESULT__SEED_COUNT:
- setSeedCount((Integer)newValue);
- return;
- case ConfigPackage.TEST_RESULT__TEST_NAME:
- setTestName((String)newValue);
- return;
- case ConfigPackage.TEST_RESULT__ERROR:
- setError((String)newValue);
- return;
- case ConfigPackage.TEST_RESULT__FAILURE:
- setFailure((String)newValue);
- return;
- case ConfigPackage.TEST_RESULT__EXECUTION_TIME:
- setExecutionTime((Long)newValue);
- return;
+ case ConfigPackage.TEST_RESULT__SEED_COUNT:
+ setSeedCount((Integer) newValue);
+ return;
+ case ConfigPackage.TEST_RESULT__TEST_NAME:
+ setTestName((String) newValue);
+ return;
+ case ConfigPackage.TEST_RESULT__ERROR:
+ setError((String) newValue);
+ return;
+ case ConfigPackage.TEST_RESULT__FAILURE:
+ setFailure((String) newValue);
+ return;
+ case ConfigPackage.TEST_RESULT__EXECUTION_TIME:
+ setExecutionTime((Long) newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -314,26 +342,27 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case ConfigPackage.TEST_RESULT__SEED_COUNT:
- setSeedCount(SEED_COUNT_EDEFAULT);
- return;
- case ConfigPackage.TEST_RESULT__TEST_NAME:
- setTestName(TEST_NAME_EDEFAULT);
- return;
- case ConfigPackage.TEST_RESULT__ERROR:
- setError(ERROR_EDEFAULT);
- return;
- case ConfigPackage.TEST_RESULT__FAILURE:
- setFailure(FAILURE_EDEFAULT);
- return;
- case ConfigPackage.TEST_RESULT__EXECUTION_TIME:
- setExecutionTime(EXECUTION_TIME_EDEFAULT);
- return;
+ case ConfigPackage.TEST_RESULT__SEED_COUNT:
+ setSeedCount(SEED_COUNT_EDEFAULT);
+ return;
+ case ConfigPackage.TEST_RESULT__TEST_NAME:
+ setTestName(TEST_NAME_EDEFAULT);
+ return;
+ case ConfigPackage.TEST_RESULT__ERROR:
+ setError(ERROR_EDEFAULT);
+ return;
+ case ConfigPackage.TEST_RESULT__FAILURE:
+ setFailure(FAILURE_EDEFAULT);
+ return;
+ case ConfigPackage.TEST_RESULT__EXECUTION_TIME:
+ setExecutionTime(EXECUTION_TIME_EDEFAULT);
+ return;
}
super.eUnset(featureID);
}
@@ -341,21 +370,22 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case ConfigPackage.TEST_RESULT__SEED_COUNT:
- return seedCount != SEED_COUNT_EDEFAULT;
- case ConfigPackage.TEST_RESULT__TEST_NAME:
- return TEST_NAME_EDEFAULT == null ? testName != null : !TEST_NAME_EDEFAULT.equals(testName);
- case ConfigPackage.TEST_RESULT__ERROR:
- return ERROR_EDEFAULT == null ? error != null : !ERROR_EDEFAULT.equals(error);
- case ConfigPackage.TEST_RESULT__FAILURE:
- return FAILURE_EDEFAULT == null ? failure != null : !FAILURE_EDEFAULT.equals(failure);
- case ConfigPackage.TEST_RESULT__EXECUTION_TIME:
- return executionTime != EXECUTION_TIME_EDEFAULT;
+ case ConfigPackage.TEST_RESULT__SEED_COUNT:
+ return seedCount != SEED_COUNT_EDEFAULT;
+ case ConfigPackage.TEST_RESULT__TEST_NAME:
+ return TEST_NAME_EDEFAULT == null ? testName != null : !TEST_NAME_EDEFAULT.equals(testName);
+ case ConfigPackage.TEST_RESULT__ERROR:
+ return ERROR_EDEFAULT == null ? error != null : !ERROR_EDEFAULT.equals(error);
+ case ConfigPackage.TEST_RESULT__FAILURE:
+ return FAILURE_EDEFAULT == null ? failure != null : !FAILURE_EDEFAULT.equals(failure);
+ case ConfigPackage.TEST_RESULT__EXECUTION_TIME:
+ return executionTime != EXECUTION_TIME_EDEFAULT;
}
return super.eIsSet(featureID);
}
@@ -363,11 +393,13 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String toString() {
- if (eIsProxy()) return super.toString();
+ if (eIsProxy())
+ return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (seedCount: ");
@@ -384,4 +416,4 @@
return result.toString();
}
-} //TestResultImpl
\ No newline at end of file
+} // TestResultImpl
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/impl/TestRunImpl.java b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/impl/TestRunImpl.java
index 21e4693..9414427 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/impl/TestRunImpl.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/impl/TestRunImpl.java
@@ -39,12 +39,12 @@
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestRunImpl#getConfig <em>Config</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestRunImpl#getTime <em>Time</em>}</li>
- * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestRunImpl#getResults <em>Results</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestRunImpl#getConfig <em>Config</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestRunImpl#getTime <em>Time</em>}</li>
+ * <li>{@link org.eclipse.emf.emfstore.fuzzy.emf.config.impl.TestRunImpl#getResults <em>Results</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
public class TestRunImpl extends EObjectImpl implements TestRun {
@@ -52,6 +52,7 @@
* The cached value of the '{@link #getConfig() <em>Config</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getConfig()
* @generated
* @ordered
@@ -62,6 +63,7 @@
* The default value of the '{@link #getTime() <em>Time</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getTime()
* @generated
* @ordered
@@ -72,6 +74,7 @@
* The cached value of the '{@link #getTime() <em>Time</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getTime()
* @generated
* @ordered
@@ -82,6 +85,7 @@
* The cached value of the '{@link #getResults() <em>Results</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getResults()
* @generated
* @ordered
@@ -91,6 +95,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected TestRunImpl() {
@@ -100,6 +105,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -110,6 +116,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public TestConfig getConfig() {
@@ -119,14 +126,19 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public NotificationChain basicSetConfig(TestConfig newConfig, NotificationChain msgs) {
TestConfig oldConfig = config;
config = newConfig;
if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ConfigPackage.TEST_RUN__CONFIG, oldConfig, newConfig);
- if (msgs == null) msgs = notification; else msgs.add(notification);
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ ConfigPackage.TEST_RUN__CONFIG, oldConfig, newConfig);
+ if (msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
}
return msgs;
}
@@ -134,25 +146,29 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setConfig(TestConfig newConfig) {
if (newConfig != config) {
NotificationChain msgs = null;
if (config != null)
- msgs = ((InternalEObject)config).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ConfigPackage.TEST_RUN__CONFIG, null, msgs);
+ msgs = ((InternalEObject) config).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - ConfigPackage.TEST_RUN__CONFIG, null, msgs);
if (newConfig != null)
- msgs = ((InternalEObject)newConfig).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ConfigPackage.TEST_RUN__CONFIG, null, msgs);
+ msgs = ((InternalEObject) newConfig).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - ConfigPackage.TEST_RUN__CONFIG, null, msgs);
msgs = basicSetConfig(newConfig, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
+ if (msgs != null)
+ msgs.dispatch();
+ } else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.TEST_RUN__CONFIG, newConfig, newConfig));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Date getTime() {
@@ -162,6 +178,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setTime(Date newTime) {
@@ -174,6 +191,7 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EList<TestResult> getResults() {
@@ -186,15 +204,16 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
- case ConfigPackage.TEST_RUN__CONFIG:
- return basicSetConfig(null, msgs);
- case ConfigPackage.TEST_RUN__RESULTS:
- return ((InternalEList<?>)getResults()).basicRemove(otherEnd, msgs);
+ case ConfigPackage.TEST_RUN__CONFIG:
+ return basicSetConfig(null, msgs);
+ case ConfigPackage.TEST_RUN__RESULTS:
+ return ((InternalEList<?>) getResults()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -202,17 +221,18 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case ConfigPackage.TEST_RUN__CONFIG:
- return getConfig();
- case ConfigPackage.TEST_RUN__TIME:
- return getTime();
- case ConfigPackage.TEST_RUN__RESULTS:
- return getResults();
+ case ConfigPackage.TEST_RUN__CONFIG:
+ return getConfig();
+ case ConfigPackage.TEST_RUN__TIME:
+ return getTime();
+ case ConfigPackage.TEST_RUN__RESULTS:
+ return getResults();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -220,22 +240,23 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case ConfigPackage.TEST_RUN__CONFIG:
- setConfig((TestConfig)newValue);
- return;
- case ConfigPackage.TEST_RUN__TIME:
- setTime((Date)newValue);
- return;
- case ConfigPackage.TEST_RUN__RESULTS:
- getResults().clear();
- getResults().addAll((Collection<? extends TestResult>)newValue);
- return;
+ case ConfigPackage.TEST_RUN__CONFIG:
+ setConfig((TestConfig) newValue);
+ return;
+ case ConfigPackage.TEST_RUN__TIME:
+ setTime((Date) newValue);
+ return;
+ case ConfigPackage.TEST_RUN__RESULTS:
+ getResults().clear();
+ getResults().addAll((Collection<? extends TestResult>) newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -243,20 +264,21 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case ConfigPackage.TEST_RUN__CONFIG:
- setConfig((TestConfig)null);
- return;
- case ConfigPackage.TEST_RUN__TIME:
- setTime(TIME_EDEFAULT);
- return;
- case ConfigPackage.TEST_RUN__RESULTS:
- getResults().clear();
- return;
+ case ConfigPackage.TEST_RUN__CONFIG:
+ setConfig((TestConfig) null);
+ return;
+ case ConfigPackage.TEST_RUN__TIME:
+ setTime(TIME_EDEFAULT);
+ return;
+ case ConfigPackage.TEST_RUN__RESULTS:
+ getResults().clear();
+ return;
}
super.eUnset(featureID);
}
@@ -264,17 +286,18 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case ConfigPackage.TEST_RUN__CONFIG:
- return config != null;
- case ConfigPackage.TEST_RUN__TIME:
- return TIME_EDEFAULT == null ? time != null : !TIME_EDEFAULT.equals(time);
- case ConfigPackage.TEST_RUN__RESULTS:
- return results != null && !results.isEmpty();
+ case ConfigPackage.TEST_RUN__CONFIG:
+ return config != null;
+ case ConfigPackage.TEST_RUN__TIME:
+ return TIME_EDEFAULT == null ? time != null : !TIME_EDEFAULT.equals(time);
+ case ConfigPackage.TEST_RUN__RESULTS:
+ return results != null && !results.isEmpty();
}
return super.eIsSet(featureID);
}
@@ -282,11 +305,13 @@
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String toString() {
- if (eIsProxy()) return super.toString();
+ if (eIsProxy())
+ return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (time: ");
@@ -295,4 +320,4 @@
return result.toString();
}
-} //TestRunImpl
\ No newline at end of file
+} // TestRunImpl
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/util/ConfigAdapterFactory.java b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/util/ConfigAdapterFactory.java
index e3abd18..67ddb3c 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/util/ConfigAdapterFactory.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/util/ConfigAdapterFactory.java
@@ -28,6 +28,7 @@
* 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 org.eclipse.emf.emfstore.fuzzy.emf.config.ConfigPackage
* @generated
*/
@@ -36,6 +37,7 @@
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected static ConfigPackage modelPackage;
@@ -44,6 +46,7 @@
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public ConfigAdapterFactory() {
@@ -55,8 +58,10 @@
/**
* 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.
+ * 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
*/
@@ -66,7 +71,7 @@
return true;
}
if (object instanceof EObject) {
- return ((EObject)object).eClass().getEPackage() == modelPackage;
+ return ((EObject) object).eClass().getEPackage() == modelPackage;
}
return false;
}
@@ -75,64 +80,73 @@
* The switch that delegates to the <code>createXXX</code> methods.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
- protected ConfigSwitch<Adapter> modelSwitch =
- new ConfigSwitch<Adapter>() {
- @Override
- public Adapter caseTestConfig(TestConfig object) {
- return createTestConfigAdapter();
- }
- @Override
- public Adapter caseTestRun(TestRun object) {
- return createTestRunAdapter();
- }
- @Override
- public Adapter caseTestResult(TestResult object) {
- return createTestResultAdapter();
- }
- @Override
- public Adapter caseTestDiff(TestDiff object) {
- return createTestDiffAdapter();
- }
- @Override
- public Adapter caseDiffReport(DiffReport object) {
- return createDiffReportAdapter();
- }
- @Override
- public Adapter caseRoot(Root object) {
- return createRootAdapter();
- }
- @Override
- public Adapter caseMutatorConfig(MutatorConfig object) {
- return createMutatorConfigAdapter();
- }
- @Override
- public Adapter defaultCase(EObject object) {
- return createEObjectAdapter();
- }
- };
+ protected ConfigSwitch<Adapter> modelSwitch = new ConfigSwitch<Adapter>() {
+ @Override
+ public Adapter caseTestConfig(TestConfig object) {
+ return createTestConfigAdapter();
+ }
+
+ @Override
+ public Adapter caseTestRun(TestRun object) {
+ return createTestRunAdapter();
+ }
+
+ @Override
+ public Adapter caseTestResult(TestResult object) {
+ return createTestResultAdapter();
+ }
+
+ @Override
+ public Adapter caseTestDiff(TestDiff object) {
+ return createTestDiffAdapter();
+ }
+
+ @Override
+ public Adapter caseDiffReport(DiffReport object) {
+ return createDiffReportAdapter();
+ }
+
+ @Override
+ public Adapter caseRoot(Root object) {
+ return createRootAdapter();
+ }
+
+ @Override
+ public Adapter caseMutatorConfig(MutatorConfig object) {
+ return createMutatorConfigAdapter();
+ }
+
+ @Override
+ public Adapter 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
*/
@Override
public Adapter createAdapter(Notifier target) {
- return modelSwitch.doSwitch((EObject)target);
+ return modelSwitch.doSwitch((EObject) target);
}
-
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig <em>Test Config</em>}'.
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig
+ * <em>Test Config</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 org.eclipse.emf.emfstore.fuzzy.emf.config.TestConfig
* @generated
@@ -142,11 +156,13 @@
}
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestRun <em>Test Run</em>}'.
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestRun
+ * <em>Test Run</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 org.eclipse.emf.emfstore.fuzzy.emf.config.TestRun
* @generated
@@ -156,11 +172,13 @@
}
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult <em>Test Result</em>}'.
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult
+ * <em>Test Result</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 org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult
* @generated
@@ -170,11 +188,13 @@
}
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestDiff <em>Test Diff</em>}'.
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.TestDiff
+ * <em>Test Diff</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 org.eclipse.emf.emfstore.fuzzy.emf.config.TestDiff
* @generated
@@ -184,11 +204,13 @@
}
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.DiffReport <em>Diff Report</em>}'.
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.DiffReport
+ * <em>Diff Report</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 org.eclipse.emf.emfstore.fuzzy.emf.config.DiffReport
* @generated
@@ -198,11 +220,13 @@
}
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.Root <em>Root</em>}'.
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.Root
+ * <em>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 org.eclipse.emf.emfstore.fuzzy.emf.config.Root
* @generated
@@ -212,11 +236,13 @@
}
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig <em>Mutator Config</em>}'.
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig
+ * <em>Mutator Config</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 org.eclipse.emf.emfstore.fuzzy.emf.config.MutatorConfig
* @generated
@@ -230,6 +256,7 @@
* <!-- begin-user-doc -->
* This default implementation returns null.
* <!-- end-user-doc -->
+ *
* @return the new adapter.
* @generated
*/
@@ -237,4 +264,4 @@
return null;
}
-} //ConfigAdapterFactory
\ No newline at end of file
+} // ConfigAdapterFactory
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/util/ConfigSwitch.java b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/util/ConfigSwitch.java
index 1be5613..da2a386 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/util/ConfigSwitch.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/config/util/ConfigSwitch.java
@@ -23,17 +23,17 @@
import org.eclipse.emf.emfstore.fuzzy.emf.config.TestResult;
import org.eclipse.emf.emfstore.fuzzy.emf.config.TestRun;
-
/**
* <!-- 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,
+ * 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 org.eclipse.emf.emfstore.fuzzy.emf.config.ConfigPackage
* @generated
*/
@@ -42,6 +42,7 @@
* The cached model package
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected static ConfigPackage modelPackage;
@@ -50,6 +51,7 @@
* Creates an instance of the switch.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public ConfigSwitch() {
@@ -59,9 +61,11 @@
}
/**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+ * 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
*/
@@ -70,77 +74,85 @@
}
/**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+ * 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 T doSwitch(EClass theEClass, EObject theEObject) {
if (theEClass.eContainer() == modelPackage) {
return doSwitch(theEClass.getClassifierID(), theEObject);
- }
- else {
+ } else {
List<EClass> eSuperTypes = theEClass.getESuperTypes();
- return
- eSuperTypes.isEmpty() ?
- defaultCase(theEObject) :
- doSwitch(eSuperTypes.get(0), theEObject);
+ return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(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.
+ * 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 T doSwitch(int classifierID, EObject theEObject) {
switch (classifierID) {
- case ConfigPackage.TEST_CONFIG: {
- TestConfig testConfig = (TestConfig)theEObject;
- T result = caseTestConfig(testConfig);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case ConfigPackage.TEST_RUN: {
- TestRun testRun = (TestRun)theEObject;
- T result = caseTestRun(testRun);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case ConfigPackage.TEST_RESULT: {
- TestResult testResult = (TestResult)theEObject;
- T result = caseTestResult(testResult);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case ConfigPackage.TEST_DIFF: {
- TestDiff testDiff = (TestDiff)theEObject;
- T result = caseTestDiff(testDiff);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case ConfigPackage.DIFF_REPORT: {
- DiffReport diffReport = (DiffReport)theEObject;
- T result = caseDiffReport(diffReport);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case ConfigPackage.ROOT: {
- Root root = (Root)theEObject;
- T result = caseRoot(root);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case ConfigPackage.MUTATOR_CONFIG: {
- MutatorConfig mutatorConfig = (MutatorConfig)theEObject;
- T result = caseMutatorConfig(mutatorConfig);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- default: return defaultCase(theEObject);
+ case ConfigPackage.TEST_CONFIG: {
+ TestConfig testConfig = (TestConfig) theEObject;
+ T result = caseTestConfig(testConfig);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case ConfigPackage.TEST_RUN: {
+ TestRun testRun = (TestRun) theEObject;
+ T result = caseTestRun(testRun);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case ConfigPackage.TEST_RESULT: {
+ TestResult testResult = (TestResult) theEObject;
+ T result = caseTestResult(testResult);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case ConfigPackage.TEST_DIFF: {
+ TestDiff testDiff = (TestDiff) theEObject;
+ T result = caseTestDiff(testDiff);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case ConfigPackage.DIFF_REPORT: {
+ DiffReport diffReport = (DiffReport) theEObject;
+ T result = caseDiffReport(diffReport);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case ConfigPackage.ROOT: {
+ Root root = (Root) theEObject;
+ T result = caseRoot(root);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case ConfigPackage.MUTATOR_CONFIG: {
+ MutatorConfig mutatorConfig = (MutatorConfig) theEObject;
+ T result = caseMutatorConfig(mutatorConfig);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ default:
+ return defaultCase(theEObject);
}
}
@@ -150,6 +162,7 @@
* 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 interpreting the object as an instance of '<em>Test Config</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -165,6 +178,7 @@
* 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 interpreting the object as an instance of '<em>Test Run</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -180,6 +194,7 @@
* 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 interpreting the object as an instance of '<em>Test Result</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -195,6 +210,7 @@
* 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 interpreting the object as an instance of '<em>Test Diff</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -210,6 +226,7 @@
* 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 interpreting the object as an instance of '<em>Diff Report</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -225,6 +242,7 @@
* 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 interpreting the object as an instance of '<em>Root</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -240,6 +258,7 @@
* 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 interpreting the object as an instance of '<em>Mutator Config</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -255,6 +274,7 @@
* 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 interpreting the object as an instance of '<em>EObject</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject)
@@ -264,4 +284,4 @@
return null;
}
-} //ConfigSwitch
\ No newline at end of file
+} // ConfigSwitch
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/diff/DiffGenerator.java b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/diff/DiffGenerator.java
index 5124c88..f49a991 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/diff/DiffGenerator.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/diff/DiffGenerator.java
@@ -32,49 +32,49 @@
* Generates {@link TestDiff}s out of {@link TestRun}.
*
* @author Julian Sommerfeldt
- *
+ *
*/
public class DiffGenerator {
-
+
private DiffReport diffReport;
-
+
private Resource diffResource;
-
+
/**
* A {@link DiffGenerator} with the standard diff file {@link FuzzyUtil#DIFF_FILE}.
*/
- public DiffGenerator(){
+ public DiffGenerator() {
this(FuzzyUtil.DIFF_FILE);
}
-
+
/**
* A {@link DiffGenerator} with using the diffPath.
*
* @param diffPath The path to the Diff file.
*/
- public DiffGenerator(String diffPath){
+ public DiffGenerator(String diffPath) {
this(FuzzyUtil.createResource(diffPath));
}
-
+
/**
* A {@link DiffGenerator} using the diffResource.
*
* @param diffResource The resource to use for the diff.
*/
- public DiffGenerator(Resource diffResource){
+ public DiffGenerator(Resource diffResource) {
this.diffResource = diffResource;
-
- if(FuzzyUtil.resourceExists(diffResource)){
+
+ if (FuzzyUtil.resourceExists(diffResource)) {
try {
diffResource.load(null);
} catch (IOException e) {
throw new RuntimeException("Could not load resource: " + diffResource.getURI(), e);
- }
- }
-
+ }
+ }
+
diffReport = getDiffReport(diffResource);
}
-
+
/**
* Create a diff from two {@link TestRun}s.
*
@@ -82,118 +82,119 @@
* @param secondRun The second {@link TestRun}.
* @throws IOException If there is a saving/loading failure with resources.
*/
- public void createDiff(TestRun firstRun, TestRun secondRun) throws IOException {
-
+ public void createDiff(TestRun firstRun, TestRun secondRun) throws IOException {
+
TestConfig config = firstRun.getConfig();
-
+
// check if it already contains the config
boolean containsConfig = false;
// create map containing existing diffs
// identified through testname + seedcount (e.g. test1)
Map<String, TestDiff> existingDiffs = new HashMap<String, TestDiff>();
List<TestDiff> diffs = diffReport.getDiffs();
- for(TestDiff diff : diffs){
-
+ for (TestDiff diff : diffs) {
+
// add existing diffs
TestResult result = FuzzyUtil.getValidTestResult(diff);
existingDiffs.put(getResultIdentifier(result), diff);
-
+
// check for configs
- if( (!containsConfig) && (diff.getConfig().getId().equals(config.getId())) ){
+ if ((!containsConfig) && (diff.getConfig().getId().equals(config.getId()))) {
containsConfig = true;
config = diff.getConfig();
- }
+ }
}
-
- // if the resource does not contain the config already add it
- if(!containsConfig) {
+
+ // if the resource does not contain the config already add it
+ if (!containsConfig) {
diffResource.getContents().add(config);
}
-
+
// create diffs for the two testruns
checkForDiffs(firstRun.getResults(), secondRun.getResults(), config, existingDiffs);
checkForDiffs(secondRun.getResults(), firstRun.getResults(), config, existingDiffs);
-
+
diffResource.getContents().add(diffReport);
- diffResource.save(null);
+ diffResource.save(null);
}
-
- private void checkForDiffs(List<TestResult> firstResults, List<TestResult> secondResults, TestConfig config, Map<String, TestDiff> existingDiffs){
+
+ private void checkForDiffs(List<TestResult> firstResults, List<TestResult> secondResults, TestConfig config,
+ Map<String, TestDiff> existingDiffs) {
EList<TestDiff> diffs = diffReport.getDiffs();
- for(TestResult result : new ArrayList<TestResult>(firstResults)){
+ for (TestResult result : new ArrayList<TestResult>(firstResults)) {
TestResult corrResult = getCorrespondingTestResult(result, secondResults);
-
+
TestDiff diff = getChangedTestDiff(result, corrResult);
- if(diff != null) {
+ if (diff != null) {
diff.setConfig(config);
-
+
// remove diff if it already contains it
- diffs.remove(existingDiffs.get(getResultIdentifier(result)));
+ diffs.remove(existingDiffs.get(getResultIdentifier(result)));
diffs.add(diff);
}
}
}
-
- private static String getResultIdentifier(TestResult result){
+
+ private static String getResultIdentifier(TestResult result) {
return result.getTestName() + result.getSeedCount();
}
-
- private static TestDiff getChangedTestDiff(TestResult fRes, TestResult sRes){
+
+ private static TestDiff getChangedTestDiff(TestResult fRes, TestResult sRes) {
boolean changed = false;
-
+
// check if a state switch occured
// TODO test state switches
- if(fRes == null || sRes == null){
+ if (fRes == null || sRes == null) {
changed = true;
- } else if(changed(fRes.getFailure(), sRes.getFailure())){
+ } else if (changed(fRes.getFailure(), sRes.getFailure())) {
changed = true;
- } else if(changed(fRes.getError(), sRes.getError())){
+ } else if (changed(fRes.getError(), sRes.getError())) {
changed = true;
- } else if(fRes.getFailure() != null && sRes.getError() != null){
+ } else if (fRes.getFailure() != null && sRes.getError() != null) {
changed = true;
- } else if(fRes.getError() != null && sRes.getFailure() != null){
+ } else if (fRes.getError() != null && sRes.getFailure() != null) {
changed = true;
}
-
- // if it changed, create a new TestDiff
- if(changed){
+
+ // if it changed, create a new TestDiff
+ if (changed) {
return createTestDiff(fRes, sRes);
}
-
+
return null;
}
-
- private static boolean changed(Object o1, Object o2){
- if(o1 == null && o2 != null){
+
+ private static boolean changed(Object o1, Object o2) {
+ if (o1 == null && o2 != null) {
return true;
}
- if(o1 != null && o2 == null){
+ if (o1 != null && o2 == null) {
return true;
}
return false;
}
-
- private static TestDiff createTestDiff(TestResult fRes, TestResult sRes){
+
+ private static TestDiff createTestDiff(TestResult fRes, TestResult sRes) {
TestDiff diff = ConfigFactory.eINSTANCE.createTestDiff();
diff.setLastUpdate(new Date(System.currentTimeMillis()));
diff.setOldResult(fRes);
diff.setNewResult(sRes);
return diff;
}
-
- private static TestResult getCorrespondingTestResult(TestResult result, List<TestResult> results){
- for(TestResult res : results){
- if(res.getSeedCount() == result.getSeedCount() && res.getTestName().equals(result.getTestName())){
+
+ private static TestResult getCorrespondingTestResult(TestResult result, List<TestResult> results) {
+ for (TestResult res : results) {
+ if (res.getSeedCount() == result.getSeedCount() && res.getTestName().equals(result.getTestName())) {
return res;
}
}
return null;
}
-
- private static DiffReport getDiffReport(Resource resource){
- for(EObject obj : resource.getContents()){
+
+ private static DiffReport getDiffReport(Resource resource) {
+ for (EObject obj : resource.getContents()) {
if (obj instanceof DiffReport) {
- return (DiffReport) obj;
+ return (DiffReport) obj;
}
}
return ConfigFactory.eINSTANCE.createDiffReport();
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/diff/FileTestRunProvider.java b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/diff/FileTestRunProvider.java
index 67dea61..26263f4 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/diff/FileTestRunProvider.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/diff/FileTestRunProvider.java
@@ -20,23 +20,23 @@
* A {@link TestRunProvider} reading the infos out of files.
*
* @author Julian Sommerfeldt
- *
+ *
*/
public class FileTestRunProvider extends TestRunProvider {
-
+
@Override
public TestRun[] getTestRuns() throws IOException {
-
- Resource run1Resource = FuzzyUtil.createResource( "file://D:/downloads/1.xml" );
- Resource run2Resource = FuzzyUtil.createResource( "file://D:/downloads/2.xml" );
-
- if(FuzzyUtil.resourceExists(run1Resource)){
+
+ Resource run1Resource = FuzzyUtil.createResource("file://D:/downloads/1.xml");
+ Resource run2Resource = FuzzyUtil.createResource("file://D:/downloads/2.xml");
+
+ if (FuzzyUtil.resourceExists(run1Resource)) {
run1Resource.load(null);
}
- if(FuzzyUtil.resourceExists(run2Resource)){
+ if (FuzzyUtil.resourceExists(run2Resource)) {
run2Resource.load(null);
}
-
- return new TestRun[]{getTestRun(run1Resource), getTestRun(run2Resource)};
+
+ return new TestRun[] { getTestRun(run1Resource), getTestRun(run2Resource) };
}
}
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/diff/HudsonTestRunProvider.java b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/diff/HudsonTestRunProvider.java
index 4398be2..0fb4fc0 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/diff/HudsonTestRunProvider.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/diff/HudsonTestRunProvider.java
@@ -30,185 +30,193 @@
* An implementation of {@link TestRunProvider} to provide {@link TestRun}s created by the CI-Server Hudson.
*
* @author Julian Sommerfeldt
- *
+ *
*/
public class HudsonTestRunProvider extends TestRunProvider {
-
+
private static final String JOB = "job/";
private static SAXReader saxReader = new SAXReader();
private String hudsonUrl;
-
+
private static String jobUrl;
-
+
private int firstBuildNumber;
-
+
private int secondBuildNumber;
-
+
/**
* The prefix for hudson peroperties.
*/
public static final String PROP_HUDSON = ".hudson";
-
+
/**
* The hudson url property.
*/
public static final String PROP_URL = ".url";
-
+
/**
* The hudson artifact folder property.
*/
public static final String PROP_ARTIFACT_FOLDER = ".artifact.folder";
-
+
/**
* The hudson port property.
*/
public static final String PROP_PORT = ".port";
-
+
/**
* The name of the hudson job property.
*/
public static final String PROP_JOB = ".job";
-
+
/**
* The property of the hudson diff job.
*/
public static final String PROP_DIFF_JOB = ".diffjob";
-
+
private static final String LAST_BUILD = "lastBuild";
-
+
/**
* An array containing all valid states of a hudson build. Valid means it can be used for creating diffs.
*/
- public static final String[] VALID_STATES = new String[]{"SUCCESS", "UNSTABLE"};
-
+ public static final String[] VALID_STATES = new String[] { "SUCCESS", "UNSTABLE" };
+
private static final String ARTIFACT = FuzzyUtil.getProperty(PROP_HUDSON + PROP_ARTIFACT_FOLDER, "/artifact/");
-
+
/**
- * Standard constructor using the last build and the build before the last build for reading testruns.
+ * Standard constructor using the last build and the build before the last build for reading testruns.
*
* @throws DocumentException If it cannot read the buildnumbers correctly from hudson.
* @throws IOException If it cannot read the buildnumbers correctly from hudson.
*/
- public HudsonTestRunProvider() throws DocumentException, IOException{
+ public HudsonTestRunProvider() throws DocumentException, IOException {
initProperties();
-
- firstBuildNumber = getLastValidBuildNumber(Integer.parseInt(getFirstElementValue(jobUrl + LAST_BUILD + "/api/xml?tree=number")), jobUrl);
+
+ firstBuildNumber = getLastValidBuildNumber(
+ Integer.parseInt(getFirstElementValue(jobUrl + LAST_BUILD + "/api/xml?tree=number")), jobUrl);
secondBuildNumber = getLastValidBuildNumber(firstBuildNumber - 1, jobUrl);
}
-
+
/**
* Constructor using tow special numbers for testruns.
*
- * @param firstBuildNumber The number of the first build (first from the last one backwards, so it is later than the second one).
+ * @param firstBuildNumber The number of the first build (first from the last one backwards, so it is later than the
+ * second one).
* @param secondBuildNumber The number of the second build.
*/
- public HudsonTestRunProvider(int firstBuildNumber, int secondBuildNumber){
+ public HudsonTestRunProvider(int firstBuildNumber, int secondBuildNumber) {
initProperties();
-
+
this.firstBuildNumber = firstBuildNumber;
this.secondBuildNumber = secondBuildNumber;
}
-
- private void initProperties(){
- hudsonUrl = getHudsonUrl();
+
+ private void initProperties() {
+ hudsonUrl = getHudsonUrl();
jobUrl = hudsonUrl + JOB + FuzzyUtil.getProperty(PROP_HUDSON + PROP_JOB, "Explorer") + "/";
}
-
- private static String getHudsonUrl(){
+
+ private static String getHudsonUrl() {
String port = FuzzyUtil.getProperty(PROP_HUDSON + PROP_PORT, null);
- return FuzzyUtil.getProperty(PROP_HUDSON + PROP_URL, "http://localhost") + (port != null ? (":" + port) : "") + "/";
+ return FuzzyUtil.getProperty(PROP_HUDSON + PROP_URL, "http://localhost") + (port != null ? (":" + port) : "")
+ + "/";
}
-
- private static int getLastValidBuildNumber(int maxBuildNumber, String jobUrl) throws MalformedURLException, DocumentException{
- if(maxBuildNumber < 0){
+
+ private static int getLastValidBuildNumber(int maxBuildNumber, String jobUrl) throws MalformedURLException,
+ DocumentException {
+ if (maxBuildNumber < 0) {
throw new RuntimeException("There are not enough valid builds till now!");
}
- if(isValidBuild(maxBuildNumber, jobUrl)){
+ if (isValidBuild(maxBuildNumber, jobUrl)) {
return maxBuildNumber;
} else {
return getLastValidBuildNumber(maxBuildNumber - 1, jobUrl);
}
}
-
- private static boolean isValidBuild(int buildNumber, String jobUrl) throws MalformedURLException, DocumentException{
+
+ private static boolean isValidBuild(int buildNumber, String jobUrl) throws MalformedURLException, DocumentException {
String result = getFirstElementValue(jobUrl + buildNumber + "/api/xml?tree=result");
- for(String valid : VALID_STATES){
- if(valid.equals(result)){
+ for (String valid : VALID_STATES) {
+ if (valid.equals(result)) {
return true;
}
}
return false;
}
-
+
@SuppressWarnings("unchecked")
- private static String getFirstElementValue(String url) throws MalformedURLException, DocumentException{
+ private static String getFirstElementValue(String url) throws MalformedURLException, DocumentException {
Document doc = saxReader.read(new URL(url));
List<Element> elements = doc.getRootElement().elements();
- if(elements.size() == 0){
+ if (elements.size() == 0) {
throw new RuntimeException("There are no elements in the result of the url: " + url);
}
return elements.get(0).getText();
}
-
+
@Override
public TestRun[] getTestRuns() throws IOException {
-
+
TestRun[] runs = new TestRun[2];
-
- Resource resource = getTestRunResource(firstBuildNumber);
- if(!FuzzyUtil.resourceExists(resource)){
+
+ Resource resource = getTestRunResource(firstBuildNumber);
+ if (!FuzzyUtil.resourceExists(resource)) {
throw new RuntimeException("No TestRun file for first run!");
}
resource.load(null);
-
+
runs[0] = getTestRun(resource);
-
+
resource = getTestRunResource(secondBuildNumber);
- if(!FuzzyUtil.resourceExists(resource)){
+ if (!FuzzyUtil.resourceExists(resource)) {
throw new RuntimeException("No TestRun file for second run!");
}
resource.load(null);
-
+
runs[1] = getTestRun(resource);
-
+
return runs;
}
-
- private Resource getTestRunResource(int buildNumber){
- return FuzzyUtil.createResource(jobUrl + buildNumber + ARTIFACT +
- FuzzyUtil.FUZZY_FOLDER + FuzzyUtil.RUN_FOLDER + getTestConfig().getId() + FuzzyUtil.FILE_SUFFIX);
+
+ private Resource getTestRunResource(int buildNumber) {
+ return FuzzyUtil.createResource(jobUrl + buildNumber + ARTIFACT + FuzzyUtil.FUZZY_FOLDER + FuzzyUtil.RUN_FOLDER
+ + getTestConfig().getId() + FuzzyUtil.FILE_SUFFIX);
}
-
+
/**
* @return All {@link TestConfig} which are loadable via this {@link HudsonTestRunProvider}.
*/
- public List<TestConfig> getAllConfigs(){
- Resource resource = FuzzyUtil.createResource(jobUrl + firstBuildNumber + ARTIFACT +
- FuzzyUtil.FUZZY_FOLDER + FuzzyUtil.TEST_CONFIG_FILE);
+ public List<TestConfig> getAllConfigs() {
+ Resource resource = FuzzyUtil.createResource(jobUrl + firstBuildNumber + ARTIFACT + FuzzyUtil.FUZZY_FOLDER
+ + FuzzyUtil.TEST_CONFIG_FILE);
try {
resource.load(null);
} catch (IOException e) {
throw new RuntimeException("Could not load configs file!", e);
}
List<TestConfig> configs = new ArrayList<TestConfig>();
- for(EObject obj : resource.getContents()){
+ for (EObject obj : resource.getContents()) {
if (obj instanceof TestConfig) {
configs.add((TestConfig) obj);
}
}
return configs;
}
-
+
/**
* @return The diff resource created by hudson.
* @throws DocumentException
- * @throws MalformedURLException
+ * in case an error occurs during obtainment of the resource.
+ * @throws MalformedURLException
+ * in case an error occurs during obtainment of the resource.
*/
- public static Resource getDiffResource() throws MalformedURLException, DocumentException{
+ public static Resource getDiffResource() throws MalformedURLException, DocumentException {
String diffJobUrl = getHudsonUrl() + JOB + FuzzyUtil.getProperty(PROP_HUDSON + PROP_DIFF_JOB, "Diff") + "/";
- int lastValidNumber = getLastValidBuildNumber(Integer.parseInt(getFirstElementValue(diffJobUrl + LAST_BUILD + "/api/xml?tree=number")), diffJobUrl);
- return FuzzyUtil.createResource(diffJobUrl + lastValidNumber + ARTIFACT + FuzzyUtil.FUZZY_FOLDER + "diff" + FuzzyUtil.FILE_SUFFIX);
+ int lastValidNumber = getLastValidBuildNumber(
+ Integer.parseInt(getFirstElementValue(diffJobUrl + LAST_BUILD + "/api/xml?tree=number")), diffJobUrl);
+ return FuzzyUtil.createResource(diffJobUrl + lastValidNumber + ARTIFACT + FuzzyUtil.FUZZY_FOLDER + "diff"
+ + FuzzyUtil.FILE_SUFFIX);
}
}
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/diff/TestRunProvider.java b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/diff/TestRunProvider.java
index 14e1090..c745b5c 100644
--- a/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/diff/TestRunProvider.java
+++ b/org.eclipse.emf.emfstore.fuzzy.emf/src/org/eclipse/emf/emfstore/fuzzy/emf/diff/TestRunProvider.java
@@ -21,10 +21,10 @@
* Abstract TestRunProvider to provide the {@link TestRun}s needed in the {@link DiffGenerator}.
*
* @author Julian Sommerfeldt
- *
+ *
*/
public abstract class TestRunProvider {
-
+
/**
* The config for which to provide testruns.
*/
@@ -35,31 +35,31 @@
* @throws IOException If there is an error reading the {@link TestRun}s.
*/
public abstract TestRun[] getTestRuns() throws IOException;
-
+
/**
* @param config The new {@link TestConfig} to use.
*/
- public void setConfig(TestConfig config){
+ public void setConfig(TestConfig config) {
this.config = config;
}
-
+
/**
* @param resource The {@link Resource} where to get a {@link TestRun} out.
* @return The {@link TestRun} out of the {@link Resource}.
*/
- protected TestRun getTestRun(Resource resource){
- for(EObject obj : resource.getContents()){
- if(obj instanceof TestRun){
+ protected TestRun getTestRun(Resource resource) {
+ for (EObject obj : resource.getContents()) {
+ if (obj instanceof TestRun) {
return (TestRun) obj;
}
}
throw new RuntimeException("Could not load TestRuns from config!");
}
-
+
/**
* @return The current {@link TestConfig}.
*/
- protected TestConfig getTestConfig(){
+ protected TestConfig getTestConfig() {
return config;
}
}
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.fuzzy/src/org/eclipse/emf/emfstore/fuzzy/Annotations.java b/org.eclipse.emf.emfstore.fuzzy/src/org/eclipse/emf/emfstore/fuzzy/Annotations.java
index d696458..c654a51 100644
--- a/org.eclipse.emf.emfstore.fuzzy/src/org/eclipse/emf/emfstore/fuzzy/Annotations.java
+++ b/org.eclipse.emf.emfstore.fuzzy/src/org/eclipse/emf/emfstore/fuzzy/Annotations.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008-2012 EclipseSource Muenchen GmbH.
+ * Copyright (c) 2012 EclipseSource Muenchen GmbH.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
@@ -19,51 +19,54 @@
* Annotations used in tests using the {@link FuzzyRunner}.
*
* @author Julian Sommerfeldt
- *
+ *
*/
public final class Annotations {
-
+
/**
* Annotation to declare the field in the test, where to set the data.
*
* @author Julian Sommerfeldt
- *
+ *
*/
@Retention(RetentionPolicy.RUNTIME)
- @Target({ElementType.FIELD})
- public @interface Data {}
-
+ @Target({ ElementType.FIELD })
+ public @interface Data {
+ }
+
/**
* Annotations to declare the field for the {@link Util}.
*
* @author Julian Sommerfeldt
- *
+ *
*/
@Retention(RetentionPolicy.RUNTIME)
- @Target({ElementType.FIELD})
- public @interface Util {}
-
+ @Target({ ElementType.FIELD })
+ public @interface Util {
+ }
+
/**
* An annotation to set the {@link FuzzyDataProvider} for the {@link FuzzyRunner}.
*
* @author Julian Sommerfeldt
- *
+ *
*/
@Retention(RetentionPolicy.RUNTIME)
- @Target({ElementType.TYPE})
+ @Target({ ElementType.TYPE })
public @interface DataProvider {
-
+
/***/
Class<?> value();
}
-
+
/**
* An optional annotation to declare options to use in the {@link FuzzyDataProvider}.
*
* @author Julian Sommerfeldt
- *
+ *
*/
@Retention(RetentionPolicy.RUNTIME)
- @Target({ElementType.FIELD})
- public @interface Options {}
-}
+ @Target({ ElementType.FIELD })
+ public @interface Options {
+ }
+}
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.fuzzy/src/org/eclipse/emf/emfstore/fuzzy/FuzzyDataProvider.java b/org.eclipse.emf.emfstore.fuzzy/src/org/eclipse/emf/emfstore/fuzzy/FuzzyDataProvider.java
index f0b10e2..dad15f6 100644
--- a/org.eclipse.emf.emfstore.fuzzy/src/org/eclipse/emf/emfstore/fuzzy/FuzzyDataProvider.java
+++ b/org.eclipse.emf.emfstore.fuzzy/src/org/eclipse/emf/emfstore/fuzzy/FuzzyDataProvider.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008-2012 EclipseSource Muenchen GmbH.
+ * Copyright (c) 2012 EclipseSource Muenchen GmbH.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
@@ -16,61 +16,65 @@
import org.junit.runner.notification.RunListener;
import org.junit.runners.model.TestClass;
-
/**
- * A Data Provider for the JUnit Runner: {@link FuzzyRunner}.<br><br>
+ * A Data Provider for the JUnit Runner: {@link FuzzyRunner}.<br>
+ * <br>
* An implementation of it must have a zero-parameter constructor.
*
* @author Julian Sommerfeldt
- *
+ *
* @param <T> Type to specify the values created by this data provider.
*/
-public interface FuzzyDataProvider<T> {
-
+public interface FuzzyDataProvider<T> {
+
/**
- * Creates and returns the data for the next run.<br><br>
+ * Creates and returns the data for the next run.<br>
+ * <br>
* Note that it is strongly recommended to instantiate the data
* in this method for every call and not in the instantiation of the class, e.g. the init method,
- * to avoid overloading the memory.
+ * to avoid overloading the memory.
*
* @param count The count of the testcase.
* @return The data for the next run of the test class.
*/
T get(int count);
-
+
/**
- * This method is called after the {@link FuzzyDataProvider} was created and everything was set BEFORE the first run.<br/>
+ * This method is called after the {@link FuzzyDataProvider} was created and everything was set BEFORE the first
+ * run.<br/>
* Should be used to to create internal stuff depending on e.g. the {@link TestClass}.
*/
void init();
-
+
/**
- * @return The total size(count) of the repetition of the tests.
+ * @return The total size(count) of the repetition of the tests.
*/
int size();
-
+
/**
* @param testClass The {@link TestClass} of the calling {@link FuzzyRunner}.
*/
void setTestClass(TestClass testClass);
-
+
/**
- * @return A list of listeners to add to the runner, e.g. to get information about errors. <code>null</code> permitted.
+ * @return A list of listeners to add to the runner, e.g. to get information about errors. <code>null</code>
+ * permitted.
*/
List<RunListener> getListener();
-
+
/**
- * @return A list of {@link Test}s to specify, which tests the {@link FuzzyRunner} should run. <code>null</code> means run all tests.
+ * @return A list of {@link Test}s to specify, which tests the {@link FuzzyRunner} should run. <code>null</code>
+ * means run all tests.
*/
List<Test> getTestsToRun();
-
+
/**
* @return The {@link Util} for this {@link FuzzyDataProvider}. <code>null</code> permitted.
*/
Util getUtil();
-
+
/**
* @param options The options for the {@link FuzzyDataProvider}. Can be <code>null</code>.
*/
void setOptions(Map<String, Object> options);
-}
+}
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.fuzzy/src/org/eclipse/emf/emfstore/fuzzy/FuzzyRunner.java b/org.eclipse.emf.emfstore.fuzzy/src/org/eclipse/emf/emfstore/fuzzy/FuzzyRunner.java
index 88753cf..511afc7 100644
--- a/org.eclipse.emf.emfstore.fuzzy/src/org/eclipse/emf/emfstore/fuzzy/FuzzyRunner.java
+++ b/org.eclipse.emf.emfstore.fuzzy/src/org/eclipse/emf/emfstore/fuzzy/FuzzyRunner.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008-2012 EclipseSource Muenchen GmbH.
+ * Copyright (c) 2012 EclipseSource Muenchen GmbH.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
@@ -28,79 +28,78 @@
import org.junit.runners.model.InitializationError;
/**
- * A {@link Runner} for JUnit, to realize multiple runs with different values for a data field.
+ * A {@link Runner} for JUnit, to realize multiple runs with different values for a data field. <br/>
* <br/>
- * <br/>
- * Activate with the {@link org.junit.runner.RunWith} annotation: <code>@RunWith(FuzzyRunner.class)</code>.
- * <br/>
+ * Activate with the {@link org.junit.runner.RunWith} annotation: <code>@RunWith(FuzzyRunner.class)</code>. <br/>
* <br/>
* The test class must have a field, which is not static and annotated with {@link Data}, e.g.<br/>
* <br/>
- * <code>@Data<br/>private Integer i;</code>
+ * <code>@Data<br/>private Integer i;</code> <br/>
* <br/>
- * <br/>
- * To provide data an implementation of {@link FuzzyDataProvider} can be set via the {@link DataProvider} annotation, e.g.<br/>
+ * To provide data an implementation of {@link FuzzyDataProvider} can be set via the {@link DataProvider} annotation,
+ * e.g.<br/>
* <br/>
* <code>@DataProvider(IntDataProvider.class)</code><br/>
* <br/>
- * This class must implement the interface {@link FuzzyDataProvider}. The default value is the example implementation: {@link IntDataProvider}.<br/>
+ * This class must implement the interface {@link FuzzyDataProvider}. The default value is the example implementation:
+ * {@link IntDataProvider}.<br/>
* <br/>
* The {@link MyTest} class illustrates an example usage of the {@link FuzzyRunner}.
*
* @author Julian Sommerfeldt
- *
+ *
*/
public class FuzzyRunner extends Suite {
-
+
private ArrayList<Runner> runners = new ArrayList<Runner>();
-
+
private FuzzyDataProvider<?> dataProvider;
-
+
/**
* The string representing a seperation in a name (e.g. test name).
*/
public static final String NAME_SEPARATOR = " ";
-
+
/**
* Default constructor, called by JUnit.
*
* @param clazz The root class of the suite.
- * @throws InitializationError If there
+ * @throws InitializationError If there
*/
public FuzzyRunner(Class<?> clazz) throws InitializationError {
- super(clazz, Collections.<Runner>emptyList());
+ super(clazz, Collections.<Runner> emptyList());
dataProvider = getDataProvider();
dataProvider.setTestClass(getTestClass());
dataProvider.init();
- FrameworkField dataField = getDataField();
+ FrameworkField dataField = getDataField();
FrameworkField utilField = getUtilField();
FrameworkField optionsField = getOptionsField();
org.eclipse.emf.emfstore.fuzzy.Util util = dataProvider.getUtil();
for (int i = 0; i < dataProvider.size(); i++) {
- FuzzyTestClassRunner runner = new FuzzyTestClassRunner(clazz, dataProvider, dataField, utilField, optionsField, util, i + 1);
- if(runner.getChildren().size() > 0){
+ FuzzyTestClassRunner runner = new FuzzyTestClassRunner(clazz, dataProvider, dataField, utilField,
+ optionsField, util, i + 1);
+ if (runner.getChildren().size() > 0) {
runners.add(runner);
}
}
}
-
+
/*
- * Override to add RunListeners of the FuzzyDataProvider
- *
+ * Override to add RunListeners of the FuzzyDataProvider
* (non-Javadoc)
* @see org.junit.runners.ParentRunner#run(org.junit.runner.notification.RunNotifier)
*/
@Override
public void run(final RunNotifier notifier) {
List<RunListener> listener = dataProvider.getListener();
- if(listener != null){
- for(RunListener runListener : listener){
+ if (listener != null) {
+ for (RunListener runListener : listener) {
notifier.addListener(runListener);
}
- }
+ }
super.run(notifier);
}
-
+
/**
* @return The field annotated with {@link Util}.
* @throws Exception If there is are more than one fitting fields.
@@ -108,82 +107,84 @@
private FrameworkField getUtilField() {
return getSingleStaticFrameworkField(Util.class);
}
-
+
private FrameworkField getOptionsField() {
return getSingleStaticFrameworkField(Options.class);
}
-
+
private FrameworkField getSingleStaticFrameworkField(Class<? extends Annotation> annotation) {
List<FrameworkField> fields = getTestClass().getAnnotatedFields(annotation);
-
+
// Check if there are more than one Data field in the class
- if(fields.size() > 1){
- throw new RuntimeException("Only one field annotated with " + annotation.getSimpleName() +
- " permitted: " + getTestClass().getName() + " contains " + fields.size());
+ if (fields.size() > 1) {
+ throw new RuntimeException("Only one field annotated with " + annotation.getSimpleName() + " permitted: "
+ + getTestClass().getName() + " contains " + fields.size());
}
-
+
// get the field and check modifiers
for (FrameworkField field : fields) {
int modifiers = field.getField().getModifiers();
- if (!Modifier.isStatic(modifiers)){
+ if (!Modifier.isStatic(modifiers)) {
return field;
}
}
-
+
return null;
}
-
+
/**
* @return The field annotated with {@link Data}.
- * @throws InitializationError
+ * @throws InitializationError
* @throws Exception If there is not exact one fitting field.
*/
- private FrameworkField getDataField() throws InitializationError {
+ private FrameworkField getDataField() throws InitializationError {
FrameworkField field = getSingleStaticFrameworkField(Data.class);
-
- if(field == null) {
- throw new InitializationError("No non-static model field anntoted with " + Data.class.getSimpleName() + " in class " + getTestClass().getName());
+
+ if (field == null) {
+ throw new InitializationError("No non-static model field anntoted with " + Data.class.getSimpleName()
+ + " in class " + getTestClass().getName());
}
-
+
return field;
}
-
+
/**
* @return The {@link FuzzyDataProvider} defined by the {@link DataProvider} annotation or the default one.
- * @throws InitializationError
+ * @throws InitializationError
* @throws Exception If the data provider does not implement the {@link FuzzyDataProvider} interface.
*/
private FuzzyDataProvider<?> getDataProvider() throws InitializationError {
// Get the DataProvider Annotation
Annotation[] annotations = getTestClass().getAnnotations();
-
+
// take default DataProvider, if there is no annotation
Class<?> dataProviderClass = null;
-
+
// check for the dataprovider annotation
for (Annotation annotation : annotations) {
- if(annotation instanceof DataProvider){
-
+ if (annotation instanceof DataProvider) {
+
// Check if the given class is an implementation of FuzzyDataProvider
dataProviderClass = ((DataProvider) annotation).value();
- if(!FuzzyDataProvider.class.isAssignableFrom(dataProviderClass)){
- throw new InitializationError(dataProviderClass + " is not an implementation of " + FuzzyDataProvider.class.getSimpleName());
- }
+ if (!FuzzyDataProvider.class.isAssignableFrom(dataProviderClass)) {
+ throw new InitializationError(dataProviderClass + " is not an implementation of "
+ + FuzzyDataProvider.class.getSimpleName());
+ }
}
}
-
+
// create a new instance of the DataProvider
- try{
+ try {
return (FuzzyDataProvider<?>) dataProviderClass.getConstructor().newInstance();
// BEGIN SUPRESS CATCH EXCEPTION
- } catch (Exception e){
+ } catch (Exception e) {
// END SUPRESS CATCH EXCEPTION
throw new InitializationError("The DataProvider must have a zero-parameter constructor!");
}
}
-
+
@Override
protected List<Runner> getChildren() {
return runners;
}
-}
+}
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.fuzzy/src/org/eclipse/emf/emfstore/fuzzy/FuzzyTestClassRunner.java b/org.eclipse.emf.emfstore.fuzzy/src/org/eclipse/emf/emfstore/fuzzy/FuzzyTestClassRunner.java
index a6d6e44..2c9add9 100644
--- a/org.eclipse.emf.emfstore.fuzzy/src/org/eclipse/emf/emfstore/fuzzy/FuzzyTestClassRunner.java
+++ b/org.eclipse.emf.emfstore.fuzzy/src/org/eclipse/emf/emfstore/fuzzy/FuzzyTestClassRunner.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008-2012 EclipseSource Muenchen GmbH.
+ * Copyright (c) 2012 EclipseSource Muenchen GmbH.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
@@ -57,15 +57,16 @@
private FrameworkField optionsField;
/**
+ * Constructor.
*
- * @param type The testclass.
- * @param dataProvider The {@link FuzzyDataProvider} providing the data to put into the dataField.
- * @param dataField The datafield in the testclass.
- * @param utilField the utilfield in the testclass.
- * @param optionsField
- * @param util The {@link Util} class.
- * @param counter The counter of the run.
- * @throws InitializationError If there was a problem during the initialization of the test.
+ * @param type The testclass
+ * @param dataProvider The {@link FuzzyDataProvider} providing the data to put into the dataField
+ * @param dataField The datafield in the testclass
+ * @param utilField the utilfield in the testclass
+ * @param optionsField the options field in the testclass
+ * @param util The {@link Util} class
+ * @param counter The counter of the run
+ * @throws InitializationError If there was a problem during the initialization of the test
*/
FuzzyTestClassRunner(Class<?> type, FuzzyDataProvider<?> dataProvider, FrameworkField dataField,
FrameworkField utilField, FrameworkField optionsField, Util util, int counter) throws InitializationError {
@@ -86,21 +87,22 @@
Object testInstance = getTestClass().getOnlyConstructor().newInstance();
// set the options to dataprovider
- if(optionsField != null){
+ if (optionsField != null) {
Object options = getValueFromField(optionsField.getField(), testInstance);
- if(options == null){
- throw new IllegalStateException("The options field has to be not null! Fill it or remove annotation.");
+ if (options == null) {
+ throw new IllegalStateException(
+ "The options field has to be not null! Fill it or remove annotation.");
}
- try{
+ try {
dataProvider.setOptions((Map<String, Object>) options);
- } catch (ClassCastException e){
+ } catch (ClassCastException e) {
throw new ClassCastException("The options field is not of type: Map<String, Object>!");
}
}
// get the new data from dataprovider
Object data = dataProvider.get(counter);
-
+
// set the data to the datafield
setValueToField(dataField.getField(), testInstance, data,
"The field annotated with " + Data.class.getSimpleName()
@@ -111,23 +113,24 @@
setValueToField(utilField.getField(), testInstance, util,
"The field annotated " + Util.class.getSimpleName() + " does not fit to the Util type!");
}
-
+
return testInstance;
// BEGIN SUPRESS CATCH EXCEPTION
} catch (Exception e) {
// END SUPRESS CATCH EXCEPTION
- if(e instanceof RuntimeException){
+ if (e instanceof RuntimeException) {
throw (RuntimeException) e;
} else {
throw new RuntimeException(e);
}
}
}
-
- private Object getValueFromField(Field field, Object instance) throws InitializationError, IllegalArgumentException, IllegalAccessException {
+
+ private Object getValueFromField(Field field, Object instance) throws InitializationError,
+ IllegalArgumentException, IllegalAccessException {
field.setAccessible(true);
Object o = field.get(instance);
- field.setAccessible(false);
+ field.setAccessible(false);
return o;
}
@@ -149,7 +152,7 @@
protected List<FrameworkMethod> getChildren() {
List<Test> testsToRun = dataProvider.getTestsToRun();
List<FrameworkMethod> allChildren = super.getChildren();
-
+
// check if it should filter tests
if (testsToRun != null) {
List<FrameworkMethod> filteredChildren = new ArrayList<FrameworkMethod>();
@@ -163,8 +166,8 @@
}
}
return filteredChildren;
- }
-
+ }
+
// if not return all children
return allChildren;
}
@@ -186,5 +189,5 @@
@Override
protected Statement classBlock(RunNotifier notifier) {
return childrenInvoker(notifier);
- }
-}
+ }
+}
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.fuzzy/src/org/eclipse/emf/emfstore/fuzzy/Test.java b/org.eclipse.emf.emfstore.fuzzy/src/org/eclipse/emf/emfstore/fuzzy/Test.java
index 851c0eb..b66525c 100644
--- a/org.eclipse.emf.emfstore.fuzzy/src/org/eclipse/emf/emfstore/fuzzy/Test.java
+++ b/org.eclipse.emf.emfstore.fuzzy/src/org/eclipse/emf/emfstore/fuzzy/Test.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008-2012 EclipseSource Muenchen GmbH.
+ * Copyright (c) 2012 EclipseSource Muenchen GmbH.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
@@ -15,19 +15,19 @@
* Class to get a connection between a test and a special run of it.
*
* @author Julian Sommerfeldt
- *
+ *
*/
public class Test {
-
+
private String name;
-
+
private int seedCount;
-
+
/**
* @param name The name of the test.
* @param seedCount The count (run) of the test.
*/
- public Test(String name, int seedCount){
+ public Test(String name, int seedCount) {
this.name = name;
this.seedCount = seedCount;
}
@@ -45,4 +45,4 @@
public int getSeedCount() {
return seedCount;
}
-}
+}
\ No newline at end of file
diff --git a/org.eclipse.emf.emfstore.fuzzy/src/org/eclipse/emf/emfstore/fuzzy/Util.java b/org.eclipse.emf.emfstore.fuzzy/src/org/eclipse/emf/emfstore/fuzzy/Util.java
index a730d8a..33245b8 100644
--- a/org.eclipse.emf.emfstore.fuzzy/src/org/eclipse/emf/emfstore/fuzzy/Util.java
+++ b/org.eclipse.emf.emfstore.fuzzy/src/org/eclipse/emf/emfstore/fuzzy/Util.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008-2012 EclipseSource Muenchen GmbH.
+ * Copyright (c) 2012 EclipseSource Muenchen GmbH.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
@@ -14,8 +14,8 @@
* Interface for utility classes in test classes using the {@link FuzzyRunner}.
*
* @author Julian Sommerfeldt
- *
+ *
*/
public interface Util {
-}
+}
\ No newline at end of file