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
AF3
Commits
e5ebe7bf
Commit
e5ebe7bf
authored
Apr 05, 2018
by
Simon Barner
Browse files
Fix some warnings.
parent
51bd6a1d
Changes
2
Hide whitespace changes
Inline
Side-by-side
eu.fbk.af3.tools.diagram.ui/src/eu/fbk/af3/tools/diagram/ui/commands/.ratings
View file @
e5ebe7bf
AbstractComponentToImage.java
c8fd6c53113c500481c11efcb14ea9bfb567e781
GREEN
AbstractComponentToImage.java
52421af83ae1cae7cc7e1ec6e3e9124e094898ee
GREEN
ExportComponentToImage.java b2f3cd745e601aa910cc724f6cda44221ceea079 GREEN
ExportModelToDocument.java 31c5951b93504bc21c7e8dd8ece37175215ed0e7 GREEN
eu.fbk.af3.tools.diagram.ui/src/eu/fbk/af3/tools/diagram/ui/commands/AbstractComponentToImage.java
View file @
e5ebe7bf
...
...
@@ -247,7 +247,7 @@ public abstract class AbstractComponentToImage implements IContextMenuContributo
final
PortDescriptor
descriptor
=
new
PortDescriptor
();
descriptor
.
name
=
((
Port
)
connector
).
getName
();
descriptor
.
type
=
getType
(
component
,
(
Port
)
connector
);
descriptor
.
type
=
getType
((
Port
)
connector
);
descriptor
.
range
=
getRange
(
component
,
(
Port
)
connector
);
descriptor
.
notes
=
""
;
...
...
@@ -625,20 +625,35 @@ public abstract class AbstractComponentToImage implements IContextMenuContributo
}
}
/** Gets the type. */
@SuppressWarnings
(
"unused"
)
protected
String
getType
(
Component
component
,
Port
port
)
{
/**
* Gets the type of a {@link Port}.
*
* @param port
* {@link Port} to get the type for.
* @return Type of {@link Port}.
*/
protected
String
getType
(
Port
port
)
{
return
port
.
getVariableType
().
toString
();
}
/** Gets the type. */
@SuppressWarnings
(
"unused"
)
/**
* Gets the type of a {@link Component}.
*
* @param component
* {@link Component} to get the type for.
* @return Type of {@link Component}.
*/
protected
String
getType
(
Component
component
)
{
return
""
;
}
/** Gets the refinement type. */
@SuppressWarnings
(
"unused"
)
/**
* Gets the refinement type of a {@link Component}.
*
* @param component
* {@link Component} to get the refined type for.
* @return Refinement type of {@link Component}.
*/
protected
String
getRefinementType
(
Component
component
)
{
return
""
;
}
...
...
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