How to implement dark mode in BlueJ using Github link - github

I am new to programming and have been using the IDE BlueJ. I wanted to change to dark mode using the code given in this GitHub link:
https://github.com/t-ye/bluej-dark-theme
The instructions there say to "Replace path/to/BlueJ/lib/stylesheets with the stylesheets in this project". I'm not really sure how to do that. I've tried searching for files within my Mac Finder, but haven't found anything. I'm assuming this is a pretty easy thing to do because the instructions on the Github don't say much, but I'm just not sure how to proceed. Sorry if it's a dumb question!
Thanks :)

First off locate the blueJ application in finder, and then right click(or control+click), and click "Show Package Contents", then navigate to Contents/Resources/Java/stylesheets, then look for a css file named "java-colors.css". You can then either replace the file as a whole with a predefined darkmode css file or manually edit the colours to your liking.

Related

Netbeans 8.2 wont apply themes

For some reason, Netbeans IDE 8.2 won't apply any different themes than the original one. Has anyone else had an issue with this? I have applied the new theme and restarted the application many times without success. Thank you.
It's very hard to identify what is wrong since everything in your screenshot looks perfect, and Sublime-Theme works for me using NetBeans 8.2 on Windows 10. See the file with the tab NewServlet.java in the screen shot below.
Note that using Sublime-Theme does not impact everything. For example, the Projects and Navigator panels don't change. Since your screen shot only showed the Options window, and the Start Page doesn't change in the editor either, are you absolutely certain that none of your files in the editor are using Sublime-Theme?
Also, you say that "Netbeans IDE 8.2 won't apply any different themes than the original one", but NetBeans comes bundled with several themes, such as NetBeans and NetBeans 5.5 as shown in the screen shot below. How many options are shown in the profile drop list for you? If you select a different theme from the Profile list and click Apply the rendering of your files in the editor should change immediately. Is that happening?
If so, the problem is probably confined to the installation of Sublime-Theme. Try deleting Sublime-Theme (the button is in the top right corner of your screen shot), and then import the zip file again to see if that fixes the problem. Also, verify that the Sublime-Theme zip file you downloaded can be manually unzipped since it might be a corrupt file.
Another thing to try is using some alternative plugins. Select Tools -> Plugins -> Available Plugins and then install Dark Look and Feel Themes and Darcula LAF for NetBeans. If those don't work either then there is something fundamentally wrong with the installation of NetBeans.
Finally, this article titled The complete guide to tuning the appearance of NetBeans may be helpful.

Mac os X Eclipse Package Explorer view , project folders in smaller size

I recently brought Mac Book Pro and I installed Eclipse Luna. I am facing a problem in viewing the Java projects in "Package Explorer" folders are very small. Is there a way to increase instead of changing the screen resolution?
It should be possible, have a look at this link: http://blog.vogella.com/2013/02/19/css-styling-individual-part-of-the-eclipse-ide/
(Copy of the essential part, in case the above link stops working:
#org-eclipse-jdt-ui-PackageExplorer {
font-size:20;
background:black;
}
)
Remains the question, where to put those lines. Best would be to create your own style, but I never figured out how to do it. So I usually just modify one of the built-in styles. To do this, go to /Applications/eclipse4.4/plugins/org.eclipse.ui.themes_1.0.1.v20140819-1717/css and open the css-file of the style you currently use (probably e4_default_mac.css). Then add the above lines at the end of that css file and restart Eclipse. Note: when updating Eclipse, you might have to repeat those steps.
EDIT: Just realized it was already asked and answered on SO: I cannot change the font size of package explorer in Eclipse Don't look at the accepted answer, but at the next one below.
No, there is no way to change the size of folders or other visual properties of package explorer.
The views, fonts, etc... of general views are set by the system/OS properties. Only the editor view allows customization of sizing, such as, font.

(Xcode 6) - Code completion not work (UIKit, Foundation...)

I need help with Xcode 6.
It only happens with the project I'm working with. For the other one, code suggestion works.
What's wrong with my project?
The answer was to delete ~/Library/Developer/Xcode/DerivedData/ModuleCache (while Xcode is closed)
I have been researching the same issue on StackOverflow and here are what most threads suggest: delete Derived Data folder files (or maybe just the files relevant to your troublesome project!). It worked for me hence this answer. Details below:
Fix manually by deleting all the files in ~/Library/Developer/Xcode/DerivedData
Note: If Library folder is new to you, follow this CultOfMac article:
Library access on.
Open a Finder window and then navigate to the Home folder. That’s the one represented by the cute little house icon over in the sidebar. If you don’t see it, click on something like the Desktop or Documents folder, and then Command-click on the title bar of the window. You’ll get a drop-down menu that shows the file path of the current folder, which–if you’ve picked a folder from your Home directory–will show the Home folder somewhere in the list. Click on it to go to the Home folder.
Now, once you’re there, hit Command-J to bring up the View Options panel. You’ll see a checkbox to “Show Library Folder” somewhere in that panel, depending on the view your Finder window is in. Simply check it to show your User account’s Library folder. Now you can go in there and mess around to your heart’s content.
Note: Some StackOverflow members suggested pressing 'Escape' key or Command and + keys after the dot (.), others suggested typing a white space (control+space bar). However, your post seems to suggest it's project-specific (works for the other project) so it may prove useful to try different approaches. Hope this helps.
Swift files will NOT have code completion for UI classes (e.g. UIImage, UIDevice) unless there is an "import UIKit" at the top of the file.

Eclipse treating file as plain text

I've got a small homework project, and for whatever reason Eclipse has decided to stop highlighting syntax or allowing intellisense or goto definitions or anything in this Main.java file. I've tried rebooting it, and the computer, but had no luck.
The thing that really has me confused is that it's still compiling and running the code correctly (eg, changes I make in Main.java are compiled and run - it's not running old Main.class files), so it's still in the build path ... right?
Any ideas?
Right click on the file in the Package Explorer and choose the Open With menu. You will probably find that Text Editor is selected, choose Java Editor to open the file with the correct editor.
The Open With menu selection is remembered so you should get the Java Editor in future, but equally if you choose the plain text editor that is also remembered.
I suggest finding a way to reset any setting you might have set by accident. Not saying that you did it. But just to make sure, just try it out. If you customized the preferences already, you could make some kind of note of the settings, then change it. If that doesn't work, let me know. Good Luck!
Copy the text somewhere, delete the file, and then add a new class (of the same name) and paste the text back.

How to add views to Show In menu for particular file types

I use an older plugin called Veloeclipse for editing Velocity templates in Eclipse. There's been no development on this since 2009, which isn't a problem because it's mainly just for syntax highlighting and format validation. The really annoying thing about it, however, is that when I try to do Show In to view the current Velocity template within my Package Explorer or Project Explorer, the only available option is Properties. That's not really useful. I really need to be able to get to the file in one of the regular explorer views.
So I have sort of two questions:
Is there a way to configure this without having to monkey with any code? A configuration file or something? I've grepped through my Eclipse installation and haven't seen anything, but I'm hoping that there's something I'm missing.
So assuming that the answer to my first question is no, how do I go about modifying the plugin code so that it will show more than the Properties view in the Show In menu? Most of what I found on the plugin development wiki comes from the other direction: how to make your view or perspective appear in the Show In menu.
Any help with this would be hugely appreciated!
Try to check the plugin source code. it might do something different than other editors. What I mean is that the show in menu item that you have there is not the usual extension point but a hard coded context menu option.