Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scene-builder-plugin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Ask
scene-builder-plugin
Commits
87499f76
There was a problem fetching the pipeline summary.
Commit
87499f76
authored
7 years ago
by
Tobias Ask
Browse files
Options
Downloads
Plain Diff
Merge branch '15-delete-action-is-not-integrated' into 'master'
Resolve "Delete action is not integrated" Closes
#15
See merge request
!10
parents
6dcd3cdf
cc329ab8
No related branches found
No related tags found
1 merge request
!10
Resolve "Delete action is not integrated"
Pipeline
#
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
sb4e/src/no/tobask/sb4e/editors/FXMLEditor.java
+6
-0
6 additions, 0 deletions
sb4e/src/no/tobask/sb4e/editors/FXMLEditor.java
sb4e/src/no/tobask/sb4e/editors/FXMLEditorContributor.java
+1
-0
1 addition, 0 deletions
sb4e/src/no/tobask/sb4e/editors/FXMLEditorContributor.java
with
7 additions
and
0 deletions
sb4e/src/no/tobask/sb4e/editors/FXMLEditor.java
+
6
−
0
View file @
87499f76
...
@@ -65,6 +65,7 @@ public class FXMLEditor extends EditorPart {
...
@@ -65,6 +65,7 @@ public class FXMLEditor extends EditorPart {
private
IAction
copyHandler
;
private
IAction
copyHandler
;
private
IAction
cutHandler
;
private
IAction
cutHandler
;
private
IAction
pasteHandler
;
private
IAction
pasteHandler
;
private
IAction
deleteHandler
;
public
IAction
getUndoActionHandler
()
{
public
IAction
getUndoActionHandler
()
{
return
undoActionHandler
;
return
undoActionHandler
;
...
@@ -86,6 +87,10 @@ public class FXMLEditor extends EditorPart {
...
@@ -86,6 +87,10 @@ public class FXMLEditor extends EditorPart {
return
pasteHandler
;
return
pasteHandler
;
}
}
public
IAction
getDeleteHandler
()
{
return
deleteHandler
;
}
public
EditorController
getEditorController
()
{
public
EditorController
getEditorController
()
{
return
editorController
;
return
editorController
;
}
}
...
@@ -163,6 +168,7 @@ public class FXMLEditor extends EditorPart {
...
@@ -163,6 +168,7 @@ public class FXMLEditor extends EditorPart {
copyHandler
=
new
SceneBuilderControlActionHandler
(
editorController
,
ControlAction
.
COPY
);
copyHandler
=
new
SceneBuilderControlActionHandler
(
editorController
,
ControlAction
.
COPY
);
cutHandler
=
new
SceneBuilderEditActionHandler
(
editorController
,
EditAction
.
CUT
);
cutHandler
=
new
SceneBuilderEditActionHandler
(
editorController
,
EditAction
.
CUT
);
pasteHandler
=
new
SceneBuilderEditActionHandler
(
editorController
,
EditAction
.
PASTE
);
pasteHandler
=
new
SceneBuilderEditActionHandler
(
editorController
,
EditAction
.
PASTE
);
deleteHandler
=
new
SceneBuilderEditActionHandler
(
editorController
,
EditAction
.
DELETE
);
}
}
private
ChangeListener
<
Number
>
editorSelectionListener
=
(
oV
,
oldNum
,
newNum
)
->
{
private
ChangeListener
<
Number
>
editorSelectionListener
=
(
oV
,
oldNum
,
newNum
)
->
{
...
...
This diff is collapsed.
Click to expand it.
sb4e/src/no/tobask/sb4e/editors/FXMLEditorContributor.java
+
1
−
0
View file @
87499f76
...
@@ -20,6 +20,7 @@ public class FXMLEditorContributor extends EditorActionBarContributor {
...
@@ -20,6 +20,7 @@ public class FXMLEditorContributor extends EditorActionBarContributor {
actionBars
.
setGlobalActionHandler
(
ActionFactory
.
COPY
.
getId
(),
editor
.
getCopyHandler
());
actionBars
.
setGlobalActionHandler
(
ActionFactory
.
COPY
.
getId
(),
editor
.
getCopyHandler
());
actionBars
.
setGlobalActionHandler
(
ActionFactory
.
CUT
.
getId
(),
editor
.
getCutHandler
());
actionBars
.
setGlobalActionHandler
(
ActionFactory
.
CUT
.
getId
(),
editor
.
getCutHandler
());
actionBars
.
setGlobalActionHandler
(
ActionFactory
.
PASTE
.
getId
(),
editor
.
getPasteHandler
());
actionBars
.
setGlobalActionHandler
(
ActionFactory
.
PASTE
.
getId
(),
editor
.
getPasteHandler
());
actionBars
.
setGlobalActionHandler
(
ActionFactory
.
DELETE
.
getId
(),
editor
.
getDeleteHandler
());
actionBars
.
updateActionBars
();
actionBars
.
updateActionBars
();
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment