WebdavExtendedResource resource = super.getWebdavExtendedResource();
String clickedPath = (String) WFUtil.invoke("WebDAVListBean", "getClickedFilePath"); WebdavExtendedResource resource = null; try { resource = getIWSlideSession().getWebdavResource(clickedPath); } catch (HttpException e1) { e1.printStackTrace(); } catch (RemoteException e1) { e1.printStackTrace(); } catch (IOException e1) { e1.printStackTrace(); }
	protected void initializeContent() {		Boolean deleted = (Boolean) WFUtil.invoke("webdavdocumentdeleterbean", "getDeleted");		if (deleted == null) {			WebdavExtendedResource resource = super.getWebdavExtendedResource();			String path = resource.getPath();			try {				path = path.replaceFirst(getIWSlideSession().getWebdavServerURI(), "");			}			catch (RemoteException e) {				e.printStackTrace();			}				Table table = new Table();			int row = 1;			table.add(WFUtil.getText(path, "wf_text"), 1, row++);						if (resource.isCollection()) {				table.add(getText("are_you_sure_you_want_to_delete_folder"), 1, row++);			} else {				table.add(getText("are_you_sure_you_want_to_delete_file"), 1, row++);			}						HtmlCommandButton button = new HtmlCommandButton();			button.getAttributes().put(ACTION, ACTION_YES);			button.getAttributes().put(PARAMETER_PATH, resource.getPath());			button.setActionListener(WFUtil.createMethodBinding("#{contentviewerbean.processAction}", new Class[]{ActionEvent.class}));			getBundle().getLocalizedUIComponent("yes", button);			table.setAlignment(1, row, Table.HORIZONTAL_ALIGN_RIGHT);			table.add(button, 1, row);						getChildren().add(table);		} else {			Table table = new Table();			Boolean wasFolder = (Boolean) WFUtil.invoke("webdavdocumentdeleterbean", "getWasFolder");			if (deleted.booleanValue()) {				if (wasFolder.booleanValue()) {					table.add(getText("folder_deleted"));				} else {					table.add(getText("file_deleted"));				}			} else {				table.add(getText("deletion_failed"));			}			getChildren().add(table);			ContentViewer viewer = (ContentViewer) getParent().getParent();			viewer.setRenderFlags(ContentViewer.LIST);		}	}