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
8cbd2ce6
Commit
8cbd2ce6
authored
Mar 13, 2018
by
Filip Reaboi
Browse files
YELLOW
parent
4fad41da
Changes
2
Hide whitespace changes
Inline
Side-by-side
org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/editpart/allocation/IAllocationPositionService.java
View file @
8cbd2ce6
...
...
@@ -19,14 +19,13 @@ import org.eclipse.draw2d.geometry.Point;
import
org.eclipse.draw2d.geometry.Rectangle
;
import
org.eclipse.gef.RootEditPart
;
//TODO(SB,6)
/**
* Interface for allocation target elements.
* Stores the position of allocation sources and allocation targets in the diagram editor. Connects
* the position to the {@link SubDiagramEditPartBase}s and stores their bounds.
* Stores the position of allocation sources and allocation targets in the diagram editor.
*
* @author eder
*/
public
interface
IAllocationPositionService
{
/** Returns the service instance. */
public
static
IAllocationPositionService
getInstance
()
{
...
...
org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/utils/TableViewerUtils.java
View file @
8cbd2ce6
...
...
@@ -15,11 +15,16 @@
+--------------------------------------------------------------------------*/
package
org.fortiss.tooling.base.ui.utils
;
import
static
java
.
lang
.
Integer
.
parseInt
;
import
static
org
.
eclipse
.
jface
.
viewers
.
ColumnViewerEditor
.
KEYBOARD_ACTIVATION
;
import
static
org
.
eclipse
.
jface
.
viewers
.
ColumnViewerEditor
.
TABBING_HORIZONTAL
;
import
static
org
.
eclipse
.
jface
.
viewers
.
ColumnViewerEditor
.
TABBING_MOVE_TO_ROW_NEIGHBOR
;
import
static
org
.
eclipse
.
jface
.
viewers
.
ColumnViewerEditor
.
TABBING_VERTICAL
;
import
org.eclipse.jface.layout.TableColumnLayout
;
import
org.eclipse.jface.viewers.CellEditor
;
import
org.eclipse.jface.viewers.ColumnLabelProvider
;
import
org.eclipse.jface.viewers.ColumnViewer
;
import
org.eclipse.jface.viewers.ColumnViewerEditor
;
import
org.eclipse.jface.viewers.ColumnViewerEditorActivationStrategy
;
import
org.eclipse.jface.viewers.ColumnWeightData
;
import
org.eclipse.jface.viewers.EditingSupport
;
...
...
@@ -38,6 +43,7 @@ import org.eclipse.swt.widgets.Composite;
*
* @author hoelzl
*/
public
class
TableViewerUtils
{
/**
...
...
@@ -173,8 +179,7 @@ public class TableViewerUtils {
@Override
public
String
isValid
(
Object
value
)
{
try
{
// TODO(SB,25)
Integer
.
parseInt
(
value
.
toString
());
parseInt
(
value
.
toString
());
}
catch
(
NumberFormatException
nfe
)
{
return
"Not a valid integer"
;
}
...
...
@@ -199,11 +204,7 @@ public class TableViewerUtils {
ColumnViewerEditorActivationStrategy
activationSupport
=
new
ColumnViewerEditorActivationStrategy
(
table
);
// TODO(SB,25) (x5)
TableViewerEditor
.
create
(
table
,
focusCellManager
,
activationSupport
,
ColumnViewerEditor
.
TABBING_HORIZONTAL
|
ColumnViewerEditor
.
TABBING_MOVE_TO_ROW_NEIGHBOR
|
ColumnViewerEditor
.
TABBING_VERTICAL
|
ColumnViewerEditor
.
KEYBOARD_ACTIVATION
);
TableViewerEditor
.
create
(
table
,
focusCellManager
,
activationSupport
,
TABBING_HORIZONTAL
|
TABBING_MOVE_TO_ROW_NEIGHBOR
|
TABBING_VERTICAL
|
KEYBOARD_ACTIVATION
);
}
}
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