Package org.eclipse.emf.ecp.core

Examples of org.eclipse.emf.ecp.core.ECPProject


     * @see org.eclipse.core.commands.AbstractHandler#execute(org.eclipse.core.commands.ExecutionEvent)
     */
    public Object execute(ExecutionEvent event) throws ExecutionException
    {     
        ISelection sel = HandlerUtil.getCurrentSelection(event);
        final ECPProject project = (ECPProject) ((StructuredSelection) sel).getFirstElement();            
        Shell shell = HandlerUtil.getActiveWorkbenchWindow(event).getShell();

        TransitivityAnalysisOperation op = new TransitivityAnalysisOperation(project);
        try
        {
View Full Code Here


     * @see org.eclipse.core.commands.AbstractHandler#execute(org.eclipse.core.commands.ExecutionEvent)
     */
    public Object execute(ExecutionEvent event) throws ExecutionException
    {     
        ISelection sel = HandlerUtil.getCurrentSelection(event);
        final ECPProject project = (ECPProject) ((StructuredSelection) sel).getFirstElement();
        final Shell shell = HandlerUtil.getActiveWorkbenchWindow(event).getShell();
       
        TraceLinkValidationOperation op = new TraceLinkValidationOperation(project);
        try
        {
View Full Code Here

     * @see org.eclipse.core.commands.AbstractHandler#execute(org.eclipse.core.commands.ExecutionEvent)
     */
    public Object execute(ExecutionEvent event) throws ExecutionException
    {     
        ISelection sel = HandlerUtil.getCurrentSelection(event);
        final ECPProject project = (ECPProject) ((StructuredSelection) sel).getFirstElement();
               
        final Shell shell = HandlerUtil.getActiveWorkbenchWindow(event).getShell();
       
        final DependencyDetectionWizard wizard = new DependencyDetectionWizard(project);
        final WizardDialog dialog = new WizardDialog(shell, wizard);
View Full Code Here

     * @see org.eclipse.core.commands.AbstractHandler#execute(org.eclipse.core.commands.ExecutionEvent)
     */
    public Object execute(ExecutionEvent event) throws ExecutionException
    {     
        ISelection sel = HandlerUtil.getCurrentSelection(event);
        final ECPProject project = (ECPProject) ((StructuredSelection) sel).getFirstElement();
        final Shell shell = HandlerUtil.getActiveWorkbenchWindow(event).getShell();
       
        TraceValidationOperation op = new TraceValidationOperation(project);
        try
        {
View Full Code Here

    @Override
    public Object execute(ExecutionEvent event) throws ExecutionException
    {     
        ISelection sel = HandlerUtil.getCurrentSelection(event);
        final ECPProject project = (ECPProject) ((StructuredSelection) sel).getFirstElement();
        final Shell shell = HandlerUtil.getActiveWorkbenchWindow(event).getShell();
       
        final ProgressMonitorDialog progressDialog = new ProgressMonitorDialog(shell);
        progressDialog.open();
View Full Code Here

  {           
        final EObject model =  EMFTraceImportHelper.getModelElement(event);
       
        Collection<ECPProject> projects = ECPUtil.getECPProjectManager().getProjects();
       
        ECPProject tmp = null;
        Iterator<ECPProject> it = projects.iterator();
       
        while( it.hasNext() )
        {
          if( it.next().getContents().contains(model) )
          {
            tmp = it.next();
            break;
          }
        }
                   
        final ECPProject project = tmp;
       
        final Shell shell = HandlerUtil.getActiveWorkbenchWindow(event).getShell();   
       
    Activator.getAccessLayer().invalidateCache(project);
               
View Full Code Here

     * @throws InvocationTargetException
     */
    protected ModelExchangeState processImport(ExecutionEvent event) throws InvocationTargetException, InterruptedException
    {
        ISelection       sel      = HandlerUtil.getCurrentSelection(event);
        final ECPProject project  = (ECPProject) ((StructuredSelection) sel).getFirstElement();
        final Shell      shell    = HandlerUtil.getActiveWorkbenchWindow(event).getShell();
        final String     fileName = getFileName(FILTER_NAMES, FILTER_EXTS);
       
        if( project  == null ) return EMFTraceImportHelper.processResult(shell, ModelExchangeState.Project_Missing, true);               
        if( fileName == null ) return EMFTraceImportHelper.processResult(shell, ModelExchangeState.File_Missing, true);
View Full Code Here

   * @param editorID a editor ID
   * @param modelElement the model to be opened
   */
  public static void openEditor(EObject modelElement, String editorID)
  {
    ECPProject    project = ECPUtil.getECPProjectManager().getProject(modelElement);
    EditorContext context = new EditorContext(modelElement, project);
    MEEditorInput input   = new MEEditorInput(context);
       
    try
    {
View Full Code Here

TOP

Related Classes of org.eclipse.emf.ecp.core.ECPProject

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.