Examples of File


Examples of Framework.File

        // Event Loop
        // ----------
        EventManager.startEventLoop();
        try {
            EventRegistration TaskHandle_Shutdown_langThreadcurrentThread = ClientEventManager.register( Thread.currentThread(), "Shutdown" );
            File f = new File();
            f.setLocalName(new TextData("c:\\sdiWindow.txt"));
            f.open(Framework.Constants.SP_AM_WRITE, false);
            UIutils.traceWidget(this);
            f.close();


            while (true) {

                UIutils.processGUIActions();
View Full Code Here

Examples of KFM.File

        } else if ((aLogLevel > DEBUG_LEVEL) || (aLogLevel < DEACTIVATE_LEVEL)){
            throw new ProgrammerException("Wrong LogLevel!");
        } else {
            try {
                // open the file aLogFile in append and autoflush mode
                mFileSize = (new File(aLogFileName)).length();
                FileOutputStream tFileOutputStream = new FileOutputStream(aLogFileName, true);
                mPrintStream   = new PrintStream(new BufferedOutputStream(tFileOutputStream, 4096) , true);
                mLoggingLevel  = aLogLevel;
                mLogFileName   = aLogFileName;
                mLoggingEnabled = true;
View Full Code Here

Examples of SmartGen.File

        if (result == null) result = caseConfigurableElement(stringValue);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case SmartGenPackage.FILE: {
        File file = (File)theEObject;
        Object result = caseFile(file);
        if (result == null) result = caseData(file);
        if (result == null) result = caseValue(file);
        if (result == null) result = caseConfigurableElement(file);
        if (result == null) result = defaultCase(theEObject);
View Full Code Here

Examples of at.bestsolution.efxclipse.tooling.rrobot.model.task.File

        if (result == null) result = caseExcludeableElementMixin(folder);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case TaskPackage.FILE: {
        File file = (File)theEObject;
        T result = caseFile(file);
        if (result == null) result = caseResource(file);
        if (result == null) result = caseExcludeableElementMixin(file);
        if (result == null) result = defaultCase(theEObject);
        return result;
View Full Code Here

Examples of br.com.jteam.jfcm.model.File

    throws ShowFileContentAdapterException
  {
    if (presentationFile == null) { throw new IllegalArgumentException(
      "PresentationFile cannot be null"); }
    try {
      File file =
        showFileContentService.createSpecificFileToBeViewed(
          presentationFile.getName(),
          presentationFile.getPath());
      FileType fileType = FileType.getFileTypeByFileName(file.getName());
      RenderedFileType renderedFileType = RenderedFileType.getRenderedFileType(fileType);
      PresentationFile<?> presentationFileToBeViewed;
      if (renderedFileType == RenderedFileType.TEXT) {
        presentationFileToBeViewed =
          new PresentationFile<String>(presentationFile.getName(), presentationFile
View Full Code Here

Examples of ch.hortis.sonar.model.File

    while ( hrefMatcher.find() ) {
      String originalHref = hrefMatcher.group( 1 );
      String nameSpace = StringUtils.chop( hrefMatcher.group( 2 ).replace( '/', '.' ) );
      String fileName = hrefMatcher.group( 3 ).replace( ".html", ".java" );

      File hrefFile = null;
      for (File file : snapshotFiles) {
        if ( file.getFilename().equals( fileName ) &&
            file.getNamespace().equals( nameSpace ) ) {
          hrefFile = file;
          break;
        }
      }
      if ( hrefFile != null ) {
        line = line.replace( originalHref, hrefFile.getId().toString() );
      }
    }
    return line;
  }
View Full Code Here

Examples of com.dotmarketing.portlets.files.model.File

        }
        if(cont!=null && InodeUtils.isSet(cont.getInode())){
          return cont.getInode();
        }
      }else{
        File f = APILocator.getFileAPI().getFileByURI(path, host, false,backEndUser!=null?backEndUser:user, false);
        return f.getInode();
      }
      return null;
    }catch (Exception e) {
      Logger.error(this, e.getMessage(),e);
      return null;
View Full Code Here

Examples of com.dropbox.core.DbxEntry.File

    Long size;
    long time;

    if (childData[0].isFile()) {
      File file = childData[0].asFile();
      size = file.numBytes;
      time = file.lastModified.getTime();
    } else {

      size = 0l;
View Full Code Here

Examples of com.ettrema.httpclient.File

                  App.current().view.showDetails( new FolderPanel( (Folder) r ) );
              } catch( Exception ex ) {
                  throw new RuntimeException( ex );
              }
          } else {
              File f = (File) r;
              if( ( f.contentType != null && f.contentType.equals( "text/html" ) ) || f.name.endsWith( "html" ) ) {
                  BareBonesBrowserLaunch.openURL( r.href() );
              } else if( ( f.contentType != null && f.contentType.contains( "image" ) ) || f.name.endsWith( "jpg" ) ) {
                  BareBonesBrowserLaunch.openURL( r.href() );
              } else if( f.contentType != null && f.contentType.contains( "text" ) ) {
View Full Code Here

Examples of com.firefun.FileUpload.File

        Object obj = request.getSession().getAttribute("se_files"+ywid);
        if (obj != null) {
          files_temp = (Files) obj;
        }
        for (int i = 0; i < files.getCount(); i++) {
          File myFile = files.getFile(i);
          if (!myFile.isMissing()) {
            files_temp.addFile(myFile);
          }
        }
        request.getSession().setAttribute("se_files"+ywid, files_temp);
        response.sendRedirect(url);
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.