Eclipse里几个常用视图的ID

Eclipse提供的几个常用公共视图的ID,在定义perspective时可能会用到,如下:

//Resource Navigator
public final static String VIEW_ID_NAVIGATOR = "org.eclipse.ui.views.ResourceNavigator";

//Properties
public final static String VIEW_ID_PROPERTIES = "org.eclipse.ui.views.PropertySheet";

//Outline
public final static String VIEW_ID_OUTLINE = "org.eclipse.ui.views.ContentOutline";

Update(2007/4/9): Eclipse提供的IPageLayout接口里已经包含了这些ID,直接使用更方便,例如IPageLayout.ID_OUTLINE

搬家前链接:https://www.cnblogs.com/bjzhanghao/archive/2007/01/10/616998.html

欢迎转载
请保留原始链接:https://bjzhanghao.com/p/2758

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注