Hide Forgot
Description of problem: If you reproduce the issue described here: https://bugzilla.redhat.com/show_bug.cgi?id=1331452 You'll notice that the editor which attempted to display the given resources still contains "DELETE" button https://ctrlv.cz/shots/2016/04/28/5Tnz.png Version-Release number of selected component (if applicable): BPM suite 6.2.2 How reproducible: always Steps to Reproduce: Reproduce the issue by following steps outlined in https://bugzilla.redhat.com/show_bug.cgi?id=1331452 Notice that the Web Designer, which is trying to open the deleted resources, still contains the "Delete" button https://ctrlv.cz/shots/2016/04/28/5Tnz.png This does not make sense, since clicking on it, another FileNotFound error will be displayed Actual results: Delete button is displayed in various editors, for resources which are already deleted Expected results: Either make sure that no editor will attempt to open a deleted file under any circumstances, OR make sure that when it does, there will not be any "Delete" button display, when the resource is deleted as it does not make sense. Simply including "Close" (X) button would be more suitable. Additional info:
I checked the Editors extending KieEditor and they already handle this correctly [1][2]. See the attached screen shot. It might be that Designer needs better handling of asset retrieval (when the FileSystem or File cannot be found) as Designer does not use Errai RPC. [1] https://github.com/droolsjbpm/kie-wb-common/blob/master/kie-wb-common-widgets/kie-wb-metadata-widget/src/main/java/org/kie/workbench/common/widgets/metadata/client/KieEditor.java#L161 [2] https://github.com/droolsjbpm/drools-wb/blob/master/drools-wb-screens/drools-wb-drl-text-editor/drools-wb-drl-text-editor-client/src/main/java/org/drools/workbench/screens/drltext/client/editor/DRLEditorPresenter.java#L102
Created attachment 1152340 [details] Buttons disabled