-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathFilePropertiesAction.java
More file actions
57 lines (47 loc) · 1.39 KB
/
Copy pathFilePropertiesAction.java
File metadata and controls
57 lines (47 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
* 12/08/2004
*
* FilePropertiesAction.java - Action to display the information on the
* current text area.
* Copyright (C) 2004 Robert Futrell
* https://bobbylight.github.io/RText/
* Licensed under a modified BSD license.
* See the included license file for details.
*/
package org.fife.rtext.actions;
import java.awt.event.ActionEvent;
import java.util.ResourceBundle;
import org.fife.rsta.ui.TextFilePropertiesDialog;
import org.fife.rtext.RText;
import org.fife.ui.app.AppAction;
import org.fife.util.MacOSUtil;
/**
* Action to display information on the current text area.
*
* @author Robert Futrell
* @version 1.0
*/
class FilePropertiesAction extends AppAction<RText> {
/**
* Creates a new <code>FilePropertiesAction</code>.
*
* @param rtext The parent application.
* @param msg The resource bundle to use for localization.
*/
FilePropertiesAction(RText rtext, ResourceBundle msg) {
super(rtext, msg, "FilePropertiesAction");
}
/**
* Callback routine called when user uses this component.
*
* @param e The action event.
*/
@Override
public void actionPerformed(ActionEvent e) {
RText rtext = getApplication();
TextFilePropertiesDialog dialog = new TextFilePropertiesDialog(
rtext, rtext.getMainView().getCurrentTextArea());
MacOSUtil.applyMacOsTweaks(dialog);
dialog.setVisible(true);
}
}