Search in sources :

Example 1 with CreaterepoResourceChangeListener

use of org.eclipse.linuxtools.internal.rpm.createrepo.listener.CreaterepoResourceChangeListener in project linuxtools by eclipse.

the class RepoFormEditor method init.

@Override
public void init(IEditorSite site, IEditorInput input) throws PartInitException {
    super.init(site, input);
    IFile file = ResourceUtil.getFile(input);
    setPartName(file.getName());
    try {
        project = new CreaterepoProject(file.getProject(), file);
    } catch (CoreException e) {
        Activator.logError(Messages.RepoFormEditor_errorInitializingProject, e);
    }
    resourceChangeListener = new CreaterepoResourceChangeListener(project);
    ResourcesPlugin.getWorkspace().addResourceChangeListener(resourceChangeListener);
}
Also used : IFile(org.eclipse.core.resources.IFile) CreaterepoResourceChangeListener(org.eclipse.linuxtools.internal.rpm.createrepo.listener.CreaterepoResourceChangeListener) CoreException(org.eclipse.core.runtime.CoreException) CreaterepoProject(org.eclipse.linuxtools.internal.rpm.createrepo.CreaterepoProject)

Aggregations

IFile (org.eclipse.core.resources.IFile)1 CoreException (org.eclipse.core.runtime.CoreException)1 CreaterepoProject (org.eclipse.linuxtools.internal.rpm.createrepo.CreaterepoProject)1 CreaterepoResourceChangeListener (org.eclipse.linuxtools.internal.rpm.createrepo.listener.CreaterepoResourceChangeListener)1