??xml version="1.0" encoding="utf-8" standalone="yes"?>伪装者免费全集在线观看,99国产精品久久久久久久,久久久国际精品http://www.aygfsteel.com/eclipshine/category/2266.htmlEclipse主题?/description>zh-cnTue, 27 Feb 2007 12:08:50 GMTTue, 27 Feb 2007 12:08:50 GMT60一个在RCP中快速打开文g的小技?/title><link>http://www.aygfsteel.com/eclipshine/archive/2005/09/22/13776.html</link><dc:creator>Living Not Striving</dc:creator><author>Living Not Striving</author><pubDate>Thu, 22 Sep 2005 11:47:00 GMT</pubDate><guid>http://www.aygfsteel.com/eclipshine/archive/2005/09/22/13776.html</guid><wfw:comment>http://www.aygfsteel.com/eclipshine/comments/13776.html</wfw:comment><comments>http://www.aygfsteel.com/eclipshine/archive/2005/09/22/13776.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/eclipshine/comments/commentRss/13776.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/eclipshine/services/trackbacks/13776.html</trackback:ping><description><![CDATA[介绍一个在RCP中快速打开文g的小技巧,例如Q在Word中打开一个Word文档Q或者在Acrobat中打开一个PDF文g?br> q可以通过SWT?code>org.eclipse.swt.program.ProgramcL实现Q?/code><br> <code><br style="color: rgb(0, 128, 0);"><span style="color: rgb(0, 128, 0);">    String filename = "myword.doc";</span><br style="color: rgb(0, 128, 0);"><span style="color: rgb(0, 128, 0);">    Program.launch(filename);</span><br> </code><br> q个c还提供?jin)其他一些有用的Ҏ(gu)Q例如得到某一特定扩展名对应的可执行程序,甚至得到q个可执行程序的图标?img src ="http://www.aygfsteel.com/eclipshine/aggbug/13776.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/eclipshine/" target="_blank">Living Not Striving</a> 2005-09-22 19:47 <a href="http://www.aygfsteel.com/eclipshine/archive/2005/09/22/13776.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Perspective的定义和相关问题http://www.aygfsteel.com/eclipshine/archive/2005/09/22/13719.htmlLiving Not StrivingLiving Not StrivingThu, 22 Sep 2005 02:58:00 GMThttp://www.aygfsteel.com/eclipshine/archive/2005/09/22/13719.htmlhttp://www.aygfsteel.com/eclipshine/comments/13719.htmlhttp://www.aygfsteel.com/eclipshine/archive/2005/09/22/13719.html#Feedback6http://www.aygfsteel.com/eclipshine/comments/commentRss/13719.htmlhttp://www.aygfsteel.com/eclipshine/services/trackbacks/13719.html?/span>RCP中,使用Perspective来描q?/span>View的组合以?qing)位|?/span>Perspective描述?jin)一?/span>View的初始布局Q此布局定义?jin)一?/span>PerspectiveW一ơ被昄Ӟ需要显C的ViewQ以?/span>View需要显C的位置Q大,以及(qing)View可能出现的位子?/span>

Perspective?/span>org.eclipse.ui.perspective扩展Ҏ(gu)定义。对应的实现c,应该实现?/span>IPerspectiveFactory接口。此接口中定义的:

public void createInitialLayout(IPageLayout layout)

Ҏ(gu)Q用来在layout中定?/span>View的显C布局?/span>

IPageLayout提供?jin)定义布局的方法,主要的方法有Q?/span>

  • getEditorArea(): q回Editor区域所对应?/span>ID。一?/span>View被安排在Editor的周_(d)因此通常需要得到此ID|在定?/span>View的位|时予以引用?/span>Editor区域可以通过IPageLayout?/span>setEditorAreaVisible()Ҏ(gu)予以昄或者关闭?/span>
  • createFolder(): 创徏一?/span>IFolderLayout?/span>IFolderLayout定义?jin)一个组合框的位|,在此l合框内Q可以按?/span>TabFolder的Ş式显C多?/span>View?/span>IFolderLayout?/span>addView()Ҏ(gu)可以向此l合框内dView。例如:(x)
              IFolderLayout layoutFolderLeft = layout.createFolder(
                            "search.perspective.folder.left", IPageLayout.LEFT, 0.35f,
                            editorArea);
              layoutFolderLeft.addView(SCSearchView.ID);
  • 另,IFolderLayout?/span>addPlaceholder()Ҏ(gu)Q可以将一?/span>Viewd到这个组合框内弹不予昄。当q个View需要被昄Ӟ自动被插到其定义ؓ(f)Placeholder?/span>IFolderLayout内?/span>

通常Q我们都需要先定义IFolderLayoutQ然后再?/span>Viewd?/span>IFolderLayout内,而不是直接将Viewd?/span>IPageLayout内?/span>

对于Perspective的额外的一些属性的讄Q可以在org.eclipse.ui.perspectiveExtensions中定义,具体可以讄的内容包括:(x)

  • ActionSet: 要添加到q个Perspective 中的ActionSet?/span>
  • ViewShortcut: 要添加到Window菜单下的Show View子菜单中?/span>View。如果不dq个扩展点的话,则在q个Perspectivezd的情况下Q?/span>Show View子菜单中找不到对应的ViewQ必ȝOthers之后才能够看到?/span>
  • PerspectiveShortcut: 要添加到Window菜单?/span>Show Perspective子菜单中?/span>Perspective?/span>
  • NewWizardShortcut: 要添加到File菜单下的New子菜单下的新建向对{?/span>

此外Q还可以通过q个扩展点用声明Q而非~程Q的方式dViewC?/span>Perspective中去?br> 通过q样的方式可以ؓ(f)现有?/span>Perspectived新的View?/span>



]]>
如何从TableViewer的Table中取出对应于某个TableItem的对?/title><link>http://www.aygfsteel.com/eclipshine/archive/2005/09/21/13613.html</link><dc:creator>Living Not Striving</dc:creator><author>Living Not Striving</author><pubDate>Wed, 21 Sep 2005 02:32:00 GMT</pubDate><guid>http://www.aygfsteel.com/eclipshine/archive/2005/09/21/13613.html</guid><wfw:comment>http://www.aygfsteel.com/eclipshine/comments/13613.html</wfw:comment><comments>http://www.aygfsteel.com/eclipshine/archive/2005/09/21/13613.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/eclipshine/comments/commentRss/13613.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/eclipshine/services/trackbacks/13613.html</trackback:ping><description><![CDATA[     摘要: 通过TableItem的getData()Ҏ(gu)Q可以得到其在TableViewer中所对应的模型对象?nbsp; <a href='http://www.aygfsteel.com/eclipshine/archive/2005/09/21/13613.html'>阅读全文</a><img src ="http://www.aygfsteel.com/eclipshine/aggbug/13613.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/eclipshine/" target="_blank">Living Not Striving</a> 2005-09-21 10:32 <a href="http://www.aygfsteel.com/eclipshine/archive/2005/09/21/13613.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>否决弹出菜单http://www.aygfsteel.com/eclipshine/archive/2005/09/21/13608.htmlLiving Not StrivingLiving Not StrivingWed, 21 Sep 2005 00:48:00 GMThttp://www.aygfsteel.com/eclipshine/archive/2005/09/21/13608.htmlhttp://www.aygfsteel.com/eclipshine/comments/13608.htmlhttp://www.aygfsteel.com/eclipshine/archive/2005/09/21/13608.html#Feedback2http://www.aygfsteel.com/eclipshine/comments/commentRss/13608.htmlhttp://www.aygfsteel.com/eclipshine/services/trackbacks/13608.html阅读全文

]]>
RCP中视N的交互机制探?/title><link>http://www.aygfsteel.com/eclipshine/archive/2005/09/19/13459.html</link><dc:creator>Living Not Striving</dc:creator><author>Living Not Striving</author><pubDate>Mon, 19 Sep 2005 14:42:00 GMT</pubDate><guid>http://www.aygfsteel.com/eclipshine/archive/2005/09/19/13459.html</guid><wfw:comment>http://www.aygfsteel.com/eclipshine/comments/13459.html</wfw:comment><comments>http://www.aygfsteel.com/eclipshine/archive/2005/09/19/13459.html#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://www.aygfsteel.com/eclipshine/comments/commentRss/13459.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/eclipshine/services/trackbacks/13459.html</trackback:ping><description><![CDATA[     摘要: RCP或者Eclipse中视图之间的交互Q有比较标准的方式来完成Q就是用ISelectionProvider以及(qing)ISelectionListener的机制。本文对ơ做?jin)比较详l擦阐述?nbsp; <a href='http://www.aygfsteel.com/eclipshine/archive/2005/09/19/13459.html'>阅读全文</a><img src ="http://www.aygfsteel.com/eclipshine/aggbug/13459.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/eclipshine/" target="_blank">Living Not Striving</a> 2005-09-19 22:42 <a href="http://www.aygfsteel.com/eclipshine/archive/2005/09/19/13459.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Plugin中的Classpath的计?/title><link>http://www.aygfsteel.com/eclipshine/archive/2005/08/14/10060.html</link><dc:creator>Living Not Striving</dc:creator><author>Living Not Striving</author><pubDate>Sat, 13 Aug 2005 23:58:00 GMT</pubDate><guid>http://www.aygfsteel.com/eclipshine/archive/2005/08/14/10060.html</guid><wfw:comment>http://www.aygfsteel.com/eclipshine/comments/10060.html</wfw:comment><comments>http://www.aygfsteel.com/eclipshine/archive/2005/08/14/10060.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.aygfsteel.com/eclipshine/comments/commentRss/10060.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/eclipshine/services/trackbacks/10060.html</trackback:ping><description><![CDATA[     摘要: Plugin的Classpath的设|与传统的JavaE序有很大的不同。每个Plugin都有其独立的ClassloaderQ由此引发了(jin)一pd的问题?nbsp; <a href='http://www.aygfsteel.com/eclipshine/archive/2005/08/14/10060.html'>阅读全文</a><img src ="http://www.aygfsteel.com/eclipshine/aggbug/10060.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/eclipshine/" target="_blank">Living Not Striving</a> 2005-08-14 07:58 <a href="http://www.aygfsteel.com/eclipshine/archive/2005/08/14/10060.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>如何在RCP中创建多面的Editor:http://www.aygfsteel.com/eclipshine/archive/2005/07/28/8658.htmlLiving Not StrivingLiving Not StrivingThu, 28 Jul 2005 09:44:00 GMThttp://www.aygfsteel.com/eclipshine/archive/2005/07/28/8658.htmlhttp://www.aygfsteel.com/eclipshine/comments/8658.htmlhttp://www.aygfsteel.com/eclipshine/archive/2005/07/28/8658.html#Feedback0http://www.aygfsteel.com/eclipshine/comments/commentRss/8658.htmlhttp://www.aygfsteel.com/eclipshine/services/trackbacks/8658.htmlMultiPageEditor中的每一个页面,可以是一个EditorQ也可以是Q何的一个SWT Composite。创建多面的EditorQ首先需要(h)?FONT color=#008000>MultiPageEditorPart。在MultiPageEditorPart?EM>createPages()Ҏ(gu)中创建每一个Page。创建Page的方法有两种Q一U是使用addPage(IEditorPart,IEditorInput)Q接受一个Editor对象Q创个Editor对象直接q行new XXXEditor()卛_Q,另一U是使用addPage(Control control)。创个controlӞ使用getContainer()所得到的容器作个Composite的parent卛_。而这个作为container的parentQ可以想象的刎ͼ实际上就是一个CTabFolder?/P>

q个CTabFolder在创建Editor时被自动创徏Qƈ其addSelectionListener的响应事Ӟ映射到MultiPageEditor?EM>pageChange()Ҏ(gu)上。因此,例如要同步不同页面之间的内容Q如果要监听面切换的事件响应,只需实现pageChange()Ҏ(gu)卛_?/P>

]]>
RCPW记http://www.aygfsteel.com/eclipshine/archive/2005/07/22/8214.htmlLiving Not StrivingLiving Not StrivingFri, 22 Jul 2005 15:04:00 GMThttp://www.aygfsteel.com/eclipshine/archive/2005/07/22/8214.htmlhttp://www.aygfsteel.com/eclipshine/comments/8214.htmlhttp://www.aygfsteel.com/eclipshine/archive/2005/07/22/8214.html#Feedback0http://www.aygfsteel.com/eclipshine/comments/commentRss/8214.htmlhttp://www.aygfsteel.com/eclipshine/services/trackbacks/8214.html
  • d一个新的Menu到WorkbenchӞ它的path应该是additions.表示d到最后?
  • action are added, not to the menu itself, but to groups within the menu. 因此在添加一个Action到menu之前Q首先要定义一些groupMarker或者seperator?
  • 通常创徏一个menu的时候,都还要额外添加一个名为additions的seperator来让别h扩展q个Menu。在Eclipse自n的实C都是q样做的Q也应该是标准的做法?FONT color=#a52a2a>IWorkbenchActionConstants.MB_ADDITIONS定义?jin)additions作ؓ(f)Menu的扩展插入点。IWorkbenchActionConstants应该q定义了(jin)现有的Menu的插入点?
  • dAction到Toolbar的时候,其path可以是Normal/additions?
  • Eclipse中的图标Q可以在plugins\org.eclipse.ui_3.0.0\icons\full或?EM>plugins\org.eclipse.jdt.ui_3.0.0\icons\full下面L?
  • 可以在IPerspectiveFactory中用IPageLayout.addActionSet(id)Ҏ(gu)一个ActionSet同一个Prespective联系hQ得在昄Perspective的时候能够显C个ActionSet中所定义的Action。或者,可以在ActionSet的扩展点中用visible="true"来得这个ActionSet在所有的Persective中显C出来?
  • JFace?STRONG>MessageDialogQ有一些静(rn)态方法可以用来创Z个Dialog?/LI>

    ]]> վ֩ģ壺 | ϴ| ɳ| | | ֦| | ·| | տ| ָɽ| | | ˳| | | | ˮ| | ɽ| ɽ| | ɽ| | | | | ƽң| | γ| | | | | ֦| | | | ɳ| ˫| |