mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
New Header icon from Mirza Hadzic.
This commit is contained in:
parent
3e715ec551
commit
3241b09765
5 changed files with 31 additions and 1 deletions
|
@ -1,3 +1,12 @@
|
|||
2003-12-15 Alain Magloire
|
||||
|
||||
Header icon provide by Mirza Hadzic PR 26486. Thanks.
|
||||
|
||||
* icons/full/obj16/h_file_obj.gif
|
||||
* src/org/eclipse/cdt/internal/ui/CElementImagerProvider.java
|
||||
* src/org/eclipse/cdt/internal/ui/CPluginImages.java
|
||||
* plugin.xml
|
||||
|
||||
2003-12-15 Hoda Amer
|
||||
Fixed [Bug 47234] new ParserMode required for a better CModel :
|
||||
- Added a user preference to build the CModel using Structural mode
|
||||
|
|
BIN
core/org.eclipse.cdt.ui/icons/full/obj16/h_file_obj.gif
Normal file
BIN
core/org.eclipse.cdt.ui/icons/full/obj16/h_file_obj.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 900 B |
|
@ -167,12 +167,21 @@
|
|||
<editor
|
||||
default="true"
|
||||
name="%CEditor.name"
|
||||
extensions="c, h, cc, hh, cpp, cxx, hpp"
|
||||
extensions="c, cc, cpp, cxx"
|
||||
icon="icons/full/obj16/c_file_obj.gif"
|
||||
class="org.eclipse.cdt.internal.ui.editor.CEditor"
|
||||
contributorClass="org.eclipse.cdt.internal.ui.editor.CEditorActionContributor"
|
||||
id="org.eclipse.cdt.ui.editor.CEditor">
|
||||
</editor>
|
||||
<editor
|
||||
default="true"
|
||||
name="%CEditor.name"
|
||||
extensions="h, hh, hpp"
|
||||
icon="icons/full/obj16/h_file_obj.gif"
|
||||
class="org.eclipse.cdt.internal.ui.editor.CEditor"
|
||||
contributorClass="org.eclipse.cdt.internal.ui.editor.CEditorActionContributor"
|
||||
id="org.eclipse.cdt.ui.editor.CEditor">
|
||||
</editor>
|
||||
<editor
|
||||
name="%Editors.DefaultTextEditor"
|
||||
extensions="mk"
|
||||
|
|
|
@ -5,6 +5,7 @@ package org.eclipse.cdt.internal.ui;
|
|||
* All Rights Reserved.
|
||||
*/
|
||||
|
||||
import org.eclipse.cdt.core.model.CoreModel;
|
||||
import org.eclipse.cdt.core.model.IBinary;
|
||||
import org.eclipse.cdt.core.model.IBinaryModule;
|
||||
import org.eclipse.cdt.core.model.ICElement;
|
||||
|
@ -264,6 +265,15 @@ public class CElementImageProvider {
|
|||
return CPluginImages.DESC_OBJS_ARCHIVE;
|
||||
|
||||
case ICElement.C_UNIT:
|
||||
String ext = celement.getPath().getFileExtension();
|
||||
if (ext != null) {
|
||||
String[] exts = CoreModel.getDefault().getHeaderExtensions();
|
||||
for (int i = 0; i < exts.length; i++) {
|
||||
if (exts[i].equalsIgnoreCase(ext)) {
|
||||
return CPluginImages.DESC_OBJS_TUNIT_HEADER;
|
||||
}
|
||||
}
|
||||
}
|
||||
return CPluginImages.DESC_OBJS_TUNIT;
|
||||
|
||||
case ICElement.C_CCONTAINER:
|
||||
|
|
|
@ -62,6 +62,7 @@ public class CPluginImages {
|
|||
public static final String IMG_OBJS_INCLUDE= NAME_PREFIX + "include_obj.gif";
|
||||
public static final String IMG_OBJS_MACRO= NAME_PREFIX + "define_obj.gif";
|
||||
public static final String IMG_OBJS_TUNIT= NAME_PREFIX + "c_file_obj.gif";
|
||||
public static final String IMG_OBJS_TUNIT_HEADER= NAME_PREFIX + "h_file_obj.gif";
|
||||
public static final String IMG_OBJS_ARCHIVE= NAME_PREFIX + "ar_obj.gif";
|
||||
public static final String IMG_OBJS_BINARY= NAME_PREFIX + "bin_obj.gif";
|
||||
public static final String IMG_OBJS_SHLIB= NAME_PREFIX + "shlib_obj.gif";
|
||||
|
@ -95,6 +96,7 @@ public class CPluginImages {
|
|||
public static final ImageDescriptor DESC_OBJS_INCLUDE= createManaged(T_OBJ, IMG_OBJS_INCLUDE);
|
||||
public static final ImageDescriptor DESC_OBJS_MACRO= createManaged(T_OBJ, IMG_OBJS_MACRO);
|
||||
public static final ImageDescriptor DESC_OBJS_TUNIT= createManaged(T_OBJ, IMG_OBJS_TUNIT);
|
||||
public static final ImageDescriptor DESC_OBJS_TUNIT_HEADER= createManaged(T_OBJ, IMG_OBJS_TUNIT_HEADER);
|
||||
public static final ImageDescriptor DESC_OBJS_ARCHIVE= createManaged(T_OBJ, IMG_OBJS_ARCHIVE);
|
||||
public static final ImageDescriptor DESC_OBJS_BINARY= createManaged(T_OBJ, IMG_OBJS_BINARY);
|
||||
public static final ImageDescriptor DESC_OBJS_SHLIB= createManaged(T_OBJ, IMG_OBJS_SHLIB);
|
||||
|
|
Loading…
Add table
Reference in a new issue