<commit_before>package name.abuchen.portfolio.ui;

import name.abuchen.portfolio.model.Client;

import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.PlatformObject;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.IMemento;
import org.eclipse.ui.IPathEditorInput;
import org.eclipse.ui.IPersistableElement;

public class ClientEditorInput extends PlatformObject implements IPathEditorInput, IPersistableElement
{
    private IPath path;
    private Client client;

    public ClientEditorInput(Client client)
    {
        this.client = client;
    }

    public Client getClient()
    {
        return client;
    }

    public ClientEditorInput(IPath path)
    {
        this.path = path;
    }

    @Override
    public boolean exists()
    {
        return path != null && path.toFile().exists();
    }

    @Override
    public ImageDescriptor getImageDescriptor()
    {
        return null;
    }

    @Override
    public String getName()
    {
        return Messages.LabelPortfolioPerformanceFile;
    }

    @Override
    public IPersistableElement getPersistable()
    {
        return path != null ? this : null;
    }

    @Override
    public String getToolTipText()
    {
        return getName();
    }

    @Override
    public IPath getPath()
    {
        return path;
    }
<commit_msg>Show full path to file as tool tip<commit_after>package name.abuchen.portfolio.ui;

import name.abuchen.portfolio.model.Client;

import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.PlatformObject;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.IMemento;
import org.eclipse.ui.IPathEditorInput;
import org.eclipse.ui.IPersistableElement;

public class ClientEditorInput extends PlatformObject implements IPathEditorInput, IPersistableElement
{
    private IPath path;
    private Client client;

    public ClientEditorInput(Client client)
    {
        this.client = client;
    }

    public Client getClient()
    {
        return client;
    }

    public ClientEditorInput(IPath path)
    {
        this.path = path;
    }

    @Override
    public boolean exists()
    {
        return path != null && path.toFile().exists();
    }

    @Override
    public ImageDescriptor getImageDescriptor()
    {
        return null;
    }

    @Override
    public String getName()
    {
        return path != null ? path.toOSString() : Messages.LabelPortfolioPerformanceFile;
    }

    @Override
    public IPersistableElement getPersistable()
    {
        return path != null ? this : null;
    }

    @Override
    public String getToolTipText()
    {
        return getName();
    }

    @Override
    public IPath getPath()
    {
        return path;
    }

{'fraction_non_alphanumeric': 0.08611918604651163, 'fraction_numerical': 0.0, 'mean_word_length': 2.6560424966799467, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5110033', 'n_tokens_mistral': 809, 'n_tokens_neox': 788, 'n_words': 182}