mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-09 01:05:38 +02:00
Bug #181025: group context menu items
Bug #181023: C/C++ property pages are grouped
This commit is contained in:
parent
7131918a4a
commit
6e8d740215
5 changed files with 138 additions and 14 deletions
|
@ -50,11 +50,14 @@ BuildSelectedFiles.tooltip=Rebuilds the selected file(s)
|
||||||
CleanSelectedFiles.tooltip=Cleans the output file(s) for the selected file(s)
|
CleanSelectedFiles.tooltip=Cleans the output file(s) for the selected file(s)
|
||||||
|
|
||||||
## New CDT project model - property pages names
|
## New CDT project model - property pages names
|
||||||
CDTPathSymbolsProperty.name=C/C++ Project paths and symbols
|
page.c.build=C/C++ Build
|
||||||
CDTExpPathSymbolsProperty.name=C/C++ Export settings
|
CDTPathSymbolsProperty.name=Paths and symbols
|
||||||
CDTBuildProperty.name=C/C++ Build settings
|
CDTExpPathSymbolsProperty.name=Export settings
|
||||||
CDTToolchainProperty.name=C/C++ Tool chain editor
|
CDTBuildProperty.name=Settings
|
||||||
CDTVariablesProperty.name=C/C++ Build variables
|
CDTToolchainProperty.name=Tool chain editor
|
||||||
|
CDTVariablesProperty.name=Variables
|
||||||
|
Discovery.options=Discovery options
|
||||||
|
Environment=Environment
|
||||||
|
|
||||||
BuildCfgMenu.label=Build configurations
|
BuildCfgMenu.label=Build configurations
|
||||||
|
|
||||||
|
@ -73,7 +76,6 @@ CPPproject=C++ project
|
||||||
CPPproject.desc=Create a new C++ project
|
CPPproject.desc=Create a new C++ project
|
||||||
Cproject=C project
|
Cproject=C project
|
||||||
Cproject.desc=Create a new C project
|
Cproject.desc=Create a new C project
|
||||||
Discovery.options=Discovery options
|
|
||||||
Tool.settings=Tool settings
|
Tool.settings=Tool settings
|
||||||
Build.steps=Build steps
|
Build.steps=Build steps
|
||||||
Build.artifact=Build artifact
|
Build.artifact=Build artifact
|
||||||
|
@ -85,7 +87,6 @@ Library.paths=Library paths
|
||||||
References=References
|
References=References
|
||||||
Source.location=Source location
|
Source.location=Source location
|
||||||
Output.location=Output location
|
Output.location=Output location
|
||||||
Environment=Environment
|
|
||||||
Binary.parsers=Binary parsers
|
Binary.parsers=Binary parsers
|
||||||
Error.parsers=Error parsers
|
Error.parsers=Error parsers
|
||||||
Data.hierarchy=Data hierarchy
|
Data.hierarchy=Data hierarchy
|
||||||
|
|
|
@ -142,7 +142,7 @@
|
||||||
enablesFor="+"
|
enablesFor="+"
|
||||||
id="org.eclipse.cdt.managedbuilder.ui.buildAllAction1"
|
id="org.eclipse.cdt.managedbuilder.ui.buildAllAction1"
|
||||||
label="%BuildCfgMenu.label"
|
label="%BuildCfgMenu.label"
|
||||||
menubarPath="buildGroup"
|
menubarPath="org.eclipse.cdt.ui.cfgmenu/gm1"
|
||||||
style="pulldown"/>
|
style="pulldown"/>
|
||||||
</objectContribution>
|
</objectContribution>
|
||||||
<objectContribution
|
<objectContribution
|
||||||
|
@ -255,9 +255,9 @@
|
||||||
<tab
|
<tab
|
||||||
class="org.eclipse.cdt.managedbuilder.ui.properties.DiscoveryTab"
|
class="org.eclipse.cdt.managedbuilder.ui.properties.DiscoveryTab"
|
||||||
icon="icons/elcl16/discovery.gif"
|
icon="icons/elcl16/discovery.gif"
|
||||||
name="%Discovery.options"
|
name="(Single) Discovery.options"
|
||||||
weight="005"
|
weight="005"
|
||||||
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_PathAndSymb"/>
|
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_Discovery"/>
|
||||||
<tab
|
<tab
|
||||||
class="org.eclipse.cdt.managedbuilder.ui.properties.ToolSettingsTab"
|
class="org.eclipse.cdt.managedbuilder.ui.properties.ToolSettingsTab"
|
||||||
icon="icons/elcl16/config-tool.gif"
|
icon="icons/elcl16/config-tool.gif"
|
||||||
|
@ -280,7 +280,7 @@
|
||||||
class="org.eclipse.cdt.managedbuilder.ui.properties.BuilderSettingsTab"
|
class="org.eclipse.cdt.managedbuilder.ui.properties.BuilderSettingsTab"
|
||||||
icon="icons/obj16/build_settings.gif"
|
icon="icons/obj16/build_settings.gif"
|
||||||
name="%Builder.settings"
|
name="%Builder.settings"
|
||||||
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_BuildSettings"
|
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_head_build"
|
||||||
weight="004"/>
|
weight="004"/>
|
||||||
<tab
|
<tab
|
||||||
class="org.eclipse.cdt.managedbuilder.ui.properties.CPropertyVarsTab"
|
class="org.eclipse.cdt.managedbuilder.ui.properties.CPropertyVarsTab"
|
||||||
|
@ -346,9 +346,9 @@
|
||||||
<tab
|
<tab
|
||||||
class="org.eclipse.cdt.ui.newui.EnvironmentTab"
|
class="org.eclipse.cdt.ui.newui.EnvironmentTab"
|
||||||
icon="icons/obj16/environment.gif"
|
icon="icons/obj16/environment.gif"
|
||||||
name="%Environment"
|
name="(Single) Environment"
|
||||||
weight="005"
|
weight="005"
|
||||||
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_BuildSettings"/>
|
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_Environment"/>
|
||||||
<tab
|
<tab
|
||||||
class="org.eclipse.cdt.ui.newui.BinaryParsTab"
|
class="org.eclipse.cdt.ui.newui.BinaryParsTab"
|
||||||
icon="icons/obj16/bin_obj.gif"
|
icon="icons/obj16/bin_obj.gif"
|
||||||
|
@ -503,9 +503,38 @@
|
||||||
|
|
||||||
<extension
|
<extension
|
||||||
point="org.eclipse.ui.propertyPages">
|
point="org.eclipse.ui.propertyPages">
|
||||||
|
<page
|
||||||
|
class="org.eclipse.cdt.managedbuilder.ui.properties.Page_head_build"
|
||||||
|
id="org.eclipse.cdt.managedbuilder.ui.properties.Page_head_build"
|
||||||
|
name="%page.c.build"
|
||||||
|
>
|
||||||
|
<filter
|
||||||
|
name="projectNature"
|
||||||
|
value="org.eclipse.cdt.managedbuilder.core.managedBuildNature">
|
||||||
|
</filter>
|
||||||
|
<enabledWhen>
|
||||||
|
<or>
|
||||||
|
<instanceof value="org.eclipse.core.resources.IProject"/>
|
||||||
|
<instanceof value="org.eclipse.cdt.core.model.ICProject"/>
|
||||||
|
|
||||||
|
<instanceof value="org.eclipse.core.resources.IFolder"/>
|
||||||
|
<instanceof value="org.eclipse.cdt.core.model.ICContainer"/>
|
||||||
|
|
||||||
|
<and>
|
||||||
|
<instanceof value="org.eclipse.core.resources.IFile"/>
|
||||||
|
<test property="org.eclipse.cdt.ui.isSource" value="" />
|
||||||
|
</and>
|
||||||
|
<and>
|
||||||
|
<instanceof value="org.eclipse.cdt.core.model.ITranslationUnit"/>
|
||||||
|
<test property="org.eclipse.cdt.ui.isSource" value="" />
|
||||||
|
</and>
|
||||||
|
</or>
|
||||||
|
</enabledWhen>
|
||||||
|
</page>
|
||||||
<page
|
<page
|
||||||
class="org.eclipse.cdt.managedbuilder.ui.properties.Page_Variables"
|
class="org.eclipse.cdt.managedbuilder.ui.properties.Page_Variables"
|
||||||
id="org.eclipse.cdt.managedbuilder.ui.properties.Page_Variables"
|
id="org.eclipse.cdt.managedbuilder.ui.properties.Page_Variables"
|
||||||
|
category="org.eclipse.cdt.managedbuilder.ui.properties.Page_head_build"
|
||||||
name="%CDTVariablesProperty.name"
|
name="%CDTVariablesProperty.name"
|
||||||
>
|
>
|
||||||
<filter
|
<filter
|
||||||
|
@ -523,6 +552,7 @@
|
||||||
<page
|
<page
|
||||||
class="org.eclipse.cdt.managedbuilder.ui.properties.Page_PathAndSymb"
|
class="org.eclipse.cdt.managedbuilder.ui.properties.Page_PathAndSymb"
|
||||||
id="org.eclipse.cdt.managedbuilder.ui.properties.Page_PathAndSymb"
|
id="org.eclipse.cdt.managedbuilder.ui.properties.Page_PathAndSymb"
|
||||||
|
category="org.eclipse.cdt.ui.newui.Page_head_general"
|
||||||
name="%CDTPathSymbolsProperty.name"
|
name="%CDTPathSymbolsProperty.name"
|
||||||
>
|
>
|
||||||
<filter
|
<filter
|
||||||
|
@ -553,6 +583,7 @@
|
||||||
<!--page
|
<!--page
|
||||||
class="org.eclipse.cdt.ui.newui.Page_ExpPathAndSymb"
|
class="org.eclipse.cdt.ui.newui.Page_ExpPathAndSymb"
|
||||||
id="org.eclipse.cdt.ui.newui.Page_ExpPathAndSymb"
|
id="org.eclipse.cdt.ui.newui.Page_ExpPathAndSymb"
|
||||||
|
category="org.eclipse.cdt.ui.newui.Page_head_general"
|
||||||
name="%CDTExpPathSymbolsProperty.name"
|
name="%CDTExpPathSymbolsProperty.name"
|
||||||
>
|
>
|
||||||
<filter
|
<filter
|
||||||
|
@ -570,6 +601,7 @@
|
||||||
<page
|
<page
|
||||||
class="org.eclipse.cdt.managedbuilder.ui.properties.Page_BuildSettings"
|
class="org.eclipse.cdt.managedbuilder.ui.properties.Page_BuildSettings"
|
||||||
id="org.eclipse.cdt.managedbuilder.ui.properties.Page_BuildSettings"
|
id="org.eclipse.cdt.managedbuilder.ui.properties.Page_BuildSettings"
|
||||||
|
category="org.eclipse.cdt.managedbuilder.ui.properties.Page_head_build"
|
||||||
name="%CDTBuildProperty.name"
|
name="%CDTBuildProperty.name"
|
||||||
>
|
>
|
||||||
<filter
|
<filter
|
||||||
|
@ -598,6 +630,7 @@
|
||||||
<page
|
<page
|
||||||
class="org.eclipse.cdt.managedbuilder.ui.properties.Page_ToolChain"
|
class="org.eclipse.cdt.managedbuilder.ui.properties.Page_ToolChain"
|
||||||
id="org.eclipse.cdt.managedbuilder.ui.properties.Page_ToolChain"
|
id="org.eclipse.cdt.managedbuilder.ui.properties.Page_ToolChain"
|
||||||
|
category="org.eclipse.cdt.managedbuilder.ui.properties.Page_head_build"
|
||||||
name="%CDTToolchainProperty.name"
|
name="%CDTToolchainProperty.name"
|
||||||
>
|
>
|
||||||
<filter
|
<filter
|
||||||
|
@ -626,6 +659,72 @@
|
||||||
</and>
|
</and>
|
||||||
</enabledWhen>
|
</enabledWhen>
|
||||||
</page>
|
</page>
|
||||||
|
|
||||||
|
<page
|
||||||
|
class="org.eclipse.cdt.managedbuilder.ui.properties.Page_Discovery"
|
||||||
|
id="org.eclipse.cdt.managedbuilder.ui.properties.Page_Discovery"
|
||||||
|
category="org.eclipse.cdt.managedbuilder.ui.properties.Page_head_build"
|
||||||
|
name="%Discovery.options"
|
||||||
|
>
|
||||||
|
<filter
|
||||||
|
name="projectNature"
|
||||||
|
value="org.eclipse.cdt.managedbuilder.core.managedBuildNature">
|
||||||
|
</filter>
|
||||||
|
<enabledWhen>
|
||||||
|
<and>
|
||||||
|
<or>
|
||||||
|
<instanceof value="org.eclipse.core.resources.IProject"/>
|
||||||
|
<instanceof value="org.eclipse.cdt.core.model.ICProject"/>
|
||||||
|
|
||||||
|
<instanceof value="org.eclipse.core.resources.IFolder"/>
|
||||||
|
<instanceof value="org.eclipse.cdt.core.model.ICContainer"/>
|
||||||
|
|
||||||
|
<and>
|
||||||
|
<instanceof value="org.eclipse.core.resources.IFile"/>
|
||||||
|
<test property="org.eclipse.cdt.ui.isSource" value="" />
|
||||||
|
</and>
|
||||||
|
<and>
|
||||||
|
<instanceof value="org.eclipse.cdt.core.model.ITranslationUnit"/>
|
||||||
|
<test property="org.eclipse.cdt.ui.isSource" value="" />
|
||||||
|
</and>
|
||||||
|
</or>
|
||||||
|
<test property="org.eclipse.cdt.ui.toolEditEnabled" value="" />
|
||||||
|
</and>
|
||||||
|
</enabledWhen>
|
||||||
|
</page>
|
||||||
|
<page
|
||||||
|
class="org.eclipse.cdt.managedbuilder.ui.properties.Page_Environment"
|
||||||
|
id="org.eclipse.cdt.managedbuilder.ui.properties.Page_Environment"
|
||||||
|
category="org.eclipse.cdt.managedbuilder.ui.properties.Page_head_build"
|
||||||
|
name="%Environment"
|
||||||
|
>
|
||||||
|
<filter
|
||||||
|
name="projectNature"
|
||||||
|
value="org.eclipse.cdt.managedbuilder.core.managedBuildNature">
|
||||||
|
</filter>
|
||||||
|
<enabledWhen>
|
||||||
|
<and>
|
||||||
|
<or>
|
||||||
|
<instanceof value="org.eclipse.core.resources.IProject"/>
|
||||||
|
<instanceof value="org.eclipse.cdt.core.model.ICProject"/>
|
||||||
|
|
||||||
|
<instanceof value="org.eclipse.core.resources.IFolder"/>
|
||||||
|
<instanceof value="org.eclipse.cdt.core.model.ICContainer"/>
|
||||||
|
|
||||||
|
<and>
|
||||||
|
<instanceof value="org.eclipse.core.resources.IFile"/>
|
||||||
|
<test property="org.eclipse.cdt.ui.isSource" value="" />
|
||||||
|
</and>
|
||||||
|
<and>
|
||||||
|
<instanceof value="org.eclipse.cdt.core.model.ITranslationUnit"/>
|
||||||
|
<test property="org.eclipse.cdt.ui.isSource" value="" />
|
||||||
|
</and>
|
||||||
|
</or>
|
||||||
|
<test property="org.eclipse.cdt.ui.toolEditEnabled" value="" />
|
||||||
|
</and>
|
||||||
|
</enabledWhen>
|
||||||
|
</page>
|
||||||
|
|
||||||
</extension>
|
</extension>
|
||||||
|
|
||||||
<extension
|
<extension
|
||||||
|
|
|
@ -12,6 +12,6 @@ package org.eclipse.cdt.managedbuilder.ui.properties;
|
||||||
|
|
||||||
import org.eclipse.cdt.ui.newui.AbstractPage;
|
import org.eclipse.cdt.ui.newui.AbstractPage;
|
||||||
|
|
||||||
public class Page_Languages extends AbstractPage {
|
public class Page_Discovery extends AbstractPage {
|
||||||
protected boolean isSingle() { return true; }
|
protected boolean isSingle() { return true; }
|
||||||
}
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2007 Intel 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:
|
||||||
|
* Intel Corporation - initial API and implementation
|
||||||
|
*******************************************************************************/
|
||||||
|
package org.eclipse.cdt.managedbuilder.ui.properties;
|
||||||
|
|
||||||
|
import org.eclipse.cdt.ui.newui.AbstractPage;
|
||||||
|
|
||||||
|
public class Page_Environment extends AbstractPage {
|
||||||
|
protected boolean isSingle() { return true; }
|
||||||
|
}
|
|
@ -0,0 +1,7 @@
|
||||||
|
package org.eclipse.cdt.managedbuilder.ui.properties;
|
||||||
|
|
||||||
|
import org.eclipse.cdt.ui.newui.AbstractPage;
|
||||||
|
|
||||||
|
public class Page_head_build extends AbstractPage {
|
||||||
|
protected boolean isSingle() { return true; }
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue