/** * based on name. * <p> * {@inheritDoc} */ @Override public String toString() { if (getI18nName() != null) { return getI18nName(); } return ""; }
/** * based on name. * <p/> * {@inheritDoc} */ @Override public String toString() { if (getI18nName() != null) { return getI18nName(); } return ""; }
/** * Gets i 18 n name. * * @param translationProvider * the translation provider * @param locale * the locale * @return the i 18 n name */ @Override public String getI18nName(ITranslationProvider translationProvider, Locale locale) { return getI18nName(); }
/** * Sets the i18nName. * * @param i18nName * the i18nName to set. */ public void setI18nName(String i18nName) { if (ObjectUtils.equals(this.i18nName, i18nName)) { return; } String oldValue = getI18nName(); this.i18nName = i18nName; firePropertyChange("i18nName", oldValue, getI18nName()); }
/** * Stores the internationalized workspace name for use in the UI as workspace * label. * * @param i18nName * the i18nName to set. * @internal */ public void setI18nName(String i18nName) { if (ObjectUtils.equals(this.i18nName, i18nName)) { return; } String oldValue = getI18nName(); this.i18nName = i18nName; firePropertyChange(I18N_NAME, oldValue, getI18nName()); // Having a static name prevents changing the i18nName based on module // object for bean modules. // So never assign it programmatically. // if (this.name == null) { // setName(i18nName); // } }
/** * Sets the dirty. * * @param dirty * the dirty to set. * @internal */ protected void setDirty(boolean dirty) { boolean oldDirty = isDirty(); String oldI18nName = getI18nName(); this.dirty = dirty; firePropertyChange(DIRTY, oldDirty, isDirty()); firePropertyChange(I18N_NAME, oldI18nName, getI18nName()); }
moduleName = module.getName(); if (moduleName == null) { moduleName = module.getI18nName();
/** * Pins a module in the history navigation thus allowing the user to navigate * back. * * @param workspaceName * the workspace to pin the module for. * @param module * the module to pin. */ protected void pinModule(String workspaceName, Module module) { if (moduleAutoPinEnabled && module != null) { if (backwardHistoryEntries.size() > 0) { ModuleHistoryEntry lastPinnedModule = backwardHistoryEntries.get(backwardHistoryEntries.size() - 1); if (lastPinnedModule.getWorkspaceName().equals(workspaceName) && lastPinnedModule.getModule().equals(module)) { return; } } String historyEntryName = getWorkspace(workspaceName).getI18nName() + " - " + module.getI18nName(); ModuleHistoryEntry historyEntry = new ModuleHistoryEntry(workspaceName, module, historyEntryName); backwardHistoryEntries.add(historyEntry); pinnedModuleDisplayed(historyEntry, true); forwardHistoryEntries.clear(); } }