Skip to content
Snippets Groups Projects
Commit a909916f authored by Vincent Aravantinos's avatar Vincent Aravantinos
Browse files

GREEN

refs 2255
parent 792df2bb
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ import org.fortiss.tooling.kernel.ui.extension.data.ContextMenuContextProvider; ...@@ -29,7 +29,7 @@ import org.fortiss.tooling.kernel.ui.extension.data.ContextMenuContextProvider;
* @author andrei * @author andrei
* @author $Author: hoelzl $ * @author $Author: hoelzl $
* @version $Rev: 18709 $ * @version $Rev: 18709 $
* @ConQAT.Rating YELLOW Hash: 687C1FBD364509EC228E05C484B78961 * @ConQAT.Rating GREEN Hash: 8DBD1C2C210839595BA1189417D000E9
*/ */
public interface IContextMenuMultiSelectionContributor extends IContextMenuContributor { public interface IContextMenuMultiSelectionContributor extends IContextMenuContributor {
/** /**
......
...@@ -29,7 +29,7 @@ import org.eclipse.jface.resource.ImageDescriptor; ...@@ -29,7 +29,7 @@ import org.eclipse.jface.resource.ImageDescriptor;
* @author andrei * @author andrei
* @author $Author: hoelzl $ * @author $Author: hoelzl $
* @version $Rev: 18709 $ * @version $Rev: 18709 $
* @ConQAT.Rating YELLOW Hash: A70B4A247719455AE1F30032B713C328 * @ConQAT.Rating GREEN Hash: 6D708A86D403756DF1FEFE8E9FF0CDC6
*/ */
public abstract class MultiEObjectActionBase<T extends List<? extends EObject>> extends Action { public abstract class MultiEObjectActionBase<T extends List<? extends EObject>> extends Action {
......
...@@ -29,7 +29,7 @@ import org.fortiss.tooling.kernel.ui.extension.base.PropertySectionBase; ...@@ -29,7 +29,7 @@ import org.fortiss.tooling.kernel.ui.extension.base.PropertySectionBase;
* @author ratiu * @author ratiu
* @author $Author: ratiu $ * @author $Author: ratiu $
* @version $Rev: 5274 $ * @version $Rev: 5274 $
* @ConQAT.Rating YELLOW Hash: EABEEDA3A7800A65A2310FCA9D0591A4 * @ConQAT.Rating GREEN Hash: D27E9C6C34513AAADE71A0D3F5278643
*/ */
public class ElementWithURIPropertySection extends PropertySectionBase { public class ElementWithURIPropertySection extends PropertySectionBase {
......
...@@ -38,7 +38,7 @@ import org.fortiss.tooling.kernel.ui.util.ObservableUtils; ...@@ -38,7 +38,7 @@ import org.fortiss.tooling.kernel.ui.util.ObservableUtils;
* @author ratiu * @author ratiu
* @author $Author$ * @author $Author$
* @version $Rev$ * @version $Rev$
* @ConQAT.Rating YELLOW Hash: 09D914F4FA7DCCCBE0AA153D9F900BCB * @ConQAT.Rating GREEN Hash: 77B0B72BC66A318095811CE94FA4C407
*/ */
public class NamedCommentedPropertySection extends PropertySectionBase { public class NamedCommentedPropertySection extends PropertySectionBase {
......
...@@ -76,7 +76,7 @@ import org.fortiss.tooling.kernel.ui.util.PropertiesConstantUtils; ...@@ -76,7 +76,7 @@ import org.fortiss.tooling.kernel.ui.util.PropertiesConstantUtils;
* @author hoelzl * @author hoelzl
* @author $Author$ * @author $Author$
* @version $Rev$ * @version $Rev$
* @ConQAT.Rating YELLOW Hash: E0F4981C7425FF0359F123AC4ED2D94D * @ConQAT.Rating GREEN Hash: 51AD30FD8F8AF4E7271D5799395647A1
*/ */
public final class NavigatorViewPart extends ViewPart implements ISelectionListener, public final class NavigatorViewPart extends ViewPart implements ISelectionListener,
ISelectionChangedListener, ITabbedPropertySheetPageContributor, ContextMenuContextProvider, ISelectionChangedListener, ITabbedPropertySheetPageContributor, ContextMenuContextProvider,
...@@ -126,18 +126,16 @@ public final class NavigatorViewPart extends ViewPart implements ISelectionListe ...@@ -126,18 +126,16 @@ public final class NavigatorViewPart extends ViewPart implements ISelectionListe
if(selection instanceof TreeSelection && !selection.isEmpty()) { if(selection instanceof TreeSelection && !selection.isEmpty()) {
Object firstSelectedElement = ((TreeSelection)selection).getFirstElement(); Object firstSelectedElement = ((TreeSelection)selection).getFirstElement();
if(firstSelectedElement instanceof EObject) { if(firstSelectedElement instanceof EObject) {
// Preserve container of current element. This is required to determine a valid // 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 // model element in case the next operation is to delete the currently selected
// element // element
backupElementToBeSelected = ((EObject)firstSelectedElement).eContainer(); backupElementToBeSelected = ((EObject)firstSelectedElement).eContainer();
} }
} else if(backupElementToBeSelected != null) { } else if(backupElementToBeSelected != null) {
// Selection would be empty. Use backup element to force selection to the container // Selection would be empty. Use backup element to force selection to the container
// of the element that has been selected last. // of the element that has been selected last.
viewer.setSelection(new TreeSelection(new TreePath( TreePath treePath = new TreePath(new Object[] {backupElementToBeSelected});
new Object[] {backupElementToBeSelected}))); viewer.setSelection(new TreeSelection(treePath));
backupElementToBeSelected = null; backupElementToBeSelected = null;
} }
......
...@@ -38,7 +38,7 @@ import org.fortiss.tooling.kernel.ui.service.IModelElementHandlerService; ...@@ -38,7 +38,7 @@ import org.fortiss.tooling.kernel.ui.service.IModelElementHandlerService;
* @author mou * @author mou
* @author $Author$ * @author $Author$
* @version $Rev$ * @version $Rev$
* @ConQAT.Rating YELLOW Hash: C44280EF94E699B817B5F15D93E7C1A4 * @ConQAT.Rating GREEN Hash: 4DC8D3C0201236BB9967662CE78E405F
*/ */
public class ModelElementLabelProvider extends ColumnLabelProvider { public class ModelElementLabelProvider extends ColumnLabelProvider {
/** {@inheritDoc} */ /** {@inheritDoc} */
......
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