1 11 package org.eclipse.update.internal.core; 12 import java.io.*; 13 14 import org.eclipse.update.configuration.*; 15 import org.eclipse.update.internal.model.*; 16 public class ConfigurationActivity 17 extends ConfigurationActivityModel 18 implements IActivity, IWritable { 19 20 23 public ConfigurationActivity() { 24 } 25 26 29 public ConfigurationActivity(int action) { 30 super(); 31 setAction(action); 32 setStatus(STATUS_NOK); 33 } 34 35 38 public void write(int indent, PrintWriter w) { 39 } 63 64 67 public IInstallConfiguration getInstallConfiguration() { 68 return (IInstallConfiguration) getInstallConfigurationModel(); 69 } 70 71 public boolean equals(Object other) { 72 if (!(other instanceof ConfigurationActivity)) 73 return false; 74 if (this == other) 75 return true; 76 77 ConfigurationActivity activity = (ConfigurationActivity) other; 78 return getAction() == activity.getAction() 79 && getLabel().equals(activity.getLabel()) 80 && getStatus() == activity.getStatus(); 81 } 82 } 83 | Popular Tags |