package bluej.groupwork.actions;

import bluej.Config;
import bluej.groupwork.ui.CommitAndPushInterface;
import bluej.pkgmgr.PkgMgrFrame;
import bluej.pkgmgr.Project;
import javafx.stage.Stage;
import javafx.stage.Window;


| Action to show the frame which allows commit comments to be entered. | The frame has a button to make the commit. | | @author Kasper | @author Bruce Quig | public class CommitCommentAction extends TeamAction{ public CommitCommentAction(String label) { super(label, true); shortDescription = Config.getString("tooltip.commit"); } @Override public void actionPerformed(PkgMgrFrame frame) { Project project = frame.getProject(); CommitAndPushInterface dialog = project.getCommitCommentsDialog(); Window dialogWin = dialog.asWindow(); if (dialog.isShowing()) { if (dialogWin instanceof Stage) { ((Stage)dialogWin).toFront(); } } else { dialog.reset(); dialog.setLocationRelativeTo(frame.getFXWindow()); dialog.setVisible(true); } } }
top, use, map, class CommitCommentAction

.   CommitCommentAction
.   actionPerformed




43 neLoCode + 4 LoComm