Changeset 2181
- Timestamp:
- 05/23/08 10:59:16
(6 months ago)
- Author:
- apatel
- Message:
Added warning dialog for the deletion of network resource shape.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r2028 |
r2181 |
|
| 41 | 41 | public static String cmd_reparent; |
|---|
| 42 | 42 | public static String ShapeCreateCommand_create_new; |
|---|
| | 43 | public static String ShapeDeleteCommand_network_resource; |
|---|
| | 44 | public static String ShapeDeleteCommand_network_resource_title; |
|---|
| 43 | 45 | public static String ShapeDeleteCommand_warning_message; |
|---|
| 44 | 46 | public static String ShapeDeleteCommand_warning_title; |
|---|
| r2172 |
r2181 |
|
| 22 | 22 | import com.tresys.framework.compiler.linkage.net.NetResource; |
|---|
| 23 | 23 | import com.tresys.framework.compiler.linkage.net.NetworkConfig; |
|---|
| | 24 | import com.tresys.framework.compiler.policy.NetworkResource; |
|---|
| | 25 | import com.tresys.framework.compiler.systemResources.LabeledNetworkResource; |
|---|
| | 26 | import com.tresys.framework.compiler.systemResources.SystemResource; |
|---|
| 24 | 27 | import com.tresys.framework.plugin.editor.policy.graphic.model.Connection; |
|---|
| 25 | 28 | import com.tresys.framework.plugin.editor.policy.graphic.model.ControlResourceShape; |
|---|
| … | … | |
| 129 | 132 | m_connections.addAll(connList); |
|---|
| 130 | 133 | } |
|---|
| 131 | | |
|---|
| | 134 | |
|---|
| | 135 | if (m_child instanceof NetworkResourceShape) |
|---|
| | 136 | { |
|---|
| | 137 | NetworkResource res = (NetworkResource)((NetworkResourceShape)m_child).getComponent (); |
|---|
| | 138 | SystemResource sysres = res.getSystemResource (res.getRdef ()); |
|---|
| | 139 | if( sysres instanceof LabeledNetworkResource ) |
|---|
| | 140 | { |
|---|
| | 141 | Shell shell = PlatformUI.getWorkbench ().getActiveWorkbenchWindow ().getShell (); |
|---|
| | 142 | boolean OK = MessageDialog.openConfirm (shell, Messages.ShapeDeleteCommand_network_resource_title, Messages.ShapeDeleteCommand_network_resource); |
|---|
| | 143 | |
|---|
| | 144 | if( ! OK ) |
|---|
| | 145 | return; |
|---|
| | 146 | } |
|---|
| | 147 | } |
|---|
| 132 | 148 | redo(); |
|---|
| 133 | 149 | } |
|---|
| r2028 |
r2181 |
|
| 27 | 27 | ShapeCreateCommand_create_new=Create new {0} |
|---|
| 28 | 28 | ShapeDeleteCommand_warning_message=All connections associated with this entrypoint will be deleted. Do you want to delete the entrypoint? |
|---|
| | 29 | ShapeDeleteCommand_network_resource_title=Delete Network Resource |
|---|
| | 30 | ShapeDeleteCommand_network_resource=Selected Network resource will be deleted from all the systems. |
|---|
| 29 | 31 | AbstractAccessConnectionCommand_unrevokable=This type of Rdef AccessDefn cannot be wrapped inside a boolean |
|---|
Download in other formats:
* Generating other formats may take time.