addHistoryEntry(dl);
fContentProvider.addElement(dl);
refresh();
}
else if(covering instanceof ArrayAccess) {
ArrayAccess ae=(ArrayAccess)covering;
HistoryDefinitionLocation dl = new HistoryDefinitionLocation(
ae.toString(),
(IFile)resource,
unit.getLineNumber(0),
covering,null, HistoryDefinitionLocation.ARRAYACCESS);
processExpression(dl, ae, unit, resource, new LinkedList<MethodInvocation>(), monitor, HistoryDefinitionLocation.INITIAL,true);
setCurrentInput(dl);
addHistoryEntry(dl);
fContentProvider.addElement(dl);
refresh();
}
else if(covering instanceof CastExpression) {
CastExpression ae=(CastExpression)covering;
HistoryDefinitionLocation dl = new HistoryDefinitionLocation(
ae.toString(),
(IFile)resource,
unit.getLineNumber(0),
covering,null, HistoryDefinitionLocation.INITIAL);
processExpression(dl, ae, unit, resource, new LinkedList<MethodInvocation>(), monitor, HistoryDefinitionLocation.CALL,true);
setCurrentInput(dl);
addHistoryEntry(dl);
fContentProvider.addElement(dl);
refresh();
}
else if(covering instanceof ClassInstanceCreation) {
ClassInstanceCreation ae=(ClassInstanceCreation)covering;
HistoryDefinitionLocation dl = new HistoryDefinitionLocation(
ae.toString(),
(IFile)resource,
unit.getLineNumber(0),
covering,null, HistoryDefinitionLocation.CLASS_INSTANCE_CREATION);
processExpression(dl, ae, unit, resource, new LinkedList<MethodInvocation>(), monitor, HistoryDefinitionLocation.CALL,true);
setCurrentInput(dl);