Package de.innovationgate.eclipse.utils.ui.model

Examples of de.innovationgate.eclipse.utils.ui.model.TMLFileMetadataModel


  public Model getModel() {
    if (_model == null) {
      IAdaptable element = getElement();
      if (element instanceof IFile) {
        IFile tmlFile = (IFile) getElement()
        _model = new TMLFileMetadataModel(tmlFile);
      }
    }
    return _model;
  }
View Full Code Here


        }
        setPartName("... " + wrappedTitle);
      } else {
        setPartName(tmlFileReference);
      }
      _tmlFileModel = new TMLFileMetadataModel(input);
     
      ResourcesPlugin.getWorkspace().addResourceChangeListener(this, IResourceChangeEvent.POST_CHANGE);
     
      updateToolbar();
    }
View Full Code Here

    } catch (IOException e) {
      Activator.getDefault().logError("Cannot load WGADesignConfig", e);
    }

    if (getMetadataFile(tmlFile).exists()) {
      TMLFileMetadataModel metaDataFile = new TMLFileMetadataModel(tmlFile);
      metaData.setDirectAccess(metaDataFile.isDirectAccess());
    }

    BufferedReader reader = null;
    try {
      reader = new BufferedReader(new InputStreamReader(tmlFile.getContents()));
View Full Code Here

     
          String header = Plugin.getDefault().getHeaderFileMap().get(Plugin.HEADER_TML_MODUL).getHeaderForProject(tmlFile.getProject())
          tmlFile.create(new ByteArrayInputStream(header.getBytes()), true, new NullProgressMonitor());   
     
      if(isCachable || isDirectAccess){
        TMLFileMetadataModel model = new TMLFileMetadataModel(tmlFile);
        model.setCachable(isCachable);
        model.setDirectAccess(isDirectAccess);
        model.saveChanges();
     
     

     
     
View Full Code Here

TOP

Related Classes of de.innovationgate.eclipse.utils.ui.model.TMLFileMetadataModel

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.