Search in sources :

Example 1 with JarEntryEditorInput

use of org.eclipse.jdt.internal.ui.javaeditor.JarEntryEditorInput in project liferay-ide by liferay.

the class Editor method getItemSet.

public ItemSet getItemSet() {
    if (null == this.itemSet) {
        IResource resource = null;
        if (getEditorInput() instanceof IFileEditorInput) {
            resource = ((IFileEditorInput) getEditorInput()).getFile();
        } else if (getEditorInput() instanceof JarEntryEditorInput) {
            resource = null;
        }
        this.itemSet = new ItemSet(getSourceViewer(), resource);
    }
    return this.itemSet;
}
Also used : JarEntryEditorInput(org.eclipse.jdt.internal.ui.javaeditor.JarEntryEditorInput) ItemSet(org.jboss.ide.eclipse.freemarker.model.ItemSet) IFileEditorInput(org.eclipse.ui.IFileEditorInput) IResource(org.eclipse.core.resources.IResource)

Aggregations

IResource (org.eclipse.core.resources.IResource)1 JarEntryEditorInput (org.eclipse.jdt.internal.ui.javaeditor.JarEntryEditorInput)1 IFileEditorInput (org.eclipse.ui.IFileEditorInput)1 ItemSet (org.jboss.ide.eclipse.freemarker.model.ItemSet)1