Examples of addResource()


Examples of org.jitterbit.application.ui.text.editor.TextEditor.addResource()

            if (editor instanceof GenericEditor) {
                ((GenericEditor) editor).setSubTitle(tx.getName());
            }
            editor.setEditable(true);
            editor.decorateText(TextStyles.DefaultText.asTextDecorator());
            editor.addResource(new AbstractWindowElementResource() {

                @Override
                public void dispose(WindowElement e) {
                    file.delete();
                }
View Full Code Here

Examples of org.jitterbit.application.ui.window.WindowSectionContent.addResource()

    private class ContentProvider implements WindowSectionContentProvider {

        @Override
        public WindowSectionContent getContent(WindowSection section) {
            WindowSectionContent content = new TrashCanView(section, TrashCanViewUi.this);
            content.addResource(new DisposableWindowElementResource(TrashCanViewUi.this));
            EventQueue.invokeLater(new Runnable() {

                @Override
                public void run() {
                    startListening();
View Full Code Here

Examples of org.jitterbit.integration.client.datalocation.connection.all.TestAllConnectionsView.addResource()

        @Override
        public void contentAdded(WindowSection section, WindowSectionContent content) {
            waitLock.release();
            TestAllConnectionsView testView = (TestAllConnectionsView) content;
            testView.addResource(new ProjectListening(testView));
            AllLocationsTester test = testView.getCurrentTest();
            if (test == null) {
                createAndStartTest(testView);
            }
        }
View Full Code Here

Examples of org.jitterbit.integration.client.ui.de.global.GlobalDataElementsView.addResource()

        @Override
        public WindowSectionContent getContent(WindowSection section) {
            GlobalDataElementsView view = impl.getContent(section);
            ProjectListener listener = new ProjectListener(projectManager, view);
            view.addResource(listener);
            return view;
        }


        private static class ProjectListener extends ProjectManagerListenerResource {
View Full Code Here

Examples of org.jitterbit.integration.client.ui.entity.ModificationMonitorWindowContent.addResource()

        @Override
        public WindowSectionContent getContent(WindowSection section) {
            ModificationMonitorWindowContent view = new ModificationMonitorWindowContent(section);
            view.setProject(project);
            ProjectListener listener = new ProjectListener(projectManager, view);
            view.addResource(listener);
            return view;
        }


        private static class ProjectListener extends ProjectManagerListenerResource {
View Full Code Here

Examples of org.jrest4guice.rest.helper.ServiceHelper.addResource()

            // 注册Rest服务
            annotation = (Path) clazz.getAnnotation(Path.class);
            uris = annotation.value();
            int index = 0;
            for (String uri : uris)
              jRestContext.addResource(uri, clazz, index++ == 0);
          }else if (clazz.isAnnotationPresent(RESTful.class)) {
            jRestContext.addResourceByClassMethodInfo(clazz);
          }else if (RequestContentReader.class.isAssignableFrom(clazz)) {
            // 注册RequestContentReader
            try {
View Full Code Here

Examples of org.kie.internal.assembler.KieAssemblerService.addResource()

        KieAssemblerService assembler = assemblers.getAssemblers().get(type);


        if (assembler != null) {
            assembler.addResource(this,
                                  resource,
                                  type,
                                  configuration);
        } else {
            throw new RuntimeException("Unknown resource type: " + type);
View Full Code Here

Examples of org.kie.internal.utils.KieHelper.addResource()

    @Test
    public void testBrokenExternalLinkButValueIsCached() throws Exception {
        KieHelper kieHelper = new KieHelper();
        // do not modify this XLS file using OpenOffice or LibreOffice or the external link gets corrupted and the test fails!
        InputStream dtableIs = this.getClass().getResourceAsStream("BZ967609-brokenExtLinkButValueCached.xls");
        kieHelper.addResource(ResourceFactory.newInputStreamResource(dtableIs),
                ResourceType.DTABLE);
        KieBase kbase = kieHelper.build();
        assertNotNull(kbase);
    }
View Full Code Here

Examples of org.milyn.cdr.extension.ExtensionContext.addResource()

        if(decodeParams.getLength() > 0) {
            ExtensionContext extensionContext = ExtensionContext.getExtensionContext(executionContext);
            SmooksResourceConfiguration populatorConfig = extensionContext.getResourceStack().peek();
            SmooksResourceConfiguration decoderConfig = new SmooksResourceConfiguration();

            extensionContext.addResource(decoderConfig);
            try {
                String type = populatorConfig.getStringParameter("type");
                DataDecoder decoder = DataDecoder.Factory.create(type);
                String reType = UUID.randomUUID().toString();
View Full Code Here

Examples of org.olat.ims.cp.objects.CPResources.addResource()

      return true;
    } else if (parentElement instanceof CPResources) {
      // parent is <resources> !!see the "s" at the end ;)
      if (newElement instanceof CPResource) {
        CPResources resources = (CPResources) parentElement;
        resources.addResource((CPResource) newElement);
        return true;
      } else {
        throw new OLATRuntimeException(CPOrganizations.class, "you can only add <resource>elements to the <resources> element",
            new Exception());
      }
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.