Changeset 32285
- Timestamp:
- 07/25/08 13:15:50 (3 months ago)
- Files:
-
- nuxeo-rcp/trunk/nuxeo-apogee-rcp/plugins/org.nuxeo.ecm.platform.rcp/src/org/nuxeo/ecm/rcp/actions/EditDocumentWithDefaultApplicationAction.java (modified) (1 diff)
- nuxeo-rcp/trunk/nuxeo-apogee-rcp/plugins/org.nuxeo.ecm.platform.rcp/src/org/nuxeo/ecm/rcp/actions/messages.properties (modified) (1 diff)
- nuxeo-rcp/trunk/nuxeo-apogee-rcp/plugins/org.nuxeo.ecm.platform.rcp/src/org/nuxeo/ecm/rcp/editors/pages/DocumentViewPage.java (modified) (1 diff)
- nuxeo-rcp/trunk/nuxeo-apogee-rcp/plugins/org.nuxeo.ecm.platform.rcp/src/org/nuxeo/ecm/rcp/wizards/Messages.java (modified) (1 diff)
- nuxeo-rcp/trunk/nuxeo-apogee-rcp/plugins/org.nuxeo.ecm.platform.rcp/src/org/nuxeo/ecm/rcp/wizards/NewLocalPlatformPage.java (modified) (4 diffs)
- nuxeo-rcp/trunk/nuxeo-apogee-rcp/plugins/org.nuxeo.ecm.platform.rcp/src/org/nuxeo/ecm/rcp/wizards/messages.properties (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
nuxeo-rcp/trunk/nuxeo-apogee-rcp/plugins/org.nuxeo.ecm.platform.rcp/src/org/nuxeo/ecm/rcp/actions/EditDocumentWithDefaultApplicationAction.java
r32106 r32285 67 67 68 68 public static void editFile(Shell shell, DocumentModel doc) { 69 String filename = (String) doc.getProperty("file", "filename"); //$NON-NLS-1$ //$NON-NLS-2$ 70 AbstractBlob blob = (AbstractBlob) doc.getProperty("file", "content"); //$NON-NLS-1$ //$NON-NLS-2$ 71 File file = saveBlob(filename, blob); 69 File file = FileCache.getFlushedCachedFile(doc); 70 // String filename = (String) doc.getProperty("file", "filename"); 71 // //$NON-NLS-1$ //$NON-NLS-2$ 72 // AbstractBlob blob = (AbstractBlob) doc.getProperty("file", 73 // "content"); //$NON-NLS-1$ //$NON-NLS-2$ 74 // File file = saveBlob(filename, blob); 72 75 try { 73 76 Program.launch(file.getCanonicalPath()); nuxeo-rcp/trunk/nuxeo-apogee-rcp/plugins/org.nuxeo.ecm.platform.rcp/src/org/nuxeo/ecm/rcp/actions/messages.properties
r31833 r32285 54 54 EditDocumentWithDefaultApplicationAction_tooltip_editWithDefaultApp=Edit with default application 55 55 EditDocumentWithDefaultApplicationAction_title_editingFile=Editing file 56 EditDocumentWithDefaultApplicationAction_message_editingFile=The default editor had been open by Nuxeo RCP,\n click OK when finish working the file to save it.56 EditDocumentWithDefaultApplicationAction_message_editingFile=The default editor is being launched with the document file for editing,\nClick on OK to upload the modifications. 57 57 EditDocumentWithDefaultApplicationAction_Ok=Ok 58 58 EditDocumentWithDefaultApplicationAction_Cancel=Cancel nuxeo-rcp/trunk/nuxeo-apogee-rcp/plugins/org.nuxeo.ecm.platform.rcp/src/org/nuxeo/ecm/rcp/editors/pages/DocumentViewPage.java
r32275 r32285 498 498 public void widgetSelected(SelectionEvent e) { 499 499 EditDocumentWithDefaultApplicationAction.editFile( 500 e.widget.getDisplay().getActiveShell(), doc);500 e.widget.getDisplay().getActiveShell(), editor.getDocument()); 501 501 } 502 502 }); 503 open.setEnabled(doc.getProperty("file", "filename") != null); //$NON-NLS-1$ //$NON-NLS-2$503 edit.setEnabled(doc.getProperty("file", "filename") != null); //$NON-NLS-1$ //$NON-NLS-2$ 504 504 505 505 // Upload attached file button nuxeo-rcp/trunk/nuxeo-apogee-rcp/plugins/org.nuxeo.ecm.platform.rcp/src/org/nuxeo/ecm/rcp/wizards/Messages.java
r32106 r32285 33 33 34 34 public static String NewCustomPlatformPage_title; 35 36 public static String NewLocalPlatformPage_description; 37 38 public static String NewLocalPlatformPage_error_processingTemplate; 39 40 public static String NewLocalPlatformPage_reponame_label; 41 42 public static String NewLocalPlatformPage_title; 35 43 36 44 public static String NewPlatformIntroPage_autoDetect; nuxeo-rcp/trunk/nuxeo-apogee-rcp/plugins/org.nuxeo.ecm.platform.rcp/src/org/nuxeo/ecm/rcp/wizards/NewLocalPlatformPage.java
r32275 r32285 42 42 public NewLocalPlatformPage(NewPlatformWizard wizard, String pageName) { 43 43 super( 44 "Local platform",45 "Local platform",44 Messages.NewLocalPlatformPage_title, 45 Messages.NewLocalPlatformPage_title, 46 46 UIActivator.getImageDescriptor(NewPlatformWizard.NEW_PLATFORM_WIZ)); 47 47 this.wizard = wizard; 48 48 // Set the description 49 setDescription(Messages.New CustomPlatformPage_description);49 setDescription(Messages.NewLocalPlatformPage_description); 50 50 } 51 51 … … 60 60 61 61 Label label = new Label(composite, SWT.NONE); 62 label.setText( "Name of repository");62 label.setText(Messages.NewLocalPlatformPage_reponame_label); 63 63 64 64 reposName = new Text(composite, SWT.BORDER); … … 111 111 // return wizard.introPage.name.getText(); 112 112 } catch (Exception e) { 113 log.error( "Couldn't process template", e);113 log.error(Messages.NewLocalPlatformPage_error_processingTemplate, e); 114 114 } 115 115 return null; … … 119 119 throws Exception { 120 120 121 String xmlfilename = "default-repository-config.xml"; 121 String xmlfilename = "default-repository-config.xml"; //$NON-NLS-1$ 122 122 123 123 TextTemplate textTemplate = new TextTemplate(); 124 textTemplate.setVariable("name", name); 124 textTemplate.setVariable("name", name); //$NON-NLS-1$ 125 125 126 textTemplate.setVariable("title", title); 126 textTemplate.setVariable("title", title); //$NON-NLS-1$ 127 127 128 128 InputStream templateFileStream = FileLocator.openStream( 129 129 PlatformActivator.getDefault().getBundle(), new Path( 130 "reposTemplates/" + xmlfilename), false); 130 "reposTemplates/" + xmlfilename), false); //$NON-NLS-1$ 131 131 textTemplate.process(templateFileStream, os); 132 132 // return textTemplate.process(templateFileStream); nuxeo-rcp/trunk/nuxeo-apogee-rcp/plugins/org.nuxeo.ecm.platform.rcp/src/org/nuxeo/ecm/rcp/wizards/messages.properties
r24083 r32285 7 7 NewPlatformIntroPage_title=Component Registry 8 8 NewPlatformIntroPage_local=Local Platform 9 NewLocalPlatformPage_title=Local platform 9 10 NewAutoPlatformPage_description=Add a Detected Component Registry 10 11 NewPlatformIntroPage_autoDetect=Auto Detect ECM Platforms … … 20 21 NewPlatformIntroPage_description=Add a New Component Registry 21 22 NewPlatformWizard_introPageTitle=Connect to an ECM Platform 23 NewLocalPlatformPage_description=This page let you create a new local ECM platform based on a default platform template 22 24 NewPlatformIntroPage_platformName=Platform Name: 23 25 NewPlatformWizard_remotePageTitle=Connect to a remote ECM Platform … … 25 27 NewRemotePlatformPage_description=This page let you connect to a remote ECM platform b ased on a default platform template 26 28 NewCustomPlatformPage_extensionFile=Extension File 29 NewLocalPlatformPage_reponame_label=Name of repository 27 30 NewPlatformIntroPage_defaultPlatformName=ECM Platform 28 31 NewPlatformIntroPage_specifyDefinePlatformLocation=Specify how you want to define the platform location 29 32 NewPlatformWizard_unknowWizardResultTypeError=BUG: Unknown wizard result type: {0}. Must be File or InputStream. 33 NewLocalPlatformPage_error_processingTemplate=Couldn't process template 30 34 NewPlatformWizard_failedCreatePlatformDefinitionError=Failed to create platform definition
