Examples of ProjectSpace


Examples of org.eclipse.emf.emfstore.client.model.ProjectSpace

  public Object execute(ExecutionEvent event) throws ExecutionException {
    final GSSQuery query = (GSSQuery) UiUtil.getSelectedEObject()
   
    Toolbox container = (Toolbox) query.eContainer().eContainer();
    AccessLayer accessLayer = new AccessLayer(false);
    ProjectSpace projectSpace = WorkspaceManager.getProjectSpace(query);
    accessLayer.registerProjectSpace(projectSpace);

    AssignedConstraintsSet assignedConstraintsSet = query.getAssignedConstraintsSet();
   
    new GSSQueryProcessor(query, accessLayer, container.getGssCatalogue(), assignedConstraintsSet, false).runAsJob();
View Full Code Here

Examples of org.eclipse.emf.emfstore.client.model.ProjectSpace

     * @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 ProjectSpace projectSpace = (ProjectSpace) ((StructuredSelection) sel).getFirstElement();
        final Shell shell = HandlerUtil.getActiveWorkbenchWindow(event).getShell();
       
        TraceLinkValidationOperation op = new TraceLinkValidationOperation(projectSpace);
        try
        {
View Full Code Here

Examples of org.eclipse.emf.emfstore.client.model.ProjectSpace

     * @throws InvocationTargetException
     */
    protected ModelExchangeState processImport(ExecutionEvent event) throws InvocationTargetException, InterruptedException
    {
        ISelection         selection            = HandlerUtil.getCurrentSelection(event);
        final ProjectSpace projectSpace         = (ProjectSpace) ((StructuredSelection) selection).getFirstElement();
        final EObject      selectedModelElement = EMFTraceImportHelper.getModelElement(event);
        final Shell        shell                = HandlerUtil.getActiveWorkbenchWindow(event).getShell();
        final String       fileName             = getFileName(FILTER_NAMES, FILTER_EXTS);
       
        if( projectSpace         == null ) return EMFTraceImportHelper.processResult(shell, ModelExchangeState.ProjectSpace_Missing, true);       
View Full Code Here

Examples of org.eclipse.emf.emfstore.client.model.ProjectSpace

   */
  @Override
  public Object execute(ExecutionEvent event) throws ExecutionException {
    FTICPackage fTICPackage = (FTICPackage) UiUtil.getSelectedEObject()
    Project project = ModelUtil.getProject(fTICPackage);
    ProjectSpace projectSpace = WorkspaceManager.getProjectSpace(project);
    HistoryProvider provider = new HistoryProvider(projectSpace);
    provider.addHistoryListener(new HistoryListener() {
     
     
      @Override
View Full Code Here

Examples of org.eclipse.emf.emfstore.client.model.ProjectSpace

  /**
   * Initializes all Text controls with default values
   */
  private void initTexts() {
    nameText.setText("new query");
    ProjectSpace projectSpace = WorkspaceManager.getProjectSpace((EObject) parentPackage);
    if (projectSpace.getUsersession()!= null){
      usernameText.setText(projectSpace.getUsersession().getUsername());
    } else {
      usernameText.setText("");
    }
    usernameText.setText("");
    generateID();
View Full Code Here

Examples of org.eclipse.emf.emfstore.client.model.ProjectSpace

     * @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 ProjectSpace projectSpace = (ProjectSpace) ((StructuredSelection) sel).getFirstElement();
        final Shell shell = HandlerUtil.getActiveWorkbenchWindow(event).getShell();
       
        final RuleApplicationWizard wizard = new RuleApplicationWizard(projectSpace.getProject());
        final WizardDialog dialog = new WizardDialog(shell, wizard);
       
        new EMFStoreCommand() {

            @Override
            protected void doRun()
            {                              
                int ruleCnt = (Activator.getAccessLayer().getElements(projectSpace.getProject(), "Rule")).size();
               
                if( ruleCnt == 0 )
                {
                    MessageDialog.openError(shell, "Execution abborted", "The project does not contain any rule(s)");
                    return;
                }
               
                int modelCnt = (Activator.getAccessLayer().getElements(projectSpace.getProject(), "EObject")).size() - ruleCnt;
               
                if( modelCnt == 0 )
                {
                    MessageDialog.openError(shell, "Execution abborted", "The project does not contain any model(s)");
                    return;
                }
               
                Activator.getProjectCleaner().cleanUpProject(projectSpace.getProject());
               
                dialog.open();
            }
        }.run();

        if( wizard.finishedSuccessfully )
        {
            Activator.getAccessLayer().invalidateCache(projectSpace.getProject());
            RuleApplicationOperation op = new RuleApplicationOperation(projectSpace.getProject(), projectSpace, wizard.selectedModels, wizard.selectedCatalog, wizard.selectedRules);
            try
            {
                ProgressMonitorDialog progressDialog = new ProgressMonitorDialog(shell);
                progressDialog.setCancelable(false);
                progressDialog.run(true, true, op);
View Full Code Here

Examples of org.eclipse.emf.emfstore.client.model.ProjectSpace

     * @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 ProjectSpace projectSpace = (ProjectSpace) ((StructuredSelection) sel).getFirstElement();       
        final Shell shell = HandlerUtil.getActiveWorkbenchWindow(event).getShell();
       
        TraceValidationOperation op = new TraceValidationOperation(projectSpace);
        try
        {
View Full Code Here

Examples of org.eclipse.emf.emfstore.client.model.ProjectSpace

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

Examples of org.eclipse.emf.emfstore.client.model.ProjectSpace

     * @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 ProjectSpace projectSpace = (ProjectSpace) ((StructuredSelection) sel).getFirstElement();              
        Shell shell = HandlerUtil.getActiveWorkbenchWindow(event).getShell();

        TransitivityAnalysisOperation op = new TransitivityAnalysisOperation(projectSpace);
        try
        {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.