-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Encapsulate global constants in namespace of enclosing type #1002
base: develop
Are you sure you want to change the base?
Conversation
Update proposals for global constants in ST editor to use qualified name and import enclosing type.
The global cinstants editor uses a file editor input for the ST editor. This adds back support for plain file editor inputs in the resource-for-editor-input factory.
<With Var="IN"/> | ||
</Event> | ||
</EventInputs> | ||
<EventOutputs> | ||
<Event Name="CNF" Type="Event" Comment="Execution Confirmation"> | ||
<Event Name="CNF" Type="Event"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do you remove the comment here ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The interface of function FBs is (re-)generated by the ST reconciler on each save, so any comments are lost. But there should be no way to add any comments in the first place, besides editing the XML file manually.
@@ -123,7 +123,7 @@ public Change createChange(final IProgressMonitor monitor) throws CoreException, | |||
if (type instanceof FBType) { | |||
return createFBDataChange(); | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think you should check here explicit for global const.
If we rename for example .adp , .dev, .seg ,... this code will be executed.
I don't know if that will work out
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we not need to update those other type entries anyhow?
Encapsulate global constants in namespace of enclosing type: