Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/FavoritesManager.java')
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/FavoritesManager.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/FavoritesManager.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/FavoritesManager.java
index d53bcc6506e..4d9fab23a3a 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/FavoritesManager.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/FavoritesManager.java
@@ -47,9 +47,11 @@ public class FavoritesManager {
try {
if (((IFavoriteableArtifact) smas.iterator().next()).amIFavorite()) {
boolean result = true;
- if (prompt) result =
+ if (prompt) {
+ result =
MessageDialog.openQuestion(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),
- "Remove Favorite", "Are You sure you wish to remove this as Favorite?");
+ "Remove Favorite", "Are You sure you wish to remove this as Favorite?");
+ }
if (result) {
SkynetTransaction transaction = new SkynetTransaction(AtsUtil.getAtsBranch(), "Toggle Favorites");
for (StateMachineArtifact sma : smas) {
@@ -59,9 +61,11 @@ public class FavoritesManager {
}
} else {
boolean result = true;
- if (prompt) result =
+ if (prompt) {
+ result =
MessageDialog.openQuestion(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),
- "Favorite", "Are you sure you wish add this as a Favorite?");
+ "Favorite", "Are you sure you wish add this as a Favorite?");
+ }
if (result) {
SkynetTransaction transaction = new SkynetTransaction(AtsUtil.getAtsBranch(), "Toggle Favorites");
for (StateMachineArtifact sma : smas) {

Back to the top