Examples of detach()


Examples of org.netbeans.spi.debugger.ui.BreakpointAnnotation.detach()

        BreakpointAnnotation annotation = breakpointToAnnotation.remove(b);
        if (annotation == null) {
            return;
        }

        annotation.detach();
        b.removePropertyChangeListener(
                Breakpoint.PROP_ENABLED,
                this);
    }
}
View Full Code Here

Examples of org.opentripplanner.routing.edgetype.StreetEdge.detach()

                    permission = permission.remove(StreetTraversalPermission.PEDESTRIAN);
                    permission = permission.remove(StreetTraversalPermission.BICYCLE);
                    if (permission == StreetTraversalPermission.NONE) {
                        // TODO Shouldn't we have a graph.removeEdge()?
                        graph.streetNotesService.removeStaticNotes(pse);
                        pse.detach(graph);
                    } else {
                        pse.setPermission(permission);
                    }
                }
            }
View Full Code Here

Examples of org.opentripplanner.routing.edgetype.TimedTransferEdge.detach()

        // "Revert" the real-time update
        applyUpdateToTripPattern(pattern, "4.2", "F", 1, 82800, 82800,
                ScheduleRelationship.SCHEDULED, 0, serviceDate);
        // Remove the timed transfer from the graph
        timedTransferEdge.detach(graph);
        // Revert the graph, thus using the original transfer table again
        reset(graph);
    }
}
View Full Code Here

Examples of org.serviceconnector.api.cln.SCClient.detach()

    } finally {
      try {
        SCMessage msg = new SCMessage();
        msg.setSessionInfo("kill server");
        service.deleteSession(5, msg);
        sc.detach(2); // detaches from SC, stops communication
      } catch (Exception e) {
        LOGGER.error("cleanup", e);
      }
    }
  }
View Full Code Here

Examples of org.serviceconnector.api.cln.SCMgmtClient.detach()

    // disable service
    SCMgmtClient clientMgmt = new SCMgmtClient(TestConstants.HOST, TestConstants.PORT_SC0_TCP);
    clientMgmt.attach();
    clientMgmt.disableService(TestConstants.sesServiceName1);
    clientMgmt.detach();

    // execute
    request.setMessageInfo(TestConstants.echoCmd);
    response = sessionService1.execute(request);
    Assert.assertEquals("message body is not the same length", request.getDataLength(), response.getDataLength());
View Full Code Here

Examples of org.spout.api.entity.Entity.detach()

    //Set up component holder methods
    Mockito.when(entity.add(Matchers.argThat(new ClassOrSubclassMatcher<EntityComponent>(EntityComponent.class)))).thenAnswer(componentHolder);
    Mockito.when(entity.get(Matchers.argThat(new ClassOrSubclassMatcher<EntityComponent>(EntityComponent.class)))).thenAnswer(componentHolder);
    Mockito.when(entity.getExact(Matchers.argThat(new ClassOrSubclassMatcher<EntityComponent>(EntityComponent.class)))).thenAnswer(componentHolder);
    Mockito.when(entity.detach(Matchers.argThat(new ClassOrSubclassMatcher<EntityComponent>(EntityComponent.class)))).thenAnswer(componentHolder);
    Mockito.when(entity.getData()).thenReturn(componentHolder.getData());
    Mockito.when(entity.getEngine()).thenAnswer(new EntityEngineAnswer(engine));

    //Set up entity tick
    Mockito.doAnswer(new EntityTickAnswer(entity)).when(entity).onTick(Mockito.anyFloat());
View Full Code Here

Examples of org.spout.api.entity.Player.detach()

    //Set up component holder methods
    Mockito.when(player.add(Matchers.argThat(new ClassOrSubclassMatcher<EntityComponent>(EntityComponent.class)))).thenAnswer(componentHolder);
    Mockito.when(player.get(Matchers.argThat(new ClassOrSubclassMatcher<EntityComponent>(EntityComponent.class)))).thenAnswer(componentHolder);
    Mockito.when(player.getExact(Matchers.argThat(new ClassOrSubclassMatcher<EntityComponent>(EntityComponent.class)))).thenAnswer(componentHolder);
    Mockito.when(player.detach(Matchers.argThat(new ClassOrSubclassMatcher<EntityComponent>(EntityComponent.class)))).thenAnswer(componentHolder);
    Mockito.when(player.getData()).thenReturn(componentHolder.getData());
    Mockito.when(player.getEngine()).thenAnswer(new EntityEngineAnswer(engine));
    //Set up entity tick
    Mockito.doAnswer(new EntityTickAnswer(player)).when(player).onTick(Mockito.anyFloat());
View Full Code Here

Examples of org.w3c.dom.traversal.NodeIterator.detach()

        // To populate result we only need to iterate...
        while (nodeIterator.nextNode() != null) ;

        // We have to explicitly declare we are done with this nodeIterator to free it's resources.
        nodeIterator.detach();

        return result;
    }

}
View Full Code Here

Examples of org.waveprotocol.wave.client.wavepanel.block.BlockStructureTestBase.detach()

  private BlockStructureTestBase getTest() {
    BlockStructureTestBase x = new BlockStructureTestBase() {
      @Override
      protected XmlStructure create(ConversationView model) {
        XmlStructure x = createXml(model);
        x.detach();
        return x;
      }
    };
    x.setUp();
    return x;
View Full Code Here

Examples of org.waveprotocol.wave.client.wavepanel.view.AnchorView.detach()

      // Move reply if it exists.
      ConversationThread reply = blip.getReplyThread(dood.getId());
      AnchorView defaultUi = reply != null ? views.getDefaultAnchor(reply) : null;
      InlineThreadView replyUi = defaultUi != null ? defaultUi.getThread() : null;
      if (replyUi != null) {
        defaultUi.detach(replyUi);
        inlineUi.attach(replyUi);
      }
    }
  }
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.