Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ProB Rodin Plugin
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
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
general
stups
ProB Rodin Plugin
Commits
de2e731a
Commit
de2e731a
authored
10 months ago
by
dgelessus
Browse files
Options
Downloads
Patches
Plain Diff
Remove unused deprecated NewBMotionProjectAction
parent
bbb8c4a0
No related branches found
No related tags found
Loading
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
de.bmotionstudio.gef.editor/src/de/bmotionstudio/gef/editor/internal/NewBMotionProjectAction.java
+0
-78
0 additions, 78 deletions
...onstudio/gef/editor/internal/NewBMotionProjectAction.java
with
0 additions
and
78 deletions
de.bmotionstudio.gef.editor/src/de/bmotionstudio/gef/editor/internal/NewBMotionProjectAction.java
deleted
100644 → 0
+
0
−
78
View file @
bbb8c4a0
/**
* (c) 2009 Lehrstuhl fuer Softwaretechnik und Programmiersprachen,
* Heinrich Heine Universitaet Duesseldorf
* This software is licenced under EPL 1.0 (http://www.eclipse.org/org/documents/epl-v10.html)
* */
package
de.bmotionstudio.gef.editor.internal
;
import
org.eclipse.jface.action.IAction
;
import
org.eclipse.jface.viewers.ISelection
;
import
org.eclipse.jface.viewers.IStructuredSelection
;
import
org.eclipse.jface.wizard.WizardDialog
;
import
org.eclipse.ui.IActionDelegate
;
import
org.eclipse.ui.IObjectActionDelegate
;
import
org.eclipse.ui.IWorkbenchPart
;
import
org.rodinp.core.IRodinProject
;
import
de.bmotionstudio.gef.editor.BMotionEditorPlugin
;
@Deprecated
public
class
NewBMotionProjectAction
implements
IObjectActionDelegate
{
// private IWorkbenchPart targetPart;
private
IStructuredSelection
currentSelection
;
private
IRodinProject
rodinProject
;
public
NewBMotionProjectAction
()
{
super
();
}
/**
* @see IObjectActionDelegate#setActivePart(IAction, IWorkbenchPart)
*/
public
void
setActivePart
(
final
IAction
action
,
final
IWorkbenchPart
targetPart
)
{
// this.targetPart = targetPart;
}
/**
* @see IActionDelegate#run(IAction)
*/
public
void
run
(
IAction
action
)
{
if
(
rodinProject
==
null
)
{
return
;
}
NewBMotionProjectWizard
wizard
=
new
NewBMotionProjectWizard
();
wizard
.
init
(
BMotionEditorPlugin
.
getDefault
().
getWorkbench
(),
currentSelection
);
WizardDialog
dialog
=
new
WizardDialog
(
BMotionEditorPlugin
.
getActiveEditor
().
getSite
().
getShell
(),
wizard
);
dialog
.
create
();
dialog
.
open
();
}
/**
* @see IActionDelegate#selectionChanged(IAction, ISelection)
*/
public
void
selectionChanged
(
IAction
action
,
ISelection
selection
)
{
if
(
selection
instanceof
IStructuredSelection
)
{
IStructuredSelection
ssel
=
(
IStructuredSelection
)
selection
;
currentSelection
=
ssel
;
if
(
ssel
.
size
()
==
1
)
{
Object
firstElement
=
ssel
.
getFirstElement
();
if
(
firstElement
instanceof
IRodinProject
)
{
rodinProject
=
(
IRodinProject
)
firstElement
;
return
;
}
}
}
rodinProject
=
null
;
}
}
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