Examples of onUpdate()


Examples of com.orientechnologies.orient.core.conflict.ORecordConflictStrategy.onUpdate()

      // MVCC CONTROL AND RECORD UPDATE OR WRONG VERSION VALUE
      // MVCC TRANSACTION: CHECK IF VERSION IS THE SAME
      if (!version.equals(iDatabaseVersion)) {
        final ORecordConflictStrategy strategy = iCluster.getRecordConflictStrategy() != null ? iCluster
            .getRecordConflictStrategy() : recordConflictStrategy;
        return strategy.onUpdate(iRecordType, rid, version, iRecordContent, iDatabaseVersion);
      }

      iDatabaseVersion.increment();
    }
View Full Code Here

Examples of lcmc.common.ui.utils.MyMenu.onUpdate()

                            return Host.NOT_CONNECTED_MENU_TOOLTIP_TEXT;
                        }
                        return null;
                    }
                });
        hostAdvancedSubmenu.onUpdate(new Runnable() {
            @Override
            public void run() {
                hostAdvancedSubmenu.updateMenuComponents();
                hostInfo.getBrowser().addAdvancedMenu(hostAdvancedSubmenu);
            }
View Full Code Here

Examples of lcmc.common.ui.utils.MyMenu.onUpdate()

                        } else {
                            return null;
                        }
                    }
                });
        addGroupServiceMenuItem.onUpdate(new Runnable() {
            @Override
            public void run() {
                application.isSwingThread();
                addGroupServiceMenuItem.removeAll();
                final Collection<JDialog> popups = new ArrayList<JDialog>();
View Full Code Here

Examples of lcmc.common.ui.utils.MyMenu.onUpdate()

            for (final ServiceInfo child : groupInfo.getGroupServices()) {
                final MyMenu groupServicesMenu = menuFactory.createMenu(
                        child.toString(),
                        new AccessMode(AccessMode.RO, AccessMode.NORMAL),
                        new AccessMode(AccessMode.RO, AccessMode.NORMAL));
                groupServicesMenu.onUpdate(new Runnable() {
                    @Override
                    public void run() {
                        application.isSwingThread();
                        groupServicesMenu.removeAll();
                        final Collection<UpdatableItem> serviceMenus = new ArrayList<UpdatableItem>();
View Full Code Here

Examples of lcmc.common.ui.utils.MyMenu.onUpdate()

            return items;
        }
        final MyMenu csMenu = menuFactory.createMenu(cs.toString(),
                                                     new AccessMode(AccessMode.RO, AccessMode.NORMAL),
                                                     new AccessMode(AccessMode.RO, AccessMode.NORMAL));
        csMenu.onUpdate(new Runnable() {
            @Override
            public void run() {
                application.isSwingThread();
                csMenu.removeAll();
                final ServiceInfo cs0 = cloneInfo.getContainedService();
View Full Code Here

Examples of lcmc.common.ui.utils.MyMenu.onUpdate()

                            return ClusterBrowser.UNKNOWN_CLUSTER_STATUS_STRING;
                        }
                        return null;
                    }
                });
        addServiceMenuItem.onUpdate(new Runnable() {
            @Override
            public void run() {
                application.isSwingThread();
                addServiceMenuItem.removeAll();
                final Point2D pos = addServiceMenuItem.getPos();
View Full Code Here

Examples of lcmc.common.ui.utils.MyMenu.onUpdate()

                    @Override
                    public String check() {
                        return null; //TODO: enable only if it has items
                    }
                });
        filesSubmenu.onUpdate(new Runnable() {
            @Override
            public void run() {
                application.isSwingThread();
                application.invokeLater(new Runnable() {
                    @Override
View Full Code Here

Examples of lcmc.common.ui.utils.MyMenu.onUpdate()

                            return ServiceInfo.IS_NEW_STRING;
                        }
                        return null;
                    }
                });
        serviceMenu.onUpdate(new Runnable() {
            @Override
            public void run() {
                application.isSwingThread();
                serviceMenu.removeAll();
                final Point2D pos = serviceMenu.getPos();
View Full Code Here

Examples of lcmc.common.ui.utils.MyMenu.onUpdate()

                            return "&lt;&lt;empty;&gt;&gt;";
                        }
                        return null;
                    }
                });
        serviceMenu.onUpdate(new Runnable() {
            @Override
            public void run() {
                application.isSwingThread();
                final JCheckBox colocationWi = new JCheckBox("Colo", true);
                final JCheckBox orderWi = new JCheckBox("Order", true);
View Full Code Here

Examples of lcmc.common.ui.utils.MyMenu.onUpdate()

    private UpdatableItem getAddNewHardwareMenu(final String name) {
        final MyMenu newHardwareMenu = menuFactory.createMenu(
                name,
                new AccessMode(AccessMode.ADMIN, AccessMode.NORMAL),
                new AccessMode(AccessMode.OP, AccessMode.NORMAL));
        newHardwareMenu.onUpdate(new Runnable() {
            @Override
            public void run() {
                newHardwareMenu.removeAll();
                final Point2D pos = newHardwareMenu.getPos();
                /* disk */
 
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.