Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/arranger/jarl/shell/commands/ReuseFrameCommand.java


1   package com.arranger.jarl.shell.commands;
2   
3   import com.arranger.jarl.shell.models.ViewPrefModel;
4   
5   /**
6    * ReuseFrameCommand created on Apr 16, 2003 
7    */
8   public class ReuseFrameCommand extends BaseCommand {
9   
10      public String getHelpText() {
11          return "reuse frame.  Usage reuse true|false";
12      }
13  
14      public String getCommand() {
15          return "reuse";
16      }
17  
18      public void invoke(String[] args) throws Exception {
19          if (args.length != 2) {
20              m_jarlShell.out("Illegal args.  need true|false");
21          }
22  
23          ViewPrefModel viewPrefModel = (ViewPrefModel)m_jarlShell.getModel(ViewPrefModel.class.getName());
24          viewPrefModel.setReuseFrame(Boolean.valueOf(args[1]).booleanValue());
25          m_jarlShell.saveModels();
26      }
27  }