mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 02:36:01 +02:00
remove the contribution for Header. doing this makes all c files
have the header icon.
This commit is contained in:
parent
0f6d907a5c
commit
ca7982b5b8
3 changed files with 27 additions and 19 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2004-04-14 Alain Magloire
|
||||||
|
|
||||||
|
Remove the contribution for header doing this will force
|
||||||
|
all C files to have the header icon. Added icon for assembly files.
|
||||||
|
|
||||||
|
* src/org/eclipse/cdt/internal/ui/CElementImageProvider.java
|
||||||
|
* plugin.xml
|
||||||
|
|
||||||
2004-04-14 Andrew Niefer
|
2004-04-14 Andrew Niefer
|
||||||
updated src/org/eclipse/cdt/internal/ui/compare/SourceElementRequestorAdapter with acceptFriendDeclaration
|
updated src/org/eclipse/cdt/internal/ui/compare/SourceElementRequestorAdapter with acceptFriendDeclaration
|
||||||
|
|
||||||
|
|
|
@ -198,31 +198,14 @@
|
||||||
name="%CEditor.name"
|
name="%CEditor.name"
|
||||||
default="true"
|
default="true"
|
||||||
icon="icons/full/obj16/c_file_obj.gif"
|
icon="icons/full/obj16/c_file_obj.gif"
|
||||||
extensions="c, cc, cpp, cxx"
|
extensions="c, cc, cpp, cxx, h, hh, hpp"
|
||||||
contributorClass="org.eclipse.cdt.internal.ui.editor.CEditorActionContributor"
|
contributorClass="org.eclipse.cdt.internal.ui.editor.CEditorActionContributor"
|
||||||
class="org.eclipse.cdt.internal.ui.editor.CEditor"
|
class="org.eclipse.cdt.internal.ui.editor.CEditor"
|
||||||
id="org.eclipse.cdt.ui.editor.CEditor">
|
id="org.eclipse.cdt.ui.editor.CEditor">
|
||||||
</editor>
|
</editor>
|
||||||
<editor
|
|
||||||
name="%CEditor.name"
|
|
||||||
default="true"
|
|
||||||
icon="icons/full/obj16/h_file_obj.gif"
|
|
||||||
extensions="h, hh, hpp"
|
|
||||||
contributorClass="org.eclipse.cdt.internal.ui.editor.CEditorActionContributor"
|
|
||||||
class="org.eclipse.cdt.internal.ui.editor.CEditor"
|
|
||||||
id="org.eclipse.cdt.ui.editor.CEditor">
|
|
||||||
</editor>
|
|
||||||
<editor
|
|
||||||
name="%Editors.DefaultTextEditor"
|
|
||||||
icon="icons/full/obj16/file_obj.gif"
|
|
||||||
extensions="mk"
|
|
||||||
contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor"
|
|
||||||
class="org.eclipse.ui.editors.text.TextEditor"
|
|
||||||
id="org.eclipse.ui.DefaultTextEditor">
|
|
||||||
</editor>
|
|
||||||
<editor
|
<editor
|
||||||
name="%AsmEditor.name"
|
name="%AsmEditor.name"
|
||||||
icon="icons/full/obj16/c_file_obj.gif"
|
icon="icons/full/obj16/s_file_obj.gif"
|
||||||
extensions="s"
|
extensions="s"
|
||||||
class="org.eclipse.cdt.internal.ui.editor.asm.AsmTextEditor"
|
class="org.eclipse.cdt.internal.ui.editor.asm.AsmTextEditor"
|
||||||
id="org.eclipse.cdt.ui.editor.asm.AsmEditor">
|
id="org.eclipse.cdt.ui.editor.asm.AsmEditor">
|
||||||
|
@ -644,6 +627,17 @@
|
||||||
value="org.eclipse.cdt.core.cnature">
|
value="org.eclipse.cdt.core.cnature">
|
||||||
</filter>
|
</filter>
|
||||||
</page>
|
</page>
|
||||||
|
<page
|
||||||
|
objectClass="org.eclipse.core.resources.IProject"
|
||||||
|
adaptable="true"
|
||||||
|
name="C/C++ Include Paths & Symbols"
|
||||||
|
class="org.eclipse.cdt.internal.ui.dialogs.cpaths.IncludesSymbolsPropertyPage"
|
||||||
|
id="org.eclipse.cdt.internal.ui.dialogs.cpath.IncludeSymbolsPropertyPage">
|
||||||
|
<filter
|
||||||
|
name="nature"
|
||||||
|
value="org.eclipse.cdt.core.cnature">
|
||||||
|
</filter>
|
||||||
|
</page>
|
||||||
</extension>
|
</extension>
|
||||||
-->
|
-->
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
|
@ -288,6 +288,12 @@ public class CElementImageProvider {
|
||||||
return CPluginImages.DESC_OBJS_TUNIT_HEADER;
|
return CPluginImages.DESC_OBJS_TUNIT_HEADER;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
exts = CoreModel.getDefault().getAssemblyExtensions();
|
||||||
|
for (int i = 0; i < exts.length; i++) {
|
||||||
|
if (exts[i].equalsIgnoreCase(ext)) {
|
||||||
|
return CPluginImages.DESC_OBJS_TUNIT_ASM;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return CPluginImages.DESC_OBJS_TUNIT;
|
return CPluginImages.DESC_OBJS_TUNIT;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue