addResourceButton = toolkit.createButton(buttonComposite, "Add", SWT.PUSH);
addResourceButton.setLayoutData(gd);
addResourceButton.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
UmlResource newResource = new UmlResource();
try {
((ModelingProjectEditorInput)getEditorInput()).getProject().addResource(newResource);
newResource.setName("newResource");
newResource.setLocation("");
resourcesListSectionPart.markStale();
resourcesListSectionPart.markDirty();
List<IResource> selection = new ArrayList<IResource>();