Package kameleon.gui.model

Examples of kameleon.gui.model.FileInfo


     *       event which triggered the listener
     */
    @Override
    public void actionPerformed(ActionEvent e) {
      GenerationView gv = GenerationView.this ;
      FileInfo selectedFile = gv.model.getSelectedFileInfo() ;
     
      // Sets the output folder to the folder of the last
      // generation
      if (selectedFile.getLastGeneration() != null) {
        String outputFile = selectedFile.getTargetPath()[0] ;
        int fileNameStart =
            outputFile.lastIndexOf(File.separatorChar) ;
        String outputFolder =
            outputFile.substring(0, fileNameStart) ;
        this.outputChooser.setCurrentDirectory(
View Full Code Here


      valueConstraint.gridwidth = GridBagConstraints.REMAINDER ;
      valueConstraint.anchor = GridBagConstraints.BASELINE_LEADING ;
      valueConstraint.weightx = 1.0 ;
      valueConstraint.weighty = 0.0 ;
     
      FileInfo lastG = gModel.getSelectedFileInfo() ;
      String[] formatIds = lastG.getTargetFormatId() ;
      String[] targetPaths = lastG.getTargetPath() ;
      int nGeneratedFiles = lastG.getTargetPath().length ;
      for(int file=0; file<nGeneratedFiles; file++) {
        PlugInInfo genInfo = gModel.getGenerator(formatIds[file]) ;
        String iconName = String.format(COLOR_ICON, genInfo.getId()) ;
        String formatName = genInfo.getFormatName() ;
View Full Code Here

     */
    @Override
    public void update() {
      GenerationModel gModel = HistoryView.this.model ;
      if (gModel.newFileAdded()) {
        FileInfo fileInfo = gModel.getSelectedFileInfo() ;
        this.add(0, fileInfo.getPath()) ;
        HistoryView.this.recentFiles.setSelectedIndex(0) ;
        this.fireContentsChanged(this, 0, this.getSize()-1) ;
      } else if (gModel.fileRemoved()){
        this.remove(gModel.getDeletedIndex()) ;
      }// if
View Full Code Here

     
      // Determine the new icon and tooltip
      String newTooltip = null ;
      ImageIcon newIcon  = null ;
      int cursorType = Cursor.HAND_CURSOR ;
      FileInfo currentFile = this.model.getSelectedFileInfo() ;
      PlugInInfo newAnalyzer = null ;
     
      boolean formatIsUnknown = true ;
      if (currentFile != null) {
        newAnalyzer = this.model.getAnalyzer(
            currentFile.getIdFormat()) ;
        formatIsUnknown = (newAnalyzer == null) ;
      }// if
     
      if (formatIsUnknown) {
        newTooltip = sl.getText(UNKNOWN_FORMAT) ;
View Full Code Here

TOP

Related Classes of kameleon.gui.model.FileInfo

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.