123456789101112131415161718192021222324252627282930313233343536373839 |
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
-
- package kontakte.controller;
-
- import kontakte.model.Model;
- import kontakte.view.View;
-
- /**
- *
- * @author nobody
- */
- public class CommandOpen implements CommandInterface
- {
- private View view;
- private Model model;
-
- public CommandOpen(View view, Model model)
- {
- this.view = view;
- this.model = model;
- }
-
- @Override
- public void execute()
- {
- view.getFileChooser().showOpenDialog(view);
- String fileAdd = view.getFileChooser().getSelectedFile().getAbsolutePath();
- view.getTextFileAdress().setText(fileAdd);
- }
-
- @Override
- public void undo()
- {
- }
- }
|