use of org.talend.mdm.repository.model.mdmserverobject.WSMenuMenuEntriesDescriptionsE in project tmdm-studio-se by Talend.
the class NewMenuAction method newBlankMenu.
private WSMenuE newBlankMenu(String key) {
WSMenuMenuEntriesDescriptionsE descriptions = MdmserverobjectFactory.eINSTANCE.createWSMenuMenuEntriesDescriptionsE();
descriptions.setLabel(key);
// $NON-NLS-1$
descriptions.setLanguage("en");
//
WSMenuEntryE entry = MdmserverobjectFactory.eINSTANCE.createWSMenuEntryE();
entry.getDescriptions().add(descriptions);
entry.setId(key);
//
WSMenuE menu = MdmserverobjectFactory.eINSTANCE.createWSMenuE();
menu.setName(key);
menu.getMenuEntries().add(entry);
//
return menu;
}
use of org.talend.mdm.repository.model.mdmserverobject.WSMenuMenuEntriesDescriptionsE in project tmdm-studio-se by Talend.
the class Bean2EObjUtilTest method initEObject.
private void initEObject(WSMenuE menuE) {
// $NON-NLS-1$
menuE.setDescription("this is a description");
// $NON-NLS-1$
menuE.setName("menuA");
menuE.setSystem(false);
menuE.getMenuEntries();
//
WSMenuEntryE wsMenuEntry = MdmserverobjectFactory.eINSTANCE.createWSMenuEntryE();
// $NON-NLS-1$
wsMenuEntry.setApplication("application A");
// $NON-NLS-1$
wsMenuEntry.setContext("contextA");
// $NON-NLS-1$
wsMenuEntry.setIcon("icon A");
// $NON-NLS-1$
wsMenuEntry.setId("id A");
menuE.getMenuEntries().add(wsMenuEntry);
//
wsMenuEntry = MdmserverobjectFactory.eINSTANCE.createWSMenuEntryE();
// $NON-NLS-1$
wsMenuEntry.setApplication("application B");
// $NON-NLS-1$
wsMenuEntry.setContext("contextB");
// $NON-NLS-1$
wsMenuEntry.setIcon("icon B");
// wsMenuEntry.setId("id B");
menuE.getMenuEntries().add(wsMenuEntry);
//
WSMenuMenuEntriesDescriptionsE ds = MdmserverobjectFactory.eINSTANCE.createWSMenuMenuEntriesDescriptionsE();
// $NON-NLS-1$
ds.setLabel("Label C");
// $NON-NLS-1$
ds.setLanguage("En");
wsMenuEntry.getDescriptions().add(ds);
}
Aggregations