Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipse-dev] EMF Model without generated classes
  • From: "Hoepfner, Marcus" <marcus.hoepfner@xxxxxxx>
  • Date: Mon, 7 Aug 2023 15:18:54 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=sap.com; dmarc=pass action=none header.from=sap.com; dkim=pass header.d=sap.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=d2ehsOPBZ5nnolxbq/HVdw4wx/4JL3PsHBBpQ4mQmig=; b=ZHdmn8Fz4bTUJOrQkJEizsAafCMBQoFlEikvhxRWxdhzDoasrGhJH65vCnDQKQYtEQ1MqCxhnR4eJOiKWiqd8dvVQKW7kT7tD0LUGJc0tt3djUsyUPvRCl5U22kQtdLv+WUc0s5K9Lh8HSsC8Y5SyboxonNsuZPUnaNovk3Li0YhzMAoDkRm7E2TxVyc4zxMVl+xeAWFyf1j3woEiBCdKWBgpUWA1LP1yM7BuUgx3J5As9oGUB1FtTcfjV8carq2PrmRaIwBhVP17AnZk1nvUxM9NrmXuxissCIMk3NpK/2xuRZrsePQq0SHRjgFnyFhriMNOVkXcVWOh5BE2qWqAg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=m0wc2rcBt0VazNHmMo0bwBAvUVNK+2XG0g96kgD4BM1OKnJgBToyQm8ihmJyvDIu5XKC9zo5L3Oj2tGD8hW5XwMGnCPiHhxmlhVt1pq9X4YHKKFnC6XfIyEnxfWcNVwbV6HN+Lesjulivf+zj1IbklLlLV7JoLYgymj7jzgx44ljEM4qYKVdeT5FCgvhCfwbA2Ss1Mw9wM2c8AuardQL/zKRYLpvlY1CEL60Ks9NWAzfKd9Z+bdfuZ3m6zAauMFEeJ3SR41zSFHiSNVptBTZv7HaWbT5CybKajGpFqTBu8XUFguphocx1PP/JAD6RQgf/4P8szKfHjTKulfMml1Ykg==
  • Delivered-to: eclipse-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/eclipse-dev/>
  • List-help: <mailto:eclipse-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/eclipse-dev>, <mailto:eclipse-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/eclipse-dev>, <mailto:eclipse-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHZyUFKrvcRgXmLgkaiiV8EDjvAnA==
  • Thread-topic: EMF Model without generated classes

Hi,

 

is it possible to create and generate an EMF model without the generated java classes and interfaces for all the model elements.

So just the Package and PackageImpl (maybe ResourceFactoryImpl and Switch; I don’t know if it is needed).

The thing is, that apart from the parser and serializer the ui using the model is completely generic and I don’t need all that generated jave code. The model is neither saved on disc, nor will compatibility ever be an issue.

Everything can be handled “in memory”.

 

On the other hand, the model is a bit complex and I would like to have an ecore file and even an xsd file to model everything.

Currently it is a handwritten Package and PackageImpl (“dynamic EMF”), but it is getting harder and harder to add features or inheritance.

 

But at the moment I always try to let the handwritten Package and PackageImpl look like it was generated.

That includes integer constants for every eclass and feature. Literals interface and corresponding accessor methods.

Maybe I can also strip that down to the needed stuff only.

 

Thanks in advance,

Marcus


Back to the top