Examples of undo()


Examples of org.kie.internal.builder.KnowledgeBuilder.undo()

                .add( ResourceFactory.newByteArrayResource( rule.getBytes() ) )
                .add( ResourceFactory.newByteArrayResource( declarationA.getBytes() ) )
                .build();

        assertTrue( kbuilder.hasErrors() );
        kbuilder.undo();
        assertFalse( kbuilder.hasErrors() );

        declarationA = "package org.drools.compiler.test\n" +
                       "global java.util.List list\n" +
                       "declare FactA\n" +
View Full Code Here

Examples of org.kie.internal.builder.KnowledgeBuilder.undo()

                .type( ResourceType.DRL )
                .add( ResourceFactory.newByteArrayResource( rule.getBytes() ) )
                .build();

        assertTrue( kbuilder.hasErrors() );
        kbuilder.undo();
        assertFalse( kbuilder.hasErrors() );

        rule = "package org.drools.compiler.test\n" +
               "global java.util.List list\n" +
               "import org.drools.compiler.test.FactA\n" +
View Full Code Here

Examples of org.kie.internal.builder.KnowledgeBuilder.undo()

            if (modified) {
                ckbuilder.build();
                resourcesWithErrors.put(kBaseModel.getName(), findResourcesWithErrors(kBuilder));
                if ( kBuilder.hasErrors() ) {
                    currentErrors.addAll(kBuilder.getErrors());
                    kBuilder.undo();
                } else {
                    KieServices.Factory.get().getRepository().addKieModule( kieModule );
                    kieBuilder.updateKieModuleMetaInfo();
                }
            }
View Full Code Here

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

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

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

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

Examples of org.openquark.cal.compiler.Refactorer.undo()

            return;
        }

        if(!compileWorkspace(false, true, false)) {
            System.out.print("Compile failed, rolling back changes...");
            refactorer.undo(messageLogger);
            System.out.println("");
            return;
        }

        if(category == Category.MODULE_NAME) {
View Full Code Here

Examples of org.openscience.jchempaint.controller.undoredo.IUndoRedoable.undo()

        .getRemoveAtomsAndBondsEdit(chemModel, undoRedoContainer,
            "Delete Bond", this);
    getUndoRedoHandler().postEdit(undoredo);
   
    if(rGroupHandler!=null && !rGroupHandler.checkRGroupOkayForDelete(undoRedoContainer, this)) {
      undoredo.undo();
      return;
    }
   
  }
View Full Code Here

Examples of org.openstreetmap.josm.data.UndoRedoHandler.undo()

        for (; i < ur.commands.size(); i++) {
            cmds.add(ur.commands.get(i));
        }

        for (i = 0; i < cmds.size(); i++) {
            ur.undo();
        }

        commitCommands(message == null ? marktr("Join Areas Function") : message);
        cmdsCount = 0;
    }
View Full Code Here

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

    {
      // rollback ..
      for (int i = undos.size() - 1; i >= 0; i--)
      {
        final UndoEntry undoEntry = undos.get(i);
        undoEntry.undo(activeContext);
      }
    }
    else
    {
      final UndoEntry[] undoEntries = undos.toArray(new UndoEntry[undos.size()]);
View Full Code Here

Examples of org.voltdb.dtxn.UndoAction.undo()

        if (undoLog == null) return;

        for (final ListIterator<UndoAction> iterator = undoLog.listIterator(undoLog.size()); iterator.hasPrevious();) {
            final UndoAction action = iterator.previous();
            if (undo)
                action.undo();
            else
                action.release();
        }
    }
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.