// Path: si.gos.transpiler.core/src/si/gos/transpiler/core/model/PathEntry.java
// public class PathEntry {
// 
// 	private IResource source;
// 	private IResource destination;
// 	private ConfiguredTranspiler transpiler;
// 	
// 	public PathEntry() {
// 		
// 	}
// 	
// 	public PathEntry(IResource source, IResource destination) {
// 		this.source = source;
// 		this.destination = destination;
// 	}
// 
// 	/**
// 	 * @return the source
// 	 */
// 	public IResource getSource() {
// 		return source;
// 	}
// 
// 	/**
// 	 * @param source the source to set
// 	 */
// 	public void setSource(IResource source) {
// 		this.source = source;
// 	}
// 
// 	/**
// 	 * @return the destination
// 	 */
// 	public IResource getDestination() {
// 		return destination;
// 	}
// 
// 	/**
// 	 * @param destination the destination to set
// 	 */
// 	public void setDestination(IResource destination) {
// 		this.destination = destination;
// 	}
// 
// 	/**
// 	 * @return the transpiler
// 	 */
// 	public ConfiguredTranspiler getConfiguredTranspiler() {
// 		return transpiler;
// 	}
// 
// 	/**
// 	 * @param transpiler the transpiler to set
// 	 */
// 	public void setConfiguredTranspiler(ConfiguredTranspiler transpiler) {
// 		this.transpiler = transpiler;
// 	}
// 	
// 	
// }
// 
// Path: si.gos.transpiler.ui/src/si/gos/transpiler/ui/TranspilerUIPluginImages.java
// public class TranspilerUIPluginImages {
// 
// 	public static ImageDescriptor FOLDER = ResourceManager.getPluginImageDescriptor("org.eclipse.ui.ide", "/icons/full/obj16/folder.gif");
// 	public static ImageDescriptor FILE = ResourceManager.getPluginImageDescriptor("org.eclipse.ui", "/icons/full/obj16/file_obj.gif");
// }
// 
// Path: si.gos.transpiler.ui/src/si/gos/transpiler/ui/internal/filter/TypedViewerFilter.java
// @SuppressWarnings("rawtypes")
// public class TypedViewerFilter extends ViewerFilter {
// 
// 	private Class<?>[] fAcceptedTypes;
// 	private Object[] fRejectedElements;
// 
// 	/**
// 	 * Creates a filter that only allows elements of gives types.
// 	 * @param acceptedTypes The types of accepted elements
// 	 */
// 	public TypedViewerFilter(Class[] acceptedTypes) {
// 		this(acceptedTypes, null);
// 	}
// 
// 	/**
// 	 * Creates a filter that only allows elements of gives types, but not from a
// 	 * list of rejected elements.
// 	 * @param acceptedTypes Accepted elements must be of this types
// 	 * @param rejectedElements Element equals to the rejected elements are
// 	 * filtered out
// 	 */
// 	public TypedViewerFilter(Class[] acceptedTypes, Object[] rejectedElements) {
// 		Assert.isNotNull(acceptedTypes);
// 		fAcceptedTypes= acceptedTypes;
// 		fRejectedElements= rejectedElements;
// 	}
// 
// 	/**
// 	 * @see ViewerFilter#select(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object)
// 	 */
// 	@Override
// 	public boolean select(Viewer viewer, Object parentElement, Object element) {
// 		if (fRejectedElements != null) {
// 			for (int i= 0; i < fRejectedElements.length; i++) {
// 				if (element.equals(fRejectedElements[i])) {
// 					return false;
// 				}
// 			}
// 		}
// 		for (int i= 0; i < fAcceptedTypes.length; i++) {
// 			if (fAcceptedTypes[i].isInstance(element)) {
// 				return true;
// 			}
// 		}
// 		return false;
// 	}
// 
// }


import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IFolder;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.dialogs.ElementTreeSelectionDialog;
import org.eclipse.ui.model.BaseWorkbenchContentProvider;
import org.eclipse.ui.model.WorkbenchLabelProvider;
import si.gos.eclipse.dialogs.ResourceFileSelectionDialog;
import si.gos.transpiler.core.model.PathEntry;
import si.gos.transpiler.ui.TranspilerUIPluginImages;
import si.gos.transpiler.ui.internal.filter.TypedViewerFilter;
package si.gos.transpiler.ui.dialogs;



public class PathDialog extends Dialog {
	private Text source;
	private Text destFile;
	private Text destFolder;

	private Composite destRow;
	private Composite root;

	private IProject project;
	private PathEntry entry;
	
	private Image file = TranspilerUIPluginImages.FILE.createImage();
// Path: si.gos.transpiler.core/src/si/gos/transpiler/core/model/PathEntry.java
// public class PathEntry {
// 
// 	private IResource source;
// 	private IResource destination;
// 	private ConfiguredTranspiler transpiler;
// 	
// 	public PathEntry() {
// 		
// 	}
// 	
// 	public PathEntry(IResource source, IResource destination) {
// 		this.source = source;
// 		this.destination = destination;
// 	}
// 
// 	/**
// 	 * @return the source
// 	 */
// 	public IResource getSource() {
// 		return source;
// 	}
// 
// 	/**
// 	 * @param source the source to set
// 	 */
// 	public void setSource(IResource source) {
// 		this.source = source;
// 	}
// 
// 	/**
// 	 * @return the destination
// 	 */
// 	public IResource getDestination() {
// 		return destination;
// 	}
// 
// 	/**
// 	 * @param destination the destination to set
// 	 */
// 	public void setDestination(IResource destination) {
// 		this.destination = destination;
// 	}
// 
// 	/**
// 	 * @return the transpiler
// 	 */
// 	public ConfiguredTranspiler getConfiguredTranspiler() {
// 		return transpiler;
// 	}
// 
// 	/**
// 	 * @param transpiler the transpiler to set
// 	 */
// 	public void setConfiguredTranspiler(ConfiguredTranspiler transpiler) {
// 		this.transpiler = transpiler;
// 	}
// 	
// 	
// }
// 
// Path: si.gos.transpiler.ui/src/si/gos/transpiler/ui/TranspilerUIPluginImages.java
// public class TranspilerUIPluginImages {
// 
// 	public static ImageDescriptor FOLDER = ResourceManager.getPluginImageDescriptor("org.eclipse.ui.ide", "/icons/full/obj16/folder.gif");
// 	public static ImageDescriptor FILE = ResourceManager.getPluginImageDescriptor("org.eclipse.ui", "/icons/full/obj16/file_obj.gif");
// }
// 
// Path: si.gos.transpiler.ui/src/si/gos/transpiler/ui/internal/filter/TypedViewerFilter.java
// @SuppressWarnings("rawtypes")
// public class TypedViewerFilter extends ViewerFilter {
// 
// 	private Class<?>[] fAcceptedTypes;
// 	private Object[] fRejectedElements;
// 
// 	/**
// 	 * Creates a filter that only allows elements of gives types.
// 	 * @param acceptedTypes The types of accepted elements
// 	 */
// 	public TypedViewerFilter(Class[] acceptedTypes) {
// 		this(acceptedTypes, null);
// 	}
// 
// 	/**
// 	 * Creates a filter that only allows elements of gives types, but not from a
// 	 * list of rejected elements.
// 	 * @param acceptedTypes Accepted elements must be of this types
// 	 * @param rejectedElements Element equals to the rejected elements are
// 	 * filtered out
// 	 */
// 	public TypedViewerFilter(Class[] acceptedTypes, Object[] rejectedElements) {
// 		Assert.isNotNull(acceptedTypes);
// 		fAcceptedTypes= acceptedTypes;
// 		fRejectedElements= rejectedElements;
// 	}
// 
// 	/**
// 	 * @see ViewerFilter#select(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object)
// 	 */
// 	@Override
// 	public boolean select(Viewer viewer, Object parentElement, Object element) {
// 		if (fRejectedElements != null) {
// 			for (int i= 0; i < fRejectedElements.length; i++) {
// 				if (element.equals(fRejectedElements[i])) {
// 					return false;
// 				}
// 			}
// 		}
// 		for (int i= 0; i < fAcceptedTypes.length; i++) {
// 			if (fAcceptedTypes[i].isInstance(element)) {
// 				return true;
// 			}
// 		}
// 		return false;
// 	}
// 
// }


// Path: si.gos.transpiler.ui/src/si/gos/transpiler/ui/dialogs/PathDialog.java
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IFolder;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.dialogs.ElementTreeSelectionDialog;
import org.eclipse.ui.model.BaseWorkbenchContentProvider;
import org.eclipse.ui.model.WorkbenchLabelProvider;
import si.gos.eclipse.dialogs.ResourceFileSelectionDialog;
import si.gos.transpiler.core.model.PathEntry;
import si.gos.transpiler.ui.TranspilerUIPluginImages;
import si.gos.transpiler.ui.internal.filter.TypedViewerFilter;

package si.gos.transpiler.ui.dialogs;



public class PathDialog extends Dialog {
	private Text source;
	private Text destFile;
	private Text destFolder;

	private Composite destRow;
	private Composite root;

	private IProject project;
	private PathEntry entry;
	
	private Image file = TranspilerUIPluginImages.FILE.createImage();
	private Image folder = TranspilerUIPluginImages.FOLDER.createImage();