Package com.salas.bb.remixfeeds.prefs

Examples of com.salas.bb.remixfeeds.prefs.TargetBlog$Category


    public void test_0() throws Exception {
        ByteArrayOutputStream out = new ByteArrayOutputStream();
        ObjectOutputStream objectOut = new ObjectOutputStream(out);

        Category p = new Category();
        p.setId(1);
        p.setName("root");
        {
            Category child = new Category();
            child.setId(2);
            child.setName("child");
            p.getChildren().add(child);
            child.setParent(p);
        }
        objectOut.writeObject(p);
    }
View Full Code Here


    private Object object;

    public CategoryEncode(){
        super("CategoryEncode");

        Category category = new Category();
        category.setId(1);
        category.setName("root");
        {
            Category child = new Category();
            child.setId(2);
            child.setName("child");
            category.getChildren().add(child);
            child.setParent(category);
        }

        object = category;
    }
View Full Code Here

        BloggingPreferences bloggingPreferences = GlobalModel.SINGLETON.getUserPreferences().getBloggingPreferences();
        if (type.isAvailable() && bloggingPreferences.getBlogsCount() > 0)
        {
            GlobalController controller = GlobalController.SINGLETON;

            TargetBlog targetBlog = bloggingPreferences.getDefaultBlog();

            String templateName = e.getActionCommand();
            if (!Templates.isExisting(templateName))
            {
                templateName = targetBlog.getTemplateName();

                // See if the user wants to change the template dynamically
                if ((e.getModifiers() & KeyEvent.SHIFT_MASK) != 0 && type.isTemplateChangeSupported())
                {
                    // Ask for mode in a popup menu and repeat the event
View Full Code Here

                    addProperties(post);

                    List<Integer> ind = getSelectedBlogIndices();
                    for (int i : ind)
                    {
                        TargetBlog targetBlog = getBlogAt(i);
                        IWeblogAPI api = targetBlog.getApiType();

                        post.categories = getCategoriesForBlog(i);

                        // Perform a call
                        try
View Full Code Here

        for (int i = 0; i < targetBlogs.length; i++)
        {
            categoryProperties[i] = new SyntheticCategoryProperty(i);

            TargetBlog blog = targetBlogs[i];
            initCategories(blog, i, new TargetBlog.Category[] { blog.getDefaultCategory() });

            PropertyAdapter adapter = new PropertyAdapter(categoryProperties[i], SyntheticCategoryProperty.PROP, true);
            pcCategories[i] = new CategoriesLabel(categories[i], adapter);

            chTargetBlog[i] = new JCheckBox(blog.getTitle());

            if (selBlogs.contains(blog))
            {
                chTargetBlog[i].setSelected(true);
                setDraft(blog.isDraft());
            }
        }

        updateTitle(selected);
    }
View Full Code Here

            if (result == null)
                result = defaultCase(theEObject);
            return result;
        }
        case Bpmn2Package.CATEGORY: {
            Category category = (Category) theEObject;
            T result = caseCategory(category);
            if (result == null)
                result = caseRootElement(category);
            if (result == null)
                result = caseBaseElement(category);
View Full Code Here

            doc.appendChild(rootElement);
        }

      for (Object object : categories) {
      if (object instanceof Category){
        Category cat=(Category)object;
        Element categoryDef = doc.createElement("category-def");
        categoryDef.setAttribute("name", cat.getId());
        categoryDef.setAttribute("label", cat.getLabel());
        rootElement.appendChild(categoryDef);
        Element descriptionElement = doc.createElement("description");
        descriptionElement.setTextContent(cat.getDescription());
        categoryDef.appendChild(descriptionElement);
        ArrayList processedFeatures = cat.getProcessedFeatures(project, artifactFactory, remoteRepositories, localRepository, resolver);
        for (Object obj : processedFeatures) {
          FeatureArtifact feature=(FeatureArtifact)obj;
          if (!featureCategories.containsKey(feature.getArtifactId())){
            ArrayList list = new ArrayList();
            featureCategories.put(feature.getArtifactId(), list);
            list.add(feature);
          }
          ArrayList list = (ArrayList)featureCategories.get(feature.getArtifactId());
          list.add(cat.getId());
        }
      }
    }
     
      for (Object key : featureCategories.keySet()) {
View Full Code Here

TOP

Related Classes of com.salas.bb.remixfeeds.prefs.TargetBlog$Category

Copyright © 2018 www.massapicom. 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.