Package com.nomagic.magicdraw.ui
Class RefreshManager
- java.lang.Object
-
- com.nomagic.magicdraw.ui.RefreshManager
-
@OpenApiAll public class RefreshManager extends java.lang.Object
Singleton class for registeringRefreshManager.RefreshParticipant
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
RefreshManager.RefreshParticipant
Refresh participant
-
Field Summary
Fields Modifier and Type Field Description private static RefreshManager
instance
private java.util.Collection<RefreshManager.RefreshParticipant>
refreshParticipants
-
Constructor Summary
Constructors Modifier Constructor Description private
RefreshManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRefreshParticipant(RefreshManager.RefreshParticipant participant)
Register participantstatic RefreshManager
getInstance()
void
refresh(Project project, ProgressStatus progressStatus)
Call refresh for all registered participantsvoid
removeRefreshParticipant(RefreshManager.RefreshParticipant participant)
Remove participant
-
-
-
Field Detail
-
instance
private static final RefreshManager instance
-
refreshParticipants
private final java.util.Collection<RefreshManager.RefreshParticipant> refreshParticipants
-
-
Method Detail
-
getInstance
public static RefreshManager getInstance()
-
addRefreshParticipant
public final void addRefreshParticipant(RefreshManager.RefreshParticipant participant)
Register participant- Parameters:
participant
- participant
-
removeRefreshParticipant
public final void removeRefreshParticipant(RefreshManager.RefreshParticipant participant)
Remove participant- Parameters:
participant
- participant
-
refresh
public void refresh(Project project, ProgressStatus progressStatus)
Call refresh for all registered participants- Parameters:
project
- projectprogressStatus
- progress status
-
-