Developing an Eclipse RCP application

前端 未结 2 707
忘掉有多难
忘掉有多难 2021-02-04 19:50

It\'s my first time to develop an RCP application with Eclipse 3.8. My question may seem weird but it is really confusing for me. Where can I put the code for my application? If

2条回答
  •  被撕碎了的回忆
    2021-02-04 20:30

    what i've realized is, the generated classes in a RCP project folder are only to manage the lifecycle and appearance of the RCP application, that's it.

    For everything else we want our application to do, we need to write seperate classes.

    For eg, if you created a view (class that implements IViewPart interface) then u need to add that view to the RCP application using plugin.xml file.

    following is a short description of these classes (what basically they do)

    • Application.java - starting point of application, similar to main(-) method.
    • WorkbenchWindowAdvisor.java - for window size, title, menubar, toolbar, status bar configuration and visibility.
    • WorkbenchAdvisor.java - identifies the initial perspective and which WorkbenchWindowAdvisor to use.
    • Perspective.java - arrangement of views and editors (like we have in Java Perspective, Debug Perspective in Eclipse IDE)
    • ActionBarAdvisor.java - for creating actions but the use of commands framework is encouraged (see page no.292 of Eclipse Rich Client Platform, Second Edition- by Jeff McAffer http://www.amazon.com/Eclipse-Rich-Client-Platform-Edition/dp/0321603788 )

提交回复
热议问题