Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/python-2.7/5.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/3/sql-server-2005/2.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
Eclipse rcp 显示Eclipse RCP';每家创业公司都有欢迎页面_Eclipse Rcp - Fatal编程技术网

Eclipse rcp 显示Eclipse RCP';每家创业公司都有欢迎页面

Eclipse rcp 显示Eclipse RCP';每家创业公司都有欢迎页面,eclipse-rcp,Eclipse Rcp,是否有办法强制RCP产品在每次启动RCP时都显示欢迎页面?(默认情况下,欢迎页面仅在第一次启动RCP时显示。) 我在plugin_customization.ini中尝试了org.eclipse.ui/SHOW_INTRO=true,但没有奏效 谢谢, Frank删除简介xml中的-showsplash,您可以使用 <contentProvider id="awc" class="org.eclipse.ui.intro.contentproviders.AlwaysWelcomeChec

是否有办法强制RCP产品在每次启动RCP时都显示欢迎页面?(默认情况下,欢迎页面仅在第一次启动RCP时显示。)

我在plugin_customization.ini中尝试了
org.eclipse.ui/SHOW_INTRO=true
,但没有奏效

谢谢,
Frank

删除简介xml中的
-showsplash
,您可以使用

<contentProvider id="awc" class="org.eclipse.ui.intro.contentproviders.AlwaysWelcomeCheckbox" pluginId="org.eclipse.ui.intro">
    <text></text>
</contentProvider>

这允许用户选择是否每次都显示简介页面。无论放置在何处,它都会显示一个小复选框。不知道是否可以在默认情况下启用它


如果您不想这样做,您可以在
workbench.xml
中以某种方式定义它,并在恢复RCP会话时显式加载简介屏幕。

或者,您可以通过编程方式设置它,例如在WorkbenchAdvisor的初始化方法中

 PrefUtil.getAPIPreferenceStore().setValue(
            IWorkbenchPreferenceConstants.SHOW_INTRO, true);
 PrefUtil.saveAPIPrefs();
但是,由于PrefUtil是一个内部类,因此只有当您无法在xml中设置此属性时才建议使用它(例如,您有一个不基于标准简介页面的简介)

PS:问题是,当介绍出现时,您通过plugin.customization设置的首选项属性设置为false,plugin\u customization仅设置首选项存储默认值,一旦任何组件设置了该值,默认值就会过时。使用这两行代码,您可以在每次启动时将此首选项设置为true,并且将显示简介。

“intro”元素有一个属性“contentDetector”

contentDetector-扩展类的完全限定名 org.eclipse.ui.intro.IntroContentDetector。使用此可选类 检测新添加的介绍内容。如果新内容是 如果可用,将再次打开显示介绍的视图


谢谢你,大卫。问题是,我使用的是一个HTML欢迎页面,它是通过introContent元素在intro.xml中设置的。将contentProvider添加到XML没有任何影响。有没有办法在HTML页面中添加提供者?根据EclipseRCP帮助()的说法,这是使用XHTML的一个显式特性。因此,要么你切换到XHTML,要么你必须找到另一种方式来始终显示欢迎屏幕,我认为。由于帮助内容是HTML,我决定使用一种变通方法,通过标准的ActionFactory.Intro操作在帮助菜单中显示一个简介条目。再次感谢!在我的RCP应用程序中,一个对我有用的非内部选项是使用PlatformUI.getPreferenceStore()而不是PrefUtil。