OpenAction.dialog.text=Open an image or saved context
-OpenAction.dialog.filter.exts=*.jpg;*.jpeg;*.png;*.gif;*.bmp;*.ctx;*.imgmap
-OpenAction.dialog.filter.text=Image,imagemap and Context Files
+OpenAction.dialog.filter.exts=*.jpg;*.jpeg;*.png;*.gif;*.bmp;*.ctx;*.zip
+OpenAction.dialog.filter.text=Image,Zip and Context Files
SaveAction.dialog.text=Save Segmentation Context
SaveAction.dialog.filter.exts=*.ctx
file.add(new Separator());
file.add(actions.get(SaveAction.class));
- file.add(actions.get(SaveAsAction.class));
+ //file.add(actions.get(SaveAsAction.class));
file.add(new Separator());
// Export Menu is hidden so as not to confuse the user. Instead this functionality is provided as Save
/**
* The file extension given to a this object when it is saved on a disk
*/
- public static final String IMGMAP_EXTENSION = ".imgmap";
+ public static final String IMGMAP_EXTENSION = ".zip";
public OpenAction(ActionManager m) {
super(m);
/**
* The file extension given to a this object when it is saved on a disk
*/
- public static final String IMGMAP_EXTENSION = ".imgmap";
+ public static final String IMGMAP_EXTENSION = ".zip";
public SaveAction(ActionManager m) {
super(m);
Element annotationTermElem = document.createElement("annotation_term");
annotationTermElem.appendChild(document.createTextNode(annotationTerm));
segmentElement.appendChild(annotationTermElem);
+
+ String annotationId = mask.ontologyTerm.getAccessionId();
+ Element annotationIdElem = document.createElement("annotation_id");
+ annotationIdElem.appendChild(document.createTextNode(annotationId));
+ segmentElement.appendChild(annotationIdElem);
}
TransformerFactory transformerFactory = TransformerFactory.newInstance();
* (before assign button is clicked)
*/
public static void termDetailLookup(String accessionId) {
- System.out.println("curr accession id (from segment or label): " + accessionId);
termDetailTable.setEnabled(true);
String webServiceURL = new String();
// getting collection ids
NodeList nlist = docEle.getElementsByTagName("segment");
noOfSegments = nlist.getLength();
- tempStorage = new String[nlist.getLength()][3];
+ tempStorage = new String[nlist.getLength()][4];
if(nlist != null && nlist.getLength() > 0)
{
for(int i = 0 ; i < nlist.getLength();i++)
{
for(int i = 0 ; i < noOfSegments;i++)
{
- for(int x = 0 ; x < 3;x++)
+ for(int x = 0 ; x < 4;x++)
{
if (x == 1)
{
{
segmentationMaskObjects.get(i).ontologyTerm.setName(tempStorage[i][x]);
}
+ if (x == 3)
+ {
+ segmentationMaskObjects.get(i).ontologyTerm.setAccessionId(tempStorage[i][x]);
+ }
}
}
in.close();
}
+ SegmentationView.comboLabel.setText(tempStorage[noOfSegments-1][2]);
+ SegmentationView.termDetailLookup(ctx.getEnabledMask().ontologyTerm.getAccessionId());
return ctx;
}