11package actions .menu ;
22
33public class ActionsMenuBarTitles {
4-
4+
55 public String pending ;
6-
6+
77 public ActionsMenuBarTitles (String string ) {
88 pending = string ;
99 }
@@ -12,64 +12,65 @@ public ActionsMenuBarTitles(String string) {
1212 public String toString () {
1313 return pending ;
1414 }
15-
16- public static ActionsMenuBarTitles Data (){
15+
16+ public static ActionsMenuBarTitles Data () {
1717 return new ActionsMenuBarTitles ("Data" );
1818 }
19-
19+
2020 public static ActionsMenuBarTitles Edit () {
2121 return new ActionsMenuBarTitles ("Edit" );
2222 }
23+
2324 /**
2425 * Returns the string construct for Developer Only Feature
25- * @param remainingTitle the remaining menu titles, this should not begin with /
26+ *
27+ * @param remainingTitle
28+ * the remaining menu titles, this should not begin with /
2629 * @return
2730 */
28- public static ActionsMenuBarTitles Developer (String remainingTitle ){
31+ public static ActionsMenuBarTitles Developer (String remainingTitle ) {
2932 return new ActionsMenuBarTitles ("Developer" + "/" + remainingTitle );
3033 }
31-
32- public static ActionsMenuBarTitles File (){
34+
35+ public static ActionsMenuBarTitles File () {
3336 return new ActionsMenuBarTitles ("File" );
3437 }
35-
36-
37- public ActionsMenuBarTitles Save (){
38+
39+ public ActionsMenuBarTitles Save () {
3840 append ("Save..." );
3941 return this ;
4042 }
4143
42- private void append (String str ){
44+ private void append (String str ) {
4345 this .pending += "/" + str ;
4446 }
45-
46-
47- public ActionsMenuBarTitles Input_Box (){
47+
48+ public ActionsMenuBarTitles Input_Box () {
4849 append ("Input Box" );
4950 return this ;
5051 }
51-
52- public ActionsMenuBarTitles Display_Box (){
52+
53+ public ActionsMenuBarTitles Display_Box () {
5354 append ("Display Box" );
5455 return this ;
5556 }
56-
57- public ActionsMenuBarTitles Add (){
57+
58+ public ActionsMenuBarTitles Add () {
5859 append ("Add" );
5960 return this ;
6061 }
61-
62- public ActionsMenuBarTitles Update (){
62+
63+ public ActionsMenuBarTitles Update () {
6364 append ("Update" );
6465 return this ;
6566 }
66-
67- public ActionsMenuBarTitles Construct (){
67+
68+ public ActionsMenuBarTitles Construct () {
6869 append ("Construct" );
6970 return this ;
7071 }
71-
72- public ActionsMenuBarTitles Line_Segment (){
72+
73+ public ActionsMenuBarTitles Line_Segment () {
7374 append ("Line Segment" );
7475 return this ;
7576 }
@@ -78,6 +79,10 @@ public static ActionsMenuBarTitles Lazy() {
7879 return new ActionsMenuBarTitles ("Lazy" );
7980 }
8081
82+ public static ActionsMenuBarTitles Script () {
83+ return new ActionsMenuBarTitles ("Script" );
84+ }
85+
8186 public ActionsMenuBarTitles Java_Class () {
8287 append ("Java Class" );
8388 return this ;
@@ -87,7 +92,7 @@ public ActionsMenuBarTitles Java_Constructor() {
8792 append ("Java Constructor" );
8893 return this ;
8994 }
90-
95+
9196 public ActionsMenuBarTitles Java_Method () {
9297 append ("Java Method" );
9398 return this ;
@@ -97,17 +102,17 @@ public ActionsMenuBarTitles Java_Fields() {
97102 append ("Java Fields" );
98103 return this ;
99104 }
100-
105+
101106 public ActionsMenuBarTitles Undo () {
102107 append ("Undo" );
103108 return this ;
104109 }
105-
110+
106111 public ActionsMenuBarTitles Redo () {
107112 append ("Redo" );
108- return this ;
109- }
110-
113+ return this ;
114+ }
115+
111116 public ActionsMenuBarTitles Remove () {
112117 append ("Remove" );
113118 return this ;
@@ -125,37 +130,42 @@ public ActionsMenuBarTitles Font_Size() {
125130
126131 public ActionsMenuBarTitles Point_Size () {
127132 append ("Point Size..." );
128- return this ;
129- }
133+ return this ;
134+ }
130135
131136 public ActionsMenuBarTitles Zoom_In () {
132137 append ("Zoom In" );
133138 return this ;
134139 }
135-
140+
136141 public ActionsMenuBarTitles Zoom_Out () {
137142 append ("Zoom Out" );
138143 return this ;
139144 }
140145
146+ public ActionsMenuBarTitles Enter_Script () {
147+ append ("Enter Script" );
148+ return this ;
149+ }
150+
141151 public ActionsMenuBarTitles Annotations () {
142152 append ("Annotations" );
143153 return this ;
144154 }
145155
146-
147156 public ActionsMenuBarTitles Instance_Operation () {
148157 append ("Instance Operation Component" );
149158 return this ;
150159 }
151-
160+
152161 public ActionsMenuBarTitles Add_Instance_Method () {
153162 append ("Add Instance Method" );
154163 return this ;
155164 }
156-
165+
157166 public ActionsMenuBarTitles Annotation_Font_Size () {
158167 append ("Annotation Font Size" );
168+
159169 return this ;
160170 }
161171}
0 commit comments