|
Lines 57-69
Link Here
|
| 57 |
int viewIndex = provider.modelToViewIndex(elementPath, modelIndex); |
57 |
int viewIndex = provider.modelToViewIndex(elementPath, modelIndex); |
| 58 |
if (provider.shouldFilter(elementPath, element)) { |
58 |
if (provider.shouldFilter(elementPath, element)) { |
| 59 |
if (provider.addFilteredIndex(elementPath, modelIndex, element)) { |
59 |
if (provider.addFilteredIndex(elementPath, modelIndex, element)) { |
| 60 |
if (viewer.getChildElement(elementPath, viewIndex) == null) { |
60 |
if (ModelContentProvider.DEBUG_CONTENT_PROVIDER && (ModelContentProvider.DEBUG_PRESENTATION_ID == null || ModelContentProvider.DEBUG_PRESENTATION_ID.equals(getPresentationContext().getId()))) { |
| 61 |
// only remove the element if currently unmapped |
61 |
System.out.println("REMOVE(" + getElement() + ", modelIndex: " + modelIndex + " viewIndex: " + viewIndex + ", " + element + ")"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ |
| 62 |
if (ModelContentProvider.DEBUG_CONTENT_PROVIDER && (ModelContentProvider.DEBUG_PRESENTATION_ID == null || ModelContentProvider.DEBUG_PRESENTATION_ID.equals(getPresentationContext().getId()))) { |
|
|
| 63 |
System.out.println("REMOVE(" + getElement() + ", modelIndex: " + modelIndex + " viewIndex: " + viewIndex + ", " + element + ")"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ |
| 64 |
} |
| 65 |
viewer.remove(elementPath, viewIndex); |
| 66 |
} |
62 |
} |
|
|
63 |
viewer.remove(elementPath, viewIndex); |
| 67 |
} |
64 |
} |
| 68 |
} else { |
65 |
} else { |
| 69 |
if (provider.isFiltered(elementPath, modelIndex)) { |
66 |
if (provider.isFiltered(elementPath, modelIndex)) { |