Examples of FeatureManager


Examples of com.salas.bb.core.FeatureManager

     * Prepares plan information for insertion.
     * @return detailed plan info.
     */
    private String getPlanInfo()
    {
        FeatureManager fm = GlobalController.SINGLETON.getFeatureManager();

        String name = fm.getPlanName();
        Date date = fm.getPlanExpirationDate();
        float price = fm.getPlanPrice();
        int period = fm.getPlanPeriodMonths();
        boolean trial = fm.isPlanTrial();

        String info = name;
        if (date != null)
        {
            String dates = SimpleDateFormat.getDateInstance(SimpleDateFormat.SHORT).format(date);
View Full Code Here

Examples of com.salas.bb.core.FeatureManager

    {
        this.type = type;

        update_();

        FeatureManager fm = GlobalController.SINGLETON.getFeatureManager();
        fm.addPropertyChangeListener(FeatureManager.PROP_PTB_ENABLED, this);
    }
View Full Code Here

Examples of com.salas.bb.core.FeatureManager

                }
            }

            AbstractPostEditor editor;
            MainFrame frame = controller.getMainFrame();
            FeatureManager fm = controller.getFeatureManager();
            boolean isRichEditor = bloggingPreferences.isRichEditor() || !fm.isPtbAdvanced();
            if (fm.isPtbAdvanced())
            {
                PostEditorAdv edAdv = new PostEditorAdv(frame, isRichEditor);
                java.util.List<TargetBlog> blogs = bloggingPreferences.getBlogs();
                edAdv.setTargetBlogs(blogs.toArray(new TargetBlog[blogs.size()]),
                    new TargetBlog[] { targetBlog });
View Full Code Here

Examples of com.salas.bb.core.FeatureManager

     *
     * @return TRUE if has.
     */
    public static boolean hasCustomTemplatesFeature()
    {
        FeatureManager fm = GlobalController.SINGLETON.getFeatureManager();
        return fm.isPtbAdvanced();
    }
View Full Code Here

Examples of com.salas.bb.core.FeatureManager

     */
    public boolean isAvailable()
    {
        GlobalController controller = GlobalController.SINGLETON;
        GlobalModel model = controller.getModel();
        FeatureManager fm = controller.getFeatureManager();

        boolean ptbEnabled = fm.isPtbEnabled();
        boolean ptbAdvanced = fm.isPtbAdvanced();
        boolean blogRecordsPresent = model.getUserPreferences().getBloggingPreferences().getBlogsCount() > 0;

        return ptbEnabled && ptbAdvanced && blogRecordsPresent;
    }
View Full Code Here

Examples of com.salas.bb.core.FeatureManager

     */
    public boolean isAvailable()
    {
        GlobalController controller = GlobalController.SINGLETON;
        GlobalModel model = controller.getModel();
        FeatureManager fm = controller.getFeatureManager();

        boolean ptbEnabled = fm.isPtbEnabled();
        boolean articleSelected = model.getSelectedArticle() != null;
        boolean manyArticlesSelected = articleSelected && model.getSelectedArticles().length > 1;
        boolean blogRecordsPresent = model.getUserPreferences().getBloggingPreferences().getBlogsCount() > 0;

        return ptbEnabled && blogRecordsPresent && articleSelected &&
            (!manyArticlesSelected || fm.isPtbAdvanced());
    }
View Full Code Here

Examples of com.salas.bb.core.FeatureManager

            GuidesSet set = model.getGuidesSet();
            MainFrame mainFrame = GlobalController.SINGLETON.getMainFrame();

            // Figure out if the publishing limit is already hit
            FeatureManager featureManager = GlobalController.SINGLETON.getFeatureManager();
            int pubLimit = featureManager.getPublicationLimit();
            boolean pubLimitReached = pubLimit > -1 && set.countPublishedGuides() >= pubLimit;

            boolean actAvailable = model.getServicePreferences().isAccountInformationEntered();
            EditGuideDialog dialog = new EditGuideDialog(mainFrame, actAvailable, pubLimit, pubLimitReached);
            dialog.open(set, guide);
View Full Code Here

Examples of com.salas.bb.core.FeatureManager

        GlobalController controller = GlobalController.SINGLETON;
        GlobalModel model = controller.getModel();
        GuidesSet cgs = model.getGuidesSet();

        // Figure out if the publishing limit is already hit
        FeatureManager featureManager = GlobalController.SINGLETON.getFeatureManager();
        int pubLimit = featureManager.getPublicationLimit();
        boolean pubLimitReached = pubLimit > -1 && cgs.countPublishedGuides() >= pubLimit;

        boolean actAvailable = model.getServicePreferences().isAccountInformationEntered();
        AddGuideDialog dialog = new AddGuideDialog(controller.getMainFrame(), actAvailable, pubLimit, pubLimitReached);
        String urls = dialog.open(cgs);
View Full Code Here

Examples of com.sun.org.apache.xalan.internal.utils.FeatureManager

        public static XPathFactory newXPathFactoryNoServiceLoader() {
            return new XPathFactoryImpl(false);
        }

        public XPathFactoryImpl(boolean useServicesMechanism) {
            _featureManager = new FeatureManager();
            if (System.getSecurityManager() != null) {
                _isSecureMode = true;
                _isNotSecureProcessing = false;
                _featureManager.setValue(FeatureManager.Feature.ORACLE_ENABLE_EXTENSION_FUNCTION,
                        FeaturePropertyBase.State.FSP, XalanConstants.FEATURE_FALSE);
View Full Code Here

Examples of com.sun.org.apache.xalan.internal.utils.FeatureManager

    /** Protected constructor to prevent direct instantiation; use compile()
     * from the context.
     */
    protected XPathExpressionImpl() {
        this(null, null, null, null,
             false, true, new FeatureManager());
    };
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.