- Timestamp:
- 2008-09-16T18:29:35+02:00 (16 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/MapPaintVisitor.java
r885 r976 104 104 105 105 if(!isZoomOk(wayStyle)) 106 return; 107 if(w.nodes.size() < 2) 106 108 return; 107 109 -
trunk/src/org/openstreetmap/josm/data/osm/visitor/SimplePaintVisitor.java
r955 r976 206 206 */ 207 207 public void visit(Way w) { 208 if (w.incomplete ) return;209 210 // show direction arrows, if draw.segment.relevant_directions_only is not set, the way is tagged with a direction key 211 // (even if the tag is negated as in oneway=false) or the way is selected212 213 boolean showThisDirectionArrow = w.selected 214 || (showDirectionArrow215 208 if (w.incomplete || w.nodes.size() < 2) 209 return; 210 211 // show direction arrows, if draw.segment.relevant_directions_only is not set, the way is tagged with a direction key 212 // (even if the tag is negated as in oneway=false) or the way is selected 213 214 boolean showThisDirectionArrow = w.selected 215 || (showDirectionArrow && (!showRelevantDirectionsOnly || w.hasDirectionKeys)); 216 216 Color wayColor; 217 217 -
trunk/src/org/openstreetmap/josm/gui/MainApplication.java
r966 r976 35 35 */ 36 36 public MainApplication(JFrame mainFrame) { 37 super(); 37 38 mainFrame.setContentPane(contentPane); 38 39 mainFrame.setJMenuBar(menu); … … 82 83 } 83 84 85 // Only show the splash screen if we don't print the help and exit 86 SplashScreen splash; 87 if (!argList.contains("--help") && !argList.contains("-?") && !argList.contains("-h")) { 88 splash = new SplashScreen(); 89 } else { 90 splash = null; 91 } 92 93 splash.setStatus(tr("Reading preferences")); 84 94 // get the preferences. 85 95 final File prefDir = new File(Main.pref.getPreferencesDir()); … … 123 133 language = (String)(args.get("language").toArray()[0]); 124 134 135 splash.setStatus(tr("Activating updated plugins")); 125 136 if (!PluginDownloader.moveUpdatedPlugins()) { 126 137 JOptionPane.showMessageDialog(null, 127 tr("Activating the updated plugins failed. "),138 tr("Activating the updated plugins failed. Check if JOSM has the permission to overwrite the existing ones."), 128 139 tr("Plugins"), JOptionPane.ERROR_MESSAGE); 129 140 } 130 141 131 142 // load the early plugins 143 splash.setStatus(tr("Loading early plugins")); 132 144 Main.loadPlugins(true, language); 133 145 … … 159 171 } 160 172 173 splash.setStatus(tr("Setting defaults")); 161 174 preConstructorInit(args); 175 splash.setStatus(tr("Creating main GUI")); 162 176 JFrame mainFrame = new JFrame(tr("Java OpenStreetMap - Editor")); 163 177 Main.parent = mainFrame; 164 178 final Main main = new MainApplication(mainFrame); 179 splash.setStatus(tr("Loading plugins")); 165 180 Main.loadPlugins(false, null); 166 181 toolbar.refreshToolbarControl(); 167 182 168 183 mainFrame.setVisible(true); 184 splash.closeSplash(); 169 185 170 186 if (!args.containsKey("no-fullscreen") && !args.containsKey("geometry") && Toolkit.getDefaultToolkit().isFrameStateSupported(JFrame.MAXIMIZED_BOTH))
Note:
See TracChangeset
for help on using the changeset viewer.