Difference: DpHipeComponents (21 vs. 22)

Revision 222013-09-05 - JaimeSaiz

Line: 1 to 1
 
META TOPICPARENT name="DpHipe"
<-- ANALYTICS CODE - DO NOT EDIT -->
<-- Google Analytics script BEGIN -->
<-- Google Analytics script END -->
Line: 215 to 215
 
Deleted:
<
<

Your Explorer Implementation

You may have created an implementation of the former Explorer interface which is used by the dataset inspector (and is registered within that inspector).

If you do not expect that your explorer needs to talk to other parts within the HIPE application, you can simply extend [[http://herschel.esac.esa.int/hcss-doc-12.0/index.jsp#hcss_drm:herschel.ia.dataset.gui.views.AbstractExplorerComponent][ia.dataset.gui.views.AbstractExplorerComponent]:

public class ArrayDataComponent extends AbstractExplorerComponent<ArrayData> {
    private static final Icon ICON = ...

    public ArrayDataComponent() {
	super(ICON);
    }   

    @Override
    protected Class<ArrayData> getVariableType() {
	return ArrayData.class;
    }
}

That's it. Your explorer would be picked up for showing the values it is registered to manage (see next section).

 

Component Registry

Editor components need to be registered for telling the types they are interested in. This is to be done within your __init__.py:
 
This site is powered by the TWiki collaboration platform Powered by Perl