Skip to content

Commit 0bc74a8

Browse files
Merge pull request #910 from artemii-karkusha/900_LineMarkerXmlTagDecorator#checkDelete
900: Changed realization for function checkDelete using of CheckUtil.
2 parents b8420c2 + 3c5f38c commit 0bc74a8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/com/magento/idea/magento2plugin/linemarker/xml/LineMarkerXmlTagDecorator.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,10 @@ public void delete() throws IncorrectOperationException {
501501

502502
@Override
503503
public void checkDelete() throws IncorrectOperationException {
504-
xmlTag.checkDelete();
504+
if (xmlTag instanceof XmlTagImpl) {
505+
((XmlTagImpl) xmlTag).checkDelete();
506+
}
507+
throw new IncorrectOperationException(getClass().getName());
505508
}
506509

507510
@Override

0 commit comments

Comments
 (0)