Examples of enable()


Examples of org.openstack.client.common.OpenstackSession.enable()

    OpenstackCredentials credentials = new OpenstackCredentials(authUrl, username, secret, tenant);
    OpenstackSession session = OpenstackSession.create();
    session.authenticate(credentials, true);

    session.enable(OpenstackSession.Feature.VERBOSE);

    return session;
  }

  public List<Ip> findPublicIps(OpenstackCloud cloud, Server server) {
View Full Code Here

Examples of org.ow2.easybeans.component.itf.EZBDepMonitorComponent.enable()

        this.started = true;

        EZBDepMonitorComponent depMonitorComponent = getComponent(EZBDepMonitorComponent.class);
        if (depMonitorComponent != null) {
            try {
                depMonitorComponent.enable();
            } catch (EZBComponentException e) {
                logger.error("Cannot enable callback on depmonitor component", e);
            }
        }
View Full Code Here

Examples of org.rhq.coregui.client.util.enhanced.EnhancedIButton.enable()

            public void onRowEditorExit(RowEditorExitEvent event) {
                memberValuesGrid.validateRow(event.getRowNum());
                if (memberValuesGrid.hasErrors()) {
                    okButton.disable();
                } else {
                    okButton.enable();
                }
            }
        });

        // if the data can be changed, add some additional widgets; if not, make the value grid read only
View Full Code Here

Examples of org.sonatype.nexus.capabilities.client.Capability.enable()

    messageCapability.disable();
    capability.refresh();
    MatcherAssert.assertThat(capability.isActive(), is(false));

    logRemote("Enable capability of type [message]");
    messageCapability.enable();
    capability.refresh();
    MatcherAssert.assertThat(capability.isActive(), is(true));

    logRemote("Remove capability of type [message]");
    messageCapability.remove();
View Full Code Here

Examples of org.terasology.rendering.assets.material.Material.enable()

    private void renderHand(float bobOffset, float handMovementAnimationOffset) {
        Material shader = Assets.getMaterial("engine:prog.block");
        shader.activateFeature(ShaderProgramFeature.FEATURE_USE_MATRIX_STACK);

        shader.enable();
        shader.setFloat("sunlight", worldRenderer.getSunlightValue(), true);
        shader.setFloat("blockLight", worldRenderer.getBlockLightValue(), true);
        glBindTexture(GL11.GL_TEXTURE_2D, handTex.getId());

        glPushMatrix();
View Full Code Here

Examples of org.togglz.core.repository.FeatureState.enable()

        try {

            FileBasedStateRepository repo = new FileBasedStateRepository(file);

            FeatureState state = repo.getFeatureState(MyFeature.FEATURE1);
            state.enable();
            repo.setFeatureState(state);

            Properties newProps = readPropertiesFile(file);

            assertThat(newProps.size(), is(3));
View Full Code Here

Examples of org.togglz.testing.TestFeatureManager.enable()

                try {

                    // create blank instance and set initial state
                    TestFeatureManager featureManager = new TestFeatureManager(featureClass);
                    for (Feature feature : activeFeatures) {
                        featureManager.enable(feature);
                    }

                    // register the test instance
                    TestFeatureManagerProvider.setFeatureManager(featureManager);
                    FeatureContext.clearCache();
View Full Code Here

Examples of org.waveprotocol.box.webclient.stat.gwtevent.GwtStatisticsEventSystem.enable()

  private void setupStatistics() {
    Timing.setScope(new SingleThreadedRequestScope());
    Timing.setEnabled(true);
    GwtStatisticsEventSystem eventSystem = new GwtStatisticsEventSystem();
    eventSystem.addListener(new GwtStatisticsHandler(), true);
    eventSystem.enable(true);
  }

  /**
   * Returns <code>ws(s)://yourhost[:port]/</code>.
   */
 
View Full Code Here

Examples of slash.navigation.gui.actions.ActionManager.enable()

        buttonMovePositionDown.setEnabled(lastRowNotSelected);
        buttonMovePositionToBottom.setEnabled(lastRowNotSelected);

        RouteConverter r = RouteConverter.getInstance();
        ActionManager actionManager = r.getContext().getActionManager();
        actionManager.enable("cut", existsASelectedPosition);
        actionManager.enable("copy", existsASelectedPosition);
        actionManager.enable("delete", existsASelectedPosition);
        actionManager.enable("select-all", existsAPosition && !allPositionsSelected);
        findMenu(r.getFrame().getJMenuBar(), "position", "complete").setEnabled(existsASelectedPosition);
        actionManager.enable("add-coordinates", existsASelectedPosition);
View Full Code Here

Examples of srsim.actuators.LightingActuator.enable()

      if (light.getState() == IActuator.ACTIVE
          && light.getBrightness() < light.getMaxBrightness()) {
        light.turnUp();
        notifyListeners("light " + light.getId() + " turned up");
      } else if (light.getState() == IActuator.IDLE) {
        light.enable();
        notifyListeners("light " + light.getId() + " enabled");
      }
    }
  }
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.