User Interface Prototype - OBSOLETE

Format the Current Source Code

To run FixStyle, select the Tools menu. Select “Run FixStyle.”




From the resulting menu, choose “Run on Current File” to run it on the current Java file.



Format a Directory of Source Code

To run FixStyle on all of the source code in a directory, go to the Tools menu and select "Run FixStyle". Choose the “Run on directory” option.



Walk through the directories until you find the one with the source code, select it, and click “Run on Directory.”


Set Fixstyle Options

Start BlueJ. Open the project where the code you wish to format is.

To get to FixStyle, pull down the Tools menu on the menu bar. Choose "FixStyle Options” to select what style modifiers you want to use.


Initial Default Setting

Without changing any profile settings FixStyle will have default formatting setting from JavaDoc standard settings. The default profile is defined by a "(default)" label next to the current default profile name. (See first image in the below Create a New Profile section.)

To change current default settings see below section "Setting a Default Profile".To view click here.

Create a New Profile

In the FixStyle options menu click the "New Profile" button.



Enter in an alphanumeric name for the profile (maximum 10 characters). Optional: select a style from the dropdown menu to select a standard coding format to start the profile, or leave as the default no style.



Click the "Save Name" button and the options menu will return with the newly created profile selected.



Duplicating Previous Profiles in New Profiles

If a duplicated profile is selected in the dropdown menu when a new profile is created, the new profile will have the options from the previous profile set in the new profile. This is to quickly make small changes to a previous setting and save the new profile separately.

After clicking "New Profiles" button and entering profile name, select profile in dropdown.


Click "Save Name" button to begin editing previous profile settings in new profile.


Edit settings and click "Save Profile" button.



Delete a Profile

Select the profile name from the Profile dropdown menu you wish to delete (the standard formatting styles cannot be deleted). Click the Delete Profile button.



Click OK to confirm deleting the profile, or cancel to abort.


Edit a Profile

Select the Profile in the FixStyle Options menu that you wish to edit.

The settings from that selected profile will be loaded into the options window.



Select one of the three tabs to alter the options. Below shows the Right Curly Brace tab selected. Change as many options as you'd like by selecting the desired option in the dropdown menus. An example of what the code will look like will change with the selected settings in the window on the right.



Once all the options are selected click the "Save Profile" button at the bottom of the page. If any other button or profile selection is made a warning message will be displayed that will ask if the user would like to save the changes made to the profile.



Select Save to save the settings or select Cancel to discard the settings to the current profile.

Setting a Default Profile

At the bottom of the options window there is a check box that can be checked to set a profile as the default. Only the default profile will be run on the code when formatted.



After saving the profile options the default profile will have "(default)" following it, to make it easily known to the user which profile is currently the default profile.


Attachments