Examples of redo()


Examples of org.gdbms.engine.data.SpatialDataSource.redo()

        int fieldIndex = d.getFieldIndexByName("id");
        Value v1 = d.getFieldValue(1, fieldIndex);
        d.deleteRow(1);
        d.undo();
        assertTrue(((BooleanValue) d.getFieldValue(1, fieldIndex).equals(v1)).getValue());
        d.redo();
        assertTrue(rc == d.getRowCount() + 1);
        d.rollBackTrans();
       
        d.beginTrans();
        d.buildIndex();
View Full Code Here

Examples of org.gdbms.engine.data.SpatialDataSource.redo()

        d.buildIndex();
        v1 = d.getFieldValue(1, fieldIndex);
        d.deleteRow(1);
        d.undo();
        assertTrue(((BooleanValue) d.getFieldValue(1, fieldIndex).equals(v1)).getValue());
        d.redo();
        assertTrue(d.getFieldValue(1, fieldIndex) instanceof NullValue);
        d.rollBackTrans();
       
        d.beginTrans();
        d.buildIndex();
View Full Code Here

Examples of org.gdbms.engine.data.SpatialDataSource.redo()

        int fieldIndex = d.getFieldIndexByName("id");
        d.getFieldValue(1, fieldIndex);
        d.insertEmptyRow();
        d.undo();
        assertTrue(rc == d.getRowCount());
        d.redo();
        assertTrue(rc == d.getRowCount() - 1);
        d.rollBackTrans();
       
        d.beginTrans();
        d.buildIndex();
View Full Code Here

Examples of org.gdbms.engine.data.SpatialDataSource.redo()

        d.buildIndex();
        d.getFieldValue(1, fieldIndex);
        d.insertEmptyRow();
        d.undo();
        assertTrue(rc == d.getRowCount() - 1);
        d.redo();
        assertTrue(rc == d.getRowCount() - 2);
        d.rollBackTrans();
       
        d.beginTrans();
        d.buildIndex();
View Full Code Here

Examples of org.gdbms.engine.data.SpatialDataSource.redo()

        d.buildIndex();
        d.getFieldValue(1, fieldIndex);
        d.insertEmptyRow();
        rc = d.getRowCount();
        d.undo();
        d.redo();
        assertTrue(d.getRowCount() == rc+1);
        assertTrue(((DoubleValue)d.getFieldValue(0, 1)).getValue() == 1);
        assertTrue(((DoubleValue)d.getFieldValue(1, 1)).getValue() == 2);
        assertTrue(((DoubleValue)d.getFieldValue(2, 1)).getValue() == 3);
        assertTrue(d.getFieldValue(3, 1) instanceof NullValue);
View Full Code Here

Examples of org.gdbms.engine.data.SpatialDataSource.redo()

        String snapshot5 = d.getAsString();
        d.insertEmptyRowAt(0);
        String snapshot6 = d.getAsString();
        d.undo();
        assertTrue(d.getAsString().equals(snapshot5));
        d.redo();
        assertTrue(d.getAsString().equals(snapshot6));
        d.undo();
        d.undo();
        assertTrue(d.getAsString().equals(snapshot4));
        d.undo();
View Full Code Here

Examples of org.gdbms.engine.data.command.CommandStack.redo()

        cs.put(new C(3));
        cs.put(new C(4));
        assertTrue(cs.undo().equals(new C(4)));
        assertTrue(cs.undo().equals(new C(3)));
        assertTrue(cs.undo().equals(new C(2)));
        assertTrue(cs.redo().equals(new C(2)));
        assertTrue(cs.canRedo());
        cs.put(new C(3));
        assertTrue(!cs.canRedo());
        assertTrue(cs.canUndo());
    }
View Full Code Here

Examples of org.locationtech.udig.project.internal.Map.redo()

                     * @see org.eclipse.jface.action.Action#run()
                     */
                    public void run() {
                        Map activeMap = ApplicationGISInternal.getActiveMap();
                        if (activeMap != ApplicationGIS.NO_MAP)
                            activeMap.redo();
                    }
                };
                redoAction.setImageDescriptor(sharedImages
                        .getImageDescriptor(ISharedImages.IMG_TOOL_REDO));
                redoAction.setText(Messages.ToolManager_redoAction);
View Full Code Here

Examples of org.openbp.jaspira.undo.UndoMgr.redo()

      if (currentModeler != null)
      {
        UndoMgr undoMgr = currentModeler.getUndoMgr();
        if (undoMgr.canRedo())
        {
          undoMgr.redo();
          return EVENT_CONSUMED;
        }
      }
      return EVENT_IGNORED;
    }
View Full Code Here

Examples of org.pentaho.reporting.designer.core.util.undo.CompoundUndoEntry.redo()

          undos.add(new DataSourceEditUndoEntry(i, dataFactoryWrapper.getOriginalDataFactory(), dataFactoryWrapper.getEditedDataFactory()));
        }
      }

      final CompoundUndoEntry undoEntry = new CompoundUndoEntry(undos.toArray(new UndoEntry[undos.size()]));
      undoEntry.redo(activeContext);
      activeContext.getUndo().addChange(ActionMessages.getString("EditParametersAction.MasterReport.Text"), undoEntry);
    }
  }
}
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.