Skip to content
Snippets Groups Projects
Commit 5c425b0f authored by Florian Hölzl's avatar Florian Hölzl
Browse files

kernel cleanup => YELLOW

some refactored only classes => GREEN
parent 68e56fcf
No related branches found
No related tags found
No related merge requests found
Showing
with 29 additions and 22 deletions
......@@ -19,6 +19,7 @@ Export-Package: org.fortiss.tooling.kernel.ui,
org.fortiss.tooling.kernel.ui.databinding,
org.fortiss.tooling.kernel.ui.extension,
org.fortiss.tooling.kernel.ui.extension.base,
org.fortiss.tooling.kernel.ui.extension.data,
org.fortiss.tooling.kernel.ui.listener,
org.fortiss.tooling.kernel.ui.service,
org.fortiss.tooling.kernel.ui.util
......@@ -38,7 +38,7 @@ import org.fortiss.tooling.kernel.ui.service.IContextMenuService;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: A3D0687E3D1D0D0C582ACCCF73501BEE
* @ConQAT.Rating YELLOW Hash: 477CB9CFFBADD034DBEA59D615E3478B
*/
public interface IContextMenuContributor {
......
......@@ -41,7 +41,7 @@ import org.fortiss.tooling.kernel.ui.util.EObjectSelectionUtils;
* @author hoelzlf
* @author $Author$
* @version $Rev$
* @ConQAT.Rating RED Hash: F3C8B78E9226F14E8525172266DE08DB
* @ConQAT.Rating YELLOW Hash: 329EC88BD38752F5F1BBA3DCE57B32B2
*/
public class ActionService implements IActionService,
IPersistencyServiceListener, CommandStackListener {
......
......@@ -43,7 +43,7 @@ import org.osgi.framework.Bundle;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 7F5948CB427F7D93D99D032797B9D8BF
* @ConQAT.Rating YELLOW Hash: D70B79C16761E3D0398CE26B0F56D9EF
*/
public class ContextMenuService implements IContextMenuService {
......
......@@ -34,7 +34,7 @@ import org.fortiss.tooling.kernel.util.LoggingUtils;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating RED Hash: BEE73AF516ACDE4004D62697BCB393DE
* @ConQAT.Rating GREEN Hash: FA0D1BF818E0D93FE58A4223631F6C11
*/
public class EditPartFactoryService extends
EObjectAwareServiceBase<IEditPartFactory<EObject>> implements
......
......@@ -52,7 +52,7 @@ import org.fortiss.tooling.kernel.ui.service.IMarkerService;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating RED Hash: A83BBC26E08D5AB813E50781BA34F5A9
* @ConQAT.Rating RED Hash: E88CDA645FF2179C1BCD023756100167
*/
public class MarkerService implements IMarkerService,
IPersistencyServiceListener, ILightweightLabelDecorator {
......
......@@ -39,7 +39,7 @@ import org.fortiss.tooling.kernel.util.LoggingUtils;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating RED Hash: 80940F7C24146436FD45962207978F27
* @ConQAT.Rating RED Hash: B32E1EDD37CC2E7D3D6ACF0F320E8056
*/
public class ModelEditorBindingService extends
EObjectAwareServiceBase<IModelEditorBinding<EObject>> implements
......
......@@ -32,7 +32,7 @@ import org.fortiss.tooling.kernel.ui.service.IModelElementHandlerService;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating RED Hash: 0AE8193FCAF85717E5934397C28B8F7A
* @ConQAT.Rating YELLOW Hash: A510A8DE044CF387EF7FE93B54FC883C
*/
public class ModelElementHandlerService extends
EObjectAwareServiceBase<IModelElementHandler<EObject>> implements
......
......@@ -36,6 +36,7 @@ import org.fortiss.tooling.kernel.ToolingKernelActivator;
import org.fortiss.tooling.kernel.extension.data.ITopLevelElement;
import org.fortiss.tooling.kernel.service.IPersistencyService;
import org.fortiss.tooling.kernel.service.listener.IPersistencyServiceListener;
import org.fortiss.tooling.kernel.ui.extension.data.ContextMenuContextProvider;
import org.fortiss.tooling.kernel.ui.internal.views.NavigatorViewPart;
import org.fortiss.tooling.kernel.ui.service.INavigatorService;
import org.fortiss.tooling.kernel.ui.util.EObjectSelectionUtils;
......@@ -46,7 +47,7 @@ import org.fortiss.tooling.kernel.ui.util.EObjectSelectionUtils;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating RED Hash: 2B43E83179135573DB711E13D95E0A0E
* @ConQAT.Rating YELLOW Hash: 10615C5F91C539B5021A54DC0DAC1AB6
*/
public class NavigatorService implements INavigatorService,
IPersistencyServiceListener, CommandStackListener {
......@@ -72,6 +73,12 @@ public class NavigatorService implements INavigatorService,
this.navigatorViewPart = part;
}
/** {@inheritDoc} */
@Override
public boolean isNavigatorView(ContextMenuContextProvider provider) {
return provider == navigatorViewPart;
}
/** Returns the navigator view part. */
public NavigatorViewPart getNavigatorViewPart() {
return navigatorViewPart;
......
......@@ -25,7 +25,7 @@ import org.fortiss.tooling.kernel.ui.service.IPropertiesService;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating RED Hash: 94B90137442EBBDF8F76FF04C1E89F67
* @ConQAT.Rating YELLOW Hash: 92B0DF1AD44755A2887040BB639164DE
*
*/
public class PropertiesService implements IPropertiesService {
......
<!--
$Id$
@version $Rev$
@ConQAT.Rating RED Hash: D84A5C6496771D8C6A05C92D32848117
@ConQAT.Rating YELLOW Hash: DEE82E65C55976C18489848C51FF6CCB
-->
<body>
Implementations of the user-interface kernel services defined in the <code>kernel.ui.services</code> package.
......
......@@ -34,7 +34,7 @@ import org.fortiss.tooling.kernel.ui.extension.base.PropertySectionBase;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating RED Hash: B9E1CFD49FBD28FE48C7F08950EDF883
* @ConQAT.Rating GREEN Hash: 6C1B9DD6756E4361E0614970079A07F3
*/
public class IdLabeledPropertySection extends PropertySectionBase {
......
......@@ -34,7 +34,7 @@ import org.fortiss.tooling.kernel.ui.extension.base.PropertySectionBase;
* @author ratiu
* @author $Author$
* @version $Rev$
* @ConQAT.Rating RED Hash: 6EAB385BB7F1B7AF4EDE6283E31040DF
* @ConQAT.Rating GREEN Hash: A33E2B1B32618310BB439BCCFB4B532D
*/
public class NamedCommentedPropertySection extends PropertySectionBase {
......
......@@ -29,7 +29,7 @@ import org.fortiss.tooling.kernel.ui.service.IPropertiesService;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating RED Hash: FA62107F953F93F03357E1F156705532
* @ConQAT.Rating GREEN Hash: 62200E721F79C87E1A42A7BD8EA7094F
*/
@SuppressWarnings("rawtypes")
public final class PropertiesAdapterFactory implements IAdapterFactory {
......
<!--
$Id$
@version $Rev$
@ConQAT.Rating RED Hash: 5937FCD6DFE80AAF1E9222712A4ABAA3
@ConQAT.Rating GREEN Hash: 5D4ABF80310EC18886A1F3E311843798
-->
<body>
Implementations of the default property sections provided by the kernel.
......
......@@ -29,7 +29,7 @@ import org.eclipse.swt.dnd.DragSourceEvent;
* @author eder
* @author $Author: hoelzl $
* @version $Rev: 18709 $
* @ConQAT.Rating RED Hash: F45F49DB156B0BA24EDB3C2DF6EA4643
* @ConQAT.Rating YELLOW Hash: 7274445CF4D8976F98D2261373206375
*/
public class EObjectDragSourceListener extends DragSourceAdapter {
......
......@@ -53,7 +53,7 @@ import org.fortiss.tooling.kernel.ui.service.IModelElementHandlerService;
* @author eder
* @author $Author: hoelzl $
* @version $Rev: 18709 $
* @ConQAT.Rating RED Hash: FA1076E5BA0F8F61159A8A358F835F7E
* @ConQAT.Rating YELLOW Hash: 92F80D3F6619406729FAF681F459C9F1
*/
public class LibraryView extends ViewPart {
......
......@@ -31,7 +31,7 @@ import org.fortiss.tooling.kernel.ui.service.INavigatorService;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating RED Hash: AE36C3E6EB99CEEDDF01E4C513BF0DE9
* @ConQAT.Rating YELLOW Hash: 4D718D32000E7A02F1567CB87E44EA97
*/
final class LinkWithEditorPartListener implements IPartListener2 {
......
......@@ -71,7 +71,7 @@ import org.fortiss.tooling.kernel.ui.util.EObjectSelectionUtils;
* @author hoelzlf
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 5B96D1888CCFDECD1BD5CB7B5CAE37C3
* @ConQAT.Rating RED Hash: 07C7E317D08A33F1390AA582B92EA185
*/
public final class NavigatorViewPart extends ViewPart implements
ISelectionListener, ISelectionChangedListener, IDoubleClickListener,
......
......@@ -29,7 +29,6 @@ import org.fortiss.tooling.kernel.service.IElementCompositorService;
import org.fortiss.tooling.kernel.service.IPrototypeService;
import org.fortiss.tooling.kernel.ui.extension.IContextMenuContributor;
import org.fortiss.tooling.kernel.ui.extension.data.ContextMenuContextProvider;
import org.fortiss.tooling.kernel.ui.internal.NavigatorService;
import org.fortiss.tooling.kernel.ui.service.IContextMenuService;
import org.fortiss.tooling.kernel.ui.service.IModelEditorBindingService;
import org.fortiss.tooling.kernel.ui.service.IModelElementHandlerService;
......@@ -41,7 +40,7 @@ import org.fortiss.tooling.kernel.ui.service.INavigatorService;
* @author hoelzlf
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 2A9F31EED7F63B0AD81B4661CCC42A0C
* @ConQAT.Rating YELLOW Hash: DF1A32386F4941DD835D87B7943AAE75
*/
public class NewMenu implements IContextMenuContributor {
......@@ -62,8 +61,8 @@ public class NewMenu implements IContextMenuContributor {
@Override
public List<IContributionItem> getContributedItems(EObject selectedObject,
ContextMenuContextProvider contextProvider) {
if (contextProvider != ((NavigatorService) INavigatorService.INSTANCE)
.getNavigatorViewPart() || selectedObject == null) {
if (INavigatorService.INSTANCE.isNavigatorView(contextProvider)
|| selectedObject == null) {
return Collections.emptyList();
}
......
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