Lines 38-61
Link Here
|
38 |
protected final String TEXT_21 = " Model Editor" + NL + "" + NL + "_UI_"; |
38 |
protected final String TEXT_21 = " Model Editor" + NL + "" + NL + "_UI_"; |
39 |
protected final String TEXT_22 = "FilenameDefaultBase = My" + NL + "_UI_"; |
39 |
protected final String TEXT_22 = "FilenameDefaultBase = My" + NL + "_UI_"; |
40 |
protected final String TEXT_23 = "FilenameExtension = "; |
40 |
protected final String TEXT_23 = "FilenameExtension = "; |
41 |
protected final String TEXT_24 = NL; |
41 |
protected final String TEXT_24 = NL + NL + "_UI_"; |
42 |
protected final String TEXT_25 = NL + "_UI_Wizard_label = New" + NL + "" + NL + "_WARN_FilenameExtension = The file name must end in \".{0}\"" + NL + "" + NL + "_UI_ModelObject = Model Object" + NL + "_UI_XMLEncoding = XML Encoding" + NL + "_UI_XMLEncodingChoices = "; |
42 |
protected final String TEXT_25 = "_label = "; |
43 |
protected final String TEXT_26 = NL + "_UI_Wizard_initial_object_description = Specify a file name and select a model object to create"; |
43 |
protected final String TEXT_26 = " Editor Preferences" + NL + "_UI_EditorPreference_description_ = "; |
44 |
protected final String TEXT_27 = NL + "_UI_Wizard_initial_object_description = Select a model object to create"; |
44 |
protected final String TEXT_27 = " Editor XML saving preferences." + NL + "_UI_EditorPreferenceTypeInformation_label = Save type information" + NL + "_UI_EditorPreferenceSaveDoctype_label = Save doctype declaration" + NL + "_UI_EditorPreferenceFormatted_label = Output formatted XML" + NL + "_UI_EditorPreferenceLineWidth_label = XML file line width" + NL; |
45 |
protected final String TEXT_28 = NL + NL + "_UI_FileConflict_label = File Conflict" + NL + "_WARN_FileConflict = There are unsaved changes that conflict with changes made outside the editor. Do you wish to discard this editor's changes?" + NL; |
45 |
protected final String TEXT_28 = NL + "_UI_Wizard_label = New" + NL + "" + NL + "_WARN_FilenameExtension = The file name must end in \".{0}\"" + NL + "" + NL + "_UI_ModelObject = Model Object" + NL + "_UI_XMLEncoding = XML Encoding" + NL + "_UI_XMLEncodingChoices = "; |
46 |
protected final String TEXT_29 = NL + "_UI_"; |
46 |
protected final String TEXT_29 = NL + "_UI_Wizard_initial_object_description = Specify a file name and select a model object to create"; |
47 |
protected final String TEXT_30 = "_ActionSet_label = "; |
47 |
protected final String TEXT_30 = NL + "_UI_Wizard_initial_object_description = Select a model object to create"; |
48 |
protected final String TEXT_31 = " Action Set" + NL + "_UI_Perspective_label = "; |
48 |
protected final String TEXT_31 = NL + NL + "_UI_FileConflict_label = File Conflict" + NL + "_WARN_FileConflict = There are unsaved changes that conflict with changes made outside the editor. Do you wish to discard this editor's changes?" + NL; |
49 |
protected final String TEXT_32 = NL + NL + "_UI_Browse_label = &Browse..." + NL + "_UI_File_label = &File" + NL + "_UI_Question_title = Question" + NL + "_WARN_FileConflict = The file \"{0}\" already exists. Do you want to replace the existing file?" + NL + "_UI_Error_title = Error" + NL + "_WARN_No_Editor = There is no editor registered for the file \"{0}\"." + NL + "" + NL + "_UI_Application_title = "; |
49 |
protected final String TEXT_32 = NL + "_UI_"; |
50 |
protected final String TEXT_33 = " Application" + NL + "_UI_Menu_File_label = &File" + NL + "_UI_Menu_New_label = &New" + NL + "_UI_Menu_Open_label = &Open..." + NL + "_UI_Menu_Open_description = Opens a model object file" + NL + "_UI_Menu_OpenURI_label = &Open URI..." + NL + "_UI_Menu_OpenURI_description = Opens a model object loading it from a URI" + NL + "_UI_Menu_Edit_label = &Edit" + NL + "_UI_Menu_Window_label = &Window" + NL + "_UI_Menu_Help_label = &Help" + NL + "_UI_Menu_About_label = "; |
50 |
protected final String TEXT_33 = "_ActionSet_label = "; |
51 |
protected final String TEXT_34 = " &About..." + NL + "_UI_About_title = "; |
51 |
protected final String TEXT_34 = " Action Set" + NL + "_UI_Perspective_label = "; |
52 |
protected final String TEXT_35 = " Application" + NL + "_UI_About_text = "; |
52 |
protected final String TEXT_35 = NL + NL + "_UI_Browse_label = &Browse..." + NL + "_UI_File_label = &File" + NL + "_UI_Question_title = Question" + NL + "_WARN_FileConflict = The file \"{0}\" already exists. Do you want to replace the existing file?" + NL + "_UI_Error_title = Error" + NL + "_WARN_No_Editor = There is no editor registered for the file \"{0}\"." + NL + "" + NL + "_UI_Application_title = "; |
53 |
protected final String TEXT_36 = " Application about box goes here." + NL; |
53 |
protected final String TEXT_36 = " Application" + NL + "_UI_Menu_File_label = &File" + NL + "_UI_Menu_New_label = &New" + NL + "_UI_Menu_Open_label = &Open..." + NL + "_UI_Menu_Open_description = Opens a model object file" + NL + "_UI_Menu_OpenURI_label = &Open URI..." + NL + "_UI_Menu_OpenURI_description = Opens a model object loading it from a URI" + NL + "_UI_Menu_Edit_label = &Edit" + NL + "_UI_Menu_Window_label = &Window" + NL + "_UI_Menu_Help_label = &Help" + NL + "_UI_Menu_About_label = "; |
54 |
protected final String TEXT_37 = NL + "_UI_"; |
54 |
protected final String TEXT_37 = " &About..." + NL + "_UI_About_title = "; |
55 |
protected final String TEXT_38 = "_ActionSet_label = "; |
55 |
protected final String TEXT_38 = " Application" + NL + "_UI_About_text = "; |
56 |
protected final String TEXT_39 = " Model Action Set"; |
56 |
protected final String TEXT_39 = " Application about box goes here." + NL; |
57 |
protected final String TEXT_40 = NL; |
57 |
protected final String TEXT_40 = NL + "_UI_"; |
58 |
protected final String TEXT_41 = NL; |
58 |
protected final String TEXT_41 = "_ActionSet_label = "; |
|
|
59 |
protected final String TEXT_42 = " Model Action Set"; |
60 |
protected final String TEXT_43 = NL; |
61 |
protected final String TEXT_44 = NL; |
59 |
|
62 |
|
60 |
public String generate(Object argument) |
63 |
public String generate(Object argument) |
61 |
{ |
64 |
{ |
Lines 125-148
Link Here
|
125 |
stringBuffer.append(TEXT_23); |
128 |
stringBuffer.append(TEXT_23); |
126 |
stringBuffer.append(genPackage.getPrefix().toLowerCase()); |
129 |
stringBuffer.append(genPackage.getPrefix().toLowerCase()); |
127 |
stringBuffer.append(TEXT_24); |
130 |
stringBuffer.append(TEXT_24); |
128 |
} |
131 |
stringBuffer.append(genPackage.getEditorPreferencePageClassName()); |
129 |
stringBuffer.append(TEXT_25); |
132 |
stringBuffer.append(TEXT_25); |
130 |
stringBuffer.append(genModel.getXMLEncodingChoices()); |
133 |
stringBuffer.append(genPackage.getPrefix()); |
131 |
if (genModel.isRichClientPlatform()) { |
|
|
132 |
stringBuffer.append(TEXT_26); |
134 |
stringBuffer.append(TEXT_26); |
133 |
} else { |
135 |
stringBuffer.append(genPackage.getPrefix()); |
134 |
stringBuffer.append(TEXT_27); |
136 |
stringBuffer.append(TEXT_27); |
135 |
} |
137 |
} |
136 |
stringBuffer.append(TEXT_28); |
138 |
stringBuffer.append(TEXT_28); |
|
|
139 |
stringBuffer.append(genModel.getXMLEncodingChoices()); |
137 |
if (genModel.isRichClientPlatform()) { |
140 |
if (genModel.isRichClientPlatform()) { |
138 |
stringBuffer.append(TEXT_29); |
141 |
stringBuffer.append(TEXT_29); |
139 |
stringBuffer.append(genModel.getEditorAdvisorClassName()); |
142 |
} else { |
140 |
stringBuffer.append(TEXT_30); |
143 |
stringBuffer.append(TEXT_30); |
141 |
stringBuffer.append(genModel.getModelName()); |
144 |
} |
142 |
stringBuffer.append(TEXT_31); |
145 |
stringBuffer.append(TEXT_31); |
143 |
stringBuffer.append(genModel.getModelName()); |
146 |
if (genModel.isRichClientPlatform()) { |
144 |
stringBuffer.append(TEXT_32); |
147 |
stringBuffer.append(TEXT_32); |
145 |
stringBuffer.append(genModel.getModelName()); |
148 |
stringBuffer.append(genModel.getEditorAdvisorClassName()); |
146 |
stringBuffer.append(TEXT_33); |
149 |
stringBuffer.append(TEXT_33); |
147 |
stringBuffer.append(genModel.getModelName()); |
150 |
stringBuffer.append(genModel.getModelName()); |
148 |
stringBuffer.append(TEXT_34); |
151 |
stringBuffer.append(TEXT_34); |
Lines 150-165
Link Here
|
150 |
stringBuffer.append(TEXT_35); |
153 |
stringBuffer.append(TEXT_35); |
151 |
stringBuffer.append(genModel.getModelName()); |
154 |
stringBuffer.append(genModel.getModelName()); |
152 |
stringBuffer.append(TEXT_36); |
155 |
stringBuffer.append(TEXT_36); |
153 |
for (GenPackage genPackage : genModel.getAllGenPackagesWithClassifiers()) {if (genPackage.isGenerateModelWizard()) { |
156 |
stringBuffer.append(genModel.getModelName()); |
154 |
stringBuffer.append(TEXT_37); |
157 |
stringBuffer.append(TEXT_37); |
155 |
stringBuffer.append(genPackage.getModelWizardClassName()); |
158 |
stringBuffer.append(genModel.getModelName()); |
156 |
stringBuffer.append(TEXT_38); |
159 |
stringBuffer.append(TEXT_38); |
157 |
stringBuffer.append(genPackage.getPrefix()); |
160 |
stringBuffer.append(genModel.getModelName()); |
158 |
stringBuffer.append(TEXT_39); |
161 |
stringBuffer.append(TEXT_39); |
159 |
}} |
162 |
for (GenPackage genPackage : genModel.getAllGenPackagesWithClassifiers()) {if (genPackage.isGenerateModelWizard()) { |
160 |
stringBuffer.append(TEXT_40); |
163 |
stringBuffer.append(TEXT_40); |
161 |
} |
164 |
stringBuffer.append(genPackage.getModelWizardClassName()); |
162 |
stringBuffer.append(TEXT_41); |
165 |
stringBuffer.append(TEXT_41); |
|
|
166 |
stringBuffer.append(genPackage.getPrefix()); |
167 |
stringBuffer.append(TEXT_42); |
168 |
}} |
169 |
stringBuffer.append(TEXT_43); |
170 |
} |
171 |
stringBuffer.append(TEXT_44); |
163 |
return stringBuffer.toString(); |
172 |
return stringBuffer.toString(); |
164 |
} |
173 |
} |
165 |
} |
174 |
} |