void BuildComponents() { mOpenSubmenuItemContent = new GUIContent( PlasticLocalization.GetString(PlasticLocalization.Name.ItemsMenuItemOpen)); mOpenMenuItemContent = new GUIContent( UnityMenuItem.GetText( PlasticLocalization.GetString(PlasticLocalization.Name.ItemsMenuItemOpen), string.Format("{0} {1}", PlasticLocalization.GetString(PlasticLocalization.Name.ItemsMenuItemOpen), GetPlasticShortcut.ForOpen()))); mOpenWithMenuItemContent = new GUIContent( UnityMenuItem.GetText( PlasticLocalization.GetString(PlasticLocalization.Name.ItemsMenuItemOpen), PlasticLocalization.GetString(PlasticLocalization.Name.ItemsMenuItemOpenWith))); mOpenInExplorerMenuItemContent = new GUIContent( UnityMenuItem.GetText( PlasticLocalization.GetString(PlasticLocalization.Name.ItemsMenuItemOpen), PlasticLocalization.GetString(PlasticLocalization.Name.OpenInExplorerMenuItem))); mOpenMetaMenuItemContent = new GUIContent( UnityMenuItem.GetText( PlasticLocalization.GetString(PlasticLocalization.Name.ItemsMenuItemOpen), PlasticLocalization.GetString(PlasticLocalization.Name.OpenMeta))); mOpenMetaWithMenuItemContent = new GUIContent( UnityMenuItem.GetText( PlasticLocalization.GetString(PlasticLocalization.Name.ItemsMenuItemOpen), PlasticLocalization.GetString(PlasticLocalization.Name.OpenMetaWith))); mOpenMetaInExplorerMenuItemContent = new GUIContent( UnityMenuItem.GetText( PlasticLocalization.GetString(PlasticLocalization.Name.ItemsMenuItemOpen), PlasticLocalization.GetString(PlasticLocalization.Name.OpenMetaInExplorer))); mDiffMenuItemContent = new GUIContent(string.Format("{0} {1}", PlasticLocalization.GetString(PlasticLocalization.Name.DiffMenuItem), GetPlasticShortcut.ForDiff())); mDiffMetaMenuItemContent = new GUIContent( PlasticLocalization.GetString(PlasticLocalization.Name.DiffMetaMenuItem)); mUndoChangesMenuItemContent = new GUIContent( PlasticLocalization.GetString(PlasticLocalization.Name.PendingChangesMenuItemUndoChanges)); mCheckoutMenuItemContent = new GUIContent( PlasticLocalization.GetString(PlasticLocalization.Name.PendingChangesMenuItemCheckout)); mDeleteMenuItemContent = new GUIContent(string.Format("{0} {1}", PlasticLocalization.GetString(PlasticLocalization.Name.PendingChangesMenuItemDelete), GetPlasticShortcut.ForDelete())); mViewHistoryMenuItemContent = new GUIContent(string.Format("{0} {1}", PlasticLocalization.GetString(PlasticLocalization.Name.ViewHistoryMenuItem), GetPlasticShortcut.ForHistory())); mViewHistoryMetaMenuItemContent = new GUIContent( PlasticLocalization.GetString(PlasticLocalization.Name.ViewHistoryMetaMenuItem)); mFilterMenuBuilder.BuildIgnoredSubmenuItem(); mFilterMenuBuilder.BuildHiddenChangesSubmenuItem(); }
void BuildComponents() { mOpenRevisionMenuItemContent = new GUIContent(PlasticLocalization. GetString(PlasticLocalization.Name.HistoryMenuItemOpen)); mOpenRevisionWithMenuItemContent = new GUIContent(PlasticLocalization. GetString(PlasticLocalization.Name.HistoryMenuItemOpenWith)); mSaveRevisionAsMenuItemContent = new GUIContent(PlasticLocalization. GetString(PlasticLocalization.Name.SaveThisRevisionAs)); mDiffWithPreviousMenuItemContent = new GUIContent(string.Format("{0} {1}", PlasticLocalization.GetString(PlasticLocalization.Name.HistoryMenuItemDiffWithPrevious), GetPlasticShortcut.ForDiff())); mDiffSelectedRevisionsMenuItemContent = new GUIContent(PlasticLocalization. GetString(PlasticLocalization.Name.HistoryMenuItemDiffSelectedRevisions)); mDiffChangesetMenuItemContent = new GUIContent(); mRevertToThisRevisionMenuItemContent = new GUIContent(PlasticLocalization. GetString(PlasticLocalization.Name.HistoryMenuItemRevertToThisRevision)); }
void BuildComponents() { mDiffMenuItemContent = new GUIContent( string.Format("{0} {1}", PlasticLocalization.GetString(PlasticLocalization.Name.DiffMenuItem), GetPlasticShortcut.ForDiff())); mDiffMetaMenuItemContent = new GUIContent( PlasticLocalization.GetString(PlasticLocalization.Name.DiffMetaMenuItem)); mViewHistoryMenuItemContent = new GUIContent( string.Format("{0} {1}", PlasticLocalization.GetString(PlasticLocalization.Name.ViewHistoryMenuItem), GetPlasticShortcut.ForHistory())); mViewHistoryMetaMenuItemContent = new GUIContent( PlasticLocalization.GetString(PlasticLocalization.Name.ViewHistoryMetaMenuItem)); mRevertMenuItemContent = new GUIContent(); mUndeleteMenuItemContent = new GUIContent(); mUndeleteToSpecifiedPathMenuItemContent = new GUIContent(); }