basic capabilties preference page
diff --git a/plugins/org.eclipse.wtp.epp.package.capabilities/.project b/plugins/org.eclipse.wtp.epp.package.capabilities/.project
new file mode 100644
index 0000000..4a82c55
--- /dev/null
+++ b/plugins/org.eclipse.wtp.epp.package.capabilities/.project
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>org.eclipse.wtp.epp.package.capabilities</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.pde.ManifestBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.pde.SchemaBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.pde.PluginNature</nature>
+	</natures>
+</projectDescription>
diff --git a/plugins/org.eclipse.wtp.epp.package.capabilities/META-INF/MANIFEST.MF b/plugins/org.eclipse.wtp.epp.package.capabilities/META-INF/MANIFEST.MF
new file mode 100644
index 0000000..556e58e
--- /dev/null
+++ b/plugins/org.eclipse.wtp.epp.package.capabilities/META-INF/MANIFEST.MF
@@ -0,0 +1,9 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %Bundle-Name
+Bundle-Vendor: %Bundle-Vendor
+Bundle-SymbolicName: org.eclipse.wtp.epp.package.capabilities;singleton:=true
+Bundle-Version: 1.2.0.qualifier
+Bundle-Localization: plugin
+Require-Bundle: org.eclipse.ui.workbench,
+ org.eclipse.help.ui
diff --git a/plugins/org.eclipse.wtp.epp.package.capabilities/about.html b/plugins/org.eclipse.wtp.epp.package.capabilities/about.html
new file mode 100644
index 0000000..d2032df
--- /dev/null
+++ b/plugins/org.eclipse.wtp.epp.package.capabilities/about.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+<title>About</title>
+</head>
+<body lang="EN-US">
+<h2>About This Content</h2>
+ 
+<p>June, 2009</p>	
+<h3>License</h3>
+
+<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;).  Unless otherwise 
+indicated below, the Content is provided to you under the terms and conditions of the
+Eclipse Public License Version 1.0 (&quot;EPL&quot;).  A copy of the EPL is available 
+at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
+For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
+
+<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is 
+being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
+apply to your use of any object code in the Content.  Check the Redistributor's license that was 
+provided with the Content.  If no such license exists, contact the Redistributor.  Unless otherwise
+indicated below, the terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at <a href="http://www.eclipse.org">http://www.eclipse.org</a>.</p>
+
+</body>
+</html>
\ No newline at end of file
diff --git a/plugins/org.eclipse.wtp.epp.package.capabilities/book.css b/plugins/org.eclipse.wtp.epp.package.capabilities/book.css
new file mode 100644
index 0000000..2becc9e
--- /dev/null
+++ b/plugins/org.eclipse.wtp.epp.package.capabilities/book.css
@@ -0,0 +1,116 @@
+P.Code {
+	display: block;
+	text-align: left;
+	text-indent: 0.00pt;
+	margin-top: 0.000000pt;
+	margin-bottom: 0.000000pt;
+	margin-right: 0.000000pt;
+	margin-left: 15pt;
+	font-weight: normal;
+	font-style: normal;
+	color: #4444CC;
+	text-decoration: none;
+	vertical-align: baseline;
+	text-transform: none;
+	font-family: "Courier New", Courier, monospace;
+}
+H6.CaptionFigColumn {
+	display: block;
+	text-align: left;
+	text-indent: 0.000000pt;
+	margin-top: 3.000000pt;
+	margin-bottom: 11.000000pt;
+	margin-right: 0.000000pt;
+	margin-left: 0.000000pt;
+	font-size: 75%;
+	font-weight: bold;
+	font-style: Italic;
+	color: #000000;
+	text-decoration: none;
+	vertical-align: baseline;
+	text-transform: none;
+}
+P.Note {
+	display: block;
+	text-align: left;
+	text-indent: 0pt;
+	margin-top: 19.500000pt;
+	margin-bottom: 19.500000pt;
+	margin-right: 0.000000pt;
+	margin-left: 30pt;
+	font-size: 110%;
+	font-weight: normal;
+	font-style: Italic;
+	color: #000000;
+	text-decoration: none;
+	vertical-align: baseline;
+	text-transform: none;
+}
+EM.UILabel {
+	font-weight: Bold;
+	font-style: normal;
+	text-decoration: none;
+	vertical-align: baseline;
+	text-transform: none;
+}
+EM.CodeName {
+	font-weight: Bold;
+	font-style: normal;
+	text-decoration: none;
+	vertical-align: baseline;
+	text-transform: none;
+	font-family: "Courier New", Courier, monospace;
+}
+UL.NavList {
+	margin-left: 1.5em;
+	padding-left: 0px;
+	list-style-type: none;
+}
+
+body, html { border: 0px }
+
+
+/* following font face declarations need to be removed for DBCS */
+
+body, h1, h2, h3, h4, h5, h6, p, table, td, caption, th, ul, ol, dl, li, dd, dt {font-family: Arial, Helvetica, sans-serif; color: #000000}
+pre, code		{ font-family: "Courier New", Courier, monospace;}
+
+/* end font face declarations */
+
+@media print {
+	html { font-size: 12pt }
+}
+
+body	     { font-size: 83%; background: #FFFFFF; margin-bottom: 1em }
+h1           { font-size: 180%; margin-top: 5px; margin-bottom: 1px }	
+h2           { font-size: 140%; margin-top: 25px; margin-bottom: 3px }
+h3           { font-size: 110%; margin-top: 20px; margin-bottom: 3px }
+h4           { font-size: 100%; margin-top: 20px; margin-bottom: 3px; font-style: italic }
+p            { margin-top: 10px; margin-bottom: 10px }
+pre          { font-size: 93%; margin-left: 6; color: #4444CC }
+code         { font-size: 93%; } 
+table        { font-size: 100% } /* needed for quirks mode */
+a:link	     { color: #0000FF }
+a:hover	     { color: #000080 }
+a:visited    { text-decoration: underline }
+ul	     { margin-top: 10px; margin-bottom: 10px; }
+li	     { margin-top: 5px; margin-bottom: 5px; } 
+li p	     { margin-top: 5px; margin-bottom: 5px; }
+ol	     { margin-top: 10px; margin-bottom: 10px; }
+dl	     { margin-top: 10px; margin-bottom: 10px; }
+dt	     { margin-top: 5px; margin-bottom: 5px; font-weight: bold; }
+dd	     { margin-top: 5px; margin-bottom: 5px; }
+strong	     { font-weight: bold}
+em	     { font-style: italic}
+var	     { font-style: italic}
+div.revision { border-left-style: solid; border-left-width: thin; 
+				   border-left-color: #7B68EE; padding-left:5 }
+th	     { font-weight: bold }
+
+a.command-link {
+}
+a.command-link img {
+	border-width: 0px;
+	border-style: none;
+	vertical-align: middle;
+}
\ No newline at end of file
diff --git a/plugins/org.eclipse.wtp.epp.package.capabilities/build.properties b/plugins/org.eclipse.wtp.epp.package.capabilities/build.properties
new file mode 100644
index 0000000..c3ed7a6
--- /dev/null
+++ b/plugins/org.eclipse.wtp.epp.package.capabilities/build.properties
@@ -0,0 +1,10 @@
+bin.includes = META-INF/,\
+               .,\
+               about.html,\
+               book.css,\
+               build.properties,\
+               disabled_book.css,\
+               narrow_book.css,\
+               macosx_narrow_book.css,\
+               plugin.xml,\
+               plugin.properties
diff --git a/plugins/org.eclipse.wtp.epp.package.capabilities/disabled_book.css b/plugins/org.eclipse.wtp.epp.package.capabilities/disabled_book.css
new file mode 100644
index 0000000..5abd004
--- /dev/null
+++ b/plugins/org.eclipse.wtp.epp.package.capabilities/disabled_book.css
Binary files differ
diff --git a/plugins/org.eclipse.wtp.epp.package.capabilities/macosx_narrow_book.css b/plugins/org.eclipse.wtp.epp.package.capabilities/macosx_narrow_book.css
new file mode 100644
index 0000000..344e5e4
--- /dev/null
+++ b/plugins/org.eclipse.wtp.epp.package.capabilities/macosx_narrow_book.css
@@ -0,0 +1 @@
+h1,h2           { color: Black }
\ No newline at end of file
diff --git a/plugins/org.eclipse.wtp.epp.package.capabilities/narrow_book.css b/plugins/org.eclipse.wtp.epp.package.capabilities/narrow_book.css
new file mode 100644
index 0000000..09a9aa1
--- /dev/null
+++ b/plugins/org.eclipse.wtp.epp.package.capabilities/narrow_book.css
Binary files differ
diff --git a/plugins/org.eclipse.wtp.epp.package.capabilities/plugin.properties b/plugins/org.eclipse.wtp.epp.package.capabilities/plugin.properties
new file mode 100644
index 0000000..850f57c
--- /dev/null
+++ b/plugins/org.eclipse.wtp.epp.package.capabilities/plugin.properties
@@ -0,0 +1,62 @@
+###############################################################################
+# Copyright (c) 2000, 2009 IBM Corporation 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
+# http://www.eclipse.org/legal/epl-v10.html
+# 
+# Contributors:
+#     IBM Corporation - initial API and implementation
+###############################################################################
+Bundle-Name = Eclipse IDE for Java EE Capabilities
+Bundle-Vendor = Eclipse Web Tools Platform
+
+activity.java=Java Development
+activity.java.desc=Develop Java applications.
+activity.plugin=Plug-in Development
+activity.plugin.desc=Develop plug-ins, fragments, and features for Eclipse.
+activity.ant=Ant Development
+activity.ant.desc=Create and use Ant build scripts
+activity.team.cvs=CVS Support
+activity.team.cvs.desc=Use the Concurrent Versions System (CVS) to manage resources.
+activity.team=Core Team Support
+activity.team.desc=Share projects using configuration management systems.
+
+activity.cat.development=Development
+activity.cat.development.desc=Use the Eclipse SDK to develop applications.
+activity.cat.team=Team
+activity.cat.team.desc=Use configuration management systems to manage resources.
+
+PreferencePages.Capabilities = Capabilities
+PreferencePages.Capabilities.activityName = &Capabilities
+PreferencePages.Capabilities.categoryName = &Capabilities
+PreferencePages.Capabilities.activityPromptButton = &Prompt when enabling capabilities
+PreferencePages.Capabilities.activityPromptButtonTooltip = Prompt when a feature is first used that requires enablement of capabilities
+PreferencePages.Capabilities.captionMessage = Capabilities allow you to enable or disable various product components.  These capabilities are grouped according to a set of predefined categories.
+
+helpActivitySupport.showAllMessage = While showing all topics, documentation about disabled capabilities is also shown in the table of contents and search results. Some documents may refer to user interface elements that are not visible. To manually enable capabilities, use the "General -> Capabilities" preference page.
+helpActivitySupport.documentMessage = This topic belongs to a capability that \
+is currently disabled. It may refer to user interface elements that are \
+not visible.<br><br>\
+To manually enable capabilities, use\
+&nbsp;<a href='ACTIVITY_EDITOR'>Capabilities preference page.</a>
+
+TriggerPointAdvisor.proceedMulti = Enable the selected capabilities?
+TriggerPointAdvisor.proceedSingle = Enable the required capability?
+TriggerPointAdvisor.dontAsk = &Always enable capabilities and don't ask me again
+TriggerPointAdvisor.noDetails = Select a capability to view its description.
+
+search.Google.label = Google
+search.Google.desc = Performs a Google web search
+
+search.Eclipse.label = Eclipse.org 
+search.Eclipse.desc = Searches mailing lists, news groups, articles and other documents on Eclipse.org
+
+productIntroTitle = Welcome to Eclipse
+productIntroBrandingText = Eclipse Project
+introDescription-overview = The Eclipse software development kit is the development environment used to develop plug-ins for the Eclipse platform. It provides first-class Java programming tools, and plug-in development tools for building Eclipse-based applications and extensions.
+introDescription-tutorials = Learn how to be productive using Eclipse by completing end-to-end tutorials that will guide you along the way.
+introDescription-samples = Explore Eclipse by installing prefabricated samples (may require an Internet connection).
+
+activity.debug.description = Launch applications, set breakpoints and step through code.
+activity.debug = Debug Support
diff --git a/plugins/org.eclipse.wtp.epp.package.capabilities/plugin.xml b/plugins/org.eclipse.wtp.epp.package.capabilities/plugin.xml
new file mode 100644
index 0000000..8a18f05
--- /dev/null
+++ b/plugins/org.eclipse.wtp.epp.package.capabilities/plugin.xml
@@ -0,0 +1,281 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.0"?>
+<plugin>
+
+    <extension
+         point="org.eclipse.ui.activities">
+  
+      <activity
+            name="%activity.java"
+            description="%activity.java.desc"
+            id="org.eclipse.javaDevelopment">
+      </activity>
+      
+      <activity
+            name="%activity.plugin"
+            description="%activity.plugin.desc"
+            id="org.eclipse.plugInDevelopment">
+      </activity>
+      <activityRequirementBinding
+            activityId="org.eclipse.plugInDevelopment"
+            requiredActivityId="org.eclipse.javaDevelopment">
+      </activityRequirementBinding>
+      <activity
+            description="%activity.debug.description"
+            id="org.eclipse.debugSupport"
+            name="%activity.debug">
+      </activity>
+      
+  
+      <activity
+            name="%activity.team.cvs"
+            description="%activity.team.cvs.desc"
+            id="org.eclipse.team.cvs">
+      </activity> 
+      
+      <activity
+            name="%activity.team"
+            description="%activity.team.desc"
+            id="org.eclipse.team">
+      </activity>
+      
+      <activityRequirementBinding
+            activityId="org.eclipse.team.cvs"
+            requiredActivityId="org.eclipse.team">
+      </activityRequirementBinding>
+      
+      <activityPatternBinding
+            activityId="org.eclipse.javaDevelopment"
+            pattern="org\.eclipse\.jdt\.debug/debugModel">
+      </activityPatternBinding>
+      
+      <activityPatternBinding
+            activityId="org.eclipse.javaDevelopment"
+            pattern="org\.eclipse\.jdt\..*/.*">
+      </activityPatternBinding>
+      
+      <activityPatternBinding
+            activityId="org.eclipse.javaDevelopment"
+            pattern="org\.eclipse\.jdt/.*">
+      </activityPatternBinding>
+      
+      <activityPatternBinding
+            activityId="org.eclipse.javaDevelopment"
+            pattern="org\.eclipse\.jdt\.core/javanature">
+
+      </activityPatternBinding>
+      
+      <activityPatternBinding
+            activityId="org.eclipse.plugInDevelopment"
+            pattern="org\.eclipse\.pde\..*/.*">
+      </activityPatternBinding>
+      
+      <activityPatternBinding
+            activityId="org.eclipse.plugInDevelopment"
+            pattern="org\.eclipse\.pde/.*">
+      </activityPatternBinding>
+      <activityPatternBinding
+            activityId="org.eclipse.debugSupport"
+            pattern="org\.eclipse\.debug\.ui/.*">
+      </activityPatternBinding>
+      
+      <activityPatternBinding
+            activityId="org.eclipse.plugInDevelopment"
+            pattern="org\.eclipse\.pde/PluginNature">
+      </activityPatternBinding>
+      <activityPatternBinding
+            activityId="org.eclipse.team"
+            pattern="org\.eclipse\.team\.ui/org.*">
+      </activityPatternBinding> 
+      <activityPatternBinding
+            activityId="org.eclipse.team"
+            pattern="org\.eclipse\.compare/compareWithPatch">
+      </activityPatternBinding>           
+      <activityPatternBinding
+            activityId="org.eclipse.team.cvs"
+            pattern="org\.eclipse\.team\.cvs\.ui/.*">
+      </activityPatternBinding>
+      <activityPatternBinding
+            activityId="org.eclipse.team.cvs"
+            pattern="org\.eclipse\.team\.cvs\.core/.*cvsnature">
+      </activityPatternBinding>
+      
+      <category
+            name="%activity.cat.development"
+            description="%activity.cat.development.desc"
+            id="org.eclipse.categories.developmentCategory">
+      </category>
+
+ 	  <category
+            name="%activity.cat.team"
+            description="%activity.cat.team.desc"
+            id="org.eclipse.categories.teamCategory">
+
+      </category>
+      
+      <categoryActivityBinding
+            activityId="org.eclipse.javaDevelopment"
+            categoryId="org.eclipse.categories.developmentCategory">
+      </categoryActivityBinding>
+      
+      <categoryActivityBinding
+            activityId="org.eclipse.plugInDevelopment"
+            categoryId="org.eclipse.categories.developmentCategory">
+      </categoryActivityBinding>
+       <categoryActivityBinding
+             activityId="org.eclipse.debugSupport"
+             categoryId="org.eclipse.categories.developmentCategory">
+       </categoryActivityBinding>
+
+      <categoryActivityBinding
+            activityId="org.eclipse.team"
+            categoryId="org.eclipse.categories.teamCategory">
+      </categoryActivityBinding>        
+      
+      <categoryActivityBinding
+            activityId="org.eclipse.team.cvs"
+            categoryId="org.eclipse.categories.teamCategory">
+      </categoryActivityBinding>
+  
+      <!-- bind all elements that start with "org" -->      
+       
+      <defaultEnablement
+            id="org.eclipse.javaDevelopment">
+      </defaultEnablement>
+      
+      <defaultEnablement
+            id="org.eclipse.plugInDevelopment">
+      </defaultEnablement>
+       <defaultEnablement
+             id="org.eclipse.debugSupport">
+       </defaultEnablement>
+      
+      <defaultEnablement
+            id="org.eclipse.team">
+      </defaultEnablement>     
+      
+      <defaultEnablement
+            id="org.eclipse.team.cvs">
+      </defaultEnablement>
+       <activity
+             description="%activity.ant.desc"
+             id="org.eclipse.antDevelopment"
+             name="%activity.ant">
+       </activity>
+       <activityPatternBinding
+             activityId="org.eclipse.antDevelopment"
+             pattern="org\.eclipse\.ant\.ui/.*">
+       </activityPatternBinding>
+       <activityPatternBinding
+             activityId="org.eclipse.antDevelopment"
+             pattern="org\.eclipse\.ui\.externaltools/.*">
+       </activityPatternBinding>
+       <categoryActivityBinding
+             activityId="org.eclipse.antDevelopment"
+             categoryId="org.eclipse.categories.developmentCategory">
+       </categoryActivityBinding>
+       <defaultEnablement
+             id="org.eclipse.antDevelopment">
+       </defaultEnablement>
+   </extension>
+   
+   <extension
+         point="org.eclipse.ui.newWizards">
+      <primaryWizard
+            id="org.eclipse.jdt.ui.wizards.JavaProjectWizard">
+      </primaryWizard>
+      <primaryWizard
+            id="org.eclipse.pde.ui.NewProjectWizard">
+      </primaryWizard>
+      <primaryWizard
+            id="org.eclipse.jdt.ui.wizards.NewClassCreationWizard">
+      </primaryWizard>
+      <primaryWizard
+            id="org.eclipse.jdt.ui.wizards.NewInterfaceCreationWizard">
+      </primaryWizard>
+      <primaryWizard
+            id="org.eclipse.ant.ui.wizards.JavaProjectWizard">
+      </primaryWizard>
+   </extension>
+   <extension
+         point="org.eclipse.ui.preferencePages">
+	  <page            
+            category="org.eclipse.ui.preferencePages.Workbench"
+            name="%PreferencePages.Capabilities"
+            id="org.eclipse.epp.package.capabilities">
+            <class class="org.eclipse.ui.activities.ActivityCategoryPreferencePage">
+                <parameter name="allowAdvanced" value="true"/>
+                <parameter name="captionMessage" value="%PreferencePages.Capabilities.captionMessage" />
+            	<parameter name="activityName" value="%PreferencePages.Capabilities.activityName" />
+                <parameter name="categoryName" value="%PreferencePages.Capabilities.categoryName" />
+            	<parameter name="activityPromptButton" value="%PreferencePages.Capabilities.activityPromptButton"/>
+            	<parameter name="activityPromptButtonTooltip" value="%PreferencePages.Capabilities.activityPromptButtonTooltip"/>
+            </class>
+      </page>   
+   </extension>
+   
+   <extension
+   		point="org.eclipse.help.base.activitySupport">
+      <support productId="org.eclipse.epp.package.jee.product">
+         <showAllMessage>
+            %helpActivitySupport.showAllMessage
+         </showAllMessage>
+         <documentMessage
+               class="org.eclipse.help.ui.internal.ShowCapabilitiesPreferenceAction"
+               pluginId="org.eclipse.help.ui">
+            %helpActivitySupport.documentMessage
+         </documentMessage>
+      </support>
+   </extension>
+   
+      <extension
+            point="org.eclipse.ui.activitySupport">
+      <triggerPointAdvisor
+            id="org.eclipse.ui.ide.triggerPointAdvisor">
+            <class class="org.eclipse.ui.activities.WorkbenchTriggerPointAdvisor">
+            	<parameter name="proceedMulti" value="%TriggerPointAdvisor.proceedMulti" />
+            	<parameter name="proceedSingle" value="%TriggerPointAdvisor.proceedSingle" />
+            	<parameter name="dontAsk" value="%TriggerPointAdvisor.dontAsk" />
+            	<parameter name="noDetails" value="%TriggerPointAdvisor.noDetails" />
+            </class>
+      </triggerPointAdvisor>
+   </extension>   
+   
+   <extension
+         point="org.eclipse.ui.activitySupport">
+      <triggerPointAdvisorProductBinding
+            productId="org.eclipse.epp.package.jee.product"
+            triggerPointAdvisorId="org.eclipse.ui.ide.triggerPointAdvisor"/>
+   </extension>
+   
+   <extension
+         point="org.eclipse.help.ui.searchEngine">
+      <engine
+            enabled="true"
+            engineTypeId="org.eclipse.help.ui.web"
+            id="org.eclipse.sdk.Google"
+            label="%search.Google.label">
+      		<description>
+	      		%search.Google.desc
+      		</description>
+      		<param 
+      			name="url" 
+      			value="http://www.google.com/search?hl=en&amp;q={expression}&amp;btnG=Google+Search&amp;meta=">
+      		</param>
+      </engine>
+      <engine
+            enabled="true"
+            engineTypeId="org.eclipse.help.ui.web"
+            id="org.eclipse.sdk.Eclipse"
+            label="%search.Eclipse.label">
+      		<description>
+	      		%search.Eclipse.desc
+      		</description>
+      		<param 
+      			name="url" 
+      			value="http://eclipse.org/search/search.cgi?q={expression}&amp;ul=&amp;ps=20&amp;m=all">
+      		</param>
+      </engine>
+    </extension>
+
+</plugin>