ElementListSelectionDialog has no elements

前端 未结 1 1653
情歌与酒
情歌与酒 2021-01-03 07:22

I\'m trying to use a ElementListSelectionDialog. I\'ve followed the example code but for whatever reason the dialog show but with no options

My Code:



        
1条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-03 08:01

    This type of dialog works normally under Workbench UI. To run this dialog correctly you should use the sample code

    ElementListSelectionDialog dialog = 
        new ElementListSelectionDialog(PlatformUI.getWorkbench().getDisplay().getActiveShell(), new LabelProvider());
    

    0 讨论(0)
提交回复
热议问题