Source Code Cross Referenced for IModelUndoManager.java in  » IDE-Eclipse » Eclipse-plug-in-development » org » eclipse » pde » internal » ui » editor » 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 » IDE Eclipse » Eclipse plug in development » org.eclipse.pde.internal.ui.editor 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*******************************************************************************
002:         * Copyright (c) 2000, 2006 IBM Corporation and others.
003:         * All rights reserved. This program and the accompanying materials
004:         * are made available under the terms of the Eclipse Public License v1.0
005:         * which accompanies this distribution, and is available at
006:         * http://www.eclipse.org/legal/epl-v10.html
007:         *
008:         * Contributors:
009:         *     IBM Corporation - initial API and implementation
010:         *******************************************************************************/package org.eclipse.pde.internal.ui.editor;
011:
012:        import org.eclipse.jface.action.IAction;
013:        import org.eclipse.pde.core.IModelChangeProvider;
014:
015:        /**
016:         * Classes that implement this interface provide undo/redo
017:         * capability linked to changes reported by model change
018:         * providers. Model change events carry sufficient data
019:         * to be used in an undo/redo stack and reverted to or
020:         * reapplied after the change.
021:         * <p>Model undo manager adds itself as a change listener
022:         * after being connected to the provider. It is expected
023:         * to stop listening to change events after being disconnected.
024:         * Changes reported while being connected are kept in the
025:         * operation stack whose size can be controlled.
026:         * <p>The part that uses the undo manager is responsible
027:         * for supplying Undo and Redo action objects for
028:         * the purpose of controlling their availability. 
029:         * Undo manager should keep track of its current
030:         * operation stack pointer and adjust Undo/Redo action
031:         * availability by calling 'setEnabled' on the
032:         * provided action objects. Implementation of this
033:         * interface may also opt to modify Undo/Redo action
034:         * labels in order to better indicate the effect
035:         * of the operations if selected (for example,
036:         * 'Undo Delete' instead of 'Undo').
037:         */
038:        public interface IModelUndoManager {
039:            /**
040:             * Connects to the change provider. Until disconnecting,
041:             * the manager will keep model changes in the operation
042:             * stack and will be able to revert or reapply these
043:             * changes in the source model.
044:             * @param provider the model change provider to connect to
045:             */
046:            public void connect(IModelChangeProvider provider);
047:
048:            /**
049:             * Disconnects from the change provider. Upon disconnecting,
050:             * the manager will no longer be able to revert or reapply
051:             * changes in the source model.
052:             * @param provider the model change provider to disconnect from
053:             */
054:            public void disconnect(IModelChangeProvider provider);
055:
056:            /**
057:             * Tests whether the current operation in the undo stack can
058:             * be reverted.
059:             * @return true if the current operation can be undone.
060:             */
061:            public boolean isUndoable();
062:
063:            /**
064:             * Tests whether the current operation in the undo stack can
065:             * be reapplied.
066:             * @return true if the current operation can be redone.
067:             */
068:            public boolean isRedoable();
069:
070:            /**
071:             * Reverts the current operation in the undo stack and decrements
072:             * the stack pointer.
073:             */
074:            public void undo();
075:
076:            /**
077:             * Reapplies the next operation in the undo stack and sets
078:             * the stack pointer to that operation.
079:             * 
080:             */
081:            public void redo();
082:
083:            /**
084:             * Sets the depth of the undo stack.
085:             * @param limit number of levels in the undo stack.
086:             */
087:            public void setUndoLevelLimit(int limit);
088:
089:            /**
090:             * Temporarily suspends undo manager.
091:             * @param ignore if true, model changes reported by the 
092:             * model change provider will be ignore until this
093:             * property is set to <samp>false</samp> again.
094:             */
095:            public void setIgnoreChanges(boolean ignore);
096:
097:            /**
098:             * Connects the undo manager with the undo and redo actions 
099:             * in the workbench part using the manager. The manager
100:             * uses these objects to enable or disable the actions
101:             * according to the state of the undo stack and the current
102:             * location of the stack pointer. 
103:             * @param undoAction the action in the workbench part that performs
104:             * the undo operation.
105:             * @param redoAction the action in the workbench part that performs
106:             * the redo operation.
107:             */
108:            public void setActions(IAction undoAction, IAction redoAction);
109:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.