Changeset 3509 for trunk/sources/HeuristicLab.PluginInfrastructure/Advanced
- Timestamp:
- 04/23/10 07:38:24 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.PluginInfrastructure/Advanced
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/InstallationManagerForm.Designer.cs
r3508 r3509 53 53 this.localPluginsTabPage = new System.Windows.Forms.TabPage(); 54 54 this.updateButton = new System.Windows.Forms.Button(); 55 this.localPluginManagerView = new HeuristicLab.PluginInfrastructure.Advanced.LocalPluginManagerView();56 55 this.availablePluginsTabPage = new System.Windows.Forms.TabPage(); 57 this.remotePluginInstaller = new HeuristicLab.PluginInfrastructure.Advanced.RemotePluginInstallerView();58 56 this.refreshButton = new System.Windows.Forms.Button(); 57 this.uploadPluginsTabPage = new System.Windows.Forms.TabPage(); 58 this.manageProductsTabPage = new System.Windows.Forms.TabPage(); 59 59 this.logTabPage = new System.Windows.Forms.TabPage(); 60 60 this.logTextBox = new System.Windows.Forms.TextBox(); … … 65 65 this.optionsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 66 66 this.connectionSettingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 67 this.uploadPluginsTabPage = new System.Windows.Forms.TabPage(); 68 this.manageProductsTabPage = new System.Windows.Forms.TabPage(); 67 this.localPluginManagerView = new HeuristicLab.PluginInfrastructure.Advanced.LocalPluginManagerView(); 68 this.remotePluginInstaller = new HeuristicLab.PluginInfrastructure.Advanced.RemotePluginInstallerView(); 69 this.pluginEditor = new HeuristicLab.PluginInfrastructure.Advanced.PluginEditor(); 70 this.productEditor = new HeuristicLab.PluginInfrastructure.Advanced.ProductEditor(); 69 71 this.statusStrip.SuspendLayout(); 70 72 this.tabControl.SuspendLayout(); 71 73 this.localPluginsTabPage.SuspendLayout(); 72 74 this.availablePluginsTabPage.SuspendLayout(); 75 this.uploadPluginsTabPage.SuspendLayout(); 76 this.manageProductsTabPage.SuspendLayout(); 73 77 this.logTabPage.SuspendLayout(); 74 78 this.menuStrip.SuspendLayout(); … … 170 174 this.updateButton.Click += new System.EventHandler(this.updateAllButton_Click); 171 175 // 172 // localPluginManagerView173 //174 this.localPluginManagerView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)175 | System.Windows.Forms.AnchorStyles.Left)176 | System.Windows.Forms.AnchorStyles.Right)));177 this.localPluginManagerView.Location = new System.Drawing.Point(6, 6);178 this.localPluginManagerView.Name = "localPluginManagerView";179 this.localPluginManagerView.Plugins = null;180 this.localPluginManagerView.Size = new System.Drawing.Size(569, 293);181 this.localPluginManagerView.TabIndex = 0;182 this.localPluginManagerView.ItemChecked += new System.Windows.Forms.ItemCheckedEventHandler(this.localPluginManager_ItemChecked);183 //184 176 // availablePluginsTabPage 185 177 // … … 195 187 this.availablePluginsTabPage.UseVisualStyleBackColor = true; 196 188 // 197 // remotePluginInstaller198 //199 this.remotePluginInstaller.AllPlugins = new HeuristicLab.PluginInfrastructure.IPluginDescription[0];200 this.remotePluginInstaller.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)201 | System.Windows.Forms.AnchorStyles.Left)202 | System.Windows.Forms.AnchorStyles.Right)));203 this.remotePluginInstaller.Location = new System.Drawing.Point(6, 6);204 this.remotePluginInstaller.Name = "remotePluginInstaller";205 this.remotePluginInstaller.NewPlugins = new HeuristicLab.PluginInfrastructure.IPluginDescription[0];206 this.remotePluginInstaller.Products = new HeuristicLab.PluginInfrastructure.Advanced.DeploymentService.ProductDescription[0];207 this.remotePluginInstaller.ShowAllPlugins = false;208 this.remotePluginInstaller.Size = new System.Drawing.Size(571, 293);209 this.remotePluginInstaller.TabIndex = 14;210 this.remotePluginInstaller.ItemChecked += new System.Windows.Forms.ItemCheckedEventHandler(this.remotePluginInstaller_ItemChecked);211 //212 189 // refreshButton 213 190 // … … 223 200 this.refreshButton.Click += new System.EventHandler(this.refreshRemoteButton_Click); 224 201 // 202 // uploadPluginsTabPage 203 // 204 this.uploadPluginsTabPage.Controls.Add(this.pluginEditor); 205 this.uploadPluginsTabPage.Location = new System.Drawing.Point(4, 22); 206 this.uploadPluginsTabPage.Name = "uploadPluginsTabPage"; 207 this.uploadPluginsTabPage.Padding = new System.Windows.Forms.Padding(3); 208 this.uploadPluginsTabPage.Size = new System.Drawing.Size(583, 342); 209 this.uploadPluginsTabPage.TabIndex = 3; 210 this.uploadPluginsTabPage.Text = "Upload Plugins"; 211 this.uploadPluginsTabPage.UseVisualStyleBackColor = true; 212 // 213 // manageProductsTabPage 214 // 215 this.manageProductsTabPage.Controls.Add(this.productEditor); 216 this.manageProductsTabPage.Location = new System.Drawing.Point(4, 22); 217 this.manageProductsTabPage.Name = "manageProductsTabPage"; 218 this.manageProductsTabPage.Padding = new System.Windows.Forms.Padding(3); 219 this.manageProductsTabPage.Size = new System.Drawing.Size(583, 342); 220 this.manageProductsTabPage.TabIndex = 4; 221 this.manageProductsTabPage.Text = "Manage Products"; 222 this.manageProductsTabPage.UseVisualStyleBackColor = true; 223 // 225 224 // logTabPage 226 225 // … … 301 300 this.connectionSettingsToolStripMenuItem.Click += new System.EventHandler(this.connectionSettingsToolStripMenuItem_Click); 302 301 // 303 // uploadPluginsTabPage 304 // 305 this.uploadPluginsTabPage.Location = new System.Drawing.Point(4, 22); 306 this.uploadPluginsTabPage.Name = "uploadPluginsTabPage"; 307 this.uploadPluginsTabPage.Padding = new System.Windows.Forms.Padding(3); 308 this.uploadPluginsTabPage.Size = new System.Drawing.Size(583, 342); 309 this.uploadPluginsTabPage.TabIndex = 3; 310 this.uploadPluginsTabPage.Text = "Upload Plugins"; 311 this.uploadPluginsTabPage.UseVisualStyleBackColor = true; 312 // 313 // manageProductsTabPage 314 // 315 this.manageProductsTabPage.Location = new System.Drawing.Point(4, 22); 316 this.manageProductsTabPage.Name = "manageProductsTabPage"; 317 this.manageProductsTabPage.Padding = new System.Windows.Forms.Padding(3); 318 this.manageProductsTabPage.Size = new System.Drawing.Size(583, 342); 319 this.manageProductsTabPage.TabIndex = 4; 320 this.manageProductsTabPage.Text = "Manage Products"; 321 this.manageProductsTabPage.UseVisualStyleBackColor = true; 302 // localPluginManagerView 303 // 304 this.localPluginManagerView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 305 | System.Windows.Forms.AnchorStyles.Left) 306 | System.Windows.Forms.AnchorStyles.Right))); 307 this.localPluginManagerView.Location = new System.Drawing.Point(6, 6); 308 this.localPluginManagerView.Name = "localPluginManagerView"; 309 this.localPluginManagerView.Plugins = null; 310 this.localPluginManagerView.Size = new System.Drawing.Size(569, 293); 311 this.localPluginManagerView.TabIndex = 0; 312 this.localPluginManagerView.ItemChecked += new System.Windows.Forms.ItemCheckedEventHandler(this.localPluginManager_ItemChecked); 313 // 314 // remotePluginInstaller 315 // 316 this.remotePluginInstaller.AllPlugins = new HeuristicLab.PluginInfrastructure.IPluginDescription[0]; 317 this.remotePluginInstaller.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 318 | System.Windows.Forms.AnchorStyles.Left) 319 | System.Windows.Forms.AnchorStyles.Right))); 320 this.remotePluginInstaller.Location = new System.Drawing.Point(6, 6); 321 this.remotePluginInstaller.Name = "remotePluginInstaller"; 322 this.remotePluginInstaller.NewPlugins = new HeuristicLab.PluginInfrastructure.IPluginDescription[0]; 323 this.remotePluginInstaller.Products = new HeuristicLab.PluginInfrastructure.Advanced.DeploymentService.ProductDescription[0]; 324 this.remotePluginInstaller.ShowAllPlugins = false; 325 this.remotePluginInstaller.Size = new System.Drawing.Size(571, 293); 326 this.remotePluginInstaller.TabIndex = 14; 327 this.remotePluginInstaller.ItemChecked += new System.Windows.Forms.ItemCheckedEventHandler(this.remotePluginInstaller_ItemChecked); 328 // 329 // pluginEditor 330 // 331 this.pluginEditor.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 332 | System.Windows.Forms.AnchorStyles.Left) 333 | System.Windows.Forms.AnchorStyles.Right))); 334 this.pluginEditor.Location = new System.Drawing.Point(6, 6); 335 this.pluginEditor.Name = "pluginEditor"; 336 this.pluginEditor.Size = new System.Drawing.Size(571, 330); 337 this.pluginEditor.TabIndex = 0; 338 // 339 // productEditor 340 // 341 this.productEditor.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 342 | System.Windows.Forms.AnchorStyles.Left) 343 | System.Windows.Forms.AnchorStyles.Right))); 344 this.productEditor.Location = new System.Drawing.Point(6, 6); 345 this.productEditor.Name = "productEditor"; 346 this.productEditor.Size = new System.Drawing.Size(571, 330); 347 this.productEditor.TabIndex = 0; 322 348 // 323 349 // InstallationManagerForm … … 338 364 this.localPluginsTabPage.ResumeLayout(false); 339 365 this.availablePluginsTabPage.ResumeLayout(false); 366 this.uploadPluginsTabPage.ResumeLayout(false); 367 this.manageProductsTabPage.ResumeLayout(false); 340 368 this.logTabPage.ResumeLayout(false); 341 369 this.logTabPage.PerformLayout(); … … 371 399 private System.Windows.Forms.TabPage uploadPluginsTabPage; 372 400 private System.Windows.Forms.TabPage manageProductsTabPage; 401 private PluginEditor pluginEditor; 402 private ProductEditor productEditor; 373 403 } 374 404 } -
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/PluginComparisonView.cs
r3474 r3509 36 36 internal partial class PluginComparisonView : Form { 37 37 38 public PluginComparisonView( PluginDescription localPlugin,PluginDescription serverPlugin) {38 public PluginComparisonView(IPluginDescription localPlugin, IPluginDescription serverPlugin) { 39 39 InitializeComponent(); 40 40 //Caption = "Compare plugins"; -
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/PluginEditor.cs
r3474 r3509 31 31 using ICSharpCode.SharpZipLib.Zip; 32 32 using System.IO; 33 using HeuristicLab.PluginInfrastructure.Manager; 33 34 34 35 namespace HeuristicLab.PluginInfrastructure.Advanced { 35 internal partial class PluginEditor : InstallationManagerControl {36 private Dictionary<IPluginDescription, DeploymentService.PluginDescription> localAndServerPlugins;36 internal partial class PluginEditor : UserControl { 37 private Dictionary<IPluginDescription, IPluginDescription> localAndServerPlugins; 37 38 private BackgroundWorker pluginUploadWorker; 38 39 private BackgroundWorker updateServerPluginsWorker; … … 42 43 // Caption = "Upload Plugins"; 43 44 44 localAndServerPlugins = new Dictionary<IPluginDescription, DeploymentService.PluginDescription>();45 localAndServerPlugins = new Dictionary<IPluginDescription, IPluginDescription>(); 45 46 46 47 #region initialize backgroundworkers … … 64 65 } 65 66 // refresh server plugins (find matching local plugins) 66 var plugins = ( DeploymentService.PluginDescription[])e.Result;67 var plugins = (IPluginDescription[])e.Result; 67 68 foreach (var plugin in plugins) { 68 69 var matchingLocalPlugin = (from localPlugin in localAndServerPlugins.Keys … … 168 169 private void listView_ItemActivate(object sender, EventArgs e) { 169 170 foreach (var item in listView.SelectedItems) { 170 var plugin = ( IPluginDescription)((ListViewItem)item).Tag;171 var plugin = (PluginDescription)((ListViewItem)item).Tag; 171 172 var compView = new PluginComparisonView(plugin, localAndServerPlugins[plugin]); 172 173 compView.Show(); -
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/PluginView.cs
r3474 r3509 37 37 private const string IMAGE_KEY_DOCUMENT = "Document"; 38 38 39 private PluginDescription plugin;39 private IPluginDescription plugin; 40 40 41 41 public PluginView() { … … 44 44 } 45 45 46 public PluginView( PluginDescription plugin) {46 public PluginView(IPluginDescription plugin) { 47 47 InitializeComponent(); 48 48 PopulateImageList(); … … 65 65 contactTextBox.Text = CombineStrings(plugin.ContactName, plugin.ContactEmail); 66 66 descriptionTextBox.Text = plugin.Description; 67 stateTextBox.Text = plugin.PluginState.ToString(); 68 errorTextBox.Text = plugin.LoadingErrorInformation; 67 var localPlugin = plugin as PluginDescription; 68 if (localPlugin != null) { 69 stateTextBox.Text = localPlugin.PluginState.ToString(); 70 errorTextBox.Text = localPlugin.LoadingErrorInformation; 71 } 69 72 foreach (PluginDescription dependency in plugin.Dependencies) { 70 73 var depItem = new ListViewItem(new string[] { dependency.Name, dependency.Version.ToString() });
Note: See TracChangeset
for help on using the changeset viewer.