Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kernel
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
af3
kernel
Commits
3b1c3581
Commit
3b1c3581
authored
8 years ago
by
Florian Hölzl
Browse files
Options
Downloads
Patches
Plain Diff
Added TutorialUIUtils class to ease tutorial implementations.
refs 2567
parent
6e85bd17
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/util/TutorialUIServiceUtils.java
+40
-0
40 additions, 0 deletions
...ortiss/tooling/kernel/ui/util/TutorialUIServiceUtils.java
with
40 additions
and
0 deletions
org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/util/TutorialUIServiceUtils.java
0 → 100644
+
40
−
0
View file @
3b1c3581
/*--------------------------------------------------------------------------+
$Id: codetemplates.xml 1 2011-01-01 00:00:01Z hoelzl $
| |
| Copyright 2016 ForTISS GmbH |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
+--------------------------------------------------------------------------*/
package
org.fortiss.tooling.kernel.ui.util
;
import
org.eclipse.emf.ecore.EObject
;
import
org.eclipse.jface.action.IContributionItem
;
import
org.fortiss.tooling.kernel.extension.data.Prototype
;
import
org.fortiss.tooling.kernel.ui.service.IActionService
;
/**
* Utility class providing common methods used when implementing UI parts of tutorials.
*
* @author hoelzl
* @author $Author: hoelzl $
* @version $Rev: 18709 $
* @ConQAT.Rating RED Hash:
*/
public
class
TutorialUIServiceUtils
{
/** Returns whether the given contribution is a new menu prototype instance of the given class. */
public
static
boolean
isNewMenuContributionPrototype
(
IContributionItem
contribution
,
Class
<?
extends
EObject
>
clazz
)
{
Prototype
proto
=
IActionService
.
INSTANCE
.
getNewMenuContributionPrototype
(
contribution
);
return
proto
!=
null
&&
clazz
.
isInstance
(
proto
.
getPrototype
());
}
}
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