Class DesignerResourceEditManager
- java.lang.Object
- 
- com.inductiveautomation.ignition.designer.concurrency.DesignerResourceEditManager
 
- 
 public class DesignerResourceEditManager extends java.lang.ObjectReceives open/close events from resource editors in order to track all open resources in this Designer. Sends these updates to the Gateway. Also tracks open resources of all other Designers within the same project.
- 
- 
Constructor SummaryConstructors Constructor Description DesignerResourceEditManager()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanconfirmConcurrentEdit(javax.swing.JComponent parentComponent, ResourcePath resourcePath)Opens a dialog to confirm that the user wishes to continue when this resource is open in another Designerjava.util.Optional<ResourceSession>getCurrentResourceSession()java.util.Optional<SessionInfo>getCurrentSessionInfo()java.lang.StringgetFirstUser(ResourcePath path)java.util.List<ResourceSession>getOtherSessions()intgetSessionCount(ResourcePath path)booleanhasConflict(ResourcePath path)voidonDesignerUpdateComplete()voidonEditorChange(ResourceEditorEvent evt)voidsetContext(DesignerContext context)Called when a project is loaded Designer-sidevoidshutdown()voidstartup()
 
- 
- 
- 
Method Detail- 
confirmConcurrentEditpublic boolean confirmConcurrentEdit(@Nullable javax.swing.JComponent parentComponent, ResourcePath resourcePath)Opens a dialog to confirm that the user wishes to continue when this resource is open in another Designer- Parameters:
- parentComponent- the component to open the dialog over
- resourcePath- the path to the resource that is being opened
- Returns:
- true if the resource is not being edited or if the user has confirmed it should be opened
 
 - 
startuppublic void startup() 
 - 
onEditorChangepublic void onEditorChange(ResourceEditorEvent evt) 
 - 
setContextpublic void setContext(DesignerContext context) Called when a project is loaded Designer-side
 - 
shutdownpublic void shutdown() 
 - 
getOtherSessionspublic java.util.List<ResourceSession> getOtherSessions() 
 - 
getCurrentSessionInfopublic java.util.Optional<SessionInfo> getCurrentSessionInfo() 
 - 
getCurrentResourceSessionpublic java.util.Optional<ResourceSession> getCurrentResourceSession() 
 - 
getSessionCountpublic int getSessionCount(ResourcePath path) 
 - 
getFirstUserpublic java.lang.String getFirstUser(ResourcePath path) 
 - 
hasConflictpublic boolean hasConflict(ResourcePath path) 
 - 
onDesignerUpdateCompletepublic void onDesignerUpdateComplete() 
 
- 
 
-