Package org.eclipse.emf.emfstore.common.model

Examples of org.eclipse.emf.emfstore.common.model.Project


  protected void doRun() {
 
    result.clear();

    for ( ProjectSpace projectSpace : accessLayer.getProjectSpaces()){
    Project project = projectSpace.getProject();
    List<EObject> modelElementList = accessLayer.getElements(project,
        modelElementClassString);
    for (EObject element : modelElementList) {
      if (! excludeList.contains(element))
      result.add(new ContentProviderResultItem(accessLayer
View Full Code Here


     */
    public void delete()
    {
        //if( modelElementChangeListener != null ) modelElementChangeListener.remove();
       
        Project project = ModelUtil.getProject(this);
        project.deleteModelElement(this);
    }
View Full Code Here

    /**
     * @generated NOT
     */
    public String getIdentifier()
    {
        Project project = ModelUtil.getProject(this);
        return project.getModelElementId(this).getId();
    }
View Full Code Here

   * @see org.eclipse.core.commands.AbstractHandler#execute(org.eclipse.core.commands.ExecutionEvent)
   */
  @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() {
     
     
View Full Code Here

      content.put(attributeName, attributeStringValue);
    }
   
       
       
    Project project = null;
    HashMap<String, List<String>> hit = new HashMap<String, List<String>>();
    for (Entry<String, HashMap<String, Integer>> hitEntry : hits.entrySet()){
      List<String> matchedWordsList = new ArrayList<String>();
      for (Entry<String, Integer> hitSubEntry : hitEntry.getValue().entrySet())
        matchedWordsList.add(hitSubEntry.getKey()); //add matched word
View Full Code Here

     */
    public void delete()
    {
        //if( modelElementChangeListener != null ) modelElementChangeListener.remove();
       
        Project project = ModelUtil.getProject(this);
        project.deleteModelElement(this);
    }
View Full Code Here

    /**
     * @generated NOT
     */
    public String getIdentifier()
    {
        Project project = ModelUtil.getProject(this);
        return project.getModelElementId(this).getId();
    }
View Full Code Here

   */
  private List<AbstractHistoryItem> createOperationsForNewElement(
          EObject element, Date date) {
    List<AbstractHistoryItem> result = new ArrayList<AbstractHistoryItem>();

    Project projct = ModelUtil.getProject(element);
    result.add(new CreateHistoryItem(projct.getModelElementId(element), element.eClass().getName(), getUserName(), date));

    for (EAttribute attribute : element.eClass().getEAllAttributes()) {
      if (attribute.getName() != "identifier"
          && element.eGet(attribute) != null) {
        String newValue = element.eGet(attribute).toString();
View Full Code Here

      temp = projectSpace.eContainer();
    }
    while( !(temp instanceof Workspace) );
   
        final Shell shell = HandlerUtil.getActiveWorkbenchWindow(event).getShell();
        final Project project = ((ProjectSpace) projectSpace).getProject();      
   
    Activator.getAccessLayer().invalidateCache(project);
               
        TypeBasedImpactAnalysisWizard wizard = new TypeBasedImpactAnalysisWizard(project, model);
        WizardDialog dialog = new WizardDialog(shell, wizard);
View Full Code Here

    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

TOP

Related Classes of org.eclipse.emf.emfstore.common.model.Project

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.