eclipse开发插件

joniy 2009-08-12 11:32:25
要是使用Eclipse开发插件,能不能找到一个像JDK的API文档?现在没有API真难,比如getViewSite().getPage().findViewReference(joinViewId).getView(true);其中的getView中的参数树是什么意思呢?
...全文
176 18 打赏 收藏 转发到动态 举报
写回复
用AI写文章
18 条回复
切换为时间正序
请发表友善的回复…
发表回复
小一郎 2009-08-21
  • 打赏
  • 举报
回复
xiuyouxu 2009-08-20
  • 打赏
  • 举报
回复
我也没有api,不过有一本书,介绍的很详细的
loven_11 2009-08-20
  • 打赏
  • 举报
回复
弱弱的问句:安装了src源码代码 不就可以直接看到么?

/**
* Returns the <code>IViewPart</code> referenced by this object.
* Returns <code>null</code> if the view was not instantiated or
* it failed to be restored. Tries to restore the view
* if <code>restore</code> is true.
*/
public IViewPart getView(boolean restore);
all_en 2009-08-20
  • 打赏
  • 举报
回复
学习中。。。
定顶下!
islandrabbit 2009-08-20
  • 打赏
  • 举报
回复
[Quote=引用楼主 joniy01 的回复:]
要是使用Eclipse开发插件,能不能找到一个像JDK的API文档?现在没有API真难,比如getViewSite().getPage().findViewReference(joinViewId).getView(true);其中的getView中的参数树是什么意思呢?
[/Quote]

建议楼主用高版本的eclipse,纯粹开发插件的话可用rcp版的。我用的是eclipse 3.4.1很多类都有源码.下面列举一下:

getViewSite:
IViewSite org.eclipse.ui.part.ViewPart.getViewSite()
Returns the site for this view. This method is equivalent to (IViewSite) getSite().

The site can be null while the view is being initialized. After the initialization is complete, this value must be non-null for the remainder of the view's life cycle.

Returns:
the view site; this value may be null if the view has not yet been initialized


getPage():
IWorkbenchPage org.eclipse.ui.IWorkbenchSite.getPage()
Returns the page containing this workbench site.

Returns:
the page containing this workbench site


findViewReference(joinViewId):
IViewReference org.eclipse.ui.IWorkbenchPage.findViewReference(String viewId)
Returns the view reference with the specified id.

Parameters:
viewId the id of the view extension to use
Returns:
the view reference, or null if none is found
Since:
3.0


getView(true):
Returns the IViewPart referenced by this object. Returns null if the view was not instantiated or it failed to be restored. Tries to restore the view if restore is true.
pang040328 2009-08-20
  • 打赏
  • 举报
回复
LZ可以看这个在线版的API查询
http://gceclub.sun.com.cn/Java_Docs/html/zh_CN/api/index.html
pasband 2009-08-20
  • 打赏
  • 举报
回复
eclipse有联机帮助,或者看源码注释
qibinzhi 2009-08-20
  • 打赏
  • 举报
回复
学习
zhang_yu_QIN 2009-08-19
  • 打赏
  • 举报
回复
帖子沉下去了阿.
酒浪子 2009-08-15
  • 打赏
  • 举报
回复
学习!帮顶
pmlxp 2009-08-14
  • 打赏
  • 举报
回复
帮顶
唐巧 2009-08-14
  • 打赏
  • 举报
回复
我一般就看eclipse自带的帮助,F1 -> Platform Plug-in Developer Guide > Reference > API Reference 。里面其实就是java doc的排版方式。
还有一个就是在那个帮助的搜索里面,填相应的关键词,可以搜到一些内部自带的guide doc.也非常有用。
joniy 2009-08-12
  • 打赏
  • 举报
回复
一楼的,你真不是一般的厉害,你把Eclipse内核代码都注释一下吧!然后我想中国的插件开发者都会感激你的!!
fyjava1984 2009-08-12
  • 打赏
  • 举报
回复
我也想知道,
jianchencool 2009-08-12
  • 打赏
  • 举报
回复
Eclipse可以生成文档,自己把注释写详细就OK了
zhang_yu_QIN 2009-08-12
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 dollyn 的回复:]
Eclipse自带的帮助就有:
Platform Plug-in Developer Guide有平台插件开发介绍。
Platform Plug-in Developer Guide > Reference > API Reference 就是你要的文档。

[/Quote]

正解..顶.
bea_java 2009-08-12
  • 打赏
  • 举报
回复
顶下,没做过插件的开发。 不知道插件开发为何物。。。顶顶。。。顶。。
问苍天插件开发为何物?
只叫我如此迷惘。
霜之哀伤 2009-08-12
  • 打赏
  • 举报
回复
Eclipse自带的帮助就有:
Platform Plug-in Developer Guide有平台插件开发介绍。
Platform Plug-in Developer Guide > Reference > API Reference 就是你要的文档。

58,454

社区成员

发帖
与我相关
我的任务
社区描述
Java Eclipse
社区管理员
  • Eclipse
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧