Jdeveloper Jsf Download File from Server Apache Myfaces (Open Source JSF Implementation) – Using the Tree2 Component with Jdeveloper 10.1.3

Total Page:16

File Type:pdf, Size:1020Kb

Jdeveloper Jsf Download File from Server Apache Myfaces (Open Source JSF Implementation) – Using the Tree2 Component with Jdeveloper 10.1.3 jdeveloper jsf download file from server Apache MyFaces (open source JSF implementation) – Using the Tree2 Component with JDeveloper 10.1.3. In the wake of my last post – Getting started with Java Server Faces (JSF) using Apache MyFaces – in JDeveloper 10.1.3EA – I will continue my explorations of MyFaces in this article. In particular, I will take a look at the Tree2 Component that is shipped with Apache MyFaces. I will make use of Oracle JDeveloper 10.1.3 EA as my IDE. For details on setting up Apache MyFaces with JDeveloper 10.1.3, see the post I just mentioned. To make things easier for me – and hopefully for some of you as well – I have created a starter-project, a JDeveloper 10.1.3 Application Workspace with MyFacesBase project that contains the files you need to get started with MyFaces. You can simply download this zipfile: MyFacesBase.zip, extract it on your PC and open the JWS file in JDeveloper 10.1.3. You still need to set up the project with proper library definitions – see the previous post for details. Starting from this MyFacesBase Project we will create a beautiful tree-based JSF application. Sort of. Steps to prepare. I will first gear the base environment to my specific Tree oriented project: Extract MyFacesBase.zip to a directory; let’s refer to that directory as MyFacesTree_HOME Change the string Base to Tree in the names of the subdirectories MyFacesTree_HOME\MyFacesBase and MyFacesTree_HOME\MyFacesBase\MyFacesBase Open JDeveloper 10.1.3 Load the file MyFacesBase.jws; this will open the MyFacesBase application workspace Rename the Application to MyFacesTree. Change the name of the MyFacesBaseProject to MyFacesTreeProject. If you do not already see the project, then add it to the Application Workspace by adding the fiule MyFacesBaseProject.jpr. Go to the Project Properties of the MyFacesTree project. Verify in the Libraries tab whether the libraries MyFaces and JSTL are set up correctly and added to the project. If necessary see the post mentioned above. Also check whether the JSP Tag Libraries MyFaces-Core, MyFaces-HTML and MyFaces-ext (or Tomahawk) have been added to the project. Verifying the preparations. Now is a good time to make sure that we can indeed create and run JSF applications in the JDeveloper 10.1.3 environment and project we just set up. Follow the these simple steps: From the Right Mouse Button Menu on the MyFacesTreeProject project, go to the New Gallery. Select the node Web Tier, JSF and select the option JSF JSP. Walk through the Wizard, accepting all default choices – or making refinements as you like. The wizard create a JSP with basic JSF layout – importing the required Tag Libraries and layout a <f:view> and a <f:form>. The JSP is opened in the editor. Type a few characters – just to have some output to look at in our browser. Note: at this point we have not made any changes to faces-config.xml or any other configuration file. From the RMB menu on the JSP, choose the option run. The “application” should now open in the browser, displaying your trivial output. If you have gotten this far, you are in good shape to start using the MyFaces Tree component. Developing with the MyFaces Tree2 Component. Apache MyFaces is a valuable open source project providing the base implementation of the JSF standard and extending it with a large set of advanced components, called Tomahawk. The set includes TabbedPane, RssReader, Advanced Table features, inputDate and Calendar, HtmlEditor, Pulldown Menu, and many others. To confuse matters, there is a Tree, a Tree2 and a Tree Table component. It seems that Tree2 effectively replaces Tree; Tree is labeled ‘sort of obsolete’. So I focus on Tree2 for now. Using the JSP JSF wizard from the New Gallery I create a new JSP called LibraryTree.jsp. From the Component Palette, we drag and drop the Tree2 component to the JSP. The page source looks like: There are a few things worth noting here. First of all, the tree2 components has child facets; there is a facet for each type of node that the tree will contain. Apparently our tree wil contain nodes of types foo-folder, author and book. We will see later how we specify the node type on the backing bean’s model data. Each facet describes how the node type must be displayed; various node-types can make use of different icons, styles, actions etc. Note how the Node Interface provides properties like childCount, nodeExpanded and nodeSelected. The value for the tree2 component is set to: value=”# ”. That suggests that there is a Managed Bean called LibraryTreeHandler that exposes a getTreeModel method that returns an object that has a method getTreeData(). This last method must return an object that implements the TreeNode interface – in package org.apache.myfaces.custom.tree2. So there we go: create the required objects. First the LibraryHandler class: This class is a used for the managed bean called LibraryTreeHandler and referenced by the value property of the tree2 component. See the faces- config.xml file: The LibraryHandler class relies on the LibraryTreeModel class. Its code is as follows: The application looks like this in the browser. We can expand and collapse nodes. Note that all tree manipulation is done server side: each node expansion requires browser-to-server communication for updating the treenodes. The Project with the application so far can be downloaded here: MyFacesTree_Stage1.zip. Make the LibraryTree application a little more interesting. We are now going to make the application a little more interesting. We will allow Author nodes to be selected and we will display the Biography of the currently selected author – marked in the tree with an asterisk – next to the tree. It is remarkable how simple it is to add these changes to the application. If we select an Author node in the tree, the tree is redrawn and an asterisk is placed in front of that node – in the screenshot the selected node is for Orson Scott Card. At the same time, when the page is refreshed, the Results of the currently selected author are updated with the biography for the currently selected author. The changes I had to make to realize this functionality are in three location: 1. First the JSP LibraryTree.jsp. I have added the asterisk for the currently selected Author node: You can see how simple it is: the asterisk is only rendered if the current node in the tree is selected. To make the author node selectable, we add a commandLink: When the node is clicked on, the processAction method in the LibraryTreeHandler bean is invoked; this method needs to have a return type of void and accept a single ActionEvent input parameter. The next change is displaying the biography for the current author: I used a panelGroup for the rendered property: the entire panelGroup is only displayed if there is indeed a Biography available. Note that the bio is read from the authorBio property in the LibraryTreeHandler bean that is managed based on the LibraryHandler class. We will see that class in a moment. I finally made use of a panelGrid to display the tree and the bio next to each other. A panelGrid element in HTML is typically rendered as table. Okay, it is not pretty but it will do the trick. 2. The LibraryHandler class. This class now suddenly needs to provide an authorBio property and it has to absorb the processAction event. You can see that we make use of a new class, the ExtendedTreeNode. So we also need to create that class: 3. The new ExtendedTreeNode class. In order to have the new biography property for our Authors, we introduce this class: In class LibraryTreeModel we use this class to populate the nodes of our tree. The nodes we create for Authors are of the new ExtendedTreeNode type that include the biography. So we modify the LibraryTreeModel.java to: This is all it takes to create a dynamic tree, driven from a backend data model, including the select node action that updates the current biography. In a next article I will actually use the EJB 3.0 Persistence functionality out of container (the GlassFish implementation) for providing the backend data model. I will try to make the nodes updateable as well. File save dialog in jsf [duplicate] I am trying to export the result set of the DB in a excel format. And I am developing a web application using JSF. So what i need is that when the user clicks on the EXPORT button in my page , then a file save dialog has to open for the user to choose the directory path and the name for the file. And when the save is clicked in the file dialog then i need to write the whole result set to the excel sheet with the mentioned name and path as per users input. But i couldnt find the file save dialog and how to use the same with JSF. And I am using jdeveloper for the development . hassan4abdalla. This Site Sharing The knowledge That I Have And What I Found On Internet Community. Recent Posts. أھﻢ ١٠ اﺧﺘﺮاﻋﺎت ﻣﻦ Minimum System Requirements To Run Windows 10 How to Activate Super Administrator Account in Windows 7/8/8.1/10 .ﺻﻨﻊ اﻟﻤﺴﻠﻤﯿﻦ ﺗﺼﻤﯿﻢ ﺗﻄﺒﯿﻘﺎت أﻧﺪروﯾﺪ ﺑﺪون ﻟﻐﺔ ﺑﺮﻣﺠﺔ ﷴ ﻣﻨﺪور اﻟﻤﮭﺪي Recent Comments. hassan4abdalla on Java IDEs – NetBeans vs Eclips… hassan4abdalla on Java IDEs – NetBeans vs Eclips… Thiyagu on Java IDEs – NetBeans vs Eclips… Sven on Java IDEs – NetBeans vs Eclips… Archives.
Recommended publications
  • Oracle's Commitment to the Eclipse Community
    Oracle’s Commitment to the Eclipse Community An Oracle White Paper March 2007 INTRODUCTION Eclipse has gained strong market adoption for core Java development and is adding support for other languages as well. It enjoys great popularity, in part because it’s free, but also due to its extensibility via plug-ins and the strong ecosystem around it. The advent of emerging trends and technologies like Web 2.0 and SOA amplified the need for an integrated and comprehensive Java IDE that provides pre- packaged and tested support for all major Java EE 5 and Web services standards. Oracle’s tools vision is “productivity with choice”. This means making application development for the Oracle platform as easy as possible regardless of what toolset developers employ be it Oracle JDeveloper or Eclipse. Oracle’s JDeveloper provides a great out-of-the box user experience and dramatically increases productivity for building Java Enterprise Edition (Java EE) and SOA based applications. For various reasons, some Oracle customers elect to use Eclipse for Java development. We believe those users should get similar productivity that other Oracle users are already enjoying with JDeveloper. That’s why Oracle chose to join the Eclipse Foundation as a Strategic Developer and Board Member, and contribute world class talent to lead a variety of Eclipse projects and address its customers' needs. EVOLVING REQUIREMENTS Three major enterprise computing trends are coming together to form a new platform for application development. These trends are Java EE 5, Service Oriented Architecture (SOA), and Web 2.0. Today, end users expect highly interactive user interfaces with real-time updates and desktop-like capabilities.
    [Show full text]
  • Rich Internet Applications for the Enterprise
    Final Thesis Rich Internet Applications for the Enterprise A comparative study of WebWork and Java Web Start by Emil Jönsson LITH-IDA-EX–07/063–SE 2007-12-07 Linköping University Department of Computer and Information Science Final Thesis Rich Internet Applications for the Enterprise A comparative study of WebWork and Java Web Start by Emil Jönsson LITH-IDA-EX–07/063–SE Supervisors: Valérie Viale Amadeus Philippe Larosa Amadeus Examiner: Kristian Sandahl Department of Computer and Information Science Linköping University Abstract Web applications initially became popular much thanks to low deployment costs and programming simplicity. However, as business requirements grow more complex, limitations in the web programming model might become evident. With the advent of techniques such as AJAX, the bar has been raised for what users have come to expect from web applications. To successfully implement a large-scale web application, software developers need to have knowledge of a big set of complementary technologies. This thesis highlights some of the current problems with the web programming model and discusses how using desktop technologies can improve the user experience. The foundation of the thesis is an implementation of a prototype of a central hotel property management system using web technologies. These technologies have then been compared to an alternative set of technologies, which were used for implementing a second prototype; a stand-alone desktop client distributed using Java Web Start. Keywords: web development, Rich Internet Applications, WebWork, Java Web Start, Property Management System, hospitality software Acknowledgements First I would like to thank Amadeus for giving me the opportunity to do an internship at their development site in Sophia Antipolis.
    [Show full text]
  • Metadefender Core V4.12.2
    MetaDefender Core v4.12.2 © 2018 OPSWAT, Inc. All rights reserved. OPSWAT®, MetadefenderTM and the OPSWAT logo are trademarks of OPSWAT, Inc. All other trademarks, trade names, service marks, service names, and images mentioned and/or used herein belong to their respective owners. Table of Contents About This Guide 13 Key Features of Metadefender Core 14 1. Quick Start with Metadefender Core 15 1.1. Installation 15 Operating system invariant initial steps 15 Basic setup 16 1.1.1. Configuration wizard 16 1.2. License Activation 21 1.3. Scan Files with Metadefender Core 21 2. Installing or Upgrading Metadefender Core 22 2.1. Recommended System Requirements 22 System Requirements For Server 22 Browser Requirements for the Metadefender Core Management Console 24 2.2. Installing Metadefender 25 Installation 25 Installation notes 25 2.2.1. Installing Metadefender Core using command line 26 2.2.2. Installing Metadefender Core using the Install Wizard 27 2.3. Upgrading MetaDefender Core 27 Upgrading from MetaDefender Core 3.x 27 Upgrading from MetaDefender Core 4.x 28 2.4. Metadefender Core Licensing 28 2.4.1. Activating Metadefender Licenses 28 2.4.2. Checking Your Metadefender Core License 35 2.5. Performance and Load Estimation 36 What to know before reading the results: Some factors that affect performance 36 How test results are calculated 37 Test Reports 37 Performance Report - Multi-Scanning On Linux 37 Performance Report - Multi-Scanning On Windows 41 2.6. Special installation options 46 Use RAMDISK for the tempdirectory 46 3. Configuring Metadefender Core 50 3.1. Management Console 50 3.2.
    [Show full text]
  • Jformdesigner 7 Documentation
    JFormDesigner 7 Documentation Copyright © 2004-2019 FormDev Software GmbH. All rights reserved. Contents 1 Introduction ................................................................................................................................................................................................ 2 2 User Interface ............................................................................................................................................................................................. 3 2.1 Menus ................................................................................................................................................................................................... 4 2.2 Toolbars ............................................................................................................................................................................................... 6 2.3 Design View ......................................................................................................................................................................................... 7 2.3.1 Headers ......................................................................................................................................................................................... 9 2.3.2 In-place-editing .......................................................................................................................................................................... 11 2.3.3 Keyboard Navigation
    [Show full text]
  • Enabling Application Lifecycle Development in Jdeveloper
    Enabling Application Lifecycle Development in JDeveloper Susan Duncan Oracle Corporation United Kingdom Keywords: Application Lifecycle Management,ALM, JDeveloper, Team Productivity Center, SCM, Versioning Introduction Application Lifecycle Management has been defined as “The process of delivering software as a continuously repeating cycle of inter-related steps.” It can be described as the management of the lifecycle development practices (requirements, build, test, change control, defect management etc) integrated together through application of process, reporting, traceability and collaboration. The better this integration, the better the software. However, in the past many of these practices worked in isolation - in functional silos that did not lend themselves to collaboration. But collaboration has become increasingly necessary in the software development world where teams work across organizations, time zones, cultures and business functions. Oracle Fusion Middleware encompasses a number of features to facilitate this mode of distributed working where collaboration is paramount including remote deployment and debugging, a shared resource catalog, SCM system integration, built-in testing with JUnit, functional, load and test management with Oracle Application Quality Management Suite and lifecycle management of SOA composites with ClearApp. This paper concentrates on some of the practical ALM features that are available to the application developer using JDeveloper in her day-to-day working environment Versioning One of the most obvious areas of ALM is versioning or source code management. It would be obvious to say that every development team’s process includes SCM. Generally there are two main types of versioning systems: Lock – Modify – Unlock Although a very safe and reliable system this is not necessarily best suited to a distributed development team.
    [Show full text]
  • Gaurav Purandare
    Gaurav Purandare 1444, W Lexington Street, Apt 2F, Chicago, IL 60607 [email protected] j [email protected] j 773-844-6354 http://www.cs.uic.edu/∼gpuranda/ EDUCATION Master of Science, Computer Science August 2011 ∼ Present University of Illinois, Chicago Bachelor of Engineering, Information Technology August 2005 { May 2009 University of Pune, India COMPUTER Languages Java (Advanced), C, Shell Scripting, Processing, LaTeX, C++, SKILLS Smalltalk(Basic) Operating Systems Windows 7/XP/2K/9x/NT/3x, Unix, Linux, Macintosh. Web Development JSP/Servlets, PHP, HTML, XML, JavaScript/Ajax, Flash, iTunes Podcasts Databases Oracle, MS Access, MySQL, PostgreSQL, SQLite General Git, Subversion, Google Analytics Frameworks J2EE, Apache Axis, Apache Ant, JNLP, Smarty PHP template engine, JFreeChart PHP Quick forms, Struts, Memcached, Android(basic) IDE's Eclipse, Visual Studio 2005/08, NetBeans EXPERIENCE Assistant Network Analyst May 2012 { Present Department of Disability and Human Development, University of Illinois at Chicago, Illinois • Developer and designer for web applications at Great Lakes ADA Center. • Provided technical assistance for users participating in webinars conducted by Great Lakes ADA Center. (100 ∼ 500 participants). Received high acclaim from participants for the excellent assistance. • Designed database schema for MySQL database. • Wrote Ant script to take backup of MySql Databases periodically. • Technologies: Java, JNLP, JSP/Servlets/ J2EE, Struts, Apache Tomcat, Apache Ant, PHP, ASP, MS Access, Apache web server, MySQL, iTunes
    [Show full text]
  • Getting Started with Apache Struts 2 , with Netbeans 6.1
    Getting started with Apache Struts 2 , with Netbeans 6.1 There are plenty of guides that tell you how to start with struts 2, but most of them are incomplete or don’t work. This guide even makes sure you have IDE JavaDoc support for struts 2 libraries. (Press Ctrl- Space to get details about methods and classes in struts 2 libraries) Download Struts 2 here : http://struts.apache.org/download.cgi Download the Full Distro, so that we get all libraries and docs. (docs are important if u want to have IDE support help and tooltips and syntax) • Full Distribution: o struts-2.0.11.2-all.zip (91mb) [ PGP ] [ MD5 ] As of this writing , this is the latest version of Struts. Download Netbeans 6.1 here : http://www.netbeans.org/downloads/ or here : http://dlc.sun.com.edgesuite.net/netbeans/6.1/final/ Download the full bundle (under the All column) size about 220 MB Choose a folder for all your JAVA material that has NO SPACES in its path. Like C:\Java “C:\Program Files” has a space, so it has some issues with the Sun Application Platform, which you might need after development. Other downloads : [These are not necessary now, but just download them while working on this guide] Eclipse for JavaEE Dev : http://www.eclipse.org/downloads/ Eclipse IDE for Java EE Developers (163 MB) Java Application Platform : http://java.sun.com/javaee/downloads/index.jsp App Platform + JDK† Java Standard Edition [SE] : http://java.sun.com/javase/downloads/index.jsp JDK 6 Update 7 Install as follows : This is how a pro I knew advised to set a comp up for Java EE Dev.
    [Show full text]
  • Migrating from Java Applets to Plugin-Free Java Technologies
    Migrating from Java Applets to plugin-free Java technologies An Oracle White Paper January, 2016 Migrating from Java Applets to plugin-free Java technologies Migrating from Java Applets to plugin-free Java technologies Disclaimer The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle. Migrating from Java Applets to plugin-free Java technologies Executive Overview ........................................................................... 4 Browser Plugin Perspectives ............................................................. 4 Java Web Start .................................................................................. 5 Alternatives ....................................................................................... 6 Native Windows/OS X/Linux Installers ........................................... 6 Inverted Browser Control ............................................................... 7 Detecting Applets .............................................................................. 7 Migrating from Java Applets to plugin-free Java technologies Executive Overview With modern browser vendors working to restrict or reduce the support of plugins like
    [Show full text]
  • Jalopy User's Guide V. 1.9.4
    Jalopy - User’s Guide v. 1.9.4 Jalopy - User’s Guide v. 1.9.4 Copyright © 2003-2010 TRIEMAX Software Contents Acknowledgments . vii Introduction . ix PART I Core . 1 CHAPTER 1 Installation . 3 1.1 System requirements . 3 1.2 Prerequisites . 3 1.3 Wizard Installation . 4 1.3.1 Welcome . 4 1.3.2 License Agreement . 5 1.3.3 Installation Features . 5 1.3.4 Online Help System (optional) . 8 1.3.5 Settings Import (optional) . 9 1.3.6 Configure plug-in Defaults . 10 1.3.7 Confirmation . 11 1.3.8 Installation . 12 1.3.9 Finish . 13 1.4 Silent Installation . 14 1.5 Manual Installation . 16 CHAPTER 2 Configuration . 17 2.1 Overview . 17 2.1.1 Preferences GUI . 18 2.1.2 Settings files . 29 2.2 Global . 29 2.2.1 General . 29 2.2.2 Misc . 32 2.2.3 Auto . 35 2.3 File Types . 36 2.3.1 File types . 36 2.3.2 File extensions . 37 2.4 Environment . 38 2.4.1 Custom variables . 38 2.4.2 System variables . 40 2.4.3 Local variables . 41 2.4.4 Usage . 42 2.4.5 Date/Time . 44 2.5 Exclusions . 44 2.5.1 Exclusion patterns . 45 2.6 Messages . 46 2.6.1 Categories . 47 2.6.2 Logging . 48 2.6.3 Misc . 49 2.7 Repository . 49 2.7.1 Searching the repository . 50 2.7.2 Displaying info about the repository . 50 2.7.3 Adding libraries to the repository . 50 2.7.4 Removing the repository .
    [Show full text]
  • Openjdk 8 Getting Started with Openjdk 8 Legal Notice
    OpenJDK 8 Getting started with OpenJDK 8 Last Updated: 2021-07-21 OpenJDK 8 Getting started with OpenJDK 8 Legal Notice Copyright © 2021 Red Hat, Inc. The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/ . In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version. Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law. Red Hat, Red Hat Enterprise Linux, the Shadowman logo, the Red Hat logo, JBoss, OpenShift, Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries. Linux ® is the registered trademark of Linus Torvalds in the United States and other countries. Java ® is a registered trademark of Oracle and/or its affiliates. XFS ® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries. MySQL ® is a registered trademark of MySQL AB in the United States, the European Union and other countries. Node.js ® is an official trademark of Joyent. Red Hat is not formally related to or endorsed by the official Joyent Node.js open source or commercial project. The OpenStack ® Word Mark and OpenStack logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission.
    [Show full text]
  • Evaluating the Flexibility of the Java Sandbox
    Evaluating the Flexibility of the Java Sandbox Zack Coker, Michael Maass, Tianyuan Ding, Claire Le Goues, and Joshua Sunshine Carnegie Mellon University {zfc,mmaass}@cs.cmu.edu, [email protected], {clegoues,sunshine}@cs.cmu.edu ABSTRACT should protect both the host application and machine from The ubiquitously-installed Java Runtime Environment (JRE) malicious behavior. In practice, these security mechanisms provides a complex, flexible set of mechanisms that support are problematically buggy such that Java malware is often the execution of untrusted code inside a secure sandbox. able to alter the sandbox's settings [4] to override security However, many recent exploits have successfully escaped the mechanisms. Such exploits take advantage of defects in either sandbox, allowing attackers to infect numerous Java hosts. the JRE itself or the application's sandbox configuration to We hypothesize that the Java security model affords devel- disable the security manager, the component of the sandbox opers more flexibility than they need or use in practice, and responsible for enforcing the security policy [5, 6, 7, 8]. thus its complexity compromises security without improving In this paper, we investigate this disconnect between theory practical functionality. We describe an empirical study of the and practice. We hypothesize that it results primarily from ways benign open-source Java applications use and interact unnecessary complexity and flexibility in the design and with the Java security manager. We found that developers engineering of Java's security mechanisms. For example, regularly misunderstand or misuse Java security mechanisms, applications are allowed to change the security manager at that benign programs do not use all of the vast flexibility runtime, whereas static-only configuration of the manager afforded by the Java security model, and that there are clear would be more secure.
    [Show full text]
  • Netbeans Platform
    NETBEANS PLATFORM Satyajit Tripathi Member Technical Staff ISV-Engineering, Sun Microsystems 1 NetBeans Platform Build new desktop applications without re-inventing the wheel • NetBeans Platform is a broad SWING-based framework to create rich desktop applications • Platform provides out-of-the-box APIs to simplify application common requirements such as window management, menus, actions, settings and storage, an update manager, and files access • Core of NetBeans-IDE is Platform ie. NetBeans-IDE 'minus' IDE specific modules 2 NetBeans Platform Manager NetBeans IDE 6.1 (build 200805300101) 3 NetBeans Module (Plugin) Add the missing functionalities to IDE • Module can be built to extend the functionality of NetBeans IDE and to add specific features • NetBeans (Plug-in) Module is a group of Java classes that interacts with NetBeans APIs and provides an application with specific features • Java classes use the MANIFEST.MF file to declare the module and XML Layer file (layer.xml) to register their functionality • Modules with non-installer distributions are packaged as NBM files (.nbm extension) 4 Module (Plugin) Development Development Life cycle • Setting up the project • NetBeans IDE generates Project organization and code • Coding the module or application • Building and Running • Testing, Debugging, and Profiling • Branding and Distributing 5 NetBeans Module Projects NetBeans IDE 6.1 6 Module Project Organization NetBeans IDE 6.1 7 NetBeans APIs Complete API set is quite extensive! • Action APIs • Palette APIs • File Systems APIs • Refactoring APIs • Loaders APIs • MultiView APIs • Nodes APIs • JavaHelp Integration APIs • Windows APIs 8 Action APIs Package : org.openide.actions • Standard SWING Actions For installation of global, always-enabled actions, register javax.swing.Action in appropriate folder of System Filesystem.
    [Show full text]