Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/398.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Eclipse RCP开发中自定义类定义的透视图_Java_Eclipse_Eclipse Plugin_Eclipse Rcp - Fatal编程技术网

Java Eclipse RCP开发中自定义类定义的透视图

Java Eclipse RCP开发中自定义类定义的透视图,java,eclipse,eclipse-plugin,eclipse-rcp,Java,Eclipse,Eclipse Plugin,Eclipse Rcp,我有eclipse插件开发,在那里我从头开始开发一切。这意味着我正在用一些插件开发自己的工作台。所以,在我的产品中,我使用了7个插件 1用于jar导入,1用于soa管理,1用于系统管理 在这里,我定义了我自己的透视类 EAPerspective.java ---------- public class EAPerspective implements IPerspectiveFactory { /** * Creates the initial layout for a page. */

我有eclipse插件开发,在那里我从头开始开发一切。这意味着我正在用一些插件开发自己的工作台。所以,在我的产品中,我使用了7个插件

1用于jar导入,1用于soa管理,1用于系统管理

在这里,我定义了我自己的透视类

EAPerspective.java

----------
public class EAPerspective implements IPerspectiveFactory {

/**
 * Creates the initial layout for a page.
 */
public void createInitialLayout(IPageLayout layout) {
    String editorArea = layout.getEditorArea();
    addFastViews(layout);
    addViewShortcuts(layout);
    addPerspectiveShortcuts(layout);
    layout.addView("org.governance.ea.platform.parts.soa.WSDLAnalyzerPartView", IPageLayout.LEFT, 0.33f, IPageLayout.ID_EDITOR_AREA);
    layout.addView("org.governance.ea.platform.parts.soa.EANavigatorPartView", IPageLayout.RIGHT, 0.5f, IPageLayout.ID_EDITOR_AREA);
    layout.addView("org.governance.ea.platform.parts.soa.SOAEditorPartView", IPageLayout.BOTTOM, 0.5f, IPageLayout.ID_EDITOR_AREA);
}

/**
 * Add fast views to the perspective.
 */
private void addFastViews(IPageLayout layout) {
}

/**
 * Add view shortcuts to the perspective.
 */
private void addViewShortcuts(IPageLayout layout) {
}

/**
 * Add perspective shortcuts to the perspective.
 */
private void addPerspectiveShortcuts(IPageLayout layout) {
}}

----------------------
然后我有文件“Application.e4xmi”

我的问题是平台正在加载application.e4xmi中定义的透视图,但不是从EAPerspective


我尝试了所有方法,之前我没有在application.e4xmi中定义任何内容,但后来当我定义时,我发现它只从application.e4xmi中获取。

application.e4xmi是用于e4应用程序的。透视工厂用于3.x兼容模式应用程序。你不能同时使用它们。那么在e4中有可能有一些与透视工厂相关的东西吗?我现在也在搜索这个。不,对于e4,您可以在Application.e4xmi(或fragment.e4xmi)中定义所有内容。你需要弄清楚e4和3.x兼容模式应用程序之间的区别。