Package org.jitterbit.util.version

Examples of org.jitterbit.util.version.Version


    /**
     * Returns the maximum of {@link #getRequiredVersion()} called on each item in this project.
     */
    @Override
    public Version getRequiredVersion() {
        Version max = VersionFactory.newVersion(0, 0, 0, 0);
        for (IntegrationEntity e : getAllEntities()) {
            Version v = e.getRequiredVersion();
            if (v.isLaterThan(max)) {
                max = v;
            }
        }
        return max;
    }
View Full Code Here


    private LoadSourcePluginIdentifier[] loadImpl(Persistor root) {
        List<LoadSourcePluginIdentifier> plugins = Lists.newArrayList();
        for (Persistor entry : root.getChildren(ENTRY)) {
            try {
                String name = entry.getString(NAME);
                Version version = VersionFactory.fromString(entry.getString(VERSION));
                RelativePosition pos = RelativePosition.valueOf(entry.getString(POSITION));
                plugins.add(new LoadSourcePluginIdentifier(new PluginIdentifier(name, version), pos));
            } catch (Exception ex) {
                // Could happen if the settings file has become corrupt or has been edited by hand
                ErrorLog.log(PluginSettingsStoreImpl.class, "Invalid plugin entry found in the Transformation settings", ex);
View Full Code Here

        return changeDetected;
    }

    private boolean isAffectedVersion(ManagedProject p) {
        try {
            Version createdId = p.getProjectFile().getVersionSavedWith();
            return createdId.getMajorVersion() == 3 && createdId.getMinorVersion() == 6;
        } catch (IllegalVersionException e) {
            e.printStackTrace();
            return false;
        }
    }
View Full Code Here

        ui = createLayout();
        installKeyBindings(ui);
    }

    private VersionBanner createVersionBanner() {
        Version current = BuildProperties.getCurrentVersion();
        if (current == Version.UNKNOWN) {
            return null;
        }
        try {
            String packageName = "org.jitterbit.integration.client.ui.core.main";
            String className = String.format("%s.Version_%d_%d", packageName, current.getMajorVersion(), current.getMinorVersion());
            Class<?> cls = Class.forName(className);
            if (VersionBanner.class.isAssignableFrom(cls)) {
                Object banner = cls.newInstance();
                return VersionBanner.class.cast(banner);
            }
View Full Code Here

        UiProviderDialogDisplayer.display(UiUtils.getActiveFrame(), ui,
                PackageResources.AboutDialog.SESSION_DETAILS_TITLE);
    }

    private void addVersion(OneColumnPanel p) {
        Version current = Versions.CURRENT;
        JLabel versionLabel = addCaptionValuePair(PackageResources.AboutDialog.VERSION, current.toString(), p);
        if (versionBanner != null) {
            versionLabel.addMouseListener(new MouseAdapter() {

                @Override
                public void mouseClicked(MouseEvent evt) {
View Full Code Here

     */
    public static Version fromNumber(long number) throws IllegalVersionException {
        if (number >= TARGET_IMPLEMENTATION_LIMIT) {
            return BuildVersion.fromNumber(number);
        }
        Version v = SimpleVersion.fromNumber(number);
        return new BuildVersion(v.getMajorVersion(), v.getMinorVersion(), v.getPatchLevel(), 0);
    }
View Full Code Here

                }

                @Override
                public String versionString() {
                    try {
                        Version v = ApplicationConfiguration.getVersion("RequiredServerVersion");
                        return v.toString();
                    } catch (IllegalVersionException ex) {
                        ex.printStackTrace();
                        return Versions.CURRENT.toString();
                    }
                }
View Full Code Here

    }

    private void appendClientVersionToDetails(StringBuilder details) {
        details.append(KongaIoUtils.LINE_BREAK).append(KongaIoUtils.LINE_BREAK);
        details.append("Client version: ");
        Version v = Versions.CURRENT;
        if (v == null) {
            details.append("[not available]");
        } else {
            details.append(v);
        }
View Full Code Here

        } else {
            properties.remove(PASSWORD);
        }
        properties.put(USE_HTTPS, Boolean.toString(https));
        properties.put(GUID, serverInfo.getGuid().toString());
        Version version = serverInfo.getVersion();
        if (version == null) {
            properties.put(VERSION, "");
        } else {
            properties.put(VERSION, version.toString());
        }
        properties.put(OS, serverInfo.getPlatform().getOS());
        String date = String.valueOf(System.currentTimeMillis());
        properties.put(LATEST_LOGIN, date);
        String firstLogin = properties.getProperty(FIRST_LOGIN);
View Full Code Here

        label.setBounds(ICON_TEXT_RIGHT_EDGE - labelW, ICON_TEXT_LOWER_EDGE, labelW, labelH);
        return label;
    }

    private JLabel createVersionNumberLabel() {
        Version v = Versions.CURRENT;
        String version = (v != null) ? v.toString() : "[not available]";
        JLabel label = new JLabel(version, JLabel.RIGHT);
        label.setOpaque(true);
        label.setBackground(Color.WHITE);
        label.setForeground(BLUE);
        Font font = label.getFont();
View Full Code Here

TOP

Related Classes of org.jitterbit.util.version.Version

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.