Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You have an application. In that app. your represent, and edit some data.</p> <p>That data represents a programming language class or a programming language interface.</p> <p>When you make an editor for some data, sometimes you have to add additional / complementary information, for example, each class chart may have a different line color, and doesn't have to do with the attributes or the methods of your class.</p> <p>The same goes for the field or property that indicates wheter you are editing a class or an interface.</p> <p>I suggestion do some things.</p> <p>Separate the represented data from the code or logic of your program:</p> <p>if you have something like:</p> <pre><code>// all code, classes, mixed up public class JCustomPanel: { protected ChartClass Charts; protected ArrayList&lt;String&gt; MyClassAttributes; protected ArrayList&lt;String&gt; MyClassMethods; void PanelDoSomeThing(); void ClassDoSomeThing(); void InterfaceDoSomeThing(); // ... } // class JCustomPanel </code></pre> <p>Change to this:</p> <pre><code>// things related to a single class or interface, // nothing to do with the chart public class JClassRepresentation: { ArrayList&lt;String&gt; Attributes; ArrayList&lt;String&gt; Methods; bool IsInterface; void ClassDoSomeThing(); void InterfaceDoSomeThing(); // ... } // class JCustomPanel // things related to the editor, // contains the classes and interfaces, // but, as separate stuff public class JCustomPanel: { ArrayList&lt;JClassRepresentation&gt; Classes; int PagesCount; void InterfaceDoSomeThing(); // ... } // class JCustomPanel </code></pre> <p>Cheers.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload