Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ public ColumnHeaderEditPart(FormLayoutInfo layout, FormColumnInfo column, IFigur
//
////////////////////////////////////////////////////////////////////////////
@Override
protected Figure createFigure() {
Figure newFigure = new Figure() {
protected IFigure createFigure() {
IFigure newFigure = new Figure() {
@Override
protected void paintClientArea(Graphics graphics) {
Rectangle r = getClientArea();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ public RowHeaderEditPart(FormLayoutInfo layout, FormRowInfo row, IFigure contain
//
////////////////////////////////////////////////////////////////////////////
@Override
protected Figure createFigure() {
Figure newFigure = new Figure() {
protected IFigure createFigure() {
IFigure newFigure = new Figure() {
@Override
protected void paintClientArea(Graphics graphics) {
Rectangle r = getClientArea();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ protected final T getDimension() {
// Resize
//
////////////////////////////////////////////////////////////////////////////
private Figure m_lineFeedback;
private IFigure m_lineFeedback;
private ResizeHintFigure m_feedback;
private ChangeBoundsRequest m_lastResizeRequest;
protected Command m_resizeCommand;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2011, 2023 Google, Inc.
* Copyright (c) 2011, 2025 Google, Inc. and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
Expand All @@ -23,14 +23,15 @@

import org.eclipse.draw2d.ColorConstants;
import org.eclipse.draw2d.Graphics;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.geometry.Dimension;
import org.eclipse.draw2d.geometry.Insets;
import org.eclipse.swt.graphics.Font;

import java.text.MessageFormat;

/**
* {@link Figure} for displaying {@link FormLayoutInfo} header resize.
* {@link IFigure} for displaying {@link FormLayoutInfo} header resize.
*
* @author scheglov_ke
* @coverage swing.FormLayout.header
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ public ColumnHeaderEditPart(MigLayoutInfo layout, MigColumnInfo column, IFigure
//
////////////////////////////////////////////////////////////////////////////
@Override
protected Figure createFigure() {
Figure newFigure = new Figure() {
protected IFigure createFigure() {
IFigure newFigure = new Figure() {
@Override
protected void paintClientArea(Graphics graphics) {
Rectangle r = getClientArea();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ public RowHeaderEditPart(MigLayoutInfo layout, MigRowInfo row, IFigure container
//
////////////////////////////////////////////////////////////////////////////
@Override
protected Figure createFigure() {
Figure newFigure = new Figure() {
protected IFigure createFigure() {
IFigure newFigure = new Figure() {
@Override
protected void paintClientArea(Graphics graphics) {
Rectangle r = getClientArea();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ protected final T getDimension() {
////////////////////////////////////////////////////////////////////////////
private SizeElement m_resizeSizeElement;
private String m_resizeSizeUnit;
private Figure m_lineFeedback;
private IFigure m_lineFeedback;
private ResizeHintFigure m_feedback;
private ChangeBoundsRequest m_lastResizeRequest;
protected Command m_resizeCommand;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2011, 2023 Google, Inc.
* Copyright (c) 2011, 2025 Google, Inc. and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
Expand All @@ -23,6 +23,7 @@

import org.eclipse.draw2d.ColorConstants;
import org.eclipse.draw2d.Graphics;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.SWTGraphics;
import org.eclipse.draw2d.geometry.Dimension;
import org.eclipse.draw2d.geometry.Insets;
Expand All @@ -31,7 +32,7 @@
import org.eclipse.swt.widgets.Shell;

/**
* {@link Figure} for displaying {@link MigLayoutInfo} header resize.
* {@link IFigure} for displaying {@link MigLayoutInfo} header resize.
*
* @author scheglov_ke
* @coverage swing.MigLayout.header
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import org.eclipse.wb.internal.swing.model.component.JTabbedPaneInfo;
import org.eclipse.wb.internal.swing.model.component.JTabbedPaneTabInfo;

import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.geometry.Rectangle;
import org.eclipse.gef.EditPolicy;
import org.eclipse.gef.Request;
Expand Down Expand Up @@ -59,7 +60,7 @@ protected void updateModel() {
//
////////////////////////////////////////////////////////////////////////////
@Override
protected Figure createFigure() {
protected IFigure createFigure() {
return new Figure();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import org.eclipse.wb.internal.swing.model.component.ComponentInfo;

import org.eclipse.draw2d.Graphics;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.geometry.Rectangle;
import org.eclipse.gef.EditPolicy;

Expand Down Expand Up @@ -56,7 +57,7 @@ protected void createEditPolicies() {
//
////////////////////////////////////////////////////////////////////////////
@Override
protected Figure createFigure() {
protected IFigure createFigure() {
return new Figure() {
@Override
protected void paintClientArea(Graphics graphics) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import org.eclipse.wb.internal.swing.model.component.ComponentInfo;

import org.eclipse.draw2d.Graphics;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.geometry.Rectangle;
import org.eclipse.gef.EditPolicy;

Expand Down Expand Up @@ -56,7 +57,7 @@ protected void createEditPolicies() {
//
////////////////////////////////////////////////////////////////////////////
@Override
protected Figure createFigure() {
protected IFigure createFigure() {
return new Figure() {
@Override
protected void paintClientArea(Graphics graphics) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import org.eclipse.wb.internal.swing.model.component.ComponentInfo;

import org.eclipse.draw2d.Graphics;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.geometry.Rectangle;
import org.eclipse.gef.EditPolicy;

Expand Down Expand Up @@ -56,7 +57,7 @@ protected void createEditPolicies() {
//
////////////////////////////////////////////////////////////////////////////
@Override
protected Figure createFigure() {
protected IFigure createFigure() {
return new Figure() {
@Override
protected void paintClientArea(Graphics graphics) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import org.eclipse.wb.internal.swing.model.component.ComponentInfo;

import org.eclipse.draw2d.Graphics;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.geometry.Rectangle;
import org.eclipse.gef.EditPolicy;

Expand Down Expand Up @@ -58,7 +59,7 @@ protected void createEditPolicies() {
//
////////////////////////////////////////////////////////////////////////////
@Override
protected Figure createFigure() {
protected IFigure createFigure() {
return new Figure() {
@Override
protected void paintClientArea(Graphics graphics) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import org.eclipse.wb.internal.swing.model.component.ComponentInfo;

import org.eclipse.draw2d.Graphics;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.geometry.Rectangle;
import org.eclipse.gef.EditPolicy;

Expand Down Expand Up @@ -60,7 +61,7 @@ protected void createEditPolicies() {
//
////////////////////////////////////////////////////////////////////////////
@Override
protected Figure createFigure() {
protected IFigure createFigure() {
return new Figure() {
@Override
protected void paintClientArea(Graphics graphics) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import org.eclipse.wb.internal.swing.model.component.ComponentInfo;

import org.eclipse.draw2d.Graphics;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.geometry.Rectangle;
import org.eclipse.gef.EditPolicy;

Expand Down Expand Up @@ -58,7 +59,7 @@ protected void createEditPolicies() {
//
////////////////////////////////////////////////////////////////////////////
@Override
protected Figure createFigure() {
protected IFigure createFigure() {
return new Figure() {
@Override
protected void paintClientArea(Graphics graphics) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

import org.eclipse.wb.core.gef.command.EditCommand;
import org.eclipse.wb.core.gef.figure.TextFeedback;
import org.eclipse.wb.draw2d.Figure;
import org.eclipse.wb.draw2d.FigureUtils;
import org.eclipse.wb.draw2d.RectangleFigure;
import org.eclipse.wb.gef.core.requests.ChangeBoundsRequest;
Expand Down Expand Up @@ -110,7 +109,7 @@ public void eraseSourceFeedback(Request request) {
// Resize
//
////////////////////////////////////////////////////////////////////////////
private Figure m_sizeFeedback;
private IFigure m_sizeFeedback;
private TextFeedback m_textFeedback;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ public ColumnHeaderEditPart(AbstractGridBagLayoutInfo layout,
//
////////////////////////////////////////////////////////////////////////////
@Override
protected Figure createFigure() {
Figure figure = new Figure() {
protected IFigure createFigure() {
IFigure figure = new Figure() {
@Override
protected void paintClientArea(Graphics graphics) {
Rectangle r = getClientArea();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ public RowHeaderEditPart(AbstractGridBagLayoutInfo layout, RowInfo row, IFigure
//
////////////////////////////////////////////////////////////////////////////
@Override
protected Figure createFigure() {
Figure figure = new Figure() {
protected IFigure createFigure() {
IFigure figure = new Figure() {
@Override
protected void paintClientArea(Graphics graphics) {
Rectangle r = getClientArea();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ protected final T getDimension() {
// Resize
//
////////////////////////////////////////////////////////////////////////////
private Figure m_lineFeedback;
private IFigure m_lineFeedback;
private TextFeedback m_feedback;
protected Command m_resizeCommand;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2011, 2024 Google, Inc.
* Copyright (c) 2011, 2025 Google, Inc. and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
Expand All @@ -25,6 +25,7 @@

import org.eclipse.draw2d.ColorConstants;
import org.eclipse.draw2d.Graphics;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.TextUtilities;
import org.eclipse.draw2d.geometry.Dimension;
import org.eclipse.draw2d.geometry.Insets;
Expand Down Expand Up @@ -71,7 +72,7 @@ protected ILayoutRequestValidator getRequestValidator() {
// Feedback
//
////////////////////////////////////////////////////////////////////////////
private Figure m_feedback;
private IFigure m_feedback;

@Override
protected void showLayoutTargetFeedback(Request request) {
Expand Down
Loading