Examples of ContentProvider


Examples of org.projectforge.excel.ContentProvider

    }
    if (CollectionUtils.isEmpty(list) == true) {
      return null;
    }
    final ExportWorkbook xls = new ExportWorkbook();
    final ContentProvider contentProvider = new MyContentProvider(xls);
    // create a default Date format and currency column
    xls.setContentProvider(contentProvider);

    final String sheetTitle = getSheetTitle();
    final ExportSheet sheet = xls.addSheet(sheetTitle);
View Full Code Here

Examples of org.rhq.enterprise.server.plugin.pc.content.ContentProvider

            log.debug("downloadDistributionBits invoked");
            DistributionManagerLocal distManager = LookupUtil.getDistributionManagerLocal();
            ContentServerPluginContainer pc = ContentManagerHelper.getPluginContainer();
            int contentSourceId = contentSource.getId();
            ContentProviderManager cpMgr = pc.getAdapterManager();
            ContentProvider provider = cpMgr.getIsolatedContentProvider(contentSource.getId());
            if (!(provider instanceof DistributionSource)) {
                return;
            }

            DistributionSource distSource = (DistributionSource) provider;
View Full Code Here

Examples of tool.navigator.prx.ContentProvider

    supplierPlanTreeViewer = new TreeViewer(composite_1, SWT.BORDER);
    Tree supplierPlanTree = supplierPlanTreeViewer.getTree();
    supplierPlanTree.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
    new Label(composite_1, SWT.NONE);
    new Label(composite_1, SWT.NONE);
    supplierPlanTreeViewer.setContentProvider(new ContentProvider(ContentProvider.SUPPLIERS));
    supplierPlanTreeViewer.setLabelProvider(new LabelProvider());
    supplierPlansExpanditem.setHeight(supplierPlansExpanditem.getControl().computeSize(SWT.DEFAULT, SWT.DEFAULT).y);
   
    constantsExpanditem = new ExpandItem(expandBar, SWT.NONE);
    constantsExpanditem.setImage(ResourceManager.getPluginImage("Tool", "icons/constant.gif"));
    constantsExpanditem.setText("Constants");
   
    Composite composite_2 = new Composite(expandBar, SWT.NONE);
    constantsExpanditem.setControl(composite_2);
    composite_2.setLayout(new GridLayout(1, false));
   
    constantsTreeViewer = new TreeViewer(composite_2, SWT.BORDER);
    constantsTreeViewer.addDoubleClickListener(new IDoubleClickListener() {
      public void doubleClick(DoubleClickEvent event) {
        ITreeSelection selection = (ITreeSelection)event.getSelection();
        ToolConstant constant = (ToolConstant)selection.getFirstElement();
        ConstantDialog.show(constant);
      }
    });
    constantsTreeViewer.setAutoExpandLevel(1);
    Tree constantsTree = constantsTreeViewer.getTree();
    GridData gd_constantsTree = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);
    gd_constantsTree.minimumHeight = 300;
    constantsTree.setLayoutData(gd_constantsTree);
    constantsTreeViewer.setContentProvider(new ContentProvider(ContentProvider.CONSTANTS));
    constantsTreeViewer.setLabelProvider(new LabelProvider());
    constantsExpanditem.setHeight(constantsExpanditem.getControl().computeSize(SWT.DEFAULT, SWT.DEFAULT).y);
    if (this.model != null){
      bind();
    }
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.