You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

UserPreferencesAdapter.java 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /* *******************************************************************
  2. * Copyright (c) 1999-2001 Xerox Corporation,
  3. * 2002 Palo Alto Research Center, Incorporated (PARC).
  4. * All rights reserved.
  5. * This program and the accompanying materials are made available
  6. * under the terms of the Eclipse Public License v 2.0
  7. * which accompanies this distribution and is available at
  8. * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
  9. *
  10. * Contributors:
  11. * Xerox/PARC initial implementation
  12. * ******************************************************************/
  13. package org.aspectj.ajde.ui;
  14. import java.util.List;
  15. /**
  16. * This interface needs to be implemented by an IDE extension in order for AJDE
  17. * to store properties in a way that matches the IDE's property storing facilities.
  18. *
  19. * @author Mik Kersten
  20. */
  21. public interface UserPreferencesAdapter {
  22. /**
  23. * Retrieves a global IDE option.
  24. */
  25. String getGlobalPreference(String name);
  26. /**
  27. * Retrieves a global IDE option.
  28. */
  29. List getGlobalMultivalPreference(String name);
  30. /**
  31. * Sets a global IDE option with a single value.
  32. */
  33. void setGlobalPreference(String name, String value);
  34. /**
  35. * Sets a global IDE option with multiple values.
  36. */
  37. void setGlobalMultivalPreference(String name, List values);
  38. /**
  39. * Retrieves an option for the currently active project.
  40. */
  41. String getProjectPreference(String name);
  42. /**
  43. * Retrieves an option for the currently active project.
  44. */
  45. List getProjectMultivalPreference(String name);
  46. /**
  47. * Sets an option for the currently active project.
  48. */
  49. void setProjectPreference(String name, String value);
  50. /**
  51. * Sets an option for the currently active project.
  52. */
  53. void setProjectMultivalPreference(String name, List values);
  54. }