Source Code Cross Referenced for CSCheckAllBuffersAction.java in  » UML » jrefactory » org » acm » seguin » ide » netbeans » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » UML » jrefactory » org.acm.seguin.ide.netbeans 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * CSCheckAllBuffersAction.java
003:         *
004:         * Created on 01 October 2003, 22:09
005:         */
006:
007:        package org.acm.seguin.ide.netbeans;
008:
009:        import javax.swing.*;
010:        import org.openide.cookies.*;
011:        import org.openide.nodes.Node;
012:        import org.openide.util.HelpCtx;
013:        import org.openide.util.NbBundle;
014:        import org.openide.util.actions.*;
015:
016:        import org.acm.seguin.ide.common.IDEPlugin;
017:
018:        /**
019:         *  Applies the JRefactory pretty printer to the currently selected editor. Will
020:         *  only be applied if only one editor is selected.
021:         *
022:         *@author     unknown
023:         *@created    October 18, 2001
024:         */
025:        public class CSCheckAllBuffersAction extends CookieAction {
026:
027:            /**
028:             *  Gets the helpCtx attribute of the PrettyPrinterAction object
029:             *
030:             *@return    The helpCtx value
031:             */
032:            public HelpCtx getHelpCtx() {
033:                return HelpCtx.DEFAULT_HELP;
034:                // (PENDING) context help
035:                // return new HelpCtx (PrettyPrinterAction.class);
036:            }
037:
038:            /**
039:             *  Gets the menuPresenter attribute of the PrettyPrinterAction object
040:             *
041:             *@return    The menuPresenter value
042:             */
043:            //    public JMenuItem getMenuPresenter() {
044:            //        JMenuItem item = new JMenuItem(getName());
045:            //        item.addActionListener(this);
046:            //        return item;
047:            //    }
048:
049:            /**
050:             *  Gets the name attribute of the PrettyPrinterAction object
051:             *
052:             *@return    The name value
053:             */
054:            public String getName() {
055:                return NbBundle.getMessage(CSCheckAllBuffersAction.class,
056:                        "LBL_CSCheckAllBuffersAction");
057:            }
058:
059:            /**
060:             *  Description of the Method
061:             *
062:             *@return    Description of the Return Value
063:             */
064:            protected Class[] cookieClasses() {
065:                return new Class[] { EditorCookie.class };
066:            }
067:
068:            /**
069:             *  Perform special enablement check in addition to the normal one.
070:             *
071:             *@param  nodes  Description of the Parameter
072:             *@return        Description of the Return Value
073:             */
074:            protected boolean enable(Node[] nodes) {
075:                // Any additional checks ...
076:                return true;
077:            }
078:
079:            /**
080:             *  Get the path to the icon to be displayed in menus, etc
081:             *
082:             *@return    Icon to be displayed in menus, etc.
083:             */
084:            protected String iconResource() {
085:                return "org/acm/seguin/ide/netbeans/CSCheckAllBuffersActionIcon.gif";
086:            }
087:
088:            /**
089:             *  Perform extra initialization of this action's singleton. PLEASE do not
090:             *  use constructors for this purpose!
091:             */
092:            protected void initialize() {
093:                super .initialize();
094:                putProperty(CSCheckAllBuffersAction.SHORT_DESCRIPTION, NbBundle
095:                        .getMessage(CSCheckAllBuffersAction.class,
096:                                "HINT_CSCheckAllBuffersAction"));
097:            }
098:
099:            /**
100:             *@return    MODE_EXACTLY_ONE
101:             */
102:            protected int mode() {
103:                return MODE_EXACTLY_ONE;
104:            }
105:
106:            /** this means that performAction is expecting to be run in the event thread */
107:            protected boolean asynchronous() {
108:                return false;
109:            }
110:
111:            /**
112:             *  Description of the Method
113:             *
114:             *@param  nodes  Description of the Parameter
115:             */
116:            protected void performAction(Node[] nodes) {
117:                JRefactory.ensureVisible();
118:                java.awt.Frame frame = org.openide.windows.WindowManager
119:                        .getDefault().getMainWindow();
120:                IDEPlugin.checkAllOpenBuffers(frame);
121:            }
122:
123:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.