Commit 637bf722 authored by Romain Bioteau's avatar Romain Bioteau
Browse files

feat(deploy) pages & layouts label

Closes BST-465
parent a311ab49
......@@ -91,4 +91,5 @@ appDescriptorUnknownPageToken=Application descriptor '%s': Application page toke
appDescriptorUnknownLayoutPage=Application descriptor '%s': Application layout '%s' has not been found.
appDescriptorUnknownTheme=Application descriptor '%s': Application theme '%s' has not been found.
deploySuccessMsg=All artifacts has been deployed successfully.
validateProcess=Validate before deploy
\ No newline at end of file
validateProcess=Validate before deploy
pagesAndLayouts=Pages & Layouts
\ No newline at end of file
......@@ -132,6 +132,7 @@ public class Messages extends NLS {
public static String deploySuccessMsg;
public static String validateProcess;
public static String pagesAndLayouts;
static {
......
......@@ -22,6 +22,7 @@ import org.bonitasoft.studio.application.views.ProjectExplorerViewerComparator;
import org.bonitasoft.studio.common.repository.model.IDisplayable;
import org.bonitasoft.studio.common.repository.model.IRepositoryFileStore;
import org.bonitasoft.studio.common.repository.model.IRepositoryStore;
import org.bonitasoft.studio.designer.core.repository.WebPageRepositoryStore;
import org.bonitasoft.studio.diagram.custom.repository.DiagramRepositoryStore;
import org.eclipse.core.resources.IResource;
import org.eclipse.jface.viewers.StyledString;
......@@ -50,7 +51,13 @@ public class RepositoryStore implements IDisplayable,Comparable<RepositoryStore>
@Override
public String getDisplayName() {
return store instanceof DiagramRepositoryStore ? Messages.processes : store.getDisplayName();
if(store instanceof DiagramRepositoryStore) {
return Messages.processes;
}
if(store instanceof WebPageRepositoryStore) {
return Messages.pagesAndLayouts;
}
return store.getDisplayName();
}
@Override
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment