blob: d403fae994429ab4ff96077204cb24c6cce357b5 [file] [log] [blame]
@GenModel(fileExtensions="menu")
@GenModel(modelName="MenuDsl")
@GenModel(prefix="MenuDsl")
@GenModel(updateClasspath="false")
// force bigModel == false
@GenModel(loadInitialization="false")
@GenModel(literalsInterface="true")
@GenModel(copyrightText="Copyright (c) 2014,2016 Loetz GmbH&Co.KG (Heidelberg)
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License 2.0
which accompanies this distribution, and is available at
https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
Contributors:
Loetz GmbH&Co.KG - Initial implementation
")
@Ecore(nsURI="http://osbp.eclipse.org/xtext/menu/MenuDsl")
@Ecore(nsPrefix="menudsl")
@Ecore(rootPackage="menudsl")
package org.eclipse.osbp.xtext.menu
import org.eclipse.emf.ecore.InternalEObject
import org.eclipse.osbp.dsl.semantic.common.types.LPackage
import org.eclipse.osbp.xtext.blip.Blip
import org.eclipse.osbp.xtext.dialogdsl.Dialog
import org.eclipse.osbp.xtext.perspective.Perspective
import org.eclipse.osbp.xtext.table.Table
import org.eclipse.xtext.xtype.XImportSection
class MenuModel{
contains XImportSection importSection
contains MenuPackage menupackage
}
type InternalEObject wraps InternalEObject
class MenuPackage extends LPackage{
contains MenuCategory[] categories
String expandedImage
String collapsedImage
String width
String height
boolean hasDesigner
}
class MenuCategory extends LPackage {
contains MenuTree[] trees
boolean hasTable
refers Table table
boolean hasDialog
refers Dialog dialog
boolean hasUserFilter
boolean hasReportPrinter
boolean hasKeyBinding
boolean hasSystemSettings
boolean hasTooltip
String tooltip
}
class MenuTree extends LPackage {
boolean hasTooltip
String tooltip
contains MenuEntry[] entries
}
class MenuEntry extends LPackage {
boolean hasIcon
String icon
boolean hasTooltip
String tooltip
boolean hasProcess
refers Blip process
boolean hasPerspective
refers Perspective perspective
}