Description
With no model editors open, select a Table in a model in the explorer and click DELETE key.
Results in: ava.lang.ArrayIndexOutOfBoundsException: 0
at org.teiid.designer.core.refactor.ObjectDeleteCommand.getModelResource(ObjectDeleteCommand.java:184)
at org.teiid.designer.core.refactor.ObjectDeleteCommand.checkDependentResources(ObjectDeleteCommand.java:228)
at org.teiid.designer.core.refactor.ObjectDeleteCommand.execute(ObjectDeleteCommand.java:350)
at org.teiid.designer.ui.actions.workers.DeleteWorker$1.execute(DeleteWorker.java:206)
at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2345)
at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Looks like the action may be getting it's selection updated during the async process of opening the editor so the Model get's selected instead of the original table