private void pathTextEnterPressed() {
        clearOldData();

        //Processing string from text field
        String source = pathText.getText();
        text.append(String.format("Processing: %s.%s", source, newline));

        if (source.contains("http://") || source.contains("http://"))
        {
            //It's URL
            url = source;
            text.append(String.format("URL: %s selected.%s", url, newline));
            //verification of URL during PROCESSING state
            this.setStatePrepared();
        }
        else
        {
            //It's file
            currentFile = new File(source);
            if (currentFile.exists())
            {
                text.append(String.format("Opening file: %s.%s", currentFile.getAbsolutePath(), newline));
                this.setStatePrepared();
            }
            else
            {
                text.append(String.format("File %s doesn't exist.%s", source, newline));
                currentFile = null;
                this.setStateInitial();
            }
        }
    }