diff --git a/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/extension/IContextMenuMultiSelectionContributor.java b/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/extension/IContextMenuMultiSelectionContributor.java index 873d3573de93a1fd508dc5b23b525a1f81e31585..c0945d7977994b14dced65e36658acb4f824cbd2 100644 --- a/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/extension/IContextMenuMultiSelectionContributor.java +++ b/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/extension/IContextMenuMultiSelectionContributor.java @@ -29,7 +29,7 @@ import org.fortiss.tooling.kernel.ui.extension.data.ContextMenuContextProvider; * @author andrei * @author $Author: hoelzl $ * @version $Rev: 18709 $ - * @ConQAT.Rating YELLOW Hash: 687C1FBD364509EC228E05C484B78961 + * @ConQAT.Rating GREEN Hash: 8DBD1C2C210839595BA1189417D000E9 */ public interface IContextMenuMultiSelectionContributor extends IContextMenuContributor { /** diff --git a/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/extension/base/MultiEObjectActionBase.java b/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/extension/base/MultiEObjectActionBase.java index 816d93f5b43ff8ecb0fb55dc1f34a1b27f8b2c94..21e4706a42be745d42bf191cf5ad96ff33ca237c 100644 --- a/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/extension/base/MultiEObjectActionBase.java +++ b/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/extension/base/MultiEObjectActionBase.java @@ -29,7 +29,7 @@ import org.eclipse.jface.resource.ImageDescriptor; * @author andrei * @author $Author: hoelzl $ * @version $Rev: 18709 $ - * @ConQAT.Rating YELLOW Hash: A70B4A247719455AE1F30032B713C328 + * @ConQAT.Rating GREEN Hash: 6D708A86D403756DF1FEFE8E9FF0CDC6 */ public abstract class MultiEObjectActionBase<T extends List<? extends EObject>> extends Action { diff --git a/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/internal/properties/ElementWithURIPropertySection.java b/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/internal/properties/ElementWithURIPropertySection.java index c6f944549a20c80bd47de0891c8d5ad34c70c274..f54273e7623b82da4a17ec1fbb49ccd33afb43e6 100644 --- a/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/internal/properties/ElementWithURIPropertySection.java +++ b/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/internal/properties/ElementWithURIPropertySection.java @@ -29,7 +29,7 @@ import org.fortiss.tooling.kernel.ui.extension.base.PropertySectionBase; * @author ratiu * @author $Author: ratiu $ * @version $Rev: 5274 $ - * @ConQAT.Rating YELLOW Hash: EABEEDA3A7800A65A2310FCA9D0591A4 + * @ConQAT.Rating GREEN Hash: D27E9C6C34513AAADE71A0D3F5278643 */ public class ElementWithURIPropertySection extends PropertySectionBase { diff --git a/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/internal/properties/NamedCommentedPropertySection.java b/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/internal/properties/NamedCommentedPropertySection.java index c90aded097fdf6bef77e2bf1871e831b41f5a1a7..e43982a63d9956e7830fbfb61139153006487406 100644 --- a/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/internal/properties/NamedCommentedPropertySection.java +++ b/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/internal/properties/NamedCommentedPropertySection.java @@ -38,7 +38,7 @@ import org.fortiss.tooling.kernel.ui.util.ObservableUtils; * @author ratiu * @author $Author$ * @version $Rev$ - * @ConQAT.Rating YELLOW Hash: 09D914F4FA7DCCCBE0AA153D9F900BCB + * @ConQAT.Rating GREEN Hash: 77B0B72BC66A318095811CE94FA4C407 */ public class NamedCommentedPropertySection extends PropertySectionBase { diff --git a/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/internal/views/NavigatorViewPart.java b/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/internal/views/NavigatorViewPart.java index 5e2951d92d03b5b535ab7e3b3c284829aa84ea76..b356440a55eababb160a5ea143fccf3ff8867c72 100644 --- a/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/internal/views/NavigatorViewPart.java +++ b/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/internal/views/NavigatorViewPart.java @@ -76,7 +76,7 @@ import org.fortiss.tooling.kernel.ui.util.PropertiesConstantUtils; * @author hoelzl * @author $Author$ * @version $Rev$ - * @ConQAT.Rating YELLOW Hash: E0F4981C7425FF0359F123AC4ED2D94D + * @ConQAT.Rating GREEN Hash: 51AD30FD8F8AF4E7271D5799395647A1 */ public final class NavigatorViewPart extends ViewPart implements ISelectionListener, ISelectionChangedListener, ITabbedPropertySheetPageContributor, ContextMenuContextProvider, @@ -126,18 +126,16 @@ public final class NavigatorViewPart extends ViewPart implements ISelectionListe if(selection instanceof TreeSelection && !selection.isEmpty()) { Object firstSelectedElement = ((TreeSelection)selection).getFirstElement(); if(firstSelectedElement instanceof EObject) { - // Preserve container of current element. This is required to determine a valid // model element in case the next operation is to delete the currently selected // element backupElementToBeSelected = ((EObject)firstSelectedElement).eContainer(); } } else if(backupElementToBeSelected != null) { - // Selection would be empty. Use backup element to force selection to the container // of the element that has been selected last. - viewer.setSelection(new TreeSelection(new TreePath( - new Object[] {backupElementToBeSelected}))); + TreePath treePath = new TreePath(new Object[] {backupElementToBeSelected}); + viewer.setSelection(new TreeSelection(treePath)); backupElementToBeSelected = null; } diff --git a/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/presentation/ModelElementLabelProvider.java b/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/presentation/ModelElementLabelProvider.java index 1cdd04994550f3a7d3f298f48ea7a69e82747e68..d41cdcd86bc5a5aa9218a5386e4cc3a0a3e1d6c9 100644 --- a/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/presentation/ModelElementLabelProvider.java +++ b/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/presentation/ModelElementLabelProvider.java @@ -38,7 +38,7 @@ import org.fortiss.tooling.kernel.ui.service.IModelElementHandlerService; * @author mou * @author $Author$ * @version $Rev$ - * @ConQAT.Rating YELLOW Hash: C44280EF94E699B817B5F15D93E7C1A4 + * @ConQAT.Rating GREEN Hash: 4DC8D3C0201236BB9967662CE78E405F */ public class ModelElementLabelProvider extends ColumnLabelProvider { /** {@inheritDoc} */