Package com.volantis.mcs.eclipse.common.odom.undo

Examples of com.volantis.mcs.eclipse.common.odom.undo.UndoRedoManager.enable()


                if (newName != null) {
                    UndoRedoManager undoRedoManager =
                            context.getUndoRedoManager();
                    try {
                        // we don't allow device renames to be undoable
                        undoRedoManager.enable(false);
                        dram.renameDevice(oldName, newName);
                    } catch (RepositoryException re) {
                        EclipseCommonPlugin.handleError(ABPlugin.getDefault(),
                                re);
                        throw new UndeclaredThrowableException(re);
View Full Code Here


                        EclipseCommonPlugin.handleError(ABPlugin.getDefault(),
                                re);
                        throw new UndeclaredThrowableException(re);
                    } finally {
                        // re-enable the undo manager
                        undoRedoManager.enable(true);
                    }
                }
            }

            /**
 
View Full Code Here

                            context.getDeviceRepositoryAccessorManager();
                    UndoRedoManager undoRedoManager =
                            context.getUndoRedoManager();
                    try {
                        // we don't allow device deletions to be undoable
                        undoRedoManager.enable(false);
                        dram.removeDevice(getDeviceName(selected));
                    } catch (RepositoryException e) {
                        EclipseCommonPlugin.handleError(ABPlugin.getDefault(), e);
                    } finally {
                        // ensure the undo redo manager is enabled.
View Full Code Here

                        dram.removeDevice(getDeviceName(selected));
                    } catch (RepositoryException e) {
                        EclipseCommonPlugin.handleError(ABPlugin.getDefault(), e);
                    } finally {
                        // ensure the undo redo manager is enabled.
                        undoRedoManager.enable(true);
                    }

                }
            }
        };
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.