Package com.nomagic.magicdraw.ui
Class RefreshManager
- java.lang.Object
-
- com.nomagic.magicdraw.ui.RefreshManager
-
@OpenApiAll public class RefreshManager extends java.lang.ObjectSingleton class for registeringRefreshManager.RefreshParticipant.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRefreshManager.RefreshParticipantRefresh participant
-
Field Summary
Fields Modifier and Type Field Description private static RefreshManagerinstanceprivate java.util.Collection<RefreshManager.RefreshParticipant>refreshParticipants
-
Constructor Summary
Constructors Modifier Constructor Description privateRefreshManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRefreshParticipant(RefreshManager.RefreshParticipant participant)Register participantstatic RefreshManagergetInstance()voidrefresh(Project project, ProgressStatus progressStatus)Call refresh for all registered participantsvoidremoveRefreshParticipant(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
-
-