What do I need to do to change my resource category name/display name in the export window?
My module id:
public static final String MODULE_ID = "com.mussonind.ignition.ColorUtilities";
My resource:
public static final String TYPE_ID = "color-ramp";
public static final ResourceType RESOURCE_TYPE = new ResourceType(MODULE_ID, TYPE_ID);
And DesignerHook:
@Override
public String getResourceCategoryKey(ProjectResourceId id) {
if (Ramp.RESOURCE_TYPE.equals(id.getResourceType())) {
return "Color Ramps";
} else {
return super.getResourceCategoryKey(id);
}
}
@Override
public String getResourceDisplayName(ProjectResourceId id) {
if (Ramp.RESOURCE_TYPE.equals(id.getResourceType())) {
return "Color Ramp";
} else {
return super.getResourceDisplayName(id);
}
}