Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
af3
kernel
Commits
24584167
Commit
24584167
authored
Nov 10, 2017
by
Florian Hölzl
Browse files
GREEN. Unused methods will be treated after the release.
refs 2490
parent
bba86be4
Changes
5
Hide whitespace changes
Inline
Side-by-side
org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/utils/LayoutDataUIUtils.java
View file @
24584167
...
...
@@ -118,7 +118,6 @@ public class LayoutDataUIUtils {
}
/** Returns the layouted connector's position. */
// TODO(VA) This method is not used -> remove?
public
static
Point
getConnectorPosition
(
ILayoutedModelElement
layouted
)
{
return
getPosition
(
layouted
,
CONNECTOR_POSITION
);
}
...
...
@@ -138,13 +137,11 @@ public class LayoutDataUIUtils {
}
/** Returns the layouted connector's orientation. */
// TODO(VA) This method is not used -> remove?
public
static
EOrientation
getConnectorOrientation
(
ILayoutedModelElement
layouted
)
{
return
getOffsetOrientation
(
layouted
,
CONNECTOR_OFFSET_ORIENTATION
).
getOrientation
();
}
/** Sets the layouted connector's offset and orientation. */
// TODO(VA) This method is not used -> remove?
public
static
void
setConnectorOffsetOrientation
(
ILayoutedModelElement
layouted
,
OffsetOrientation
orientation
)
{
setOffsetOrientation
(
layouted
,
CONNECTOR_OFFSET_ORIENTATION
,
orientation
.
getOffset
(),
...
...
@@ -152,7 +149,6 @@ public class LayoutDataUIUtils {
}
/** Returns the layouted connector's offset. */
// TODO(VA) This method is not used -> remove?
public
static
Offset
getConnectorOffset
(
ILayoutedModelElement
layouted
)
{
OffsetOrientation
offset
=
getOffsetOrientation
(
layouted
,
CONNECTOR_OFFSET
);
if
(
offset
==
null
)
{
...
...
@@ -184,7 +180,6 @@ public class LayoutDataUIUtils {
* Return the absolute position for a given offset, orientation, size of the
* parent and insets.
*/
// TODO(VA) This method is not used -> remove?
public
static
Point
getAbsolute
(
OffsetOrientation
oo
,
Rectangle
parentBounds
,
int
parentInsets
)
{
Dimension
d
=
createDimension
(
parentBounds
.
width
,
parentBounds
.
height
,
""
);
return
getAbsolute
(
oo
,
d
,
parentInsets
);
...
...
org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/utils/RectangleLayoutUIUtils.java
View file @
24584167
...
...
@@ -97,7 +97,6 @@ public class RectangleLayoutUIUtils {
* the old size to be adjusted
* @return the new dimensions
*/
// TODO(VA) This method is not used -> remove?
public
static
Dimension
retainMinimumRectangularShapeSize
(
Dimension
oldSize
)
{
return
clampRectangularShapeSize
(
oldSize
,
DEFAULT_SHAPE_MINIMUM_WIDTH
,
DEFAULT_SHAPE_MINIMUM_HEIGHT
);
...
...
org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/utils/SnapToGridUtils.java
View file @
24584167
...
...
@@ -46,14 +46,12 @@ public final class SnapToGridUtils {
* Modifies the x and y coordinates of the given point to be on the grid of
* the given size.
*/
// TODO(VA) This method is not used -> remove?
public
static
void
snapToGrid
(
Point
p
,
int
gridSize
)
{
p
.
x
=
snapToGrid
(
p
.
x
,
gridSize
);
p
.
y
=
snapToGrid
(
p
.
y
,
gridSize
);
}
/** Modifies the x and y coordinates of the given point to be on the grid. */
// TODO(VA) This method is not used -> remove?
public
static
void
snapToGrid
(
Point
p
)
{
p
.
x
=
snapToGrid
(
p
.
x
,
DefaultLayoutConstants
.
DEFAULT_GRID_SIZE
);
p
.
y
=
snapToGrid
(
p
.
y
,
DefaultLayoutConstants
.
DEFAULT_GRID_SIZE
);
...
...
org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/utils/StatusUtils.java
View file @
24584167
...
...
@@ -65,7 +65,6 @@ public class StatusUtils {
* @param message
* the message
*/
// TODO(VA) This method is not used -> remove?
public
static
void
setStatusMessage
(
String
message
)
{
if
(
getStatusLine
()
!=
null
)
{
getStatusLine
().
setMessage
(
message
);
...
...
org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/utils/TableViewerUtils.java
View file @
24584167
...
...
@@ -118,7 +118,6 @@ public class TableViewerUtils {
* the column's editing support
* @return the configured viewer column
*/
// TODO(VA) This method is not used -> remove?
public
static
TableViewerColumn
createWeightedColumn
(
TableViewer
viewer
,
int
widthWeight
,
String
title
,
String
tooltip
,
ColumnLabelProvider
labelProvider
,
EditingSupport
editingSupport
)
{
...
...
@@ -192,7 +191,6 @@ public class TableViewerUtils {
}
/** Editing support for numbers. */
// TODO(VA) This method is not used -> remove?
public
static
abstract
class
NumberEditingSupport
extends
EditingSupport
{
/** The parent where the editing support is needed. */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment