Examples of unload()


Examples of org.eclipse.emf.ecore.resource.Resource.unload()

            try{
                element.save(null);
            }catch (Exception e) {
            }
            if( !element.getContents().contains(ProjectPlugin.getPlugin().getProjectRegistry()) )
                element.unload();
    }
   
    ResourceSet set=new ResourceSetImpl();
    Project project=(Project) set.getResource(URI.createURI("file://"+file.getAbsolutePath()), true).getAllContents().next(); //$NON-NLS-1$
    assertFalse(project.eIsProxy());
View Full Code Here

Examples of org.eclipse.emf.ecore.resource.Resource.unload()

                    project.getElementsInternal().remove(element);
            }
            Resource resource = element.eResource();
            if (resource != null) {
                resource.getContents().remove(element);
                resource.unload();
            }
            if (deleteFiles) {
                try {
                    if (resource == null) {
                        return;
View Full Code Here

Examples of org.eclipse.emf.ecore.resource.Resource.unload()

                try {
                    if (resource == null) {
                        return;
                    }
                    String path = resource.getURI().toFileString();
                    resource.unload();
                    int lastIndexOf = path.lastIndexOf('/');
                    if (lastIndexOf == -1)
                        lastIndexOf = path.length();
                    path = path.substring(0, lastIndexOf);
                    final File file = new File(path);
View Full Code Here

Examples of org.eclipse.emf.ecore.resource.Resource.unload()

            ProjectPlugin.getPlugin().getProjectRegistry().getProjects().remove(project);
            resource.getContents().clear();
            ResourceSet resourceSet = resource.getResourceSet();
            String path = resource.getURI().toFileString();

            resource.unload();

            if (deleteProjectFiles) {
                try {
                    resourceSet.getResources().remove(resource);
                    resource.unload();
View Full Code Here

Examples of org.eclipse.emf.ecore.resource.Resource.unload()

            resource.unload();

            if (deleteProjectFiles) {
                try {
                    resourceSet.getResources().remove(resource);
                    resource.unload();
                    int lastIndexOf = path.lastIndexOf('/');
                    if (lastIndexOf == -1)
                        lastIndexOf = path.length();
                    path = path.substring(0, lastIndexOf);
                    final File file = new File(path);
View Full Code Here

Examples of org.eclipse.emf.ecore.xmi.XMLResource.unload()

    XMLResource resource = (XMLResource) targetObject.eResource();
    String authorID = resource.getID(targetObject);

    // Test : Reload the target object

    resource.unload();
    resource.load(null);

    // Verify : Check that the extrinsic ID was restored.

    EObject obj = resource.getContents().get(0);
View Full Code Here

Examples of org.glassfish.api.deployment.Deployer.unload()

        ActionReport report = context.getActionReport();
        // then remove the application from the container
        Deployer deployer = ctrInfo.getDeployer();
        try {
            deployer.unload(appCtr, context);
            ctrInfo.unload(context);
        } catch(Exception e) {
            report.failure(context.getLogger(), "Exception while shutting down application container", e);
            return false;
        }
View Full Code Here

Examples of org.jboss.messaging.core.Queue.unload()

         {
            throw new IllegalStateException("Cannot find counter to unregister " + counterName);
         }
        
         queue.deactivate();
         queue.unload();
        
         started = false;
        
         log.info(this + " stopped");
      }
View Full Code Here

Examples of org.jboss.messaging.core.contract.Queue.unload()

            log.warn("Cannot find counter to unregister " + counterName);
         }
        
         queue.deactivate();
        
         queue.unload();
        
         started = false;
        
         log.info(this + " stopped");
      }
View Full Code Here

Examples of org.jboss.messaging.core.contract.Queue.unload()

               po.removeBinding(queue.getName(), false);
            }
                       
            queue.deactivate();
           
            queue.unload();
           
            //unregister counter
            String counterName = SUBSCRIPTION_MESSAGECOUNTER_PREFIX + queue.getName();
           
            serverPeer.getMessageCounterManager().unregisterMessageCounter(counterName);                       
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.