void () { doTest(new CheckAction() { @Override public void testClassStructure(StructureViewComponent svc) { svc.setActionActive(InheritedMembersNodeProvider.ID, true); PlatformTestUtil.assertTreeEqual( svc.getTree(), """ -Class1.java -Class1 getValue(): int getClass(): Class<?> hashCode(): int equals(Object): boolean clone(): Object toString(): String notify(): void notifyAll(): void wait(long): void wait(long, int): void wait(): void finalize(): void myField1: boolean myField2: boolean """); svc.setActionActive(InheritedMembersNodeProvider.ID, false); svc.setActionActive(InheritedMembersNodeProvider.ID, true); svc.setActionActive(InheritedMembersNodeProvider.ID, false); PlatformTestUtil.assertTreeEqual( svc.getTree(), """ -Class1.java -Class1 getValue(): int myField1: boolean myField2: boolean """); svc.setActionActive(PublicElementsFilter.ID, true); PlatformTestUtil.assertTreeEqual( svc.getTree(), """ -Class1.java -Class1 getValue(): int myField1: boolean myField2: boolean """); svc.setActionActive(PublicElementsFilter.ID, false); PlatformTestUtil.assertTreeEqual( svc.getTree(), """ -Class1.java -Class1 getValue(): int myField1: boolean myField2: boolean """); } }); }