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 @@ -407,6 +407,7 @@ protected void fillMenu(IMenuManager manager) {
// Abstract
//
////////////////////////////////////////////////////////////////////////////
@Deprecated
protected abstract ComponentAttachmentInfo getComponentAttachmentInfo(IAbstractComponentInfo widget,
int side) throws Exception;
}
Original file line number Diff line number Diff line change
Expand Up @@ -1063,6 +1063,7 @@ private boolean isResizeable(IAbstractComponentInfo widget, boolean isHorizontal
* @return the list of widgets which attached to given <code>widget</code> by
* any side.
*/
@Deprecated
private List<ComponentAttachmentInfo> findAffectedWidgets() throws Exception {
List<ComponentAttachmentInfo> attached = new ArrayList<>();
// traverse through non-operating widgets.
Expand All @@ -1080,6 +1081,7 @@ private List<ComponentAttachmentInfo> findAffectedWidgets() throws Exception {
return attached;
}

@Deprecated
private boolean checkAttached(IAbstractComponentInfo widget, IAbstractComponentInfo targetWidget,
List<ComponentAttachmentInfo> attachedList, int side) throws Exception {
if (isAttachedToWidget(widget, targetWidget, side)) {
Expand Down Expand Up @@ -1114,6 +1116,7 @@ private void resolveCyclicReferences(boolean isHorizontal) throws Exception {
}
}

@Deprecated
private void resolveReference(ComponentAttachmentInfo attachment) throws Exception {
int side = attachment.getAlignment();
IAbstractComponentInfo widget = attachment.getSource();
Expand All @@ -1128,6 +1131,7 @@ private void resolveReference(ComponentAttachmentInfo attachment) throws Excepti
m_layoutCommands.attachAbsolute(widget, side, distance);
}

@Deprecated
private ComponentAttachmentInfo findReferenceToResolve(List<ComponentAttachmentInfo> cyclicList,
Pair<ComponentAttachmentInfo, ComponentAttachmentInfo> pair) {
if (!m_operatingWidgets.contains(pair.getLeft().getSource())) {
Expand All @@ -1136,6 +1140,7 @@ private ComponentAttachmentInfo findReferenceToResolve(List<ComponentAttachmentI
return pair.getRight();
}

@Deprecated
private Pair<ComponentAttachmentInfo, ComponentAttachmentInfo> getCyclicPair(
List<ComponentAttachmentInfo> cyclicList) {
ComponentAttachmentInfo first = cyclicList.get(0);
Expand All @@ -1152,6 +1157,7 @@ private Pair<ComponentAttachmentInfo, ComponentAttachmentInfo> getCyclicPair(
return new Pair<>(first, second);
}

@Deprecated
private List<ComponentAttachmentInfo> detectCyclicReferences(boolean isHorizontal) throws Exception {
List<ComponentAttachmentInfo> cyclicList = new ArrayList<>();
List<IAbstractComponentInfo> widgets = getNonDeletedWidgets();
Expand All @@ -1168,6 +1174,7 @@ private List<ComponentAttachmentInfo> detectCyclicReferences(boolean isHorizonta
return cyclicList;
}

@Deprecated
private void traverseAttachedWidgets(List<ComponentAttachmentInfo> cyclicList,
Set<IAbstractComponentInfo> visitedWidgets, IAbstractComponentInfo widget,
IAbstractComponentInfo targetWidget, boolean isHorizontal) throws Exception {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2011, 2024 Google, Inc. and others.
* 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 Down Expand Up @@ -46,9 +46,10 @@ public GroupSelectionEditPolicy(GroupLayoutInfo layout) {
////////////////////////////////////////////////////////////////////////////

@Override
@Deprecated
protected ComponentAttachmentInfo getComponentAttachmentInfo(IAbstractComponentInfo widget,
int side) throws Exception {
return m_layout.getComponentAttachmentInfo(widget, side);
return null;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2011, 2024 Google, Inc. and others.
* 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 @@ -15,7 +15,6 @@
import org.eclipse.wb.core.model.IAbstractComponentInfo;
import org.eclipse.wb.core.model.JavaInfo;
import org.eclipse.wb.core.model.broadcast.JavaEventListener;
import org.eclipse.wb.internal.core.gef.policy.snapping.ComponentAttachmentInfo;
import org.eclipse.wb.internal.core.gef.policy.snapping.IAbsoluteLayoutCommands;
import org.eclipse.wb.internal.core.model.creation.CreationSupport;
import org.eclipse.wb.internal.core.model.description.ComponentDescription;
Expand Down Expand Up @@ -135,11 +134,6 @@ public void setExplicitSize(IAbstractComponentInfo widget,
int resizeDelta) throws Exception {
}

public ComponentAttachmentInfo getComponentAttachmentInfo(IAbstractComponentInfo widget,
int side) {
return null;
}

////////////////////////////////////////////////////////////////////////////
//
// Commands
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2011, 2024 Google, Inc. and others.
* 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 Down Expand Up @@ -47,6 +47,7 @@ public SpringSelectionEditPolicy(SpringLayoutInfo layout) {
////////////////////////////////////////////////////////////////////////////

@Override
@Deprecated
protected ComponentAttachmentInfo getComponentAttachmentInfo(IAbstractComponentInfo widget,
int side) throws Exception {
return m_layout.getComponentAttachmentInfo(widget, side);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2011, 2024 Google, Inc. and others.
* 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 Down Expand Up @@ -255,6 +255,7 @@ public final SpringAttachmentInfo getAttachmentBottom(ComponentInfo component) {
// Access
//
////////////////////////////////////////////////////////////////////////////
@Deprecated
public ComponentAttachmentInfo getComponentAttachmentInfo(IAbstractComponentInfo widget, int side)
throws Exception {
SpringAttachmentInfo attachment = getAttachment(widget, side);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2011, 2024 Google, Inc. and others.
* 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 Down Expand Up @@ -48,6 +48,7 @@ public FormSelectionEditPolicy(IFormLayoutInfo<C> layout) {
////////////////////////////////////////////////////////////////////////////

@Override
@Deprecated
protected ComponentAttachmentInfo getComponentAttachmentInfo(IAbstractComponentInfo widget,
int side) throws Exception {
return m_layout.getComponentAttachmentInfo(widget, side);
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 Down Expand Up @@ -709,6 +709,7 @@ private static <C extends IControlInfo> void setNewSize(IFormAttachmentInfo<C> a
// Access
//
////////////////////////////////////////////////////////////////////////////
@Deprecated
public ComponentAttachmentInfo getComponentAttachmentInfo(IAbstractComponentInfo widget, int side)
throws Exception {
if (m_layout.isManagedObject(widget) && isAttached(widget, side)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ public void test_getAttachedToWidget() throws Exception {
* Tests for {@link SpringLayoutInfo#getComponentAttachmentInfo(AbstractComponentInfo, int)}.
*/
@Test
@Deprecated
public void test_getComponentAttachmentInfo_parent() throws Exception {
ContainerInfo panel =
parseContainer(
Expand Down Expand Up @@ -297,6 +298,7 @@ public void test_getComponentAttachmentInfo_parent() throws Exception {
* Tests for {@link SpringLayoutInfo#getComponentAttachmentInfo(AbstractComponentInfo, int)}.
*/
@Test
@Deprecated
public void test_getComponentAttachmentInfo() throws Exception {
ContainerInfo panel =
parseContainer(
Expand Down
Loading