Examples of PublisherOption


Examples of de.innovationgate.wga.common.beans.csconfig.v1.PublisherOption

    });
   
    _tablePublisherOptions.getTable().addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {
        if (_tablePublisherOptions.getTable().getSelectionCount() > 0) {
          PublisherOption option = (PublisherOption) _tablePublisherOptions.getTable().getSelection()[0].getData();
          if (_publisherOptionsModel.isBeanEditable(option)) {
            _tablePublisherOptions.getButton(EditableTableControl.BUTTON_REMOVE).setEnabled(true);
          } else {
            _tablePublisherOptions.getButton(EditableTableControl.BUTTON_REMOVE).setEnabled(false);
          }
View Full Code Here

Examples of de.innovationgate.wga.common.beans.csconfig.v1.PublisherOption

     
    });
    dialog.open();
    String optionName = dialog.getValue();
    if (optionName != null && !optionName.trim().equals("")) {
      PublisherOption option = new PublisherOption();
      option.setName(optionName);
      option.setValue("<value>");
      _publisherOptionsModel.add(option);
    }
  }
View Full Code Here

Examples of de.innovationgate.wga.common.beans.csconfig.v1.PublisherOption

    }
   
            List publisherOptions = _info.getCsConfig().getPublisherOptions();
            Iterator options = publisherOptions.iterator();
            while (options.hasNext()) {
                PublisherOption option = (PublisherOption) options.next();
                optionsTarget.put(option.getName(), option.getValue());
            }

        }
View Full Code Here

Examples of de.innovationgate.wga.common.beans.csconfig.v1.PublisherOption

        String ph = pc.getPluginHomepage();
        if (ph != null && !ph.trim().equals("")) {
            return ph;
        }
       
        PublisherOption option = getCsConfig().findPublisherOption(WGACore.DBATTRIB_HOME_PAGE);
        if (option != null) {
            return option.getValue();
        }
        else {
            return null;
        }
       
View Full Code Here

Examples of de.innovationgate.wga.common.beans.csconfig.v1.PublisherOption

    }
   
    public boolean isMultiLanguage() {
       
        if (_config != null) {
            PublisherOption multiLangOpt = _config.findPublisherOption(WGACore.DBATTRIB_MULTILANGUAGE_CONTENT);
            if (multiLangOpt != null) {
                return Boolean.parseBoolean(multiLangOpt.getValue());
            }
        }
       
        return true;
       
View Full Code Here

Examples of de.innovationgate.wga.common.beans.csconfig.v1.PublisherOption

    }
   
    public String getOverlaySupport() {
       
        if (_config != null) {
            PublisherOption overlayOpt = _config.findPublisherOption(PublisherOption.OPTION_OVERLAY_SUPPORT);
            if (overlayOpt != null) {
                return overlayOpt.getValue();
            }
        }
       
        return OverlaySupport.NONE;
       
View Full Code Here

Examples of de.innovationgate.wga.common.beans.csconfig.v1.PublisherOption

    }

    private void determineSyncDefaults() {

        if (_csconfig != null) {
            PublisherOption option = _csconfig.findPublisherOption(WGACore.DBATTRIB_DIRECTACCESSDEFAULT);
            if (option != null) {
                _directAccessDefault = Boolean.valueOf(option.getValue()).booleanValue();
            }
        }

    }
View Full Code Here

Examples of de.innovationgate.wga.common.beans.csconfig.v1.PublisherOption

            _fileEncoding = System.getProperty("file.encoding");
            _log.debug("Design of " + _db.getDbReference() + " uses file encoding " + _fileEncoding + " to read design files (platform default)");
        }
        else if (_syncInfo.getFileEncoding().equals(DesignDefinition.FILEENCODING_CSCONFIG_DEFINED)) {
            if (_csconfig != null) {
                PublisherOption option = _csconfig.findPublisherOption(WGACore.DBATTRIB_DESIGN_ENCODING);
                if (option != null) {
                    _fileEncoding = option.getValue();
                    _log.debug("Design of " + _db.getDbReference() + " uses file encoding '" + _fileEncoding + "' to read design files (as specified in design configuration)");
                }
                else {
                    _fileEncoding = System.getProperty("file.encoding");
                    _log.debug("Design of " + _db.getDbReference() + " uses file encoding " + _fileEncoding + " to read design files (platform default)");
View Full Code Here

Examples of de.innovationgate.wga.common.beans.csconfig.v1.PublisherOption

    public void setPublisherOption(String name, String value, boolean fireModelChanged) {
        if (value != null && value.equals(STRING_NOT_SET)) {
            removePublisherOption(name, fireModelChanged);
        }
        else {
            PublisherOption option = getPublisherOption(name);
            if (option != null) {
                option.setValue(value);
            }
            else {
                _csConfig.getPublisherOptions().add(new PublisherOption(name, value));
            }
            if (fireModelChanged) {
                fireModelChanged();
            }
        }
View Full Code Here

Examples of de.innovationgate.wga.common.beans.csconfig.v1.PublisherOption

    }

    public PublisherOption getPublisherOption(String name) {
        Iterator options = _csConfig.getPublisherOptions().iterator();
        while (options.hasNext()) {
            PublisherOption option = (PublisherOption) options.next();
            if (option.getName().equals(name)) {
                return option;
            }
        }
        return null;
    }
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.