Class DesignerResourceEditManager
java.lang.Object
com.inductiveautomation.ignition.designer.concurrency.DesignerResourceEditManager
Receives 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
confirmConcurrentEdit
(JComponent parentComponent, ResourcePath resourcePath) Opens a dialog to confirm that the user wishes to continue when this resource is open in another DesignergetFirstUser
(ResourcePath path) int
getSessionCount
(ResourcePath path) boolean
hasConflict
(ResourcePath path) void
void
void
setContext
(DesignerContext context) Called when a project is loaded Designer-sidevoid
shutdown()
void
startup()
-
Constructor Details
-
DesignerResourceEditManager
public DesignerResourceEditManager()
-
-
Method Details
-
confirmConcurrentEdit
public boolean confirmConcurrentEdit(@Nullable 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 overresourcePath
- 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
-
startup
public void startup() -
onEditorChange
-
setContext
Called when a project is loaded Designer-side -
shutdown
public void shutdown() -
getOtherSessions
-
getCurrentSessionInfo
-
getCurrentResourceSession
-
getSessionCount
-
getFirstUser
-
hasConflict
-
onDesignerUpdateComplete
public void onDesignerUpdateComplete()
-