Skip to content
Snippets Groups Projects
Commit 66a4bec8 authored by Daniel Ratiu's avatar Daniel Ratiu
Browse files

GREEN

refs 1118
parent c1c88c50
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,8 @@ $Id$
+--------------------------------------------------------------------------*/
package org.fortiss.tooling.base.ui.editor;
import static org.fortiss.tooling.kernel.ui.util.EObjectSelectionUtils.getEObjectElements;
import java.util.Collection;
import java.util.List;
......@@ -28,7 +30,6 @@ import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.swt.widgets.Composite;
import org.fortiss.tooling.base.ui.dnd.jface.ViewerElementCompositionDropAdapter;
import org.fortiss.tooling.kernel.ui.extension.base.EditorBase;
import org.fortiss.tooling.kernel.ui.util.EObjectSelectionUtils;
/**
* An editor which only consists of a tree viewer. It uses {@link TreeViewer},
......@@ -38,7 +39,7 @@ import org.fortiss.tooling.kernel.ui.util.EObjectSelectionUtils;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 9EAE5296C6C28E13EC17B3E095E22B4D
* @ConQAT.Rating GREEN Hash: 99FB6F7E2742038A07071991127A86E1
*/
public abstract class TreeViewerEditorBase<T extends EObject> extends EditorBase<T> {
......@@ -86,7 +87,7 @@ public abstract class TreeViewerEditorBase<T extends EObject> extends EditorBase
/** Returns the elements currently selected in the tree. */
protected Collection<EObject> getTreeSelection() {
List<EObject> result = EObjectSelectionUtils.getEObjectElements(treeViewer.getSelection());
List<EObject> result = getEObjectElements(treeViewer.getSelection());
if(result.isEmpty()) {
result.add(editedObject);
}
......
......@@ -31,7 +31,7 @@ import org.eclipse.swt.widgets.Text;
* @author ratiu
* @author $Author: hoelzl $
* @version $Rev: 18709 $
* @ConQAT.Rating YELLOW Hash: 5EAA89263AB31479A5547CEF1165F352
* @ConQAT.Rating GREEN Hash: 4DC463FB75AF7997C1D245EFF5E3C5D5
*/
public class WidgetsFactory {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment