Open a View in the Editor Area (3.8/e4 hybrid)

I'm working on a 3.8-e4 hybrid (ie we have the Luna dependencies, but we do not use the Application.e4xmi, yet). So we're basically running the compact layer. With that being said, it would be nice to find an e4 programmatic way to stack these nasty views onto the editor folder. 1.) Problem I want to place a generic view folder in the editor area, so that each view which is opened

在编辑器区域打开视图(3.8 / e4混合)

我正在开发一个3.8-e4混合(即我们有Luna依赖,但我们不使用Application.e4xmi)。 所以我们基本上运行紧凑层。 据说,最好找到一种e4编程方式将这些讨厌的视图堆叠到编辑器文件夹中。 1.)问题 我想在编辑器区域放置一个通用视图文件夹,以便在运行时打开的每个视图都将在那里打开。 (图片从这个问题被盗) 2.1)可能的修复方法1:使用plugin.xml 创建透视扩展,并将每个可能的视图添加到该扩展中,并将关系堆栈

Displaying result in a custom view

I am quite new to eclipse plug-in development and so please bear with me if the question is very trivial. I am in the process of developing an eclipse plugin.I have almost completed with it, except I am stuck in the last step. I have already created the custom view in plugin.xml file and I am also implementing an IAction function with this to perform the corresponding action for a selection. S

在自定义视图中显示结果

我对eclipse插件开发非常陌生,所以如果问题很微不足道,请耐心等待。 我正在开发一个eclipse插件。我几乎完成了它,除了我被困在最后一步之外。 我已经在plugin.xml文件中创建了自定义视图,并且我还实现了一个IAction函数,以便为选择执行相应的操作。 因此,使用它的逻辑是,在用户执行特定操作后,操作的结果应显示在自定义视图中,否则应通过该程序打开视图,然后显示结果在里面。 我写的代码如下 - public class exam

How to pass parameters to comman in eclipse rcp application through code?

I am using the below code to run a command added via org.eclipse.ui.commands: IServiceLocator serviceLocator = PlatformUI.getWorkbench(); ICommandService commandService = (ICommandService) serviceLocator.getService(ICommandService.class); try { Command command = commandService.getCommand("my_command_id"); command.executeWithChecks(new ExecutionEvent()); } catch (ExecutionE

如何通过代码将参数传递给eclipse rcp应用程序中的comman?

我正在使用下面的代码来运行通过org.eclipse.ui.commands添加的命令: IServiceLocator serviceLocator = PlatformUI.getWorkbench(); ICommandService commandService = (ICommandService) serviceLocator.getService(ICommandService.class); try { Command command = commandService.getCommand("my_command_id"); command.executeWithChecks(new ExecutionEvent()); } catch (ExecutionException ex1

Set Focus to Eclipse Console View in Eclipse RCP

I want to programatically set the focus to the Console View (that is bring that view to being active/displayed in case it isn't). How would I even get a reference to the ConsoleView so that I an call set focus to it from another plugin? As mentioned in the comment it is done like this: String id = IConsoleConstants.ID_CONSOLE_VIEW; IViewPart consoleView = PlatformUI.getWorkbench().getActi

在Eclipse RCP中将焦点设置为Eclipse控制台视图

我想以编程方式将焦点设置为控制台视图(如果不是,则将该视图激活/显示)。 我甚至会如何获得对ConsoleView的引用,以便我从另一个插件将焦点集中到它上面? 正如评论中所提到的,它是这样做的: String id = IConsoleConstants.ID_CONSOLE_VIEW; IViewPart consoleView = PlatformUI.getWorkbench().getActiveWorkbenchWindow() .getActivePage().showView(id); 要显示特定(自定义)

Eclipse RCP: Generating views from form values

I want to build a user interface similar to the sketch below: sketch http://i39.tinypic.com/288uvz8.png When the user fills out the form on the right and clicks the 'Plot!' button, a new closeable tab opens on the left with a chart. I am new to RCP and have been following this tutorial. I am able to bring up tabs with charts triggered from a menu item. How do I go about: creati

Eclipse RCP:从表单值生成视图

我想建立一个类似于下面的草图的用户界面: 草图http://i39.tinypic.com/288uvz8.png 当用户填写右侧的表单并点击“Plot!” 按钮,一个新的可关闭的选项卡在左侧打开并显示一个图表。 我是RCP的新手,并且一直遵循本教程。 我可以调出带有菜单项触发图表的选项卡。 我如何去做: 使用表单创建选项卡(视图?) 当用户点击按钮时打开一个新的图表选项卡 编辑 这是我目前的代码。 它满足了这个问题中列出的基本要

Starting working with Eclipse RCP

I'm going to start maintaining an Eclipse RCP application for my current employer soon. What are your experiences with this platform? What are the pros, what are the cons, what are the caveats that I should be aware of? Also, what reading materials (books, tutorials) can you recommend? Most of the tutorials I found on the web are outdated, are there any good ones that are more up to dat

开始使用Eclipse RCP

我将尽快为我的当前雇主开始维护Eclipse RCP应用程序。 你对这个平台有什么经验? 什么是优点,有什么缺点,我应该注意哪些警告? 另外,你可以推荐哪些阅读材料(书籍,教程)? 我在网上找到的大多数教程都过时了,有没有更好的更新? 我开始阅读Eclipse Rich Client Platform:设计,编码和打包Java(TM)应用程序,但由于它也过时了,所以我一开始就陷入了困境,而这本书似乎更像是一系列食谱做一些比关于这个问题的

Passing parameters to the view

In my RCP application, I have a View with a TreeViewer for Navigation on the left side and a Folder for my views on the right side. The Perspective looks like this: public void createInitialLayout(IPageLayout layout) { layout.setEditorAreaVisible(false); layout.setFixed(false); layout.addStandaloneView(NavigationView.ID, false, IPageLayout.LEFT, 0.7f, layout.getEditorArea());

将参数传递给视图

在我的RCP应用程序中,我在左侧有一个带有用于导航的TreeViewer的视图,而在右侧有一个用于我的视图的文件夹。 透视看起来像这样: public void createInitialLayout(IPageLayout layout) { layout.setEditorAreaVisible(false); layout.setFixed(false); layout.addStandaloneView(NavigationView.ID, false, IPageLayout.LEFT, 0.7f, layout.getEditorArea()); right = layout.createFolder("right", IPage

java.util.Date to XMLGregorianCalendar

没有从java.util.Date到XMLGregorianCalendar的简便方法吗? GregorianCalendar c = new GregorianCalendar(); c.setTime(yourDate); XMLGregorianCalendar date2 = DatatypeFactory.newInstance().newXMLGregorianCalendar(c); 对于那些可能最终在这里寻找相反的转换(从XMLGregorianCalendar到Date ): XMLGregorianCalendar xcal = <assume this is initialized>; java.util.Date dt = xcal.toGregorianCalendar().getTi

java.util.Date到XMLGregorianCalendar

没有从java.util.Date到XMLGregorianCalendar的简便方法吗? GregorianCalendar c = new GregorianCalendar(); c.setTime(yourDate); XMLGregorianCalendar date2 = DatatypeFactory.newInstance().newXMLGregorianCalendar(c); 对于那些可能最终在这里寻找相反的转换(从XMLGregorianCalendar到Date ): XMLGregorianCalendar xcal = <assume this is initialized>; java.util.Date dt = xcal.toGregorianCalendar().getTi

How to set time zone of a java.util.Date?

I have parsed a java.util.Date from a String but it is setting the local time zone as the time zone of the date object. The time zone is not specified in the String from which Date is parsed. I want to set a specific time zone of the date object. How can I do that? Use DateFormat. For example, SimpleDateFormat isoFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss"); isoFormat.setTimeZo

如何设置java.util.Date的时区?

我已经从String分析了java.util.Date ,但它将本地时区设置为date对象的时区。 时区未在解析Date的String指定。 我想设置date对象的特定时区。 我怎样才能做到这一点? 使用DateFormat。 例如, SimpleDateFormat isoFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss"); isoFormat.setTimeZone(TimeZone.getTimeZone("UTC")); Date date = isoFormat.parse("2010-05-23T09:01:02"); 请注意, java.util.Date对象

java.text.Parseexception, unparseble date at position 0? Android

I am using the below code to parse a date, and to format it how I want; the code is working fine for other dates such as this one: Thu, 04 Sep 2014 19:32:00 GMT But it is throwing the above error message on a date such as this: Fri, 05 Sep 2014 06:01:00 +0100 Can anyone explain why? Thanks. The code: //Only get the 'important' parts. pubDateFormat = pubDate.substring(0, 23); //Forma

java.text.Parseexception,位置0处的不可分段日期? Android的

我使用下面的代码来解析日期,并将其格式化为我想要的样式; 该代码对于其他日期(如下面的代码)工作正常: 星期四,2014年9月4日19:32:00 GMT 但它会在如下所示的日期上抛出上述错误消息: 星期五,2014年9月05日06:01:00 +0100 谁能解释为什么? 谢谢。 代码: //Only get the 'important' parts. pubDateFormat = pubDate.substring(0, 23); //Format it how I want. dateFormatter = new SimpleDateFormat("EEE