0
저는 원근법을위한 스위처를 구축 중입니다. 나는 그것을 위해 하나의 버튼을 사용하고 싶다. 그래서 한 번 클릭하면 perspective2로 전환되고 두 번째로 cklick하면 perspective1로 다시 전환됩니다. 내가 isOnTop 시도하지만 작동하지 않습니다. 도와주세요. 고맙습니다.E4 활성 관점 가져 오기 ID 또는 레이블
저는 원근법을위한 스위처를 구축 중입니다. 나는 그것을 위해 하나의 버튼을 사용하고 싶다. 그래서 한 번 클릭하면 perspective2로 전환되고 두 번째로 cklick하면 perspective1로 다시 전환됩니다. 내가 isOnTop 시도하지만 작동하지 않습니다. 도와주세요. 고맙습니다.E4 활성 관점 가져 오기 ID 또는 레이블
EModelService
public class SwitchPerspectiveHandler {
@Execute
public void execute(MApplication app, EPartService partService, EModelService modelService) {
MPerspective xxx = (MPerspective) modelService.find("xxx", app);
MPerspective yyy = (MPerspective) modelService.find("yyy", app);
if (yyy.isOnTop()) {
partService.switchPerspective(xxx);
} else
partService.switchPerspective(yyy);
}
}이 있습니다
public MPerspective getActivePerspective(MWindow window);
당신과 함께 MWindow
을 찾을 수 있습니다
element
창에있는 모든 요소
public MWindow getTopLevelWindowFor(MUIElement element);
.