parallaxe / OpenInSplittedTab

AppCode plugin to open the declaration/implementation of the current selected symbol within a vertically splitted tab.
MIT License
17 stars 4 forks source link

Open the corresponding storyboard when the cursor selects a segue-identifier #6

Open parallaxe opened 10 years ago

parallaxe commented 10 years ago

When the cursor selects a string that represents a segue-identifier, like in

-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
  if([segue.identifier isEqualToString:@"cursor is on this string"]) {
    ...
  }
}

or in

[self performSegueWithIdentifier:@"cursor is on this string"];

and executes the plugin-action, it should open the corresponding storyboard and select the segue.

This may be very tricky to implement, as

  1. I don't know if the objc-API for jetbrains-plugins is publicly available or if i would have to infer all necessary informations from the PsiElement-API and
  2. I currently have no clue how to find the corresponding storyboard