Bug 33550 [Dialogs] Dialog should support remembering size and position
There are several dialogs that remember its size and position. Since restore the size and considering screen size and font changes isn't trivial JFace's Dialog class should support remembering and restoring size and position. These would realy ease the task for subclasses. May be you can steel the code from OpenTypeSelectionDialog.
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/ResourceListSelectionDialog.java
if (type == IResource.FILE)
                        return false;
                    return true;
                }
            }, IResource.NONE);
        } catch (CoreException e) {
            
        }
    }
    private Image getParentImage(IResource resource) {
        IResource parent = resource.getParent();
        return labelProvider.getImage(parent);
    }
    private String getParentLabel(IResource resource) {
        IResource parent = resource.getParent();
        String text;
        if (parent.getType() == IResource.ROOT) {
            
            text = labelProvider.getText(parent);
        } else {
            text = parent.getFullPath().makeRelative().toString();
        }
        if(text == null)
        	return ""; 
        return text;
    }
    /**
     * Returns whether derived resources should be shown in the list.
     * The default is <code>false</code>.
     *