public void removeManifestation() { if (tree.getSelectionCount() > 0) { final boolean res = openConfirm(getSite().getShell(), "Supprimer", i18n("QUESTION_RETIRER_MANIF")); if (res) { final AbstractGetInfo<?> data = (AbstractGetInfo<?>) tree.getSelection()[0].getData(); final ObjManifestation manif = data.getManif(); removeProject(manif.getFileName()); } } }
private static void loadObject(final AbstractGetInfo<?> data, final NodeFactory node) { if (node.getInfos() != null) { final String[] keys = node.getInfos().keySet().toArray(new String[node.getInfos().keySet().size()]); for (final String key : keys) { data.setInfo(key + EMPTY, node.getInfos().get(key)); } } }
public static Object getValue( final ColTable colTable, final AbstractGetInfo element, final String property) { final Object value = element.getInfo(property); if (value == null && isBooleanType(colTable)) { return Boolean.FALSE; } else if (isDateType(colTable)) { if (value == null) { return createDate(0); } } return value; }
@Override public Object visiteCategory(final NodeCategory parent, final Object data) { final AbstractGetInfo cat = new ObjCategorie(parent._label, parent._id); cat.setInfo("AGE", parent._age); return cat; }