Package org.eclipse.emf.workspace

Examples of org.eclipse.emf.workspace.AbstractEMFOperation


            final Diagram diag = diagramView;
           

           
            TransactionalEditingDomain ted = TransactionUtil.getEditingDomain(diagramView);
            AbstractEMFOperation operation = new AbstractEMFOperation(
                ted, KEY_DISPEL_LAYOUT, null) {

                protected IStatus doExecute(IProgressMonitor monitor,
                        IAdaptable info)
                    throws ExecutionException {
                                    
                    LayoutService.getInstance().layout(diag, DispelReducedDiagramLayoutProvider.DISPEL_REDUCED_DIAGRAM_LAYOUT);
                   
                    return Status.OK_STATUS;
                }
            };
            try {
                operation.execute(new NullProgressMonitor(), null);
            }
            catch (Exception e) {
                throw new RuntimeException(e.getCause());
            }
        }
View Full Code Here


            final Diagram diag = diagramView;
           

           
            TransactionalEditingDomain ted = TransactionUtil.getEditingDomain(diagramView);
            AbstractEMFOperation operation = new AbstractEMFOperation(
                ted, KEY_DISPEL_LAYOUT, null) {

                protected IStatus doExecute(IProgressMonitor monitor,
                        IAdaptable info)
                    throws ExecutionException {
                 
                    LayoutService.getInstance().layout(diag, DispelRenewDiagramLayoutProvider.DISPEL_RENEW_DIAGRAM_LAYOUT);
                                       
                    return Status.OK_STATUS;
                }
            };
            try {
                operation.execute(new NullProgressMonitor(), null);
               
            }
            catch (Exception e) {
                throw new RuntimeException(e.getCause());
            }
View Full Code Here

       
        if (diagramView != null) {
            final Diagram diag = diagramView;
            
            TransactionalEditingDomain ted = TransactionUtil.getEditingDomain(diagramView);
            AbstractEMFOperation operation = new AbstractEMFOperation(
                ted, KEY_NEURAL_NETWORK_LAYOUT, null) {

                protected IStatus doExecute(IProgressMonitor monitor,
                        IAdaptable info)
                    throws ExecutionException {

                    LayoutService.getInstance().layout(diag, NeuralNetworkProvider.NEURAL_NETWORK_LAYOUT);

                    return Status.OK_STATUS;
                }
            };
            try {
                operation.execute(new NullProgressMonitor(), null);
            }
            catch (Exception e) {
                throw new RuntimeException(e.getCause());
            }
        }
View Full Code Here

       
        if (diagramView != null) {
            final Diagram diag = diagramView;
            
            TransactionalEditingDomain ted = TransactionUtil.getEditingDomain(diagramView);
            AbstractEMFOperation operation = new AbstractEMFOperation(
                ted, KEY_TREE_MODEL_LAYOUT, null) {

                protected IStatus doExecute(IProgressMonitor monitor,
                        IAdaptable info)
                    throws ExecutionException {

                    LayoutService.getInstance().layout(diag, TreeModelProvider.TREE_MODEL_LAYOUT);

                    return Status.OK_STATUS;
                }
            };
            try {
                operation.execute(new NullProgressMonitor(), null);
            }
            catch (Exception e) {
                throw new RuntimeException(e.getCause());
            }
        }
View Full Code Here

            final Diagram diag = diagramView;
           

           
            TransactionalEditingDomain ted = TransactionUtil.getEditingDomain(diagramView);
            AbstractEMFOperation operation = new AbstractEMFOperation(
                ted, KEY_DISPEL_LAYOUT, null) {

                protected IStatus doExecute(IProgressMonitor monitor,
                        IAdaptable info)
                    throws ExecutionException {

                    LayoutService.getInstance().layout(diag, DispelLayoutProvider.DEFAULT_LAYOUT);
                    return Status.OK_STATUS;
                }
            };
            try {
                operation.execute(new NullProgressMonitor(), null);
            }
            catch (Exception e) {
                throw new RuntimeException(e.getCause());
            }
        }
View Full Code Here

TOP

Related Classes of org.eclipse.emf.workspace.AbstractEMFOperation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.