Examples of PropertiesManager


Examples of org.jahia.utils.properties.PropertiesManager

        if (!new File(propertiesFile).exists()) {
            logger.error("Could not open " + propertiesFile);
            Runtime.getRuntime().exit(1);
        }

        PropertiesManager properties = new PropertiesManager(propertiesFile);

        // get properties
        String serverHomeDiskPath = properties.getProperty("serverHomeDiskPath");
        String jahiaCoreHttpPath = properties.getProperty("jahiaCoreHttpPath");
        String jahiaHostHttpPath = properties.getProperty("jahiaHostHttpPath");
        String server = properties.getProperty("server");

        // exit if the server is not tomcat
        if (server.toLowerCase().indexOf("tomcat") == -1) {
            logger.error("This service run only with tomcat server");
            Runtime.getRuntime().exit(1);
View Full Code Here

Examples of org.jdesktop.wonderland.client.cell.properties.PropertiesManager

     */
    private void updatePanelSet() {
        // Look through the registry of cell property objects and check to see
        // if a panel exists for the cell. Add it if so
        Class clazz = selectedCellServerState.getClass();
        PropertiesManager manager = PropertiesManager.getPropertiesManager();
        cellProperties = manager.getPropertiesByClass(clazz);

        // For all cells, add the "Basic" and "Position" panels
        listModel.addElement(basicPropertiesFactory.getDisplayName());
        factoryList.add(basicPropertiesFactory);
        listModel.addElement(positionPropertiesFactory.getDisplayName());
        factoryList.add(positionPropertiesFactory);

        // If the cell properties panel exists, add an entry for it
        if (cellProperties != null && cellProperties.getPropertiesJPanel() != null) {
            listModel.addElement(cellProperties.getDisplayName());
            factoryList.add(cellProperties);
            cellProperties.setCellPropertiesEditor(this);
        }

        // Loop through all of the cell components in the server state and for
        // each see if there is a properties sheet registered for it. If so,
        // then add it.
        for (Map.Entry<Class, CellComponentServerState> e :
                selectedCellServerState.getComponentServerStates().entrySet()) {

            CellComponentServerState state = e.getValue();
            PropertiesFactorySPI spi = manager.getPropertiesByClass(state.getClass());
            if (spi != null) {
                JPanel panel = spi.getPropertiesJPanel();
                if (panel != null) {
                    String displayName = spi.getDisplayName();
                    spi.setCellPropertiesEditor(this);
View Full Code Here

Examples of org.jdesktop.wonderland.client.cell.properties.PropertiesManager

        if (response instanceof CellServerComponentResponseMessage) {
            // If successful, add the component to the GUI by refreshing the
            // Cell that is selected.
            setSelectedCell(selectedCell);
            PropertiesManager manager = PropertiesManager.getPropertiesManager();
            PropertiesFactorySPI prop = manager.getPropertiesByClass(state.getClass());
            capabilityList.setSelectedValue(prop.getDisplayName(),true);
        }
        else if (response instanceof ErrorMessage) {
            // Log an error. Eventually we should display a dialog
            LOGGER.log(Level.WARNING, "Unable to add component to the server: " +
View Full Code Here

Examples of org.mevenide.idea.project.properties.PropertiesManager

    public ProxySettings(final Project pProject) {
        super(pProject);
    }

    public String getProxyHost(final String pPomUrl) {
        final PropertiesManager mgr = PropertiesManager.getInstance(project);
        final String value = mgr.getProperty(pPomUrl, "maven.proxy.host");
        if (value != null && value.trim().length() == 0)
            return null;
        return value;
    }
View Full Code Here

Examples of org.mevenide.idea.project.properties.PropertiesManager

            return null;
        return value;
    }

    public Integer getProxyPort(final String pPomUrl) {
        final PropertiesManager mgr = PropertiesManager.getInstance(project);
        final String portValue = mgr.getProperty(pPomUrl, "maven.proxy.port");
        if (portValue == null || portValue.trim().length() == 0)
            return null;

        return Integer.valueOf(portValue);
    }
View Full Code Here

Examples of org.mevenide.idea.project.properties.PropertiesManager

        return Integer.valueOf(portValue);
    }

    public String getProxyUsername(final String pPomUrl) {
        final PropertiesManager mgr = PropertiesManager.getInstance(project);
        final String value = mgr.getProperty(pPomUrl, "maven.proxy.username");
        if (value != null && value.trim().length() == 0)
            return null;
        return value;
    }
View Full Code Here

Examples of org.mevenide.idea.project.properties.PropertiesManager

            return null;
        return value;
    }

    public String getProxyPassword(final String pPomUrl) {
        final PropertiesManager mgr = PropertiesManager.getInstance(project);
        final String value = mgr.getProperty(pPomUrl, "maven.proxy.password");
        if (value != null && value.trim().length() == 0)
            return null;
        return value;
    }
View Full Code Here

Examples of org.mevenide.idea.project.properties.PropertiesManager

        return plugin;
    }

    private VirtualFile getPluginsCacheFile() {
        final PropertiesManager propsMgr = PropertiesManager.getInstance(project);
        final String cacheDir = propsMgr.getProperty(CACHE_DIR_PROPERTY);
        if (cacheDir == null || cacheDir.trim().length() == 0)
            return null;

        final StringBuilder buf = new StringBuilder(100);
        buf.append("file://").append(cacheDir.replace(File.separatorChar, '/'));
View Full Code Here

Examples of org.mevenide.idea.project.properties.PropertiesManager

        return repos.values().toArray(new IRepositoryReader[repos.size()]);
    }

    public IRepositoryReader[] getRemoteRepositoryReaders(final String pPomUrl) {
        final PropertiesManager mgr = PropertiesManager.getInstance(project);
        final String value = mgr.getProperty(pPomUrl, "maven.repo.remote");
        if (value == null || value.trim().length() == 0)
            return EMPTY_REPO_ARRAY;

        final String[] repoList = value.split(",");
        final Set<String> urls = new HashSet<String>(repoList.length);
View Full Code Here

Examples of org.mevenide.idea.project.properties.PropertiesManager

            return null;
        }
    }

    public IRepositoryReader getLocalRepositoryReader(final String pPomUrl) {
        final PropertiesManager mgr = PropertiesManager.getInstance(project);
        final String value = mgr.getProperty(pPomUrl, "maven.repo.local");
        if (value == null || value.trim().length() == 0)
            return null;

        final File root = new File(value);
        return RepositoryReaderFactory.createLocalRepositoryReader(root);
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.