rem: if (partition->GetPath(&path)==B_OK) printf("TargetVisitor::Visit(BPartition *) : %s\n", path.Path()); printf("TargetVisitor::Visit(BPartition *) : %s\n", partition->Name()); char label[255], menuLabel[255]; MakeLabel(partition, label, menuLabel); fMenu->AddItem(new PartitionMenuItem(partition->ContentName(), label, menuLabel, new BMessage(TARGET_PARTITION), partition->ID()));
add: if (partition->GetPath(&path)==B_OK) printf("SourceVisitor::Visit(BPartition *) : %s\n", path.Path()); printf("SourceVisitor::Visit(BPartition *) : %s\n", partition->Name()); fMenu->AddItem(new PartitionMenuItem(NULL, partition->ContentName(), NULL, new BMessage(SRC_PARTITION), partition->ID()));
context: TargetVisitor::Visit(BPartition *partition, int32 level){	if (partition->IsReadOnly())		return false;	BPath path;	if (partition->GetPath(&path)==B_OK) 		printf("TargetVisitor::Visit(BPartition *) : %s\n", path.Path());	printf("TargetVisitor::Visit(BPartition *) : %s\n", partition->Name());	char label[255], menuLabel[255];	MakeLabel(partition, label, menuLabel);	fMenu->AddItem(new PartitionMenuItem(partition->ContentName(), label, menuLabel, new BMessage(TARGET_PARTITION), partition->ID()));	return false;}