Ejemplo n.º 1
0
 /* (non-Javadoc)
  * @see org.eclipse.core.variables.IDynamicVariableResolver#resolveValue(org.eclipse.core.variables.IDynamicVariable, java.lang.String)
  */
 public String resolveValue(IDynamicVariable variable, String argument) {
   String selection = selectedResourceManager.getSelectedText();
   String selectedText = argument;
   if (selection != null && selection.length() > 0) {
     selectedText = selection;
   }
   return selectedText;
 }
Ejemplo n.º 2
0
 public SelectedTextResolver() {
   selectedResourceManager = SelectedResourceManager.getDefault();
 }