class TargetPerspectiveEditor implements IsElement, PerspectiveNameProvider {

    @Override
    public String getPerspectiveName(String perspectiveId) {
        if (perspectivePluginManager.isRuntimePerspective(perspectiveId)) {
            return perspectiveId;
        }
        return perspectiveTreeProvider.getPerspectiveName(perspectiveId);
    }

    @Inject public  TargetPerspectiveEditor(View view,
                                   PerspectiveDropDown perspectiveDropDown,
                                   PerspectivePluginManager perspectivePluginManager,
                                   PerspectiveTreeProvider perspectiveTreeProvider);

}