Is there a trick to moving classes without causing project conflicts?
I've been using OOP for a few months, but I've been frustrated a handful of times trying to move classes. With other files, I just go to Files View, and right-click "Move on disk" which has always worked great.
But if I try to move a folder containing multiple classes, or classes nested into subfolders, the project FREAKS out. It's almost like LabVIEW is moving files one at a time, but not updating all the other classes about new locations of methods, dependencies, etc. So it moves something out of order and then all the classes that relied on that file freak out, wondering where the file went.
Then about a thousand individual warnings pop up, and I can't dismiss them all at once. Also, conflict resolution fails to work because LabVIEW's confused about where files loaded in memory are now located on disk.
I've had to do source control reverts on my entire workspace to get back into a working condition. Then I usually have to move the classes over one at a time, which is a painful and frustratingly slow process.
Am I doing something wrong here?
http://linkd.in/mikele
Solved!
Go to Solution.
I have run into similar issues before. The project and library files are just text. I have moved things and edited the pathes in the project/lvlib file. Can also use a save as on the library file. Your move turns into a copy and rename operation.
Mark Yedinak
"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
Similar Messages
-
My internal fan has gotten loud like a vacuum. Are there any tricks to fixing it without taking it in? Can it be taken in to replace the fan or is it time for a new computer?
Reset the SMC, as per > Resetting the System Management Controller
1. Shut down the computer.
2. Unplug the computer's power cord.
3. Wait fifteen seconds.
4. Attach the computer's power cord.
5. Wait five seconds, then press the power button to turn on the computer. -
So, I have just about had it. For nine days now, I have valiantly tried to move my library to an external drive. At first, I attempted to move it to my 2TB Time capsule. iTunes didn't like its new home though and moved home without telling me. So then there were two libraries. I meshed them back together reluctantly and iTunes in a silent revolt, absolutely refused to use its own 'Keep Library Organized' criteria and may as well have thrown my music against the wall. Seriously, my 5 year old nephew has his computer files better managed. Then I bought a 3TB Time Capsule and you may ask yourself why??? Well, iTunes doubled in size- although when I ran apps that are designed to find duplicate iTunes files, it deleted the music I actually bought from iTunes. So then I watched as iTunes got it back. How you ask; I run a MacBook Air, iMac and Mac mini in my house - as soon as one powered up it hit the net like a sailor on leave and re-downloaded it all without abandon. I tried to keep the libraries separate, no success there. I tried to keep them unified; iTunes response was to ask me if I wanted to join iTunes Match every time I logged on to my computer and on any computer - my iTunes match song number has been as high as 24,367 and as low as 11,112. And I can't simply refuse iTunes. No one refuses iTunes. Refusal to allow iTunes Match to run through all 24000 songs again was to revoke my rights to the songs that were once part of my library. If I took a long time to decide or was visibly impatient while iTunes did its little 3 hour scan it would arbitrarily decide that music I bought from iTunes was ineligible for iTunes Match. How could that possibly be??? I am missing music, or at least iTunes tells me so by showing me that lovely exclamation point. I have tried backing up my computer to do a full system restore and start all over. Time Capsule claims I have 979 GB of data and takes its sweet time to even back up one gig (about 18 minutes) even though I can transfer files to my Time Capsule at about 1 GB every 40 seconds. I guess though performing back-ups are somewhat like government jobs; it will get done, when it gets done. The back up requirement of 979 GB is surprising though, my Mac claims that I currently occupy just about 25% of my 2TB drive. The discrepancy, who knows, but I think the solution lies somewhere in iTunes. But maybe iPhoto. But that is for another time.
After admittedly only a quick read the one thing you don't say is how you are trying to make this move. Most people with moving library issues do it the wrong way. Plenty of web sites tell you how to do it the wrong way.
If the iTunes application is started before the drive with the library is fully mounted and awake iTunes will revert back to the internal drive. -
Is it possible to create a javafx class without extending Application class ? If yes, how ?
There is no such thing as a javafx class. It is a regular java class. The Aapplication class is the entry
point for JavaFX application. You have to extend the Application class to create Javafx application . -
How to reference a class without using the new keyword
I need to access some information from a class using the getter, but I don't want to use the new keyword because it will erase the information in the class. How can I reference the class without using the new keyword.
ContactInfo c = new ContactInfo(); // problem is here because it erases the info in the class
c.getFirstName();quedogf94 wrote:
I need to access some information from a class using the getter, but I don't want to use the new keyword because it will erase the information in the class. How can I reference the class without using the new keyword.
ContactInfo c = new ContactInfo(); // problem is here because it erases the info in the class
c.getFirstName();No.
Using new does not erase anything. There's nothing to erase. It's brand new. It creates a new instance, and whatever that constructor puts in there, is there. If you then change the contents of that instance, and you want to see them, you have to have maintained a reference to it somewhere, and access that instance's state through that reference.
As already stated, you seem to be confused between class and instance, at the very least.
Run this. Study the output carefully. Make sure you understand why you see what you do. Then, if you're still confused, try to rephrase your question in a way that makes some sense based on what you've observed.
(And not that accessing a class (static) member through a reference, like foo1.getNumFoos() is syntactically legal, but is bad form, since it looks like you're accessing an instance (non-static) member. I do it here just for demonstration purposes.)
public class Foo {
private static int numFoos; // class variable
private int x; // instance varaible
public Foo(int x) {
this.x = x;
numFoos++;
// class method
public static int getNumFoos() {
return numFoos;
// instance method
public int getX() {
return x;
public static void main (String[] args) {
System.out.println ("Foo.numFoos is " + Foo.getNumFoos ());
System.out.println ();
Foo foo1 = new Foo(42);
System.out.println ("Foo.numFoos is " + Foo.getNumFoos ());
System.out.println ("foo1.numFoos is " + foo1.getNumFoos ());
System.out.println ("foo1.x is " + foo1.getX ());
System.out.println ();
Foo foo2 = new Foo(666);
System.out.println ("Foo.numFoos is " + Foo.getNumFoos ());
System.out.println ("foo1.numFoos is " + foo1.getNumFoos ());
System.out.println ("foo1.x is " + foo1.getX ());
System.out.println ("foo2.numFoos is " + foo2.getNumFoos ());
System.out.println ("foo2.x is " + foo2.getX ());
System.out.println ();
} -
Returning a ZERO on Slow-Moving Item without transaction
Hi all,
Via a multi-provider, we have implemented several slow-moving item in our reports, eg we return all the value of some dimensions whether we have transaction or not on these dimension values.
Now for dimension value for which we have no transaction it returns in Bex an empty result on the key figure instead of a zero, is there a way to force BW to put a zero on a slow-moving item without any transaction?
Thanks in advance for your assistance
DavidHallo
FI you go to the Query Designery --> Property Display than you can cusotmioze how to display the zero. You probably have the option Zero Values Display as Blank.
I hope this can help you
Mike -
Classes without packages not accepted by ejbc compilation ?
Hey guys ...
I noticed something which I found unusual...I mite be missing something out here
When ejbc generates the Bean IMPL class , it does not put any import statements
in the generated java file but references all the classes in the Bean with their
absolute path ...
Now ..I have a 3rd-party jar which does not have certain classes in packages...and
I reference these classes within my Session Bean...the session bean compiles properly
..but when ejbc happens and the Impl class gets generated with the absolute path
and no imports...the compiler expects to find all these 3rd-party classes without
packages within the current session bean package itself which it will not..and
hence throws all sorts of "cannot resolve symbol" errors...
Does this mean that within my EJB beans I can never reference classes without
packages or is there something I am missing..?
Thanx,
KrishRob ,
I agree with u that giving classes without package is not a good practise..but
Itz got a history which believe it or not stems from another weblogic problem(related
to webservices..)
anywayz..that is another issue alltogether...
I don't think this bug is fixed...coz I checked a WLS70 Impl and it is still generating
the IMPL without the imports...
But can u clarify..what u wud mean by "fixing the bug" ..does it mean that the
Impl would start putting the imports..?
Thanx,
Krish
Rob Woollen <[email protected]> wrote:
I recall this bug being reported before. You might try the latest
service pack and see if it's been fixed already. Otherwise, you'll have
to contact [email protected]
FWIW, it's quite disturbing that a 3rd party would give you a jar
without a package.
-- Rob
Krishnan Venkataraman wrote:
Hey guys ...
I noticed something which I found unusual...I mite be missing
something out here
When ejbc generates the Bean IMPL class , it does not put any import
statements
in the generated java file but references all the classes in the Bean
with their
absolute path ...
Now ..I have a 3rd-party jar which does not have certain classes in
packages...and
I reference these classes within my Session Bean...the session bean
compiles properly
..but when ejbc happens and the Impl class gets generated with the
absolute path
and no imports...the compiler expects to find all these 3rd-party
classes without
packages within the current session bean package itself which it will
not..and
hence throws all sorts of "cannot resolve symbol" errors...
Does this mean that within my EJB beans I can never reference classes
without
packages or is there something I am missing..?
Thanx,
Krish -
Is it Possible to assign Valuation class without accounting view in MM
Hi all,
I have check my client system for materials having without accounting view while checking in table mbew for this material having valuation class.can anyelse say is it possible to assign valuation class without having accounting view.
Advance thanks,
rarajaHello ,
It is not possible to have a valuation class without accounting view.
There is some mistake that you are possibly making . pls check the same .Pls check if u r viewing the material master at the correct plant level .Also if you say that in MBEW valuation class exists , find out l the corresponding valuation level, the see the material master at the same level . You will definitely find the accounting view.
Regards
Anis -
How to call a method from a class without creating an instance fromthisclas
I want to create a class with methods but I want to call methods from this class without creating an instance from this class. Is this possible?
Is there in Java something like class methods and object methods????keyword 'static' my friend.
public class foo {
public static void bar {
System.out.println ("hello");
foo.bar() -
Is there any how to make control without xaml ?
Is there any how to make control without
Generic.xaml ?
When we use templete control , Normally we made a custom control using geniri.xaml to make make up control templet.
without Generic.xaml is it possiable to make up control templet that contained many component like a button stackpannel.
this is my sample code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.UI;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Documents;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
namespace derrick_test
public class DerrickPanel : Control
private StackPanel parentPanel;
private TextBlock testBlock;
public DerrickPanel()
this.DefaultStyleKey = typeof(DerrickPanel);
parentPanel = new StackPanel();
testBlock = new TextBlock();
parentPanel.Orientation = Orientation.Vertical;
parentPanel.Background = new SolidColorBrush(Colors.Red);
testBlock.Foreground = new SolidColorBrush(Colors.Aqua);
testBlock.Text = " hello World ";
parentPanel.Children.Add(testBlock);
Best Regrads Derrick.Here's one solution that I found:
public sealed partial class MainPage : Page
public MainPage()
this.InitializeComponent();
protected override void OnNavigatedTo(NavigationEventArgs e)
DerrickPanel D = new DerrickPanel();
MyGrid.Children.Add(D);
public class DerrickPanel : Control
private StackPanel parentPanel;
private TextBlock testBlock;
public DerrickPanel()
this.DefaultStyleKey = typeof(DerrickPanel);
this.Template = DerrickPanel.CreateTemplate();
private static ControlTemplate CreateTemplate()
string xaml = "<ControlTemplate xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\">";
xaml += "<StackPanel Orientation=\"Vertical\" Background=\"Red\">";
xaml += "<TextBlock Foreground=\"Aqua\">Hello World</TextBlock>";
xaml += "</StackPanel>";
xaml += "</ControlTemplate>";
var сt = (ControlTemplate)XamlReader.Load(xaml);
return сt;
Matt Small - Microsoft Escalation Engineer - Forum Moderator
If my reply answers your question, please mark this post as answered.
NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
objects and unknown namespaces. -
OK....... I have an Ipod and an Iphone. Would like all the Movies and music i have on both. My computer broke and now the only music i have is on ipod. It wont let me transfer to itunes. It says this device is linked to a different library and if i want to sync to a new one and delete everything on it. UH....NO Is there a way to do this without deleting ? All purchases were made though the same apple id.
- An iPod can only sync with one iTunes library. Yu can however manage music and videos among different computers by:
Using iPhone, iPad, or iPod with multiple computers
- To change syncing computer, move all the media to compute r#2
- Connect the iPod to #2 and make a backup by right clicking on the iPod under Devices in iTunes and select Back Up
- Restore the iPod from that backup
Note tha the iPod backup the iTunes makes does not include synced media like apps and music. -
I have an itunes account without credit card. How can I add a credit card to my account? Also, is there a way to buy apps without credit cards but via app store? Also, I want to download it directly to my iPad, can I do it even if i add credit card via pc?
Changing Account Information
http://support.apple.com/kb/HT1918
Apps Store FAQ
http://support.apple.com/kb/HT4461
iTunes Store FAQs
http://support.apple.com/kb/ht1689
http://www.apple.com/support/ipad/applications/ -
Is there a way of moving imported images in lR4 from mac HDD to and EX HDD with out loosing LR4 data
Hi
i've managed to fill my mack up with images as i imported all my photos to the MAC HDD rather than an external HDD,,,school boy error :\ (but i am new to lightroom)
as there's 30,000+ is there a way of moving them with out having to reload them to the new HDD? i only found out my mistake when the computer was running on 1% memory...doh!
Thanks for any advice
AndyIn your operating system, move the photos to wherever you want them to be (keeping the folder tree structure the same), and then in Lightroom re-link via http://www.computer-darkroom.com/lr2_find_folder/find-folder.htm
-
Is there a way to remove, clean, and safely re-affix the keys on a macbook pro without causing damage.... or is it best to let the Pro's do it?
i would let the pros do it. ive dismantled my mbp before and its a pain with all the little parts. you basically have to remove everything from the bottom up (logic board, ram, all cables, cd drive) to get to the keyboard.
how much junk you got under those keys? the space between the metal and keys are small, unlike a pc laptop (though most pc laptops have easier keyboards to remove) . -
Is there a way to import tracks without using the mouse in Logic Pro?
From the user manual:
You can import existing audio recordings by simply dragging them from the Media area, shown at the right of the Arrange window.
My question is: is there a way to do this without dragging it with a mouse? I'd like to use a shortcut to open a browse folder and select a file. The reason for this is that I am nearly blind and I can't use my mouse for dragging because I can't see it.
Thanks in advance.Can't see the mouse pointer.. even if you increase it's size using the Accessibilites features in OS X's System preferences...?
http://www.wikihow.com/Change-a-Mouse-Pointer-Size-in-Mac-Os-X
Maybe you are looking for
-
My i phones screen went black and wont come back
i was walking in my hallway playing with my new i phone i got for christmas and dropped it picked it up and the screen went blank i tryed every thing nothing is working i need help!!!
-
How to view changes in all IH orders in a specific timeframe
I'm looking for a report or a TA in which you can see all changes of IH orders in a specific timeframe? ...not changes in a single order (Transaktion IW32/ IW33)
-
Change Data Capture (CDC) for Oracle by Attunity on SQL Server 2014
hi i've installed the above on my server. It seems to look fine. The connection to oracle database is set, the databases on the sql server side have been created; the tables to be captured are created. When i make a change on the oracle side, the con
-
Satellite L450-171 - Dual boot with Windows 7 and Windows XP
Hello all, I bought a Satellite L450-171 with Windows 7 pre-install. For reasons of compatibility, I installed Windows xp on on another partitition of the computer. But in the starting up, I do not see both operating systems. I see only Windows xp. P
-
I am not able to see the pictures imported directly to Iphoto library in "Picture Folder"( Picture folder show only the libraray and not photos. Because of this I am not able to attach photos to my email.