Skip to content

[BUG] Preferences class source code formatting violates coding conventions #156

@jody

Description

@jody

Describe the bug
Class Preferences violates coding convention style guide.

To Reproduce
Steps to reproduce the behavior:

  1. Go to
    class Preferences implements PreferenceGenerator
    {
    /** The Jpanel comprising this Preference */
    private JPanel myPanel;
    /** Invokes BlueJ proxy object for this Preference */
    private BlueJ bluej;
    /**
    * Instantiate an object of the Preferences class and then register
    * it with the BlueJ proxy object.
    *
    * @param bluej BlueJ proxy object
    */
    public Preferences(BlueJ bluej)
    {
    this.bluej = bluej;
    myPanel = new JPanel();
    myPanel.add (new JLabel ("Quality Analysis Tools"));
    // Load the JPanel preference data
    loadValues();
    }
    /**
    * Bluej will call this method to get the panel where preferences
    * for this extension are
    *
    * @return JPanel to contain preference data
    */
    public JPanel getPanel () {
    return myPanel;
    }
    /**
    * Method to save values from the preference panel into its
    * internal state
    */
    public void saveValues () {
    }
    /**
    * Method to load its current values into its preference panel
    */
    public void loadValues () {
    //TODO implement JPanel options
    }
    }
  2. See inconsistencies in the source code formatting of that class with Coding Convention Guide

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions