Menu

#861 Import via typenavigator-view

1.5.x
closed-fixed
nobody
None
4DIAC-IDE
Bug
5
2014-06-12
2014-05-23
No

right-click in typenavigator-view --> Import --> Distributed Control System --> Import IEC 61499 Types --> and then any click in the wizard throws the following exception:

org.eclipse.core.runtime.AssertionFailedException: null argument:
at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
at org.eclipse.jface.viewers.StructuredViewer.assertElementsNotNull(StructuredViewer.java:597)
at org.eclipse.jface.viewers.StructuredViewer.getRawChildren(StructuredViewer.java:1011)
at org.eclipse.jface.viewers.ColumnViewer.getRawChildren(ColumnViewer.java:721)
at org.eclipse.jface.viewers.AbstractTreeViewer.getRawChildren(AbstractTreeViewer.java:1351)
at org.eclipse.jface.viewers.TreeViewer.getRawChildren(TreeViewer.java:391)
at org.eclipse.jface.viewers.StructuredViewer.getFilteredChildren(StructuredViewer.java:917)
at org.eclipse.jface.viewers.AbstractTreeViewer.getSortedChildren(AbstractTreeViewer.java:620)
at org.eclipse.jface.viewers.AbstractTreeViewer$1.run(AbstractTreeViewer.java:820)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
...

Related

News: 2014/06/thirdsecond-maintenance-release-for-4diac-15--

Discussion

  • Monika Wenger

    Monika Wenger - 2014-05-26

    as far as I know the "Import IEC 61499 Types" is not required for the Import of FBs since this can be achieved by copy&pasted within the Type Navigator. But since this functionality is still required for the XML System Import it might be a solution to remove the wizard for the "Import IEC 61499 Types". Any conerns about such a solution?

     
  • Zoitl Alois

    Zoitl Alois - 2014-05-26

    AFAIK this wizard window is also shown when the XML system import does not automatically find all types. Therefore I think the bug needs a fix.

    However I would also recommend to remove this wizard from the wizard list as the copy paste features are much more intuitive.

     
  • Monika Wenger

    Monika Wenger - 2014-06-11

    I removed the type Import from the wizard list in cset [fordiac-ide:6a9e04] and tried to Import a *.sys file with and without library. The System Import only lists the missing FBs but does not Show the FB Import wizard any more. If I did not miss a case where it Shows up, I'll Close this issue.

     

    Related

    Commit: [6a9e04]


    Last edit: Monika Wenger 2014-06-12
  • Zoitl Alois

    Zoitl Alois - 2014-06-11

    @Monika: I had a look at the code as your comment made me curious you are right we where using only a small part of the type import code for handling missing types (about 30 lines of code).

    I took this as chance and moved this code to the system import. In cset [fordiac-ide:962083] you can find this approach. However I was not able to test it. I would be glad if somebody could test if the system import is still working.

    If this is the case we could get rid of the whole typeimport plugin.

     

    Related

    Commit: [962083]

  • Monika Wenger

    Monika Wenger - 2014-06-12
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB