public String getUml() { List<OClass> selected = getSelected(); if(selected==null || selected.size()==0) { return umlService.describe(getSchema()); } else { return umlService.describe(true, true, selected.toArray(new OClass[selected.size()])); } }
@Override protected void onInstantiation() { super.onInstantiation(); setBootstrapType(BootstrapType.INFO); setIcon(FAIconType.cubes); }
@Override protected void addTableCommands(OrienteerDataTable<OClass, String> table, IModel<DisplayMode> modeModel) { table.addCommand(new CreateOClassCommand(table)); table.addCommand(new EditSchemaCommand<>(table, modeModel)); table.addCommand(new SaveSchemaCommand<>(table, modeModel)); table.addCommand(new DeleteOClassCommand(table)); table.addCommand(new ReloadOMetadataCommand(table)); table.addCommand(new TriggerCommand<>("command.showhide.allclasses", table, showAllClassesModel)); table.addCommand(new ExportOSchemaCommand(table)); table.addCommand(new ImportOSchemaCommand(table)); table.addCommand(new ViewUMLCommand(table)); }