Ignore:
Timestamp:
Feb 19, 2012, 5:26:03 PM (13 years ago)
Author:
chronos
Message:
  • Added: New Java target.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.pas

    r40 r41  
    3434    AProgramStepOver: TAction;
    3535    AProgramStepInto: TAction;
    36     AViewInterpretter: TAction;
    3736    AProgramPause: TAction;
    3837    AProgramStop: TAction;
     
    6160    MenuItem17: TMenuItem;
    6261    MenuItem18: TMenuItem;
    63     MenuItem19: TMenuItem;
    6462    MenuItem2: TMenuItem;
    6563    MenuItem20: TMenuItem;
     
    198196
    199197uses
    200   UFormCPU, UApplicationInfo, UFormOptions, UFormMessages,
     198  UFormCPU, UApplicationInfo, UFormOptions, UFormMessages, UTargetJava,
    201199  UTargetDelphi, UTargetPHP, UTargetC, UFormTargets, UFormOutput, UFormInput,
    202200  UFormMemory;
     
    394392  AProgramStop.Enabled := (tcStop in CurrentTarget.Capabilities) and
    395393    (ProjectFileName <> '') and (CurrentTarget.State <> rsStopped);
    396   AProgramCompile.Enabled := (tcCompile in CurrentTarget.Capabilities);
     394  AProgramCompile.Enabled := (tcCompile in CurrentTarget.Capabilities) and
     395    (ProjectFileName <> '');
    397396  AProgramStepInto.Enabled := (tcStepInto in CurrentTarget.Capabilities) and
    398397    (ProjectFileName <> '') and ((CurrentTarget.State = rsPaused) or (CurrentTarget.State = rsStopped));
     
    437436  Targets.Add(TTargetPHP.Create);
    438437  Targets.Add(TTargetC.Create);
     438  Targets.Add(TTargetJava.Create);
    439439  UpdateTargetList;
    440440  LastOpenedList := TLastOpenedList.Create;
     
    577577    Optimization := coNormal;
    578578    SourceCode := MemoSource.Text;
    579     ProgramName := ExtractFileNameOnly(ProjectFileName);
     579    ProjectFileName := Self.ProjectFileName;
     580    ProgramName := ExtractFileNameOnly(Self.ProjectFileName);
    580581    CurrentTarget.Messages.AddMessage('Compiling...');
    581582    Compile;
Note: See TracChangeset for help on using the changeset viewer.