MetaDone
|
Public Member Functions | |
JMenu | createMenu () |
Protected Member Functions | |
GrasylaScript | createPropertiesScript (String name, MetaModel model, boolean metaroleGen) throws BadPreCondition |
Static Protected Member Functions | |
static Object | getDefaultValue (Class<?> type) |
Static Private Member Functions | |
static void | createMetaRoleEditors (AST_script script, MetaModel model) throws BadPreCondition |
static void | createAttributeEditors (AST_script script, MetaModel model) throws BadPreCondition |
static AST_expression | createAttributeEditorOne (MetaPropertyExt<?> prop) throws BadPreCondition |
static AST_expression | createAttriubteEditorOneDefault (MetaPropertyExt<?> prop, AST_expression value) throws BadPreCondition |
static AST_expression | createAttriubteEditorOneEnum (MetaPropertyExt<?> prop, AST_expression value) throws BadPreCondition |
static String | metaFunctor (Class<?> type) |
static AST_expression | createAttributeEditorOneBoolean (MetaPropertyExt<?> prop, AST_expression value) throws BadPreCondition |
static AST_expression | createAttributeEditorOneNumber (MetaPropertyExt<?> prop, AST_expression value) throws BadPreCondition |
static AST_expression | createAttributeEditorMulti (AST_script script, String functor, MetaPropertyExt<?> prop) throws BadPreCondition |
static AST_expression | createAttributeEditorMultiBool (MetaPropertyExt<?> prop) |
static AST_expression | createAttributeEditorMultiDefault (MetaPropertyExt<?> prop) |
static AST_attribute | createAttributeEditorMultiMenuDelete () |
static void | createTableRows (AST_script script, MetaModel model, boolean metaroleGen) throws BadPreCondition |
static void | createMenuCreate (AST_script script, MetaModel model) throws BadPreCondition |
static Object | getDefaultValue (MetaPropertyExt<?> prop) throws BadPreCondition |
Static Private Attributes | |
static final Logger | logger = Logger.getLogger(GrasylaGenerator.class) |
Generates default editors for metamodels. TODO don't generate for Omega XXX autoformatting margin should be arround 120 for this to look good
static AST_expression metadone.plugin.grasyla.generator.GrasylaGenerator.createAttributeEditorMulti | ( | AST_script | script, |
String | functor, | ||
MetaPropertyExt<?> | prop | ||
) | throws BadPreCondition [static, private] |
References metadone.client.parsers.grasyla.AST_expression.addElement(), metadone.plugin.grasyla.generator.GrasylaGenerator.createAttributeEditorMultiBool(), metadone.plugin.grasyla.generator.GrasylaGenerator.createAttributeEditorMultiDefault(), and metadone.plugin.grasyla.generator.GrasylaGenerator.getDefaultValue().
Referenced by metadone.plugin.grasyla.generator.GrasylaGenerator.createAttributeEditors().
static AST_expression metadone.plugin.grasyla.generator.GrasylaGenerator.createAttributeEditorMultiBool | ( | MetaPropertyExt<?> | prop | ) | [static, private] |
References metadone.client.parsers.grasyla.AST_expression.addElement(), metadone.plugin.grasyla.generator.GrasylaGenerator.createAttributeEditorMultiMenuDelete(), and metadone.client.parsers.grasyla.AST_expression.setFunctor().
Referenced by metadone.plugin.grasyla.generator.GrasylaGenerator.createAttributeEditorMulti().
static AST_expression metadone.plugin.grasyla.generator.GrasylaGenerator.createAttributeEditorMultiDefault | ( | MetaPropertyExt<?> | prop | ) | [static, private] |
References metadone.client.parsers.grasyla.AST_expression.addElement(), metadone.plugin.grasyla.generator.GrasylaGenerator.createAttributeEditorMultiMenuDelete(), and metadone.client.parsers.grasyla.AST_expression.setFunctor().
Referenced by metadone.plugin.grasyla.generator.GrasylaGenerator.createAttributeEditorMulti().
static AST_attribute metadone.plugin.grasyla.generator.GrasylaGenerator.createAttributeEditorMultiMenuDelete | ( | ) | [static, private] |
static AST_expression metadone.plugin.grasyla.generator.GrasylaGenerator.createAttributeEditorOne | ( | MetaPropertyExt<?> | prop | ) | throws BadPreCondition [static, private] |
References metadone.client.parsers.grasyla.AST_expression.addElement(), metadone.plugin.grasyla.generator.GrasylaGenerator.createAttributeEditorOneBoolean(), metadone.plugin.grasyla.generator.GrasylaGenerator.createAttributeEditorOneNumber(), metadone.plugin.grasyla.generator.GrasylaGenerator.createAttriubteEditorOneDefault(), metadone.plugin.grasyla.generator.GrasylaGenerator.createAttriubteEditorOneEnum(), and metadone.client.parsers.grasyla.AST_expression.setFunctor().
Referenced by metadone.plugin.grasyla.generator.GrasylaGenerator.createAttributeEditors().
static AST_expression metadone.plugin.grasyla.generator.GrasylaGenerator.createAttributeEditorOneBoolean | ( | MetaPropertyExt<?> | prop, |
AST_expression | value | ||
) | throws BadPreCondition [static, private] |
static AST_expression metadone.plugin.grasyla.generator.GrasylaGenerator.createAttributeEditorOneNumber | ( | MetaPropertyExt<?> | prop, |
AST_expression | value | ||
) | throws BadPreCondition [static, private] |
static void metadone.plugin.grasyla.generator.GrasylaGenerator.createAttributeEditors | ( | AST_script | script, |
MetaModel | model | ||
) | throws BadPreCondition [static, private] |
References metadone.plugin.grasyla.generator.GrasylaGenerator.createAttributeEditorMulti(), metadone.plugin.grasyla.generator.GrasylaGenerator.createAttributeEditorOne(), and metadone.plugin.grasyla.generator.GrasylaGenerator.logger.
Referenced by metadone.plugin.grasyla.generator.GrasylaGenerator.createPropertiesScript().
static AST_expression metadone.plugin.grasyla.generator.GrasylaGenerator.createAttriubteEditorOneDefault | ( | MetaPropertyExt<?> | prop, |
AST_expression | value | ||
) | throws BadPreCondition [static, private] |
static AST_expression metadone.plugin.grasyla.generator.GrasylaGenerator.createAttriubteEditorOneEnum | ( | MetaPropertyExt<?> | prop, |
AST_expression | value | ||
) | throws BadPreCondition [static, private] |
JMenu metadone.plugin.grasyla.generator.GrasylaGenerator.createMenu | ( | ) |
Creates a menu to show in the main window.
This method should be called from the swing thread.
null
Reimplemented from metadone.client.plugin.AbstractMetadonePlugin.
References metadone.plugin.grasyla.generator.GrasylaGenerator.createPropertiesScript(), metadone.metabusiness.events.Notification.error(), metadone.client.plugin.AbstractMetadonePlugin.getEventManager(), metadone.metabusiness.syntax.grasyla.GrasylaScript.getName(), metadone.metabusiness.MetaObject.getName(), metadone.metabusiness.events.Notification.inform(), and metadone.metabusiness.events.Notification.warn().
static void metadone.plugin.grasyla.generator.GrasylaGenerator.createMenuCreate | ( | AST_script | script, |
MetaModel | model | ||
) | throws BadPreCondition [static, private] |
static void metadone.plugin.grasyla.generator.GrasylaGenerator.createMetaRoleEditors | ( | AST_script | script, |
MetaModel | model | ||
) | throws BadPreCondition [static, private] |
References metadone.client.parsers.grasyla.AST_expression.addElement(), metadone.metabusiness.MetaRole.getDomain(), metadone.metabusiness.MetaObject.getName(), metadone.metabusiness.MetaRole.getRange(), metadone.metabusiness.MetaRole.isRangeMany(), metadone.plugin.grasyla.generator.GrasylaGenerator.logger, metadone.metabusiness.WorkspaceObject.narrow(), and metadone.client.parsers.grasyla.AST_expression.setFunctor().
Referenced by metadone.plugin.grasyla.generator.GrasylaGenerator.createPropertiesScript().
GrasylaScript metadone.plugin.grasyla.generator.GrasylaGenerator.createPropertiesScript | ( | String | name, |
MetaModel | model, | ||
boolean | metaroleGen | ||
) | throws BadPreCondition [protected] |
References metadone.client.parsers.grasyla.GrasylaParserUtil.create(), metadone.plugin.grasyla.generator.GrasylaGenerator.createAttributeEditors(), metadone.plugin.grasyla.generator.GrasylaGenerator.createMenuCreate(), metadone.plugin.grasyla.generator.GrasylaGenerator.createMetaRoleEditors(), metadone.plugin.grasyla.generator.GrasylaGenerator.createTableRows(), and metadone.metabusiness.syntax.grasyla.BootstrapGrasyla.getWorkspace().
Referenced by metadone.plugin.grasyla.generator.GrasylaGenerator.createMenu().
static void metadone.plugin.grasyla.generator.GrasylaGenerator.createTableRows | ( | AST_script | script, |
MetaModel | model, | ||
boolean | metaroleGen | ||
) | throws BadPreCondition [static, private] |
References metadone.client.parsers.grasyla.AST_expression.addElement(), metadone.metabusiness.MetaObject.getDirectMetaRolesDomain(), metadone.plugin.grasyla.generator.GrasylaGenerator.logger, and metadone.client.parsers.grasyla.AST_expression.setFunctor().
Referenced by metadone.plugin.grasyla.generator.GrasylaGenerator.createPropertiesScript().
static Object metadone.plugin.grasyla.generator.GrasylaGenerator.getDefaultValue | ( | Class<?> | type | ) | [static, protected] |
Gets the default value of a given type.
type | The type |
References metadone.util.ClassUtil.convert().
static Object metadone.plugin.grasyla.generator.GrasylaGenerator.getDefaultValue | ( | MetaPropertyExt<?> | prop | ) | throws BadPreCondition [static, private] |
static String metadone.plugin.grasyla.generator.GrasylaGenerator.metaFunctor | ( | Class<?> | type | ) | [static, private] |
final Logger metadone.plugin.grasyla.generator.GrasylaGenerator.logger = Logger.getLogger(GrasylaGenerator.class) [static, private] |