Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uaaltools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
universAAL
uaaltools
Commits
6e56ff41
Commit
6e56ff41
authored
12 years ago
by
Manlio Bacco
Browse files
Options
Downloads
Patches
Plain Diff
enabled Conformance Test button
parent
24fe6205
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dashboard/org.universaal.tools.dashboard/src/org/universaal/tools/dashboard/views/OntologyView.java
+42
-44
42 additions, 44 deletions
...rc/org/universaal/tools/dashboard/views/OntologyView.java
with
42 additions
and
44 deletions
dashboard/org.universaal.tools.dashboard/src/org/universaal/tools/dashboard/views/OntologyView.java
+
42
−
44
View file @
6e56ff41
package
org.universaal.tools.dashboard.views
;
import
org.eclipse.swt.widgets.Composite
;
import
org.eclipse.swt.layout.GridLayout
;
import
org.eclipse.swt.widgets.Group
;
import
org.eclipse.swt.SWT
;
import
org.eclipse.swt.widgets.Label
;
import
org.eclipse.swt.layout.GridData
;
import
org.eclipse.swt.widgets.Button
;
import
org.eclipse.swt.layout.FillLayout
;
import
org.eclipse.swt.layout.GridData
;
import
org.eclipse.swt.layout.GridLayout
;
import
org.eclipse.swt.layout.RowLayout
;
import
org.eclipse.ui.part.ViewPart
;
import
org.eclipse.swt.widgets.Button
;
import
org.eclipse.swt.widgets.Composite
;
import
org.eclipse.swt.widgets.Group
;
import
org.eclipse.swt.widgets.Label
;
import
org.eclipse.wb.swt.ResourceManager
;
import
org.eclipse.wb.swt.SWTResourceManager
;
import
org.universaal.tools.dashboard.buttonlisteners.CommandCallingListener
;
import
org.universaal.tools.dashboard.buttonlisteners.TemporaryListener
;
public
class
OntologyView
extends
Composite
{
...
...
@@ -31,7 +29,7 @@ public class OntologyView extends Composite {
Button
btnPublishToUStore
;
Button
btnPublishOpenSource
;
Button
btnCreateAndEdit
;
/**
* Create the composite.
* @param parent
...
...
@@ -40,36 +38,36 @@ public class OntologyView extends Composite {
public
OntologyView
(
Composite
parent
,
int
style
)
{
super
(
parent
,
style
);
setLayout
(
new
GridLayout
(
7
,
false
));
Group
grpProject
=
new
Group
(
this
,
SWT
.
NONE
);
grpProject
.
setFont
(
SWTResourceManager
.
getFont
(
"Lucida Grande"
,
11
,
SWT
.
BOLD
));
grpProject
.
setBackground
(
SWTResourceManager
.
getColor
(
135
,
206
,
250
));
grpProject
.
setLayout
(
new
FillLayout
(
SWT
.
VERTICAL
));
grpProject
.
setLayoutData
(
new
GridData
(
SWT
.
LEFT
,
SWT
.
CENTER
,
false
,
false
,
1
,
2
));
grpProject
.
setText
(
"Project"
);
btnCreate
=
new
Button
(
grpProject
,
SWT
.
NONE
);
btnCreate
.
setText
(
"Create"
);
btnImportProject
=
new
Button
(
grpProject
,
SWT
.
NONE
);
btnImportProject
.
setEnabled
(
false
);
btnImportProject
.
setText
(
"Import Project"
);
btnImportExample
=
new
Button
(
grpProject
,
SWT
.
NONE
);
btnImportExample
.
setText
(
"Import Example"
);
Composite
composite
=
new
Composite
(
this
,
SWT
.
NONE
);
RowLayout
rl_composite
=
new
RowLayout
(
SWT
.
VERTICAL
);
rl_composite
.
center
=
true
;
composite
.
setLayout
(
rl_composite
);
composite
.
setLayoutData
(
new
GridData
(
SWT
.
LEFT
,
SWT
.
CENTER
,
false
,
false
,
1
,
2
));
Label
lblAbc
=
new
Label
(
composite
,
SWT
.
NONE
);
lblAbc
.
setImage
(
ResourceManager
.
getPluginImage
(
"org.universaal.tools.dashboard"
,
"icons/go-next.png"
));
btnTransform
=
new
Button
(
composite
,
SWT
.
NONE
);
btnTransform
.
setText
(
"Transform"
);
Group
grpJavaClasses
=
new
Group
(
this
,
SWT
.
NONE
);
grpJavaClasses
.
setFont
(
SWTResourceManager
.
getFont
(
"Lucida Grande"
,
11
,
SWT
.
BOLD
));
grpJavaClasses
.
setBackground
(
SWTResourceManager
.
getColor
(
135
,
206
,
250
));
...
...
@@ -78,69 +76,69 @@ public class OntologyView extends Composite {
gd_grpJavaClasses
.
widthHint
=
92
;
grpJavaClasses
.
setLayoutData
(
gd_grpJavaClasses
);
grpJavaClasses
.
setText
(
"Java Classes"
);
btnCreateClass
=
new
Button
(
grpJavaClasses
,
SWT
.
NONE
);
btnCreateClass
.
setText
(
"Create"
);
btnImportClass
=
new
Button
(
grpJavaClasses
,
SWT
.
NONE
);
btnImportClass
.
setEnabled
(
false
);
btnImportClass
.
setText
(
"Import"
);
Composite
composite_1
=
new
Composite
(
this
,
SWT
.
NONE
);
RowLayout
rl_composite_1
=
new
RowLayout
(
SWT
.
VERTICAL
);
rl_composite_1
.
center
=
true
;
composite_1
.
setLayout
(
rl_composite_1
);
composite_1
.
setLayoutData
(
new
GridData
(
SWT
.
LEFT
,
SWT
.
CENTER
,
false
,
false
,
1
,
2
));
Label
label
=
new
Label
(
composite_1
,
SWT
.
NONE
);
label
.
setImage
(
ResourceManager
.
getPluginImage
(
"org.universaal.tools.dashboard"
,
"icons/go-next.png"
));
btnBuild
=
new
Button
(
composite_1
,
SWT
.
NONE
);
btnBuild
.
setText
(
"Build"
);
Group
grpApplicationBinary
=
new
Group
(
this
,
SWT
.
NONE
);
grpApplicationBinary
.
setFont
(
SWTResourceManager
.
getFont
(
"Lucida Grande"
,
11
,
SWT
.
BOLD
));
grpApplicationBinary
.
setLayoutData
(
new
GridData
(
SWT
.
FILL
,
SWT
.
CENTER
,
false
,
false
,
1
,
1
));
grpApplicationBinary
.
setBackground
(
SWTResourceManager
.
getColor
(
135
,
206
,
250
));
grpApplicationBinary
.
setText
(
"Application Binary"
);
grpApplicationBinary
.
setLayout
(
new
FillLayout
(
SWT
.
VERTICAL
));
btnTestConformance
=
new
Button
(
grpApplicationBinary
,
SWT
.
NONE
);
btnTestConformance
.
setEnabled
(
fals
e
);
btnTestConformance
.
setEnabled
(
tru
e
);
btnTestConformance
.
setText
(
"Test Conformance"
);
btnRun
=
new
Button
(
grpApplicationBinary
,
SWT
.
NONE
);
btnRun
.
setText
(
"Run"
);
btnDebug
=
new
Button
(
grpApplicationBinary
,
SWT
.
NONE
);
btnDebug
.
setText
(
"Debug"
);
Composite
composite_2
=
new
Composite
(
this
,
SWT
.
NONE
);
RowLayout
rl_composite_2
=
new
RowLayout
(
SWT
.
VERTICAL
);
rl_composite_2
.
center
=
true
;
composite_2
.
setLayout
(
rl_composite_2
);
composite_2
.
setLayoutData
(
new
GridData
(
SWT
.
LEFT
,
SWT
.
CENTER
,
false
,
false
,
1
,
2
));
Label
label_1
=
new
Label
(
composite_2
,
SWT
.
NONE
);
label_1
.
setImage
(
ResourceManager
.
getPluginImage
(
"org.universaal.tools.dashboard"
,
"icons/go-next.png"
));
btnCombine
=
new
Button
(
composite_2
,
SWT
.
NONE
);
btnCombine
.
setEnabled
(
false
);
btnCombine
.
setText
(
"Combine"
);
Group
grpPublishableOntology
=
new
Group
(
this
,
SWT
.
BORDER
);
grpPublishableOntology
.
setFont
(
SWTResourceManager
.
getFont
(
"Lucida Grande"
,
11
,
SWT
.
BOLD
));
grpPublishableOntology
.
setBackground
(
SWTResourceManager
.
getColor
(
135
,
206
,
250
));
grpPublishableOntology
.
setLayout
(
new
FillLayout
(
SWT
.
VERTICAL
));
grpPublishableOntology
.
setLayoutData
(
new
GridData
(
SWT
.
LEFT
,
SWT
.
CENTER
,
false
,
false
,
1
,
2
));
grpPublishableOntology
.
setText
(
"Publishable Ontology"
);
btnPublishToUStore
=
new
Button
(
grpPublishableOntology
,
SWT
.
NONE
);
btnPublishToUStore
.
setText
(
"Publish to uStore"
);
btnPublishOpenSource
=
new
Button
(
grpPublishableOntology
,
SWT
.
NONE
);
btnPublishOpenSource
.
setText
(
"Publish Open Source"
);
Group
grpApplicationDescription
=
new
Group
(
this
,
SWT
.
NONE
);
grpApplicationDescription
.
setFont
(
SWTResourceManager
.
getFont
(
"Lucida Grande"
,
11
,
SWT
.
BOLD
));
grpApplicationDescription
.
setBackground
(
SWTResourceManager
.
getColor
(
135
,
206
,
250
));
...
...
@@ -149,7 +147,7 @@ public class OntologyView extends Composite {
grpApplicationDescription
.
setLayoutData
(
gd_grpApplicationDescription
);
grpApplicationDescription
.
setText
(
"Application Description"
);
grpApplicationDescription
.
setLayout
(
new
FillLayout
(
SWT
.
VERTICAL
));
btnCreateAndEdit
=
new
Button
(
grpApplicationDescription
,
SWT
.
NONE
);
btnCreateAndEdit
.
setText
(
"Create and Edit"
);
...
...
@@ -159,30 +157,30 @@ public class OntologyView extends Composite {
protected
void
checkSubclass
()
{
// Disable the check that prevents subclassing of SWT components
}
DashboardView
containingPart
;
private
void
addCommandCallingListener
(
Button
btn
,
String
commandID
,
String
featureName
)
{
btn
.
addSelectionListener
(
new
CommandCallingListener
(
containingPart
,
commandID
,
featureName
));
}
/**
* Use this method to create all the buttonlisteners, and assign them to
* their respective buttons.
*/
protected
void
createActions
(
DashboardView
containingPart
)
{
this
.
containingPart
=
containingPart
;
// btnImportProject.addSelectionListener(new TemporaryListener(this, "Import Project"));
// btnImportProject.addSelectionListener(new TemporaryListener(this, "Import Project"));
//btnImportExample.addSelectionListener(new ImportExampleListener(this));
addCommandCallingListener
(
btnImportExample
,
"org.universaal.importexternalproject.commands.importexample"
,
"AAL Studio integration with Developer Depot"
);
//Java Classes
//btnCreateClass.addSelectionListener(new CreateNewItemListener(this));
addCommandCallingListener
(
btnCreateClass
,
"org.universaal.tools.newwizard.plugin.command.startNewItemWizard"
,
"AAL Studio Project Wizards"
);
// btnImportClass.addSelectionListener(new TemporaryListener(this, "Import Class"));
// btnImportClass.addSelectionListener(new TemporaryListener(this, "Import Class"));
//Application Binary
// btnTestConformance.addSelectionListener(new TemporaryListener(this, "Test
Conformance"
)
);
addCommandCallingListener
(
btnTestConformance
,
"org.universaal.tools.conformanceTools.commands.ConformanceToolsRun"
,
"AAL Studio
Conformance
Tools
"
);
//btnRun.addSelectionListener(new RunProjectListener(this));
addCommandCallingListener
(
btnRun
,
"org.universaal.tools.buildserviceapplication.actions.RunAction"
,
"AAL Studio Build"
);
//btnDebug.addSelectionListener(new DebugProjectListener(this));
...
...
@@ -200,12 +198,12 @@ public class OntologyView extends Composite {
//Application Design
//btnCreate.addSelectionListener(new CreateOntologyProjectListener(this));
addCommandCallingListener
(
btnCreate
,
"org.universaal.tools.modelling.ontology.wizard.commands.newOntologyProject"
,
"AAL Studio Modelling Support"
);
// Transitions
addCommandCallingListener
(
btnBuild
,
"org.universaal.tools.buildserviceapplication.actions.BuildAction"
,
"AAL Studio Build"
);
addCommandCallingListener
(
btnTransform
,
"org.universaal.tools.transformationcommand.commands.ontUML2Java"
,
"AAL Studio Transformations"
);
//
//lblBuild.addMouseListener(new BuildProjectListener(this));
//lblCombine.addMouseListener(new TemporaryMouseListener(this, "Combine Project"));
...
...
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