function aObj = editopen(aObj)
%AXISOBJ/EDITOPEN
%   edit axis properties on double click

%   Copyright 1984-2000 The MathWorks, Inc. 
%   $Revision: 1.13 $  $Date: 2000/06/01 02:52:25 $

selection = get(getobj(get(aObj,'Figure')),'Selection');

%get a list of all handles currently selected in figure
if ~isempty(selection)
    hList = subsref(selection,substruct('.','HGHandle'));
    if iscell(hList)
        hList=[hList{:}];
    end
else
    hgobj = aObj.scribehgobj;
    if ~isempty(hgobj)
        hList=hgobj.HGHandle;
    else
        hList=get(gcf,'CurrentAxes');
    end
end
    
propedit(hList,'-noselect');