248917 Plugin id is found by doing a regexp when creating the fragments
diff --git a/babel-setup.sql b/babel-setup.sql
index 1b174d1..4cda814 100644
--- a/babel-setup.sql
+++ b/babel-setup.sql
@@ -41,6 +41,7 @@
 CREATE TABLE `files` (
   `file_id` int(10) unsigned NOT NULL auto_increment,
   `project_id` varchar(100) NOT NULL,
+  `plugin_id` varchar(100) NOT NULL,
   `version` varchar(64) NOT NULL,
   `name` text NOT NULL,
   `is_active` tinyint(3) unsigned NOT NULL default '1',
diff --git a/classes/file/file.class.php b/classes/file/file.class.php
index 60310bb..0d8c90a 100755
--- a/classes/file/file.class.php
+++ b/classes/file/file.class.php
@@ -1,6 +1,6 @@
 <?php
 /*******************************************************************************
- * Copyright (c) 2007 Eclipse Foundation and others.
+ * Copyright (c) 2007,2008 Eclipse Foundation and others.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
  *
  * Contributors:
  *    Eclipse Foundation - initial API and implementation
+ *    Antoine Toulmé - Bug 248917
 *******************************************************************************/
 require(BABEL_BASE_DIR . "classes/string/string.class.php");
 
@@ -19,6 +20,7 @@
   public $version		= '';
   public $name			= '';
   public $is_active 	= 0;
+  public $plugin_id = '';
 
 	
 	function save() {
@@ -44,6 +46,7 @@
 							project_id	= " . $App->returnQuotedString($App->sqlSanitize($this->project_id, $dbh)) . ", 
 							version		= " . $App->returnQuotedString($App->sqlSanitize($this->version, $dbh)) . ", 
 							name		= " . $App->returnQuotedString($App->sqlSanitize($this->name, $dbh)) . ",
+							plugin_id	= " . $App->returnQuotedString($App->sqlSanitize($this->plugin_id, $dbh)) . ",
 							is_active	= 1" . $where;
 			if(mysql_query($sql, $dbh)) {
 				if($this->file_id == 0) {
@@ -158,4 +161,4 @@
 		return $rValue;
 	}
 }
-?>
\ No newline at end of file
+?>
diff --git a/html/process_map_files.php b/html/process_map_files.php
index 2e404ce..07e6a82 100755
--- a/html/process_map_files.php
+++ b/html/process_map_files.php
@@ -8,6 +8,7 @@
  *
  * Contributors:
  *    Eclipse Foundation - Initial API and implementation
+ *    Antoine Toulmé - Bug 248917
 *******************************************************************************/
 header("Content-type: text/plain");
 include("global.php");
@@ -59,12 +60,12 @@
 
 		# plugin@org.eclipse.emf.query=v200802262150,:pserver:anonymous@dev.eclipse.org:/cvsroot/modeling,,org.eclipse.emf/org.eclipse.emf.query/plugins/org.eclipse.emf.query
 		if(preg_match("/^(plugin|fragment)/", $line)) {
-			echo $html_spacer . "Processling line: " . $line . "\n";
+			echo $html_spacer . "Processing line: " . $line . "\n";
 			$aParts = split("=", $line);
 			$aElements = split("@", $aParts[0]);
-
+			$plugin_id = $aElements[1];
 			if($aElements[0] == "plugin") {
-				echo $html_spacer . $html_spacer . "Processling plugin: " . $aParts[1] . "\n";
+				echo $html_spacer . $html_spacer . "Processing plugin: " . $aParts[1] . "\n";
 				$aStuff = parseLocation($aParts[1]);
 				
 				$tagstring = "";
@@ -113,6 +114,7 @@
 						$File->project_id 	= $myrow_maps['project_id'];
 						$File->version		= $myrow_maps['version'];
 						$File->name 		= $file_name;
+						$File->plugin_id	= $plugin_id;
 						if(!$File->save()) {
 							echo $html_spacer . $html_spacer . $html_spacer . $html_spacer . "***ERROR saving file: " . $file_name . "\n";
 						}
@@ -174,4 +176,4 @@
 	return $aTheseElements;
 }
 
-?>
\ No newline at end of file
+?>