Project

General

Profile

Revision 8b0c4c63

ID8b0c4c633d785ead2760730f97f84be644e530a3
Parent 50c9803d
Child 02fbce4a

Added by Patrick Plitzner about 3 years ago

ref #6694 Fix drag and drop behavior

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/featuretree/FeatureTreeContentProvider.java
72 72
	/** {@inheritDoc} */
73 73
	@Override
74 74
	public Object getParent(Object element) {
75
	    if(element instanceof FeatureNode){
76
	        return ((FeatureNode) element).getParent();
77
	    }
75 78
		return null;
76 79
	}
77 80

  
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/featuretree/e4/FeatureNodeDropAdapter.java
66 66
			FeatureNode droppedNode = (FeatureNode) droppedObject;
67 67
			CdmStore.getService(IFeatureNodeService.class).moveFeatureNode(droppedNode.getUuid(), target.getUuid(), position);
68 68
			viewer.refresh();
69
//			viewer.reveal(droppedNode);
69
			viewer.reveal(droppedNode);
70 70
		}
71 71
        this.featureTreeEditor.setDirty(true);
72 72
		return true;
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/featuretree/e4/FeatureTreeEditor.java
167 167
				}
168 168
				setDirty(true);
169 169
				composite.getViewer().refresh();
170
				composite.getViewer().expandToLevel(parent, 1);
170 171
			}
171 172
		}
172 173

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)