From: plaa Date: Mon, 21 Nov 2011 21:09:16 +0000 (+0000) Subject: reordered pages X-Git-Tag: upstream/1.1.9^2~3 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=eff42671f65849def434559fa72545f2fdfeb0d1;p=debian%2Fopenrocket reordered pages git-svn-id: https://openrocket.svn.sourceforge.net/svnroot/openrocket/trunk@206 180e2498-e6e9-4542-8430-84ac67f01cd8 --- diff --git a/src/net/sf/openrocket/gui/print/OpenRocketPrintable.java b/src/net/sf/openrocket/gui/print/OpenRocketPrintable.java index 96ea7267..456495f3 100644 --- a/src/net/sf/openrocket/gui/print/OpenRocketPrintable.java +++ b/src/net/sf/openrocket/gui/print/OpenRocketPrintable.java @@ -3,32 +3,33 @@ */ package net.sf.openrocket.gui.print; -import net.sf.openrocket.l10n.Translator; -import net.sf.openrocket.startup.Application; - import java.util.ArrayList; import java.util.List; +import net.sf.openrocket.l10n.Translator; +import net.sf.openrocket.startup.Application; + /** * This enumeration identifies the various types of information that may be printed. */ public enum OpenRocketPrintable { + // Design Report + DESIGN_REPORT("OpenRocketPrintable.DesignReport", false, 1), // Parts detail - PARTS_DETAIL("OpenRocketPrintable.Partsdetail", true, 1), + PARTS_DETAIL("OpenRocketPrintable.Partsdetail", true, 2), + // Nose Cone Templates + NOSE_CONE_TEMPLATE("OpenRocketPrintable.Noseconetemplates", false, 3), + // Transition Templates + TRANSITION_TEMPLATE("OpenRocketPrintable.Transitiontemplates", false, 4), // Finset shape - FIN_TEMPLATE("OpenRocketPrintable.Fintemplates", true, 2), + FIN_TEMPLATE("OpenRocketPrintable.Fintemplates", true, 5), // Fin marking guide. - FIN_MARKING_GUIDE("OpenRocketPrintable.Finmarkingguide", false, 3), - // Transition Templates - TRANSITION_TEMPLATE("OpenRocketPrintable.Transitiontemplates", false, 4), - // Nose Cone Templates - NOSE_CONE_TEMPLATE("OpenRocketPrintable.Noseconetemplates", false, 5), - // Design Report - DESIGN_REPORT("OpenRocketPrintable.DesignReport", false, 6); + FIN_MARKING_GUIDE("OpenRocketPrintable.Finmarkingguide", false, 6); + private static final Translator trans = Application.getTranslator(); - + /** * The description - will be displayed in the JTree. */ @@ -101,20 +102,20 @@ public enum OpenRocketPrintable { } return null; } - - /** - * Get a list of ordered enum values that do not have stage affinity. - * - * @return a list of OpenRocketPrintable - */ - public static List getUnstaged() { - List unstaged = new ArrayList(); - OpenRocketPrintable[] values = values(); - for (OpenRocketPrintable value : values) { - if (!value.isStageSpecific()) { - unstaged.add(value); - } - } - return unstaged; - } + + /** + * Get a list of ordered enum values that do not have stage affinity. + * + * @return a list of OpenRocketPrintable + */ + public static List getUnstaged() { + List unstaged = new ArrayList(); + OpenRocketPrintable[] values = values(); + for (OpenRocketPrintable value : values) { + if (!value.isStageSpecific()) { + unstaged.add(value); + } + } + return unstaged; + } }