/** * Gets the i18nDescription. * * @return the i18nDescription. */ public String getI18nDescription() { if (i18nDescription != null) { return i18nDescription; } return getDescription(); }
/** * Gets the i18nDescription. * * @return the i18nDescription. */ public String getI18nDescription() { if (i18nDescription != null) { return i18nDescription; } return getDescription(); }
/** * Gets the workspace view descriptor. Whenever the view descriptor has not * been set, a default one is generated. * * @return the viewDescriptor. */ public IViewDescriptor getViewDescriptor() { if (viewDescriptor == null) { viewDescriptor = new BasicWorkspaceViewDescriptor(); ((BasicWorkspaceViewDescriptor) viewDescriptor).setName(getName()); ((BasicWorkspaceViewDescriptor) viewDescriptor) .setDescription(getDescription()); ((BasicWorkspaceViewDescriptor) viewDescriptor) .setIconImageURL(getIconImageURL()); if (iconImageURLProvider == null) { iconImageURLProvider = new WorkspaceIconImageURLProvider(); } ((BasicWorkspaceViewDescriptor) viewDescriptor) .setIconImageURLProvider(iconImageURLProvider); } return viewDescriptor; }
private void translateWorkspace(Workspace workspace) { workspace.setI18nName(getTranslationProvider().getTranslation( workspace.getName(), getLocale())); workspace.setI18nDescription(getTranslationProvider().getTranslation( workspace.getDescription(), getLocale())); if (workspace.getModules() != null) { for (Module module : workspace.getModules()) { translateModule(module); } } }
/** * Gets the workspace view descriptor. Whenever the view descriptor has not * been set, a default one is generated. * * @return the viewDescriptor. */ public IViewDescriptor getViewDescriptor() { if (viewDescriptor == null) { AbstractTreeViewDescriptor workspaceViewDescriptor = createWorkspaceViewDescriptor(); workspaceViewDescriptor.setName(getName()); workspaceViewDescriptor.setDescription(getDescription()); workspaceViewDescriptor.setIcon(getIcon()); workspaceViewDescriptor.setIconImageURLProvider(getIconProvider()); workspaceViewDescriptor.setItemSelectionAction(getItemSelectionAction()); viewDescriptor = workspaceViewDescriptor; } return viewDescriptor; }
/** * Translate workspace. * * @param workspace * the workspace */ protected void translateWorkspace(Workspace workspace) { workspace.setI18nName(getTranslation(workspace.getName(), getLocale())); workspace.setI18nDescription(getTranslation(workspace.getDescription(), "", getLocale())); workspace.setI18nHeaderDescription(getTranslation(workspace.getHeaderDescription(), "", getLocale())); workspace.setI18nPageHeaderDescription(getTranslation(workspace.getPageHeaderDescription(), "", getLocale())); if (workspace.getModules() != null) { for (Module module : workspace.getModules()) { translateModule(module); } } }