tailieunhanh - Professional Eclipse 3 for Java Developers 2006 phần 7

Sau khi bạn nhập vào tất cả các tùy chọn và nhấn nút Finish, các lớp và các gói cần thiết được tạo ra, và các mục cần thiết được thêm vào file manifest. Trong trường hợp này, đây là những mục thể loại mới và quan điểm mới. Sau khi lưu những tập tin này (Ctrl S), bạn có thể thực hiện các plug-trong ngay lập tức gọi | Chapter 11 After you enter all the options and press the Finish button the necessary classes and packages are generated and the necessary entries are added to the manifest file . In this case these are entries for the new category and the new view. After saving these files Ctrl S you can execute the plug-in immediately by invoking Run Run as. Run-time Workbench. Figure On the third wizard page you can specify additional options for the new view. I will discuss actions in the Actions section and event processing in the section Event Processing in the Eclipse Workbench. First the new view is invisible if you did not check the option Add the View to the Resource Perspective . With the function Window Show View Other. you can select the new view in the Videoclips category and open it. This gives you a relatively well-instrumented tree-based view as shown in Figure . What remains is to equip this view with an application-specific domain model. Template-based extension points thus offer the possibility of producing premanufactured application components with just a few mouse clicks. Instead of having to hunt through dozens of APIs you can obtain well-functioning code that you need only modify according to your requirements. 340 Developing Plug-ins for the Eclipse Platform Figure The Schema Editor If you want to define your own extension points as discussed previously it makes sense to define schemas with these extension points too. These schemas can guide programmers through the specification of extension point parameters as you have already had seen in the section The Most Important SDK Extension Points. Eclipse uses a subset of the XML Schema language to define such schemas. In some respects however such as namespace usage or the spelling of some tags the dialect used in Eclipse differs from the standard defined by the World Wide Web Consortium W3C . For this reason Eclipse schemas have the file extension .exsd instead of the usual .xsd .

TỪ KHÓA LIÊN QUAN