I'd like to change the "Root folder" for one of the existing views in StarTeam.
There's a possibility to change a working folder (via "View / Properties" dialog), but that's not the feature I need as it is done locally only.
Does anyone know how could I change it so that any user who switches to this view sees the new structure?
Within a View you can set the Default Working Folder that will be shared initially for ALL users of that View within a Project or you can set an Alternate Working Folder that is specific to only YOUR local workstation. The screen is under View->Properties:
You can find additional information about this within the documentation: Changing a View's Default and Alternate Working Folders
Related
I am trying to work on two different ClearCase views in two VSCode sessions.
But, when I open the second instance of VSCode , it defaults to the first view and changing the view in the second session also changes the set view in the first session.
Is there a way to work on multiple views in separate VSCode windows?
One approach is to work with ClearCase snapshot views, which are loading their files to a fixed path, one per view.
Then each VSCode session can register a VSCode workspace which opens its own dedicated folder, again, one per view.
A similar approach is possible with ClearCase dynamic views, provided you do not do a cleartool setview, which would attempts to mount each view on the MVFS mounting point /view (or M:\ on W: only one view at at time can be attached to /view.
Using setview would explain why the second VSCode opens files of the first view, if it attempts to open files mounted by the first view.
But for dynamic views mounted on distinct paths, the same scenario than snapshot view can apply:
open the right root folder of one view
save that as a VSCode workspace file
when you reopen that file, you will reopen the right view files.
How can I make a project's subdirectory read-only in eclipse?
The reason I need to do this is that I'm currently learning how to build a child theme in wordpress. I need to be able to view the parent theme's files but sometimes I edit the parent file (e.g. functions.php, style.css) instead of the child's file with the same name.
I know I could set the filesystem attributes recursively to read-only on everything other than my child theme, but I'm wondering if there's a better way? When I do this and I try to edit a read-only file, eclipse shows me a dialog offering to clear the attribute. This is not convenient because if I accidentally press enter or space before I realise there's a dialog, the default is to clear the attribute and then I have to set it again. Ideally I'd like to tell eclipse to not let me edit any files under some specific directories that I choose.
Thanks
I had a bunch of images in my Xcode project. They were originally added without choosing "Create Folder References for any added folders". So I removed the references and re-added as per these instructions Include a resource directory hierarchy into app bundle
Unfortunately, Interface Builder will not display any of the images inside that directory. On the project tree the directory comes up with a blue icon and all the files are there!
The file names show in the IB Inspector (i.e. under the 'Image' property), but I get missing image icons for everything located in that directory.
Any ideas how to get the images showing again?
Problem solved! Turns out that blue folder references are fine, but IB will not read them!
For anyone else who cares to know, if you have the following:
/iphone-project-dir/images/pic.png
Once you've added them in a blue folder in Xcode (as detailed in link above), you can refer to them in IB as follows:
images/pic.png
In the XIB's XML it will look something like this
<string key="NSResourceName">images/pic.png</string>
Simple! The only drawback is Interface Builder's WYSIWYG preview does not process these paths!
I found the answer here http://www.iphonedevsdk.com/forum/iphone-sdk-development/6457-xcode-folder-directories.html
If you like to have your images structured in your SCM and under XCode but really doesn't mind that all images will be placed in one directory once building the final .ipa package, here is what you need to do:
Create a directory called e.g. "Images" in your root folder
Place all your images into this folder
Add a new group from within XCode and call this "Images" too
Right-click this group and choose "Add Files to ..."
Select all your files and uncheck "Copy items into destination group's folder" because they are already in there
Make sure to select your right targets
From Interface Builder you are now able to pick your images without prefixing it with the folder name and you will see a preview of your images within Interface Builder.
Gives me both my IB preview and a neat folder structure when designing my app.
Copy Images folder to your project folder.
Add this folder to project. In "Choose options for adding these files" dialog, you must check "Create groups".
"Copy items if needed" you can leave checked.
Make sure to select your right targets
Finish
When attempting to set up an 'External Tool' in Eclipse, there are a great deal of variables that deal with project location, workspace location etc - but not any for reference to the Copy View Area - i.e. Where your CCRC view starts.
This would be very useful for referencing tools that may be in a VOB external to the Java Project you are working in within a view.
Does anyone have any suggestions as to how I can retrieve the copy view area as a variable in Eclipse?
Thanks,
Stuart
In general, referencing an external path in done through a Linked Resource Variable, which you can then refer in your project through a linked folder.
Your external tool launcher configuration can then use a 'project_path' variable to reference it (or 'resource_loc' to obtain the absolute file system path of a workspace relative path resource).
Now, regarding CCRC, I check (and launch my own CCRC right now).
However, a CCRC "web view" is actually a snapshot view, meaning the "Copy View Area" would actually refer in this case to the root of a snapshot view.
And there is no way to "deduce" the root of a snapshot view in ClearCase (actually, you can even have several roots for "one view"! Just copy the hidden .view file wherever you want, and that directory will become the new root of your unique snapshot view!)
I'm about to perform a bunch of folder moving operations in StarTeam (including some new nesting levels) and I would like to set a label so that I can roll back in case of issues. I figured out how to set a label on a folder and all its children, but I couldn't figure out how to get the version of that folder corresponding to that particular label. It seems like labels are tied to the files themselves and not the folders/folder structure.
I've switched to Subversion and FogBugz so I am rusty on StarTeam. I think you need a View Label.
From View menu, select Labels... to open the Labels dialog.
On the View tab, click New... button to open View Label dialog.
Type in label name as "Release 1.2.3.4", check Frozen, and hit OK.
To get back to the state,
From View menu, select Select Configuration... to open the Select a View Configuration dialog.
Select Labeled configuration, and pick "Release 1.2.3.4"
You can then create a new view from the view label to branch off you want to. See the Help file > Working with StarTeam > Managing Views. Here's a quote from Configuring a View:
By default, a view has a current
configuration – that is, it displays
the latest revisions of the items in
the project. However, you can roll
back a view to a past state based on a
label, promotion state, or a point in
time.