1 | if (categories.contains(POST_PROCESSORS)) {↵ | | 1 | if (categories.contains(POST_PROCESSORS)) {↵
|
2 | postProcessors.add(new MenuInfo(item.getStaticLabel(), name));↵ | | 2 | postProcessors.add(new MenuInfo(item.getStaticLabel(), name));↵
|
3 | }↵ | | 3 | }↵
|
|
4 | if (categories.contains(PRE_PROCESSORS)) {↵ | | 4 | if (categories.contains(PRE_PROCESSORS)) {↵
|
5 | preProcessors.add(new MenuInfo(item.getStaticLabel(), name));↵ | | 5 | preProcessors.add(new MenuInfo(item.getStaticLabel(), name));↵
|
6 | }↵ | | 6 | }↵
|
|
7 | if (categories.contains(CONTROLLERS)) {↵ | | 7 | if (categories.contains(CONTROLLERS)) {↵
|
8 | controllers.add(new MenuInfo(item.getStaticLabel(), name));↵ | | 8 | controllers.add(new MenuInfo(item.getStaticLabel(), name));↵
|
9 | }↵ | | 9 | }↵
|
|
10 | if (categories.contains(SAMPLERS)) {↵ | | |
|
11 | samplers.add(new MenuInfo(item.getStaticLabel(), name));↵ | | |
|
12 | }↵ | | |
|
|
13 | if (categories.contains(NON_TEST_ELEMENTS)) {↵ | | 10 | if (categories.contains(NON_TEST_ELEMENTS)) {↵
|
14 | nonTestElements.add(new MenuInfo(item.getStaticLabel(), name));↵ | | 11 | nonTestElements.add(new MenuInfo(item.getStaticLabel(), name));↵
|
15 | }↵ | | 12 | }↵
|
|
16 | if (categories.contains(LISTENERS)) {↵ | | 13 | if (categories.contains(LISTENERS)) {↵
|
17 | listeners.add(new MenuInfo(item.getStaticLabel(), name));↵ | | 14 | listeners.add(new MenuInfo(item.getStaticLabel(), name));↵
|
18 | }↵ | | 15 | }↵
|
|
19 | if (categories.contains(CONFIG_ELEMENTS)) {↵ | | 16 | if (categories.contains(CONFIG_ELEMENTS)) {↵
|
20 | configElements.add(new MenuInfo(item.getStaticLabel(), name));↵ | | 17 | configElements.add(new MenuInfo(item.getStaticLabel(), name));↵
|
21 | }↵ | | 18 | }↵
|
|
22 | if (categories.contains(ASSERTIONS)) {↵ | | 19 | if (categories.contains(TABLES)) {↵
|
23 | assertions↵ | | 20 | tables.add(new MenuInfo(item.getStaticLabel(), name));↵
|
| | | 21 | }↵
|
|
| | | 22 | if (categories.contains(REPORT_PAGE)) {↵
|
24 | .add(new MenuInfo(item.getStaticLabel(), name));↵ | | 23 | reportPage.add(new MenuInfo(item.getStaticLabel(), name));↵
|
25 | }↵ | | 24 | }↵
|
|
26 | }↵ | | 25 | }↵
|
27 | } catch (IOException e) {↵ | | 26 | } catch (Exception e) {↵
|
28 | log.error("", e);↵ | | 27 | log.error("", e);↵
|
29 | }↵ | | 28 | }↵
|
30 | }↵ | | 29 | }↵
|
|
31 | private static void addSeparator(JPopupMenu menu) {↵ | | 30 | private static void addSeparator(JPopupMenu menu) {↵
|
32 | MenuElement[] elements = menu.getSubElements();↵ | | 31 | MenuElement[] elements = menu.getSubElements();↵
|
33 | if ((elements.length > 0) && !(elements[elements.length - 1] instanceof JPopupMenu.Separator)) {↵ | | 32 | if ((elements.length > 0) && !(elements[elements.length - 1] instanceof JPopupMenu.Separator)) {↵
|
34 | menu.addSeparator();↵ | | 33 | menu.addSeparator();↵
|
35 | }↵ | | 34 | }↵
|
36 | } | | 35 | }
|