Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlena Laskavaia2010-04-20 21:40:15 -0400
committerAlena Laskavaia2010-04-20 21:40:15 -0400
commit56c7ec129c598246bb54eb73e19b3ab9b3747c7e (patch)
tree156fcb056ab829966046c6e406b60339a37e7bb6 /codan/org.eclipse.cdt.codan.ui.cxx
parenta7b0ef2fef8ce9e96aae946cb5e6ac46eceb644f (diff)
downloadorg.eclipse.cdt-56c7ec129c598246bb54eb73e19b3ab9b3747c7e.tar.gz
org.eclipse.cdt-56c7ec129c598246bb54eb73e19b3ab9b3747c7e.tar.xz
org.eclipse.cdt-56c7ec129c598246bb54eb73e19b3ab9b3747c7e.zip
- command contribution implemented properly
Diffstat (limited to 'codan/org.eclipse.cdt.codan.ui.cxx')
-rw-r--r--codan/org.eclipse.cdt.codan.ui.cxx/META-INF/MANIFEST.MF8
-rw-r--r--codan/org.eclipse.cdt.codan.ui.cxx/OSGI-INF/l10n/bundle.properties4
-rw-r--r--codan/org.eclipse.cdt.codan.ui.cxx/build.properties3
-rw-r--r--codan/org.eclipse.cdt.codan.ui.cxx/plugin.xml32
4 files changed, 43 insertions, 4 deletions
diff --git a/codan/org.eclipse.cdt.codan.ui.cxx/META-INF/MANIFEST.MF b/codan/org.eclipse.cdt.codan.ui.cxx/META-INF/MANIFEST.MF
index a8a4137c5b..1badca951a 100644
--- a/codan/org.eclipse.cdt.codan.ui.cxx/META-INF/MANIFEST.MF
+++ b/codan/org.eclipse.cdt.codan.ui.cxx/META-INF/MANIFEST.MF
@@ -1,16 +1,18 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
-Bundle-Name: Codan Analysis UI for C/C++
+Bundle-Name: %Bundle-Name
Bundle-SymbolicName: org.eclipse.cdt.codan.ui.cxx;singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-Activator: org.eclipse.cdt.codan.internal.ui.cxx.Activator
-Bundle-Vendor: Eclipse CDT
+Bundle-Vendor: %Bundle-Vendor
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
org.eclipse.cdt.codan.core;bundle-version="1.0.0",
org.eclipse.cdt.codan.core.cxx;bundle-version="1.0.0",
org.eclipse.ui.editors,
org.eclipse.cdt.core,
- org.eclipse.cdt.ui
+ org.eclipse.cdt.ui,
+ org.eclipse.core.resources,
+ org.eclipse.cdt.codan.ui;bundle-version="1.0.0"
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Bundle-ActivationPolicy: lazy
diff --git a/codan/org.eclipse.cdt.codan.ui.cxx/OSGI-INF/l10n/bundle.properties b/codan/org.eclipse.cdt.codan.ui.cxx/OSGI-INF/l10n/bundle.properties
new file mode 100644
index 0000000000..a209d46e40
--- /dev/null
+++ b/codan/org.eclipse.cdt.codan.ui.cxx/OSGI-INF/l10n/bundle.properties
@@ -0,0 +1,4 @@
+#Properties file for org.eclipse.cdt.codan.ui.cxx
+command.name = Run C/C++ Code Analysis
+Bundle-Vendor = Eclipse CDT
+Bundle-Name = Codan Analysis UI for C/C++ \ No newline at end of file
diff --git a/codan/org.eclipse.cdt.codan.ui.cxx/build.properties b/codan/org.eclipse.cdt.codan.ui.cxx/build.properties
index e9863e281e..bbeeaf1577 100644
--- a/codan/org.eclipse.cdt.codan.ui.cxx/build.properties
+++ b/codan/org.eclipse.cdt.codan.ui.cxx/build.properties
@@ -2,4 +2,5 @@ source.. = src/
output.. = bin/
bin.includes = META-INF/,\
.,\
- plugin.xml
+ plugin.xml,\
+ OSGI-INF/l10n/bundle.properties
diff --git a/codan/org.eclipse.cdt.codan.ui.cxx/plugin.xml b/codan/org.eclipse.cdt.codan.ui.cxx/plugin.xml
index ed16e30809..0a1b18e23c 100644
--- a/codan/org.eclipse.cdt.codan.ui.cxx/plugin.xml
+++ b/codan/org.eclipse.cdt.codan.ui.cxx/plugin.xml
@@ -7,5 +7,37 @@
<startup
class="org.eclipse.cdt.codan.internal.ui.cxx.Startup"></startup>
</extension>
+
+ <extension
+ point="org.eclipse.ui.menus">
+ <menuContribution
+ locationURI="popup:org.eclipse.ui.popup.any?after=additions">
+ <command
+ commandId="org.eclipse.cdt.codan.commands.runCodanCommand"
+ id="org.eclipse.cdt.codan.ui.cxx.menus.runCodanCxxCommand"
+ label="%command.name"
+ mnemonic="C">
+ <visibleWhen checkEnabled="false">
+ <iterate ifEmpty="false">
+ <adapt type="org.eclipse.core.resources.IResource">
+ <test property="org.eclipse.core.resources.projectNature" value="org.eclipse.cdt.core.cnature"/>
+ </adapt>
+ </iterate>
+ </visibleWhen>
+ </command>
+ </menuContribution>
+ <!-- <menuContribution
+ locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
+ <toolbar
+ id="org.eclipse.cdt.codan.ui.cxx.toolbars.sampleToolbar">
+ <command
+ commandId="org.eclipse.cdt.codan.ui.cxx.commands.runCodanCxxCommand"
+ icon="icons/sample.gif"
+ id="org.eclipse.cdt.codan.ui.cxx.toolbars.sampleCommand"
+ tooltip="%command.name">
+ </command>
+ </toolbar>
+ </menuContribution> -->
+ </extension>
</plugin>

Back to the top