this.action = action;
}
public void run(IAction action) {
EditURLDialog eud = new EditURLDialog(targetpart.getSite().getShell());
String url = "";
try {
url = resource.getPersistentProperty(new QualifiedName("", CFMLPreferenceConstants.P_PROJECT_URL));
if(url != null && url.trim().length() > 0){
eud.setUrl(url);
}
} catch (CoreException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
if(eud.open() == IDialogConstants.OK_ID){
//lets save this
try {
resource.setPersistentProperty(new QualifiedName("", CFMLPreferenceConstants.P_PROJECT_URL), eud.getUrl());
URLDecorator.getURLDecorator().refresh();
} catch (CoreException e) {
// TODO Auto-generated catch block
e.printStackTrace();