Package com.skcraft.launcher.model.modpack

Examples of com.skcraft.launcher.model.modpack.Feature


            String fnPattern =
                    separatorsToUnix(getPath(relPath)) +
                    getBaseName(getBaseName(file.getName())) + "*";

            FileInfo info = mapper.readValue(file, FileInfo.class);
            Feature feature = info.getFeature();

            if (feature != null) {
                checkNotNull(emptyToNull(feature.getName()),
                        "Empty component name found in " + file.getAbsolutePath());

                List<String> patterns = new ArrayList<String>();
                patterns.add(fnPattern);
                FnPatternList patternList = new FnPatternList();
View Full Code Here


        installButton.addActionListener(ActionListeners.dispose(this));
    }

    private void updateDescription() {
        Feature feature = features.get(componentsTable.getSelectedRow());

        if (feature != null) {
            descText.setText(feature.getDescription());
        } else {
            descText.setText(_("features.selectForInfo"));
        }
    }
View Full Code Here

    public Object getValueAt(int rowIndex, int columnIndex) {
        switch (columnIndex) {
            case 0:
                return features.get(rowIndex).isSelected();
            case 1:
                Feature feature = features.get(rowIndex);
                return "<html>" + SwingHelper.htmlEscape(feature.getName()) + getAddendum(feature) + "</html>";
            default:
                return null;
        }
    }
View Full Code Here

TOP

Related Classes of com.skcraft.launcher.model.modpack.Feature

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.