Skip to content
Snippets Groups Projects
Commit c039c4f6 authored by Christoph Döbber's avatar Christoph Döbber
Browse files

reviewed tooling.base.ui

refs 311
parent 9419aa46
No related branches found
No related tags found
No related merge requests found
Showing
with 24 additions and 17 deletions
...@@ -32,7 +32,7 @@ import org.eclipse.swt.widgets.Table; ...@@ -32,7 +32,7 @@ import org.eclipse.swt.widgets.Table;
* @author ratiu * @author ratiu
* @author $Author: hoelzl $ * @author $Author: hoelzl $
* @version $Rev: 18709 $ * @version $Rev: 18709 $
* @ConQAT.Rating YELLOW Hash: A0EBE838F6C48C637BF66BDCC7BECCF6 * @ConQAT.Rating GREEN Hash: 9BD7A35B68F2A0C579302785D426E260
*/ */
public abstract class TableContentProviderBase implements public abstract class TableContentProviderBase implements
IStructuredContentProvider { IStructuredContentProvider {
......
...@@ -40,7 +40,7 @@ import org.fortiss.tooling.kernel.ui.util.DataBindingUtils; ...@@ -40,7 +40,7 @@ import org.fortiss.tooling.kernel.ui.util.DataBindingUtils;
* @author hoelzl * @author hoelzl
* @author $Author$ * @author $Author$
* @version $Rev$ * @version $Rev$
* @ConQAT.Rating YELLOW Hash: F74F00C2F5462687008A52D13BA242A6 * @ConQAT.Rating GREEN Hash: 2C4AFF788977B23F89AC273AB9E26FFA
*/ */
public abstract class AbstractDecoratedTextCellDatabindingEditingSupport extends public abstract class AbstractDecoratedTextCellDatabindingEditingSupport extends
AbstractTextCellDatabindingEditingSupport { AbstractTextCellDatabindingEditingSupport {
......
...@@ -38,7 +38,7 @@ import org.fortiss.tooling.kernel.ui.util.DataBindingUtils; ...@@ -38,7 +38,7 @@ import org.fortiss.tooling.kernel.ui.util.DataBindingUtils;
* @author hoelzl * @author hoelzl
* @author $Author$ * @author $Author$
* @version $Rev$ * @version $Rev$
* @ConQAT.Rating YELLOW Hash: 97B2B23D7EF5DA85AEF4EF792A1C394D * @ConQAT.Rating GREEN Hash: 111846AC9BFA6A0AFD10DED43942929C
*/ */
public abstract class AbstractTextCellDatabindingEditingSupport extends public abstract class AbstractTextCellDatabindingEditingSupport extends
EditingSupport { EditingSupport {
......
...@@ -102,7 +102,7 @@ import org.fortiss.tooling.kernel.ui.util.EObjectSelectionUtils; ...@@ -102,7 +102,7 @@ import org.fortiss.tooling.kernel.ui.util.EObjectSelectionUtils;
* @author hoelzl * @author hoelzl
* @author $Author$ * @author $Author$
* @version $Rev$ * @version $Rev$
* @ConQAT.Rating YELLOW Hash: 29B690AA556FE2BDF57B347269A25E91 * @ConQAT.Rating GREEN Hash: 2BE9DAC51D493CE6884BC5780CCBA3BD
*/ */
public class DiagramEditorBase<T extends EObject> extends GEFEditorBase<T> public class DiagramEditorBase<T extends EObject> extends GEFEditorBase<T>
implements IPostSelectionProvider, ContextMenuContextProvider { implements IPostSelectionProvider, ContextMenuContextProvider {
......
...@@ -31,7 +31,7 @@ import org.fortiss.tooling.kernel.service.IConnectionCompositorService; ...@@ -31,7 +31,7 @@ import org.fortiss.tooling.kernel.service.IConnectionCompositorService;
* @author hoelzl * @author hoelzl
* @author $Author$ * @author $Author$
* @version $Rev$ * @version $Rev$
* @ConQAT.Rating YELLOW Hash: 24421D2AC104331D9746EEAF90095300 * @ConQAT.Rating GREEN Hash: B647C020917AB70601507C6FE044FB31
*/ */
public class ReconnectCommand extends ConnectCommand { public class ReconnectCommand extends ConnectCommand {
......
...@@ -38,7 +38,7 @@ import org.eclipse.swt.graphics.Path; ...@@ -38,7 +38,7 @@ import org.eclipse.swt.graphics.Path;
* @author hoelzl * @author hoelzl
* @author $Author$ * @author $Author$
* @version $Rev$ * @version $Rev$
* @ConQAT.Rating YELLOW Hash: 7E86CA664B6B561EE22AEC45CC29C1E2 * @ConQAT.Rating RED Hash: 84A2AF464E9E0229F704456147BCFAFD
*/ */
public class PrettyInsetEllipse extends Shape { public class PrettyInsetEllipse extends Shape {
...@@ -89,6 +89,9 @@ public class PrettyInsetEllipse extends Shape { ...@@ -89,6 +89,9 @@ public class PrettyInsetEllipse extends Shape {
EVisualStyle style = EVisualStyle.get(); EVisualStyle style = EVisualStyle.get();
gfx.pushState(); gfx.pushState();
gfx.setAntialias(SWT.ON); gfx.setAntialias(SWT.ON);
// TODO @review CD: During last iteration most of the glossy look
// implementation disappeared. Yet this remained. As seen before the
// only effect are ugly borders. I suggest removal.
if (style == EVisualStyle.Glossy) { if (style == EVisualStyle.Glossy) {
// Glossy style. // Glossy style.
gfx.setLineCap(SWT.CAP_ROUND); gfx.setLineCap(SWT.CAP_ROUND);
......
...@@ -36,7 +36,7 @@ import org.eclipse.swt.graphics.Color; ...@@ -36,7 +36,7 @@ import org.eclipse.swt.graphics.Color;
* @author hoelzl * @author hoelzl
* @author $Author$ * @author $Author$
* @version $Rev$ * @version $Rev$
* @ConQAT.Rating YELLOW Hash: 34D4F4B5FBB7A3565AE4065D4D7EFED2 * @ConQAT.Rating RED Hash: 366867FD2CA94416DC46D9459E4F5F15
*/ */
public class PrettyRoundedRectangle extends Shape { public class PrettyRoundedRectangle extends Shape {
...@@ -79,6 +79,9 @@ public class PrettyRoundedRectangle extends Shape { ...@@ -79,6 +79,9 @@ public class PrettyRoundedRectangle extends Shape {
final EVisualStyle style = EVisualStyle.get(); final EVisualStyle style = EVisualStyle.get();
gfx.pushState(); gfx.pushState();
gfx.setAntialias(SWT.ON); gfx.setAntialias(SWT.ON);
// TODO @review CD: During last iteration most of the glossy look
// implementation disappeared. Yet this remained. As seen before the
// only effect are ugly borders. I suggest removal.
if (style == EVisualStyle.Glossy) { if (style == EVisualStyle.Glossy) {
// Glossy style. // Glossy style.
gfx.setLineCap(SWT.CAP_ROUND); gfx.setLineCap(SWT.CAP_ROUND);
......
...@@ -39,7 +39,7 @@ import org.fortiss.tooling.base.ui.editpart.command.MoveWithinDiagramCommand; ...@@ -39,7 +39,7 @@ import org.fortiss.tooling.base.ui.editpart.command.MoveWithinDiagramCommand;
* @author hoelzl * @author hoelzl
* @author $Author$ * @author $Author$
* @version $Rev$ * @version $Rev$
* @ConQAT.Rating YELLOW Hash: DC3E049397CBC5F1BA2B9181C1B6C9B7 * @ConQAT.Rating GREEN Hash: C38D33442463E6AF17EEE984600F870A
*/ */
public class DiagramLayoutEditPolicy extends RelayCreateCommandEditPolicyBase { public class DiagramLayoutEditPolicy extends RelayCreateCommandEditPolicyBase {
......
...@@ -39,7 +39,7 @@ import org.fortiss.tooling.kernel.model.INamedCommentedElement; ...@@ -39,7 +39,7 @@ import org.fortiss.tooling.kernel.model.INamedCommentedElement;
* @author hoelzl * @author hoelzl
* @author $Author$ * @author $Author$
* @version $Rev$ * @version $Rev$
* @ConQAT.Rating YELLOW Hash: F419FCA55F52F78F6EB0C7D80AF32627 * @ConQAT.Rating GREEN Hash: 2002CCBC71CE58099D0C1BACCB5D4CE6
*/ */
public class ElementLayoutEditPolicy<T extends ILayoutedModelElement & INamedCommentedElement> public class ElementLayoutEditPolicy<T extends ILayoutedModelElement & INamedCommentedElement>
extends RelayCreateCommandEditPolicyBase { extends RelayCreateCommandEditPolicyBase {
......
...@@ -43,7 +43,7 @@ import org.fortiss.tooling.kernel.ui.dnd.ElementCompositionSource; ...@@ -43,7 +43,7 @@ import org.fortiss.tooling.kernel.ui.dnd.ElementCompositionSource;
* @author hoelzl * @author hoelzl
* @author $Author$ * @author $Author$
* @version $Rev$ * @version $Rev$
* @ConQAT.Rating YELLOW Hash: 66E79A7E8FC55B782B9141E8473B8A7B * @ConQAT.Rating GREEN Hash: C903DB73D3ADA8738234F94935C0CDDE
*/ */
public abstract class RelayCreateCommandEditPolicyBase extends LayoutEditPolicy { public abstract class RelayCreateCommandEditPolicyBase extends LayoutEditPolicy {
......
...@@ -32,7 +32,7 @@ import org.fortiss.tooling.kernel.ui.extension.base.PropertySectionBase; ...@@ -32,7 +32,7 @@ import org.fortiss.tooling.kernel.ui.extension.base.PropertySectionBase;
* @author ratiu * @author ratiu
* @author $Author: hoelzl $ * @author $Author: hoelzl $
* @version $Rev: 18709 $ * @version $Rev: 18709 $
* @ConQAT.Rating YELLOW Hash: 28164A1500812F5F071D29F4ECBD38B9 * @ConQAT.Rating GREEN Hash: 6428F3826328029F86C7993F10E23746
*/ */
public abstract class PropertySectionWithCopyPasteBase<T extends IModelElementSpecification> public abstract class PropertySectionWithCopyPasteBase<T extends IModelElementSpecification>
extends PropertySectionBase { extends PropertySectionBase {
......
...@@ -38,7 +38,7 @@ import org.eclipse.swt.widgets.Shell; ...@@ -38,7 +38,7 @@ import org.eclipse.swt.widgets.Shell;
* @author hoelzl * @author hoelzl
* @author $Author$ * @author $Author$
* @version $Rev$ * @version $Rev$
* @ConQAT.Rating YELLOW Hash: 1879A8B4DD69C9B0CA8F5E9C62920F71 * @ConQAT.Rating GREEN Hash: C473EA62A46BAA323662C9046C2921B5
*/ */
// Using drawn images may seem strange, but internet sources could not provide // Using drawn images may seem strange, but internet sources could not provide
// any other solution to having checkbox in cell editors // any other solution to having checkbox in cell editors
......
...@@ -35,7 +35,7 @@ import org.fortiss.tooling.kernel.ui.service.IModelElementHandlerService; ...@@ -35,7 +35,7 @@ import org.fortiss.tooling.kernel.ui.service.IModelElementHandlerService;
* @author hoelzl * @author hoelzl
* @author $Author$ * @author $Author$
* @version $Rev$ * @version $Rev$
* @ConQAT.Rating YELLOW Hash: CA5333015D50B981971B61CD6B9D5B89 * @ConQAT.Rating GREEN Hash: C7F3355267F72F318C897785861BF6AB
*/ */
public class IconNameLabelProvider implements IStyledLabelProvider { public class IconNameLabelProvider implements IStyledLabelProvider {
/** {@inheritDoc} */ /** {@inheritDoc} */
......
...@@ -17,9 +17,10 @@ $Id$ ...@@ -17,9 +17,10 @@ $Id$
+--------------------------------------------------------------------------*/ +--------------------------------------------------------------------------*/
package org.fortiss.tooling.base.ui.utils; package org.fortiss.tooling.base.ui.utils;
import static org.junit.Assert.assertNotNull;
import org.eclipse.jface.action.Action; import org.eclipse.jface.action.Action;
import org.eclipse.jface.resource.ImageDescriptor; import org.eclipse.jface.resource.ImageDescriptor;
import org.junit.Assert;
/** /**
* Utility methods for handling JFace {@link Action}s. * Utility methods for handling JFace {@link Action}s.
...@@ -27,7 +28,7 @@ import org.junit.Assert; ...@@ -27,7 +28,7 @@ import org.junit.Assert;
* @author hoelzl * @author hoelzl
* @author $Author$ * @author $Author$
* @version $Rev$ * @version $Rev$
* @ConQAT.Rating YELLOW Hash: C8DACEDA16494E5C0312EFC88604471D * @ConQAT.Rating GREEN Hash: 17F433D987A785A1914ADD5B8B899795
*/ */
public class ActionUtils { public class ActionUtils {
...@@ -51,8 +52,8 @@ public class ActionUtils { ...@@ -51,8 +52,8 @@ public class ActionUtils {
action.setToolTipText(toolTip); action.setToolTipText(toolTip);
action.setEnabled(true); action.setEnabled(true);
Assert.assertNotNull(icon); assertNotNull(icon);
Assert.assertNotNull(disabledIcon); assertNotNull(disabledIcon);
action.setImageDescriptor(icon); action.setImageDescriptor(icon);
action.setDisabledImageDescriptor(disabledIcon); action.setDisabledImageDescriptor(disabledIcon);
......
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