简体   繁体   English

如何将SWT_XYGraph_2.1.0小部件安装到Eclipse中

[英]How to install SWT_XYGraph_2.1.0 widget into Eclipse

I searched Google, but did not see how to add a widgit, like SWT_XYGraph_2.1.0 , to Eclipse, such that when I go to the SWT designer view, I see the control in the palette. 我搜索了Google,但没有看到如何向Eclipse中添加widgit(例如SWT_XYGraph_2.1.0) ,因此当我转到SWT设计器视图时,可以在调色板中看到该控件。

I saw articles that said to import a jar, do " | Build Path | Configure Build Path... | Add External Jars...", however that does not add the widget to the palette. 我看到说要导入jar的文章,请执行“ | |构建路径|配置构建路径... |添加外部Jars ...”,但是并没有将小部件添加到选项板。

I also saw articles that talked of copying the features and plugin files to the appropriate eclipse folder, but I do not see any feature files. 我还看到了有关将功能部件和插件文件复制到适当的eclipse文件夹的文章,但是看不到任何功能部件文件。 What I see is: 我看到的是:

org.csstudio.swt.widgets.source_2.1.0.201209121549.jar
org.csstudio.swt.widgets_2.1.0.201209121549.jar
org.csstudio.swt.xygraph.source_2.1.0.201209121540.jar
org.csstudio.swt.xygraph_2.1.0.201209121540.jar

What is the step-by-step guide on how I can import the SWT widgit into Eclipse and see the widget. 关于如何将SWT widgit导入Eclipse并查看小部件的循序渐进指南是什么。

Note, I already added the 49.jar widgit file using 'Configure Build Path', although I guess that I can remove it just as easily. 注意,我已经使用“配置构建路径”添加了49.jar widgit文件,尽管我想我可以很轻松地将其删除。

Also, do I place the widget files into the 另外,我是否将小部件文件放入

I am running Eclipse on Windows, but app needs to work on CENTOS Linux as well. 我在Windows上运行Eclipse,但是应用程序也需要在CENTOS Linux上运行。

Eclipse Standard/SDK Version: Kepler Service Release 1 Build id: 20130919-0819 Eclipse Standard / SDK版本:Kepler Service Release 1 Build ID:20130919-0819

I am using WindowBuilder. 我正在使用WindowBuilder。

Look at the documentation for WindowBuilder: Custom Composites & Panels . 查看WindowBuilder的文档:“ 定制复合材料和面板” It allows you to add any Composite subclass (I assume XYGraph is one; if it's a Canvas subclass instead, wrapping it in a Composite should be simple). 它允许您添加任何 Composite子类(我假设XYGraph是其中的一个;如果它是Canvas子类,则将其包装在Composite中应该很简单)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM