-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#89] Avoid deadlocks with Control/Uncontrol handlers
Bug: #89 Signed-off-by: Maxime Porhel <[email protected]>
- Loading branch information
Showing
5 changed files
with
50 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,9 +34,8 @@ | |
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem; | ||
|
||
/** | ||
* Ensure that some actions on representation are disabled when the | ||
* {@link DView} is locked by using the permission authority | ||
* {@link ReadOnlyPermissionAuthority} | ||
* Ensure that some actions on representation are disabled when the {@link DView} is locked by using the permission | ||
* authority {@link ReadOnlyPermissionAuthority} | ||
* | ||
* @author <a href="mailto:[email protected]">Mickael LANOE</a> | ||
*/ | ||
|
@@ -116,8 +115,8 @@ protected void onSetUpAfterOpeningDesignerPerspective() throws Exception { | |
} | ||
|
||
/** | ||
* Ensure that the creation of a new representation is forbidden when the | ||
* representation container is locked by using permission authority. | ||
* Ensure that the creation of a new representation is forbidden when the representation container is locked by | ||
* using permission authority. | ||
*/ | ||
public void testCreateRepresentation() { | ||
SWTBotTreeItem semanticPackageNode = getSelectedSemanticPackageNode(); | ||
|
@@ -134,9 +133,8 @@ public void testCreateRepresentation() { | |
} | ||
|
||
/** | ||
* Ensure that the creation of a new representation from the session is | ||
* forbidden when the representation container is locked by using permission | ||
* authority. | ||
* Ensure that the creation of a new representation from the session is forbidden when the representation container | ||
* is locked by using permission authority. | ||
*/ | ||
public void testCreateRepresentationFromSession() { | ||
SWTBotTreeItem sessionTreeItem = localSession.getRootSessionTreeItem(); | ||
|
@@ -167,9 +165,8 @@ public void testCreateRepresentationFromSession() { | |
} | ||
|
||
/** | ||
* Ensure that the creation of a new representation from the session is | ||
* forbidden when the representation container is locked by using permission | ||
* authority. | ||
* Ensure that the creation of a new representation from the session is forbidden when the representation container | ||
* is locked by using permission authority. | ||
*/ | ||
public void testControlSemanticModel() { | ||
SWTBotTreeItem semanticPackageNode = getSelectedSemanticSubPackageNode(); | ||
|
@@ -210,32 +207,32 @@ public void testControlSemanticModel() { | |
} | ||
|
||
/** | ||
* Ensure that the deletion of a representation is forbidden when the | ||
* representation container is locked by using permission authority. | ||
* Ensure that the deletion of a representation is forbidden when the representation container is locked by using | ||
* permission authority. | ||
*/ | ||
public void testDeleteRepresentation() { | ||
doTestRepresentationAction(DELETE_ACTION); | ||
} | ||
|
||
/** | ||
* Ensure that the copy of a representation is forbidden when the | ||
* representation container is locked by using permission authority. | ||
* Ensure that the copy of a representation is forbidden when the representation container is locked by using | ||
* permission authority. | ||
*/ | ||
public void testCopyRepresentation() { | ||
doTestRepresentationAction(COPY_ACTION); | ||
} | ||
|
||
/** | ||
* Ensure that the extract of a representation is forbidden when the | ||
* representation container is locked by using permission authority. | ||
* Ensure that the extract of a representation is forbidden when the representation container is locked by using | ||
* permission authority. | ||
*/ | ||
public void testExtractRepresentation() { | ||
doTestRepresentationAction(EXTRACT_TO_AIRD_FILE); | ||
} | ||
|
||
/** | ||
* Ensure that the move of a representation is forbidden when the | ||
* representation container is locked by using permission authority. | ||
* Ensure that the move of a representation is forbidden when the representation container is locked by using | ||
* permission authority. | ||
*/ | ||
public void testMoveRepresentation() { | ||
// First create a new ".aird" file to have the "Move" action | ||
|
@@ -258,8 +255,8 @@ public void testMoveRepresentation() { | |
} | ||
|
||
/** | ||
* Ensure that an action on a representation is forbidden when the | ||
* representation container is locked by using permission authority. | ||
* Ensure that an action on a representation is forbidden when the representation container is locked by using | ||
* permission authority. | ||
* | ||
* @param action | ||
* the action to check | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters