private void dialogChanged() { IResource container = ResourcesPlugin.getWorkspace().getRoot() .findMember(new Path(getContainerName())); String fileName = getFileName();
void dialogChanged() { IResource container = ResourcesPlugin.getWorkspace().getRoot().findMember(new Path(getContainerName())); String fileName = getFileName();
	private void dialogChanged() {		IResource container = ResourcesPlugin.getWorkspace().getRoot()				.findMember(new Path(getContainerName()));		String fileName = getFileName();		if (getContainerName().length() == 0) {			updateStatus("File container must be specified");			return;		}		if (container == null				|| (container.getType() & (IResource.PROJECT | IResource.FOLDER)) == 0) {			updateStatus("File container must exist");			return;		}		if (!container.isAccessible()) {			updateStatus("Project must be writable");			return;		}		if (fileName.length() == 0) {			updateStatus("File name must be specified");			return;		}		if (fileName.replace('\\', '/').indexOf('/', 1) > 0) {			updateStatus("File name must be valid");			return;		}		int dotLoc = fileName.lastIndexOf('.');		if (dotLoc != -1) {			String ext = fileName.substring(dotLoc + 1);			if (ext.equalsIgnoreCase("eomodeld") == false) {				updateStatus("File extension must be \"eomodeld\"");				return;			}		}		updateStatus(null);	}