@Override public String getColumnText(Object element, int columnIndex) { ProcessStep processStep = (ProcessStep) element; Element el = null; if (columnIndex > processStep.size()) return ""; if (columnIndex == 1) el = processStep.get(0); if (columnIndex == 3) el = processStep.get(1); if (columnIndex == 5) el = processStep.get(2); if (el != null) return el.getName(); return ""; }
@Override public Image getColumnImage(Object element, int columnIndex) { ProcessStep processStep = (ProcessStep) element; Element el = null; if (columnIndex > processStep.size()) return null; if (columnIndex == 0) el = processStep.get(0); if (columnIndex == 2) el = processStep.get(1); if (columnIndex == 4) el = processStep.get(2); if (el != null) { if (el.getKind() == Element.Kind.Event) return EVENT; if (el.getKind() == Element.Kind.Function) return FUNCTION; if (el.getKind() == Element.Kind.Null) return NONE; } return null; }